/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--dark-surface);
    border-top: 1px solid var(--dark-border);
    padding: 20px 24px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

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

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.cookie-banner.show-settings .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
}

.cookie-banner-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.6;
}

.cookie-banner-text a {
    color: var(--pink);
    text-decoration: none;
}

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

/* Actions row */
.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--pink);
    color: var(--white);
}

.cookie-btn-accept:hover {
    background: var(--pink-soft);
}

.cookie-btn-reject {
    background: transparent;
    border: 1px solid var(--dark-border);
    color: var(--gray-400);
}

.cookie-btn-reject:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--gray-400);
    border: none;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-btn-settings:hover {
    color: var(--white);
}

.cookie-btn-save {
    background: var(--pink);
    color: var(--white);
}

.cookie-btn-save:hover {
    background: var(--pink-soft);
}

/* Settings panel (hidden by default) */
.cookie-settings-panel {
    display: none;
    border-top: 1px solid var(--dark-border);
    padding-top: 16px;
    margin-top: 4px;
}

.cookie-banner.show-settings .cookie-settings-panel {
    display: block;
}

.cookie-banner.show-settings .cookie-banner-actions {
    display: none;
}

/* Category rows */
.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--dark-border);
}

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

.cookie-category-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cookie-category-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
}

.cookie-category-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 16px;
}

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

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-elevated);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.cookie-toggle-slider::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--gray-500);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--pink);
    border-color: var(--pink);
}

.cookie-toggle input:checked + .cookie-toggle-slider::after {
    transform: translateX(20px);
    background: var(--white);
}

/* Disabled toggle (Essential) */
.cookie-category.disabled .cookie-toggle {
    opacity: 0.5;
    pointer-events: none;
}

/* Save preferences button row */
.cookie-settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
}

/* Responsive */
@media (max-width: 600px) {
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
    }

    .cookie-settings-actions {
        justify-content: stretch;
    }

    .cookie-settings-actions .cookie-btn {
        width: 100%;
    }

    .cookie-category {
        text-align: left;
    }
}
