/* ================================================
   COOKIE BANNER STYLES
   ================================================ */

/* Banner Overlay */
.cookie-banner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cookie-banner-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #0a1628 0%, #060d17 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Banner Header */
.cookie-banner-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cookie-banner-icon {
    width: 48px;
    height: 48px;
    background: rgba(245, 166, 35, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cookie-banner-icon svg {
    width: 24px;
    height: 24px;
    color: #F5A623;
}

.cookie-banner-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.cookie-banner-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.cookie-banner-text a {
    color: #F5A623;
    text-decoration: none;
}

.cookie-banner-text a:hover {
    text-decoration: underline;
}

/* Cookie Categories (Collapsed View) */
.cookie-categories-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cookie-category-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-category-chip:hover {
    background: rgba(255, 255, 255, 0.08);
}

.cookie-category-chip.required {
    cursor: default;
    opacity: 0.7;
}

.cookie-category-chip label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    cursor: pointer;
}

.cookie-category-chip.required label {
    cursor: default;
}

/* Mini Toggle */
.cookie-mini-toggle {
    position: relative;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}

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

.cookie-mini-toggle .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 20px;
}

.cookie-mini-toggle .slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-mini-toggle input:checked + .slider {
    background-color: #F5A623;
}

.cookie-mini-toggle input:checked + .slider:before {
    transform: translateX(16px);
}

.cookie-mini-toggle input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Banner Actions */
.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.cookie-btn {
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: 'DM Sans', sans-serif;
}

.cookie-btn-primary {
    background: #F5A623;
    color: #001846;
}

.cookie-btn-primary:hover {
    background: #ffb84d;
    transform: translateY(-1px);
}

.cookie-btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-btn-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem;
    font-size: 0.85rem;
    text-decoration: underline;
}

.cookie-btn-link:hover {
    color: #F5A623;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-container {
        padding: 1.5rem;
    }

    .cookie-banner-header {
        flex-direction: column;
    }

    .cookie-banner-title {
        font-size: 1.25rem;
    }

    .cookie-categories-compact {
        flex-direction: column;
    }

    .cookie-category-chip {
        justify-content: space-between;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}

/* Settings Button (for re-opening banner) */
.cookie-settings-trigger {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.cookie-settings-trigger:hover {
    color: #F5A623;
}