.cookie-banner,
.cookie-dialog {
    box-sizing: border-box;
    color: #fff;
    background: #103b50;
    border: 1px solid rgba(255, 255, 255, .24);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
    font-family: var(--font-friendly, Arial, sans-serif);
}

.cookie-banner[hidden],
.cookie-dialog-backdrop[hidden] {
    display: none;
}

.cookie-banner {
    position: fixed;
    z-index: 9998;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
}

.cookie-banner-copy {
    max-width: 680px;
}

.cookie-banner h2,
.cookie-dialog h2 {
    margin: 0 0 .35rem;
    color: #fff;
    font-size: 1.2rem;
}

.cookie-banner p,
.cookie-dialog p {
    margin: 0 0 .5rem;
    color: rgba(255, 255, 255, .9);
    font-size: .92rem;
    line-height: 1.5;
}

.cookie-privacy-link {
    color: #9de0ff;
    font-size: .9rem;
    text-decoration: underline;
}

.cookie-banner-actions,
.cookie-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.cookie-banner-actions {
    justify-content: flex-end;
}

.cookie-button,
.cookie-settings-launcher {
    min-height: 42px;
    padding: .6rem 1rem;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 8px;
    color: #fff;
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.cookie-button-primary {
    border-color: #01a8f9;
    background: #01a8f9;
    color: #061c29;
}

.cookie-button:hover,
.cookie-settings-launcher:hover {
    filter: brightness(1.12);
}

.cookie-button:focus-visible,
.cookie-settings-launcher:focus-visible,
.cookie-privacy-link:focus-visible,
.cookie-choice-row input:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.cookie-settings-launcher {
    position: fixed;
    z-index: 9997;
    bottom: 1rem;
    right: 1rem;
    min-height: 36px;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: #103b50;
    font-size: .82rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
}

html.demo-booking-open .cookie-settings-launcher {
    display: none;
}

@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
    html.mobile-demo-booking-open .cookie-settings-launcher {
        display: none;
    }
}

.cookie-banner:not([hidden]) ~ .cookie-settings-launcher {
    display: none;
}

.cookie-dialog-backdrop {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, .68);
}

.cookie-dialog {
    width: min(100%, 560px);
    max-height: min(90vh, 720px);
    overflow-y: auto;
    padding: 1.5rem;
    border-radius: 16px;
}

.cookie-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}

.cookie-dialog-header .cookie-button {
    min-height: 36px;
}

.cookie-choice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.cookie-choice-row strong,
.cookie-choice-description {
    display: block;
}

.cookie-choice-description {
    margin-top: .2rem;
    color: rgba(255, 255, 255, .8);
    font-size: .88rem;
}

.cookie-choice-row input {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 auto;
    accent-color: #01a8f9;
}

.cookie-required-label {
    flex: 0 0 auto;
    color: #c9efff;
    font-size: .84rem;
}

.cookie-dialog-actions {
    justify-content: flex-end;
    margin-top: 1rem;
}

@media (max-width: 700px) {
    .cookie-settings-launcher {
        position: static;
        align-self: flex-end;
        margin: .75rem 1rem 1rem;
    }

    .cookie-banner {
        right: .5rem;
        bottom: .5rem;
        left: .5rem;
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .cookie-banner-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cookie-banner-actions .cookie-button-primary {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .cookie-banner-actions .cookie-button-secondary:first-child {
        grid-column: 1;
        grid-row: 2;
    }

    .cookie-banner-actions .cookie-button-secondary:nth-child(2) {
        grid-column: 2;
        grid-row: 2;
    }

    .cookie-dialog {
        padding: 1.15rem;
    }

    .cookie-dialog-actions {
        flex-direction: column-reverse;
    }

    .cookie-dialog-actions .cookie-button {
        width: 100%;
    }
}
