/*
|--------------------------------------------------------------------------
| Cookie Consent Banner
|--------------------------------------------------------------------------
*/

/* Overlay — subtle background dim */
.cookie-consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 30, 48, 0.4);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

.cookie-consent-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s var(--ease);
}

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

.cookie-consent-inner {
    max-width: 960px;
    margin: 0 auto var(--space-lg);
    padding: var(--space-xl) var(--space-2xl);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    box-shadow: 0 -4px 40px rgba(9, 30, 48, 0.12), 0 0 0 1px rgba(9, 30, 48, 0.06);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

/* Icon */
.cookie-consent-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--blue-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

/* Text */
.cookie-consent-text {
    flex: 1;
    min-width: 0;
}

.cookie-consent-title {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    color: var(--blue-900);
    margin: 0 0 6px;
    line-height: 1.3;
}

.cookie-consent-desc {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--gray-600);
    margin: 0;
    line-height: 1.55;
}

.cookie-consent-desc a {
    color: var(--blue-600);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition);
}

.cookie-consent-desc a:hover {
    color: var(--blue-500);
}

/* Buttons */
.cookie-consent-actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.cookie-consent-btn {
    font-family: var(--font-sans);
    font-size: var(--text-md);
    font-weight: 500;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1;
}

.cookie-consent-btn--accept {
    background: var(--blue-600);
    color: var(--white);
}

.cookie-consent-btn--accept:hover {
    background: var(--blue-500);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(16, 82, 127, 0.3);
}

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

.cookie-consent-btn--reject:hover {
    background: var(--gray-50);
    color: var(--gray-800);
    border-color: var(--gray-400);
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 768px) {
    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        margin: 0 var(--space-md) var(--space-md);
        padding: var(--space-lg) var(--space-lg);
        gap: var(--space-md);
    }

    .cookie-consent-icon {
        margin: 0 auto;
    }

    .cookie-consent-actions {
        justify-content: center;
    }

    .cookie-consent-btn {
        flex: 1;
        padding: 14px 16px;
    }
}