/* ===== COOKIE CONSENT BANNER & MODAL ===== */
#cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: #0B2D42;
    border-top: 1px solid rgba(196, 122, 58, 0.3);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.3);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
}
#cookie-banner.visible {
    transform: translateY(0);
}
.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cookie-text {
    color: rgba(255,255,255,0.85);
    font-size: 0.92rem;
    line-height: 1.6;
}
.cookie-text a {
    color: #CD7F32;
    text-decoration: underline;
}
.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.cookie-btn {
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-family: 'Playfair Display', Georgia, serif;
}
.cookie-btn-primary {
    background: #CD7F32;
    color: white;
}
.cookie-btn-primary:hover {
    background: #B87333;
}
.cookie-btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
}
.cookie-btn-secondary:hover {
    background: rgba(255,255,255,0.08);
}

#cookie-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(11, 45, 66, 0.65);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#cookie-modal.open {
    display: flex;
}
.cookie-modal-card {
    background: white;
    border-radius: 24px;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
    animation: modalIn 0.35s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal-header {
    padding: 28px 28px 0;
}
.cookie-modal-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0B2D42;
}
.cookie-modal-body {
    padding: 20px 28px;
}
.cookie-category {
    border: 1px solid rgba(11,45,66,0.10);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 12px;
}
.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.cookie-category-title {
    font-weight: 600;
    color: #0B2D42;
    font-size: 0.95rem;
}
.cookie-toggle {
    appearance: none;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    cursor: pointer;
    transition: background 0.25s ease;
    flex-shrink: 0;
}
.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.25s ease;
}
.cookie-toggle:checked {
    background: #CD7F32;
}
.cookie-toggle:checked::after {
    transform: translateX(18px);
}
.cookie-toggle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.cookie-category-desc {
    font-size: 0.85rem;
    color: rgba(11,45,66,0.85);
    line-height: 1.55;
}
.cookie-modal-footer {
    padding: 0 28px 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}
.cookie-modal-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}
.cookie-modal-close:hover {
    color: #0B2D42;
}

@media (max-width: 640px) {
    .cookie-inner {
        text-align: center;
    }
    .cookie-actions {
        justify-content: center;
    }
    .cookie-modal-card {
        max-height: 90vh;
        border-radius: 20px;
    }
}
