/* ===== Banner zgody na cookies / RODO ===== */
#gdpr-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    background: #1f2c6c;
    color: #fff;
    font-family: 'Poppins', Lato, Tahoma, sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}
#gdpr-banner.gdpr-banner--visible { transform: translateY(0); }

.gdpr-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}
.gdpr-banner__text { flex: 1 1 420px; line-height: 1.5; }
.gdpr-banner__text a { color: #ffd86b; text-decoration: underline; }
.gdpr-banner__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.gdpr-btn {
    border: 0;
    cursor: pointer;
    padding: 10px 18px;
    font: inherit;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    transition: opacity 0.15s;
}
.gdpr-btn:hover { opacity: 0.85; }
.gdpr-btn--primary   { background: #ffd86b; color: #1f2c6c; font-weight: 600; }
.gdpr-btn--secondary { background: #43485c; color: #fff; }
.gdpr-btn--ghost     { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); }

.gdpr-banner__settings {
    flex-basis: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 14px;
    margin-top: 6px;
}
.gdpr-banner__settings h3 { margin: 0 0 10px; font-size: 1rem; }
.gdpr-cat {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    cursor: pointer;
}
.gdpr-cat input { margin-top: 4px; flex-shrink: 0; }
.gdpr-cat span { flex: 1; line-height: 1.4; }
.gdpr-banner__actions--settings { width: 100%; margin-top: 10px; justify-content: flex-end; }

@media (max-width: 600px) {
    .gdpr-banner__inner { padding: 14px; }
    .gdpr-banner__actions { width: 100%; justify-content: stretch; }
    .gdpr-banner__actions .gdpr-btn { flex: 1 1 auto; }
    .gdpr-banner__text { font-size: 0.85rem; }
}

/* ===== Klauzule RODO w formularzach ===== */
.gdpr-form-notice {
    margin-top: 16px;
    font-size: 0.8rem;
    color: #4a4f70;
    line-height: 1.45;
    background: #f0f3f5;
    padding: 12px 14px;
    border-left: 3px solid #1f2c6c;
    border-radius: 3px;
}
.gdpr-form-notice a { color: #1f2c6c; text-decoration: underline; }
.gdpr-form-notice p { margin: 0 0 6px; }
.gdpr-form-notice p:last-child { margin-bottom: 0; }

.gdpr-consent-field {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 14px;
    font-size: 0.85rem;
    color: #4a4f70;
}
.gdpr-consent-field input { margin-top: 4px; flex-shrink: 0; }
.gdpr-consent-field label { line-height: 1.45; cursor: pointer; }
.gdpr-consent-field label .req { color: #c0392b; }

/* ===== Linki w stopce ===== */
.gdpr-footer-links {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}
.gdpr-footer-links a,
.gdpr-footer-links .gdpr-manage-link {
    color: lightgrey;
    margin: 0 8px;
    text-decoration: underline;
}
.gdpr-manage-link {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
}
.gdpr-manage-link:hover,
.gdpr-footer-links a:hover { color: white; }

/* ===== Fallback dla obrazu hero gdy brak zgody na "preferences" ===== */
/* Domyślnie hero ma sam gradient (zdefiniowany w showcase.css). */
/* Po zgodzie 'preferences' ciało dostaje data-gdpr-preferences="granted",
   wtedy nakładamy dekoracyjny obraz tła. */
body[data-gdpr-preferences="granted"] .hero {
    background: linear-gradient(rgba(31, 44, 108, 0.65), rgba(31, 44, 108, 0.65)),
                rgba(0, 0, 0, 0.55) url("https://picsum.photos/id/381/1920/1080") no-repeat;
    background-size: cover;
    background-attachment: fixed;
}
