/* ============================================================
   WAFFEL — Zgoda na cookies (moduł izolowany)
   Minimalistyczny baner + nota pod formularzem.
   Wszystkie style są scope'owane prefiksem .wf-consent / .form-consent-note,
   więc nie kolidują z resztą strony.
   ============================================================ */

.wf-consent {
    position: fixed;
    left: clamp(16px, 2vw, 28px);
    bottom: clamp(16px, 2vw, 28px);
    z-index: 99999;
    width: min(380px, calc(100vw - 32px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Fallback bez GSAP — animacja na CSS */
.wf-consent:not(.wf-consent--gsap) {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.wf-consent:not(.wf-consent--gsap) .wf-consent__card {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}
.wf-consent.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.wf-consent.is-visible .wf-consent__card {
    transform: translateY(0);
    opacity: 1;
}

/* Karta */
.wf-consent__card {
    background: rgba(20, 20, 22, 0.92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(244, 244, 245, 0.12);
    border-radius: 16px;
    padding: 1.35rem 1.4rem 1.25rem;
    color: var(--text-light, #f4f4f5);
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
    font-family: 'Inter', sans-serif;
}

.wf-consent__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.wf-consent__brand {
    font-family: 'Marble PL', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--text-light, #f4f4f5);
}

.wf-consent__tag {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(244, 244, 245, 0.45);
    border: 1px solid rgba(244, 244, 245, 0.18);
    padding: 0.3em 0.7em;
    border-radius: 999px;
}

.wf-consent__text {
    margin: 0 0 1.1rem;
    font-size: 0.84rem;
    line-height: 1.55;
    font-weight: 400;
    color: rgba(244, 244, 245, 0.75);
}

.wf-consent__link {
    color: var(--text-light, #f4f4f5);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(244, 244, 245, 0.4);
    transition: text-decoration-color 0.3s ease;
}
.wf-consent__link:hover {
    text-decoration-color: rgba(244, 244, 245, 0.9);
}

/* Akcje — przyciski symetryczne (ta sama waga wizualna) */
.wf-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.wf-consent__btn {
    appearance: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.75em 1em;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.wf-consent__btn:active {
    transform: scale(0.97);
}

.wf-consent__btn--ghost {
    background: transparent;
    border-color: rgba(244, 244, 245, 0.28);
    color: var(--text-light, #f4f4f5);
}
.wf-consent__btn--ghost:hover {
    background: rgba(244, 244, 245, 0.08);
    border-color: rgba(244, 244, 245, 0.5);
}

.wf-consent__btn--solid {
    background: var(--text-light, #f4f4f5);
    color: #141416;
}
.wf-consent__btn--solid:hover {
    background: #ffffff;
}

@media (max-width: 480px) {
    .wf-consent {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
    }
    .wf-consent__card {
        padding: 1.2rem 1.15rem 1.1rem;
    }
}

/* ============================================================
   Nota pod przyciskiem wysyłki w formularzu
   ============================================================ */
.form-consent-note {
    margin: 1.4rem 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    line-height: 1.5;
    font-weight: 400;
    color: rgba(244, 244, 245, 0.5);
    text-align: center;
}
.form-consent-note a {
    color: rgba(244, 244, 245, 0.8);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(244, 244, 245, 0.35);
    transition: text-decoration-color 0.3s ease, color 0.3s ease;
}
.form-consent-note a:hover {
    color: var(--text-light, #f4f4f5);
    text-decoration-color: rgba(244, 244, 245, 0.8);
}

/* ============================================================
   Link "Ustawienia ciasteczek" w stopce — spójny z footer-nav
   ============================================================ */
.js-cookie-settings {
    cursor: pointer;
}
