/* zaplecze-consent banner — paint the bar/modal then let the JS hydrate */

#zaplecze-banner {
    --zc-accent: #c9a84c;
    --zc-bg: #ffffff;
    --zc-fg: #111827;
    --zc-muted: #6b7280;
    --zc-border: #e5e7eb;
    position: fixed;
    z-index: 2147483640;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--zc-fg);
    background: var(--zc-bg);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .12);
    display: none; /* JS flips this to flex once hydrated */
}

#zaplecze-banner.is-visible { display: flex; }

@media (max-width: 768px) {
    #zaplecze-banner {
        left: 0; right: 0; bottom: 0;
        flex-direction: column;
        padding: 16px;
        border-top: 1px solid var(--zc-border);
        max-height: 80vh;
        overflow-y: auto;
    }
}

@media (min-width: 769px) {
    #zaplecze-banner {
        left: 50%; bottom: auto; top: 50%;
        transform: translate(-50%, -50%);
        max-width: 560px;
        width: calc(100% - 64px);
        border-radius: 12px;
        border: 1px solid var(--zc-border);
        flex-direction: column;
        padding: 24px;
    }
    #zaplecze-banner::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(17, 24, 39, .55);
        z-index: -1;
    }
}

#zaplecze-banner h2 {
    font-size: 1.1rem; font-weight: 600; margin: 0 0 8px;
}

#zaplecze-banner p {
    color: var(--zc-muted); font-size: .875rem; line-height: 1.5; margin: 0 0 16px;
}

.zc-categories {
    display: grid; gap: 8px;
    margin: 0 0 16px;
}

.zc-category {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; border: 1px solid var(--zc-border); border-radius: 8px;
    font-size: .875rem;
}

.zc-category .zc-required {
    font-size: .75rem; color: var(--zc-muted);
}

.zc-category input[type="checkbox"] {
    accent-color: var(--zc-accent);
    width: 18px; height: 18px;
}

.zc-actions {
    display: flex; flex-wrap: wrap; gap: 8px;
}

.zc-btn {
    padding: 10px 16px; border-radius: 8px; font-size: .875rem; font-weight: 500;
    border: 1px solid transparent; cursor: pointer; flex: 1; min-width: 0;
}
.zc-btn-primary { background: var(--zc-accent); color: #111; }
.zc-btn-primary:hover { filter: brightness(.95); }
.zc-btn-secondary { background: #f3f4f6; color: var(--zc-fg); }
.zc-btn-secondary:hover { background: #e5e7eb; }
.zc-btn-text { background: transparent; color: var(--zc-fg); border-color: var(--zc-border); }
.zc-btn-text:hover { background: #f9fafb; }

.zc-categories[hidden] { display: none; }

/* Floating recall button — always visible after the user has interacted with the
   banner so withdraw-of-consent stays one click away (GDPR Art. 7(3)). */
#zaplecze-recall {
    position: fixed;
    z-index: 2147483630;
    bottom: 16px;
    left: 16px;
    background: rgba(17, 24, 39, .9);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
    display: none;
    font-family: inherit;
}
#zaplecze-recall:hover { background: #111827; }
#zaplecze-recall.is-visible { display: inline-block; }
