/* Cookie consent bar (inc/consent.php). Self-contained: versions 2 and 3 load their own stylesheets only.
   Not a modal: the page stays usable, and the quick exit in the header stays reachable. Both answers look the
   same, so neither is pushed. */

.ssz-consent {
    position: fixed;
    z-index: 1000;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 36rem;
    /* never over the header: the quick exit there must stay reachable (the settings scroll inside instead) */
    max-height: calc(100vh - 150px);
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 22px 22px;
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
}

.ssz-consent[hidden] {
    display: none;
}

.ssz-consent p {
    margin: 0;
}

.ssz-consent__title {
    margin-bottom: 6px !important;
    font-size: 16px;
    font-weight: 700;
}

.ssz-consent__text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Settings: one row per category, with a switch */
.ssz-consent__settings {
    margin-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

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

.ssz-consent__cat {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.ssz-consent__cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ssz-consent__cat-title {
    font-weight: 700;
    cursor: pointer;
}

.ssz-consent__cat-text {
    margin-top: 4px !important;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.ssz-consent__switch {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
}

.ssz-consent__state {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
}

.ssz-consent__switch input {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex: none;
    width: 46px;
    height: 26px;
    margin: 0;
    border: 2px solid #fff;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.ssz-consent__switch input::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.15s;
}

.ssz-consent__switch input:checked {
    border-color: #ed5706;
    background: #ed5706;
}

.ssz-consent__switch input:checked::before {
    transform: translateX(20px);
    background: #000;
}

.ssz-consent__switch input:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.ssz-consent__switch input:focus-visible {
    outline: 3px solid #ed5706;
    outline-offset: 3px;
}

.ssz-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.ssz-consent__btn {
    flex: 1 1 9rem;
    min-height: 44px;
    margin: 0;
    padding: 10px 18px;
    border: 2px solid #fff;
    border-radius: 0;
    background: #fff;
    color: #000;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.ssz-consent__btn:hover {
    border-color: #ed5706;
    background: #ed5706;
}

.ssz-consent__btn[hidden],
.ssz-consent__more[hidden] {
    display: none;
}

/* "Nastavenia": a quieter third button, under the two answers */
.ssz-consent__more {
    flex: 1 1 100%;
    min-height: 44px;
    margin: 0;
    padding: 8px 18px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.ssz-consent__more:hover {
    border-color: #ed5706;
    color: #ed5706;
}

.ssz-consent__btn:focus-visible,
.ssz-consent__more:focus-visible,
.ssz-consent a:focus-visible,
.ssz-consent-link:focus-visible {
    outline: 3px solid #ed5706;
    outline-offset: 3px;
}

/* "Nastavenia cookies" in the footers: looks like a text link */
.ssz-consent-link {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

/* [nastavenia_cookies] on a page: a real button */
.ssz-consent-link--button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 2px solid currentColor;
    font-weight: 700;
    text-decoration: none;
}

.ssz-consent-link--button:hover {
    color: #ed5706;
}

@media (min-width: 700px) {
    .ssz-consent {
        right: auto;
        left: 24px;
        bottom: 24px;
    }
}

@media (forced-colors: active) {
    .ssz-consent {
        border: 2px solid CanvasText;
    }
    .ssz-consent__btn {
        border: 2px solid ButtonText;
    }
}
