/* Baner zgód (consent.js). Samodzielne style - działa na nowych stronach (brand) i w starym Metronicu. Brand: #274ABB, granat #001E61, radius 3px, przyciski 44px. */
.sz-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2147483000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    font: 400 15px/1.5 "Varela Round", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    font-synthesis: none;
    color: #0f172a;
}

.sz-consent *,
.sz-consent *::before,
.sz-consent *::after {
    box-sizing: border-box;
}

.sz-consent__box {
    pointer-events: auto;
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 20px;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 30, 97, .22);
}

.sz-consent__title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 400;
    color: #001e61;
}

.sz-consent__text {
    margin: 0 0 14px;
    color: #475569;
    font-size: 14px;
}

.sz-consent__text a {
    color: #274abb;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.sz-consent__settings {
    display: grid;
    gap: 8px;
    margin: 0 0 14px;
}

.sz-consent__settings[hidden] {
    display: none;
}

.sz-consent__opt {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #dfe5ee;
    border-radius: 3px;
    font-weight: 400;
    cursor: pointer;
}

/* stare strony (Metronic): Uniform opakowuje checkboxy i chowa input - w banerze zawsze natywny checkbox */
.sz-consent .checker,
.sz-consent .checker span {
    display: contents;
}

.sz-consent .checker input {
    opacity: 1 !important;
}

.sz-consent__opt input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: #274abb;
}

.sz-consent__opt-text {
    display: grid;
}

.sz-consent__opt-label {
    color: #001e61;
}

.sz-consent__opt-desc {
    color: #4c5a72;
    font-size: 13px;
}

.sz-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

/* "Odrzuć" i "Akceptuj" tej samej wielkości - odmowa równie łatwa jak zgoda */
.sz-consent__btn {
    flex: 1 1 160px;
    min-height: 44px;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid #274abb;
    border-radius: 3px;
    font: inherit;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.sz-consent__btn--secondary {
    background: #fff;
    color: #274abb;
}

.sz-consent__btn--secondary:hover {
    background: #eaf0f9;
    color: #001e61;
}

.sz-consent__btn--primary {
    background: #274abb;
    color: #f8f9fa;
}

.sz-consent__btn--primary:hover {
    background: #001e61;
    border-color: #001e61;
}

.sz-consent__btn:focus-visible,
.sz-consent__opt:focus-within {
    outline: 3px solid #001e61;
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .sz-consent__btn {
        flex: 0 0 auto;
    }
}

@media print {
    .sz-consent {
        display: none;
    }
}
