/* ==========================================================================
   Cookie Consent Banner
   Dark botanical theme — uses design tokens from styles_v2.css
   ========================================================================== */

/* --- Banner container --- */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    padding: 0 16px 16px;
    pointer-events: none;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.5s var(--ease-out), opacity 0.4s var(--ease-out);
}

.cookie-consent--visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-consent--hiding {
    transform: translateY(110%);
    opacity: 0;
}

/* --- Inner card --- */
.cookie-consent__card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow:
        0 -4px 24px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 230, 118, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* --- Shield icon --- */
.cookie-consent__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-green-dim);
    border-radius: var(--radius-sm);
    color: var(--accent-green);
}

.cookie-consent__icon svg {
    width: 20px;
    height: 20px;
}

/* --- Text body --- */
.cookie-consent__body {
    flex: 1;
    min-width: 0;
}

.cookie-consent__text {
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

/* --- Action buttons --- */
.cookie-consent__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-consent__btn {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-pill);
    padding: 8px 18px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out),
                box-shadow 0.2s var(--ease-out), transform 0.1s var(--ease-out);
    line-height: 1.3;
}

.cookie-consent__btn:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

.cookie-consent__btn:active {
    transform: scale(0.97);
}

/* Primary: accept all */
.cookie-consent__btn--accept {
    background: var(--accent-green);
    color: #0a0f0a;
}

.cookie-consent__btn--accept:hover {
    background: #33eb91;
    box-shadow: 0 0 16px var(--accent-green-glow);
}

/* Secondary: necessary only */
.cookie-consent__btn--decline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.cookie-consent__btn--decline:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
}


/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet and below */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 0 12px 12px;
    }

    .cookie-consent__card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 18px;
        /* keep clear of chat FAB at bottom-right */
        margin-right: 0;
    }

    .cookie-consent__icon {
        display: none;
    }

    .cookie-consent__actions {
        width: 100%;
    }

    .cookie-consent__btn {
        flex: 1;
        text-align: center;
        padding: 10px 14px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .cookie-consent {
        padding: 0 8px 8px;
    }

    .cookie-consent__card {
        padding: 14px 14px;
        border-radius: var(--radius-md);
    }

    .cookie-consent__text {
        font-size: 0.8125rem;
    }

    .cookie-consent__btn {
        font-size: 0.75rem;
        padding: 9px 10px;
    }
}


/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .cookie-consent {
        transition: none;
    }
}
