.consent-banner,
.consent-dialog,
.consent-noscript {
    box-sizing: border-box;
    color: #202023;
    font-family: var(--booking-font-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    text-align: left;
}

.consent-banner *,
.consent-dialog * {
    box-sizing: border-box;
    font-family: inherit;
}

.consent-banner[hidden],
.consent-dialog:not([open]) {
    display: none !important;
}

.consent-banner {
    position: fixed;
    z-index: 1050;
    right: 20px;
    bottom: max(20px, env(safe-area-inset-bottom));
    left: 20px;
    max-height: 70vh;
    max-height: 70dvh;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 24px 28px;
    border: 1px solid #dfddd6;
    border-radius: 14px;
    background: #fffdf9;
    box-shadow: 0 8px 44px rgba(32, 29, 24, 0.2);
}

.consent-banner-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
    align-items: center;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.consent-eyebrow {
    margin: 0 0 5px;
    color: #48673e;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.consent-heading {
    margin: 0 0 10px;
    color: #202023;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-transform: none;
}

.consent-copy {
    margin: 0;
    color: #41463f;
    font-size: 14px;
    line-height: 1.6;
}

.consent-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 12px;
}

.consent-links a,
.consent-detail-link,
.consent-noscript a {
    color: #20592b;
    font-size: 13px;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.consent-links a:hover,
.consent-detail-link:hover,
.consent-noscript a:hover {
    color: #004704;
    text-decoration-thickness: 2px;
}

.consent-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.consent-banner .consent-actions .consent-button-secondary {
    grid-column: 1 / -1;
}

.consent-button,
.consent-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid #20592b;
    border-radius: 6px;
    background: #20592b;
    /* The legacy booking stylesheet sets button color: inherit !important. */
    color: #fffdf9 !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.consent-button:hover {
    border-color: #004704;
    background: #004704;
    color: #fffdf9 !important;
}

.consent-button-secondary,
.consent-close {
    border-color: #c4cabe;
    background: transparent;
    color: #20592b !important;
}

.consent-button-secondary:hover,
.consent-close:hover {
    border-color: #48673e;
    background: #e6efdf;
    color: #004704 !important;
}

.consent-button:disabled,
.consent-close:disabled,
.consent-checkbox:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.consent-button:focus-visible,
.consent-close:focus-visible,
.consent-checkbox:focus-visible,
.consent-links a:focus-visible,
.consent-detail-link:focus-visible,
.consent-noscript a:focus-visible {
    outline: 3px solid #48673e;
    outline-offset: 3px;
}

.consent-settings-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-transform: none;
    cursor: pointer;
}

.consent-settings-link:hover {
    background: transparent;
    color: inherit;
    text-decoration-thickness: 2px;
}

.consent-settings-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.consent-settings-link:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.booking-cookie-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    overscroll-behavior-x: contain;
}

.booking-cookie-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    color: #202023;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.booking-cookie-table th,
.booking-cookie-table td {
    padding: 12px 16px;
    border: 1px solid #dfddd6;
    vertical-align: top;
}

.booking-cookie-table th {
    background: #e6efdf;
    color: #20592b;
    font-weight: 600;
}

.booking-cookie-table td {
    background: #fffdf9;
}

.consent-note {
    margin: 10px 0 0;
    color: #62676c;
    font-size: 12px;
    line-height: 1.5;
}

.consent-status {
    margin: 12px 0 0;
    color: #6d3c15;
    font-size: 13px;
    line-height: 1.5;
}

.consent-status:empty {
    margin: 0;
}

.consent-dialog {
    position: fixed;
    inset: 0;
    width: calc(100% - 32px);
    max-width: 600px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    overscroll-behavior: contain;
    margin: auto;
    padding: 28px;
    border: 1px solid #dfddd6;
    border-radius: 14px;
    background: #fffdf9;
    box-shadow: 0 24px 70px rgba(32, 29, 24, 0.2);
}

.consent-dialog::backdrop {
    background: rgba(20, 29, 20, 0.5);
}

.consent-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.consent-close {
    flex-shrink: 0;
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
}

.consent-category {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #dfddd6;
    border-radius: 8px;
    background: #f8f5ee;
}

.consent-category-heading,
.consent-marketing-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
}

.consent-category-title {
    margin: 0;
    color: #202023;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
}

.consent-badge {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 20px;
    background: #e6efdf;
    color: #20592b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}

.consent-marketing-label {
    min-height: 44px;
    cursor: pointer;
}

.consent-checkbox {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin: 0;
    appearance: auto;
    accent-color: #20592b;
    cursor: pointer;
}

.consent-detail-link {
    display: inline-block;
    margin-top: 8px;
}

.consent-dialog-actions {
    margin-top: 20px;
}

.consent-save {
    width: 100%;
    margin-top: 10px;
}

.consent-noscript {
    margin: 0;
    padding: 16px 24px;
    border-top: 1px solid #dfddd6;
    background: #f8f5ee;
    font-size: 12px;
}

@media (max-width: 800px) {
    .consent-banner {
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        left: 12px;
        padding: 20px;
    }

    .consent-banner-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .consent-heading {
        font-size: 20px;
    }
}

@media (max-width: 380px) {
    .consent-banner,
    .consent-dialog {
        padding: 16px;
    }

    .consent-dialog-header {
        flex-wrap: wrap;
        gap: 0 12px;
        margin-bottom: 12px;
    }

    .consent-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .consent-button,
    .consent-close {
        transition: none;
    }
}
