/* ============================================
   Cookie Consent Banner
   Matches RistoKit design system
   ============================================ */

/* ── Overlay ── */
.cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 15, 31, 0.4);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

/* ── Banner ── */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(26, 15, 31, 0.18);
    padding: 28px 28px 24px;
    z-index: 9999;
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cookie-banner-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.cookie-banner-text {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 22px;
}

.cookie-banner-text a {
    color: var(--lavender-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
    color: var(--plum);
}

/* ── Buttons ── */
.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: var(--font-body);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.cookie-btn-accept {
    background: var(--plum);
    color: var(--text-on-dark);
}

.cookie-btn-accept:hover {
    background: var(--lavender);
    color: var(--plum);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.cookie-btn-reject:hover {
    border-color: var(--plum);
    color: var(--plum);
}

/* ── Reopen button (small floating) ── */
.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--plum);
    color: var(--text-on-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9990;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all 0.25s ease;
    font-size: 0;
}

.cookie-settings-btn:hover {
    background: var(--lavender);
    color: var(--plum);
    transform: scale(1.08);
}

.cookie-settings-btn svg {
    width: 18px;
    height: 18px;
}

.cookie-settings-btn.visible {
    display: flex;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .cookie-banner {
        bottom: 12px;
        left: 12px;
        right: 12px;
        padding: 22px 20px 20px;
    }

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