/* ==================================================================
   PLATFORMA COOKIE CONSENT BANNER
   Fixed to the bottom of the viewport. Slides up on first visit,
   stays out of the way of page content underneath (z-index 9000 —
   above normal content, below critical modals at 9999).
   ================================================================== */

.pf-cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.15);
    padding: 16px 20px;
    z-index: 9000;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
}

    .pf-cookie-banner.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

.pf-cookie-banner-text {
    flex: 1;
    min-width: 240px;
}

    .pf-cookie-banner-text strong {
        display: block;
        color: #111827;
        font-size: 15px;
        margin-bottom: 4px;
    }

    .pf-cookie-banner-text a {
        color: var(--platforma-primary, #2563eb);
        text-decoration: underline;
    }

.pf-cookie-banner-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pf-cookie-banner-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease;
}

    .pf-cookie-banner-btn:hover {
        background: #f3f4f6;
    }

    .pf-cookie-banner-btn--primary {
        background: var(--platforma-primary, #2563eb);
        color: #ffffff;
        border-color: transparent;
    }

    .pf-cookie-banner-btn--primary:hover {
        background: var(--platforma-primary-dark, #1d4ed8);
    }

/* Mobile: stack vertically + full-width buttons. */
@media (max-width: 575.98px) {
    .pf-cookie-banner {
        flex-direction: column;
        align-items: stretch;
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 14px 16px;
    }

    .pf-cookie-banner-actions {
        justify-content: stretch;
    }

    .pf-cookie-banner-btn {
        flex: 1;
    }
}

/* ─────────────────────────────────────────────────────────────────
   2026-05-12 — Granular preference panel (GDPR Slice A.1)
   Inline-expands from the main banner when user clicks "Customize".
   ───────────────────────────────────────────────────────────────── */
.pf-cookie-prefs {
    display: block;
    flex: 1 1 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.pf-cookie-prefs[hidden] {
    display: none;
}

.pf-cookie-prefs-intro {
    margin: 0 0 12px;
    font-size: 13px;
    opacity: 0.85;
}

/* A11y 2026-05-12 — single fieldset wraps all 4 categories.
   Visible legend hidden visually (intro paragraph is the visible text)
   but kept in DOM for screen-reader semantic grouping. */
.pf-cookie-prefs-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.pf-cookie-prefs-legend {
    /* Visually-hidden but screen-reader-readable */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pf-cookie-pref-row {
    border: 0;
    padding: 8px 0;
    margin: 0;
}

.pf-cookie-pref-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.pf-cookie-pref-row label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.pf-cookie-pref-row label input[type="checkbox"][disabled] {
    cursor: not-allowed;
    opacity: 0.6;
}

.pf-cookie-pref-hint {
    display: block;
    margin-top: 4px;
    margin-left: 24px;
    font-size: 12px;
    opacity: 0.7;
    line-height: 1.4;
}

.pf-cookie-banner-btn--link {
    background: transparent !important;
    color: inherit !important;
    text-decoration: underline;
    padding: 8px 10px !important;
}
