/* ===================================================
   PALACE — Cookie Consent · 2026 Style
   =================================================== */

/* ── Banner (slide up from bottom) ─────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0 28px 28px;
    pointer-events: none;
    transform: translateY(110%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.is-visible {
    transform: translateY(0);
    pointer-events: all;
}

.cookie-banner-card {
    max-width: 860px;
    margin: 0 auto;
    background: #111110;
    border: 1px solid rgba(196, 163, 90, 0.25);
    border-radius: 4px;
    padding: 32px 36px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    box-shadow: 0 -4px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04);
}

.cookie-banner-emblem {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.cookie-banner-line {
    width: 28px;
    height: 1px;
    background: #C4A35A;
    flex-shrink: 0;
}

.cookie-banner-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #C4A35A;
}

.cookie-banner-text h3 {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 300;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: 0.02em;
}

.cookie-banner-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: rgba(255,255,255,0.5);
    line-height: 1.75;
    margin: 0;
    max-width: 520px;
}

.cookie-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

.cookie-btn-accept {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: #C4A35A;
    color: #111110;
    border: none;
    padding: 13px 24px;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.cookie-btn-accept:hover {
    background: #d4b36a;
}

.cookie-btn-settings {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: transparent;
    color: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 2px;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.cookie-btn-settings:hover {
    border-color: #C4A35A;
    color: #C4A35A;
}

.cookie-btn-reject {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: transparent;
    color: rgba(255,255,255,0.3);
    border: none;
    padding: 8px 0;
    cursor: pointer;
    text-align: center;
    transition: color 0.2s;
}

.cookie-btn-reject:hover {
    color: rgba(255,255,255,0.6);
}

/* ── Settings Modal ─────────────────────────────────── */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.cookie-modal.is-open {
    opacity: 1;
    pointer-events: all;
}

.cookie-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cookie-modal-panel {
    position: relative;
    background: #111110;
    border: 1px solid rgba(196,163,90,0.2);
    border-radius: 4px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
    transform: translateY(24px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.cookie-modal.is-open .cookie-modal-panel {
    transform: translateY(0) scale(1);
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.cookie-modal-header h3 {
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: #fff;
    margin: 0;
    letter-spacing: 0.03em;
}

.cookie-modal-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

.cookie-modal-close:hover { color: #fff; }

.cookie-modal-intro {
    padding: 20px 32px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: rgba(255,255,255,0.45);
    line-height: 1.75;
}

/* Categories */
.cookie-category {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cookie-category:last-of-type {
    border-bottom: none;
}

.cookie-category-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.cookie-category-top h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.cookie-category-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 11.5px;
    font-weight: 300;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
    margin: 0;
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.cookie-toggle-track {
    display: block;
    width: 44px;
    height: 24px;
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
}

.cookie-toggle input:checked + .cookie-toggle-track {
    background: #C4A35A;
}

.cookie-toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.cookie-toggle input:checked + .cookie-toggle-track::after {
    transform: translateX(20px);
}

/* Always-on label */
.cookie-always-on {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #C4A35A;
    border: 1px solid rgba(196,163,90,0.35);
    padding: 4px 10px;
    border-radius: 2px;
}

/* Modal Footer */
.cookie-modal-footer {
    padding: 24px 32px 28px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-modal-save {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: #C4A35A;
    color: #111110;
    border: none;
    padding: 13px 28px;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.2s;
}

.cookie-modal-save:hover { background: #d4b36a; }

.cookie-modal-reject-all {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: transparent;
    color: rgba(255,255,255,0.4);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 2px;
    transition: border-color 0.2s, color 0.2s;
}

.cookie-modal-reject-all:hover {
    border-color: rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.7);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 700px) {
    .cookie-banner {
        padding: 0 16px 16px;
    }

    .cookie-banner-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 22px;
    }

    .cookie-banner-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cookie-btn-accept,
    .cookie-btn-settings {
        flex: 1;
    }

    .cookie-modal-header,
    .cookie-category,
    .cookie-modal-intro,
    .cookie-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cookie-modal-footer {
        flex-direction: column-reverse;
    }

    .cookie-modal-save,
    .cookie-modal-reject-all {
        width: 100%;
        text-align: center;
    }
}
