:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --text-dark: #0f172a;
}

.cookie-consent-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1300;
    padding: 0.85rem 0 calc(0.85rem + env(safe-area-inset-bottom, 0px));
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
    transform: translateY(110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
}

.cookie-consent-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-consent-bar__shell.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cookie-consent-bar__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.cookie-consent-bar__icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #d97706;
    font-size: 1.25rem;
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.12);
}

.cookie-consent-bar__copy {
    flex: 1;
    min-width: 0;
}

.cookie-consent-bar__title {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
}

.cookie-consent-bar__text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #64748b;
}

.cookie-consent-bar__text a {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent-bar__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.cookie-consent-btn {
    border: none;
    border-radius: 12px;
    padding: 0.72rem 1rem;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.cookie-consent-btn:hover {
    transform: translateY(-1px);
}

.cookie-consent-btn--secondary {
    background: #fff;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.cookie-consent-btn--secondary:hover {
    background: #f8fafc;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.cookie-consent-btn--primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
}

.cookie-consent-btn--primary:hover {
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.34);
}

body.has-cookie-consent-bar {
    padding-bottom: 6.5rem;
}

body.has-cookie-consent-bar .scroll-to-top {
    bottom: 7.25rem;
}

body.has-cookie-consent-bar .pending-booking-bar {
    bottom: 6.25rem;
}

body.has-cookie-consent-bar.has-pending-booking-bar {
    padding-bottom: 11.5rem;
}

body.has-cookie-consent-bar.has-pending-booking-bar .scroll-to-top {
    bottom: 12.5rem;
}

@media (max-width: 900px) {
    .cookie-consent-bar__inner {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .cookie-consent-bar__copy {
        flex: 1 1 calc(100% - 4rem);
        min-width: 12rem;
    }

    .cookie-consent-bar__actions {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-consent-btn {
        flex: 1 1 0;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .cookie-consent-bar {
        padding: 0;
        background: rgba(15, 23, 42, 0.42);
    }

    .cookie-consent-bar__shell.container {
        max-width: none;
        padding: 0;
    }

    .cookie-consent-bar__inner {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "icon title"
            "text text"
            "actions actions";
        gap: 0.65rem 0.85rem;
        align-items: start;
        padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
        border-radius: 20px 20px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.16);
    }

    .cookie-consent-bar__icon {
        grid-area: icon;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 12px;
        font-size: 1.05rem;
    }

    .cookie-consent-bar__copy {
        display: contents;
    }

    .cookie-consent-bar__title {
        grid-area: title;
        align-self: center;
        margin: 0;
        font-size: 1.05rem;
    }

    .cookie-consent-bar__text {
        grid-area: text;
        font-size: 0.84rem;
        line-height: 1.5;
    }

    .cookie-consent-bar__actions {
        grid-area: actions;
        flex-direction: column;
        width: 100%;
        gap: 0.55rem;
        margin-top: 0.2rem;
    }

    .cookie-consent-btn {
        width: 100%;
        flex: none;
        min-height: 48px;
        padding: 0.85rem 1rem;
        font-size: 0.92rem;
        border-radius: 14px;
        white-space: normal;
    }

    .cookie-consent-btn:hover {
        transform: none;
    }

    .cookie-consent-btn:active {
        transform: scale(0.98);
    }

    .cookie-consent-btn--primary {
        box-shadow: 0 6px 18px rgba(37, 99, 235, 0.24);
    }

    body.has-cookie-consent-bar {
        padding-bottom: 12rem;
    }

    body.has-cookie-consent-bar .scroll-to-top {
        bottom: 12.5rem;
    }

    body.has-cookie-consent-bar .pending-booking-bar {
        bottom: 11rem;
    }

    body.has-cookie-consent-bar.has-pending-booking-bar {
        padding-bottom: 17rem;
    }

    body.has-cookie-consent-bar.has-pending-booking-bar .scroll-to-top {
        bottom: 17.5rem;
    }
}

@media (max-width: 380px) {
    .cookie-consent-bar__inner {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .cookie-consent-bar__title {
        font-size: 1rem;
    }

    .cookie-consent-btn {
        font-size: 0.88rem;
    }
}
