/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ink);
    color: var(--cream);
    z-index: 99999;
    padding: 24px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}

.cookie-banner-content h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 20px;
    margin: 0 0 8px;
    color: var(--cream);
}

.cookie-banner-content p {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    color: rgba(245, 241, 236, 0.8);
    margin: 0 0 12px;
    max-width: 640px;
}

.cookie-banner-links {
    font-size: 13px !important;
}

.cookie-banner-links a {
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Buttons */
.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--orange);
    color: var(--cream);
}
.cookie-btn-accept:hover {
    background: #d04d1f;
}

.cookie-btn-reject {
    background: transparent;
    color: var(--cream);
    border: 1px solid rgba(245, 241, 236, 0.3);
}
.cookie-btn-reject:hover {
    background: rgba(245, 241, 236, 0.1);
    border-color: rgba(245, 241, 236, 0.5);
}

.cookie-btn-customize {
    background: rgba(245, 241, 236, 0.1);
    color: var(--cream);
    border: 1px solid rgba(245, 241, 236, 0.2);
}
.cookie-btn-customize:hover {
    background: rgba(245, 241, 236, 0.2);
}

.cookie-btn-save {
    background: var(--orange);
    color: var(--cream);
}
.cookie-btn-save:hover {
    background: #d04d1f;
}

/* ============================================
   COOKIE PREFERENCES MODAL
   ============================================ */

.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-modal-inner {
    background: var(--cream);
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: var(--cream);
    z-index: 1;
}

.cookie-modal-header h2 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 24px;
    margin: 0;
    color: var(--ink);
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
    padding: 4px 8px;
}
.cookie-modal-close:hover {
    color: var(--ink);
}

.cookie-modal-content {
    padding: 8px 28px;
}

.cookie-category-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.cookie-category-row:last-child {
    border-bottom: none;
}

.cookie-category-info h4 {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-category-info p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0;
}

.cookie-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cookie-badge-locked {
    background: var(--ink);
    color: var(--cream);
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--muted);
    border-radius: 26px;
    transition: background 0.3s;
}
.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--cream);
    border-radius: 50%;
    transition: transform 0.3s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--orange);
}
.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(22px);
}

.cookie-modal-actions {
    padding: 20px 28px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    position: sticky;
    bottom: 0;
    background: var(--cream);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px;
    }
    .cookie-banner-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cookie-banner-actions {
        justify-content: stretch;
    }
    .cookie-btn {
        flex: 1;
        text-align: center;
    }
    .cookie-modal-inner {
        border-radius: 12px 12px 0 0;
        max-height: 95vh;
    }
    .cookie-modal-actions {
        flex-direction: column;
    }
    .cookie-modal-actions .cookie-btn {
        width: 100%;
    }
}