/* Cookie Consent Banner v3 — CookieYes-inspired design */

#wcc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    pointer-events: none;
}

#wcc-inner {
    background: var(--wcc-bg, #ffffff);
    color: var(--wcc-tc, #1a1a2e);
    font-size: var(--wcc-fs, 14px);
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 18px 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    pointer-events: all;
    box-shadow: 0 -2px 16px rgba(0,0,0,.08);
    direction: rtl;
    /* animation */
    transform: translateY(100%);
    opacity: 0;
    transition: transform .4s cubic-bezier(.22,1,.36,1),
                opacity   .3s ease;
}

@media (prefers-reduced-motion: reduce) {
    #wcc-inner {
        transition: opacity .2s ease;
        transform: none;
    }
}

#wcc-inner.wcc-visible {
    transform: translateY(0);
    opacity: 1;
}

/* ── Text block ──────────────────────────── */
#wcc-text {
    flex: 1;
    min-width: 240px;
    line-height: 1.6;
}

#wcc-title {
    font-weight: 700;
    font-size: calc(var(--wcc-fs, 14px) + 1px);
    margin-bottom: 4px;
    color: var(--wcc-tc, #1a1a2e);
}

#wcc-desc {
    font-size: var(--wcc-fs, 14px);
    color: var(--wcc-tc, #1a1a2e);
    opacity: .85;
    line-height: 1.55;
}

#wcc-text a {
    color: var(--wcc-acc, #2563eb);
    text-decoration: underline;
    margin-right: 4px;
    font-weight: 500;
}

/* ── Buttons ─────────────────────────────── */
#wcc-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.wcc-btn {
    padding: 10px 22px;
    border-radius: var(--wcc-bbr, 6px);
    font-size: calc(var(--wcc-fs, 14px) - 1px);
    font-weight: 600;
    cursor: pointer;
    transition: filter .18s, transform .12s, box-shadow .18s;
    line-height: 1;
    white-space: nowrap;
    font-family: inherit;
}

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

.wcc-btn:hover  { filter: brightness(1.08); transform: translateY(-1px); }
.wcc-btn:active { transform: translateY(0); filter: brightness(.96); }

.wcc-btn:focus-visible {
    outline: 3px solid var(--wcc-acc, #2563eb);
    outline-offset: 2px;
}

/* Accept — filled primary */
#wcc-accept {
    background: var(--wcc-acc, #2563eb);
    color: var(--wcc-btc, #ffffff);
    border: 2px solid var(--wcc-acc, #2563eb);
    box-shadow: 0 2px 8px rgba(37,99,235,.25);
}

#wcc-accept:hover {
    box-shadow: 0 4px 14px rgba(37,99,235,.35);
}

/* Reject — outlined */
#wcc-reject {
    background: transparent;
    color: var(--wcc-tc, #1a1a2e);
    border: 2px solid rgba(0,0,0,.18);
}

#wcc-reject:hover {
    border-color: rgba(0,0,0,.35);
    background: rgba(0,0,0,.04);
}

/* Customize — outlined, subtler */
#wcc-customize {
    background: transparent;
    color: var(--wcc-tc, #1a1a2e);
    border: 2px solid rgba(0,0,0,.18);
}

#wcc-customize:hover {
    border-color: rgba(0,0,0,.35);
    background: rgba(0,0,0,.04);
}

/* ── Powered by strip ────────────────────── */
#wcc-powered {
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: rgba(0,0,0,.35);
    padding: 4px 0 2px;
    letter-spacing: .02em;
}

#wcc-powered a {
    color: inherit;
    text-decoration: none;
}

/* ── Mobile ──────────────────────────────── */
@media (max-width: 640px) {
    #wcc-inner {
        padding: 16px 20px 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    #wcc-actions {
        flex-direction: column;
        width: 100%;
    }

    .wcc-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
}

/* ── Dark mode auto-adaptation ───────────── */
@media (prefers-color-scheme: dark) {
    #wcc-reject,
    #wcc-customize {
        border-color: rgba(255,255,255,.2);
        color: var(--wcc-tc);
    }
    #wcc-reject:hover,
    #wcc-customize:hover {
        border-color: rgba(255,255,255,.4);
        background: rgba(255,255,255,.05);
    }
    #wcc-powered { color: rgba(255,255,255,.3); }
}
