/* ============================================================
   AFF — Cookie Consent Banner
   assets/cookie.css
   ============================================================ */

.aff-cookie {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 32px));
    z-index: 9999;
    width: calc(100% - 32px);
    max-width: 680px;

    background: #0f172a;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.06) inset;

    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity   0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

/* Shown state */
.aff-cookie.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ── Inner layout ─────────────────────────────────────────── */
.aff-cookie__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    flex-wrap: wrap;
    position: relative;
}

/* ── Cookie icon ──────────────────────────────────────────── */
.aff-cookie__icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}

/* ── Text ─────────────────────────────────────────────────── */
.aff-cookie__text {
    flex: 1;
    min-width: 200px;
}
.aff-cookie__title {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 3px;
    line-height: 1.2;
}
.aff-cookie__desc {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 12.5px;
    color: rgba(255,255,255,.55);
    line-height: 1.6;
    margin: 0;
}
.aff-cookie__desc a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    transition: color .15s;
}
.aff-cookie__desc a:hover { color: #93c5fd; }

/* ── Action buttons ───────────────────────────────────────── */
.aff-cookie__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}
.aff-cookie__btn {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 99px;
    border: none;
    cursor: pointer;
    transition: background .18s, color .18s, box-shadow .18s;
    white-space: nowrap;
}
.aff-cookie__btn--decline {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.65);
    border: 1px solid rgba(255,255,255,.12);
}
.aff-cookie__btn--decline:hover {
    background: rgba(255,255,255,.14);
    color: #fff;
}
.aff-cookie__btn--accept {
    background: #2563eb;
    color: #fff;
}
.aff-cookie__btn--accept:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 14px rgba(37,99,235,.4);
}

/* ── Close button ─────────────────────────────────────────── */
.aff-cookie__close {
    position: absolute;
    top: 10px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.45);
    cursor: pointer;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.aff-cookie__close:hover {
    background: rgba(255,255,255,.14);
    color: #fff;
}

/* ── Focus ring ───────────────────────────────────────────── */
.aff-cookie__btn:focus-visible,
.aff-cookie__close:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 3px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 540px) {
    .aff-cookie {
        bottom: 12px;
        border-radius: 14px;
    }
    .aff-cookie__inner {
        padding: 14px 14px 14px 14px;
        gap: 10px;
    }
    .aff-cookie__icon { display: none; }
    .aff-cookie__actions {
        width: 100%;
        justify-content: flex-end;
    }
    .aff-cookie__btn {
        flex: 1;
        text-align: center;
        padding: 9px 12px;
    }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .aff-cookie {
        transition: opacity 0.2s ease;
        transform: translateX(-50%) translateY(0);
    }
    .aff-cookie.is-visible { opacity: 1; }
}
