/* ==========================================================
   NESA CMS 2.7.0
   GDPR & CONSENT MANAGER
========================================================== */

.nesa-consent-banner {
    position: fixed;
    right: 22px;
    bottom: 22px;
    left: 22px;
    z-index: 9990;

    max-width: 1240px;
    margin: 0 auto;

    opacity: 0;
    transform: translateY(22px);

    transition:
        opacity 0.24s ease,
        transform 0.24s ease;
}

.nesa-consent-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.nesa-consent-banner-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 26px;
    align-items: center;

    padding: 22px 24px;

    background: rgba(15, 19, 26, 0.97);
    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;

    box-shadow: 0 24px 75px rgba(0, 0, 0, 0.32);

    backdrop-filter: blur(14px);
}

.nesa-consent-banner-copy > span,
.nesa-consent-dialog header span {
    color: var(--primary, #df1728);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nesa-consent-banner-copy h2 {
    margin: 7px 0 6px;

    color: #ffffff;

    font-size: clamp(20px, 2.2vw, 30px);
}

.nesa-consent-banner-copy p {
    max-width: 800px;
    margin: 0;

    color: rgba(255, 255, 255, 0.72);

    font-size: 13px;
    line-height: 1.6;
}

.nesa-consent-legal-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;

    margin-top: 10px;
}

.nesa-consent-legal-links a {
    color: rgba(255, 255, 255, 0.78);

    font-size: 11px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nesa-consent-banner-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nesa-consent-button {
    min-height: 42px;
    padding: 10px 15px;

    border: 1px solid transparent;
    border-radius: 10px;

    font: inherit;
    font-size: 12px;
    font-weight: 800;

    cursor: pointer;
}

.nesa-consent-button.is-primary {
    background: var(--primary, #df1728);
    color: #ffffff;

    border-color: var(--primary, #df1728);
}

.nesa-consent-button.is-secondary {
    background: transparent;
    color: #ffffff;

    border-color: rgba(255, 255, 255, 0.34);
}

.nesa-consent-button.is-settings {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;

    border-color: rgba(255, 255, 255, 0.12);
}

.nesa-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;

    opacity: 0;

    transition: opacity 0.2s ease;
}

.nesa-consent-modal.is-visible {
    opacity: 1;
}

.nesa-consent-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(10, 14, 21, 0.72);

    backdrop-filter: blur(6px);
}

.nesa-consent-dialog {
    position: absolute;
    top: 50%;
    left: 50%;

    width: min(720px, calc(100vw - 32px));
    max-height: calc(100vh - 42px);

    overflow: auto;

    background: #ffffff;
    color: #18202a;

    border-radius: 19px;

    box-shadow: 0 32px 95px rgba(0, 0, 0, 0.32);

    transform: translate(-50%, -48%);

    transition: transform 0.2s ease;
}

.nesa-consent-modal.is-visible .nesa-consent-dialog {
    transform: translate(-50%, -50%);
}

.nesa-consent-dialog > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    padding: 23px 25px;

    border-bottom: 1px solid #e5e9ef;
}

.nesa-consent-dialog header h2 {
    margin: 6px 0;

    font-size: 27px;
}

.nesa-consent-dialog header p {
    max-width: 580px;
    margin: 0;

    color: #687386;

    font-size: 12px;
    line-height: 1.55;
}

.nesa-consent-dialog header > button {
    width: 38px;
    height: 38px;

    background: #f1f3f6;
    color: #18202a;

    border: 0;
    border-radius: 50%;

    font-size: 25px;

    cursor: pointer;
}

.nesa-consent-categories {
    display: grid;
    gap: 10px;

    padding: 20px 25px;
}

.nesa-consent-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;

    padding: 16px;

    background: #f8f9fb;

    border: 1px solid #e3e7ec;
    border-radius: 12px;
}

.nesa-consent-category h3 {
    margin: 0 0 5px;

    font-size: 15px;
}

.nesa-consent-category p {
    margin: 0;

    color: #687386;

    font-size: 11px;
    line-height: 1.5;
}

.nesa-consent-required {
    padding: 6px 9px;

    background: #e9f8ef;
    color: #187343;

    border-radius: 999px;

    font-size: 9px;
    font-weight: 850;
}

.nesa-consent-switch {
    position: relative;

    display: inline-flex;

    cursor: pointer;
}

.nesa-consent-switch input {
    position: absolute;

    opacity: 0;
}

.nesa-consent-switch > span {
    position: relative;

    width: 46px;
    height: 25px;

    background: #cbd1d9;

    border-radius: 999px;

    transition: background 0.18s ease;
}

.nesa-consent-switch > span::after {
    content: "";

    position: absolute;
    top: 3px;
    left: 3px;

    width: 19px;
    height: 19px;

    background: #ffffff;

    border-radius: 50%;

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.18);

    transition: transform 0.18s ease;
}

.nesa-consent-switch input:checked + span {
    background: var(--primary, #df1728);
}

.nesa-consent-switch input:checked + span::after {
    transform: translateX(21px);
}

.nesa-consent-dialog > footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;

    padding: 16px 25px;

    background: #fafbfc;

    border-top: 1px solid #e5e9ef;
}

.nesa-consent-dialog > footer .is-secondary {
    color: #424b57;

    border-color: #d7dce3;
}

.nesa-consent-footer-link {
    padding: 0;

    background: transparent;
    color: inherit;

    border: 0;

    font: inherit;
    font-size: inherit;

    cursor: pointer;
}

.nesa-consent-footer-link:hover {
    text-decoration: underline;
}

body.nesa-consent-open {
    overflow: hidden;
}

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}

@media (max-width: 850px) {
    .nesa-consent-banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .nesa-consent-banner-inner {
        grid-template-columns: 1fr;
    }

    .nesa-consent-banner-actions {
        justify-content: stretch;
    }

    .nesa-consent-banner-actions button {
        flex: 1;
    }
}

@media (max-width: 560px) {
    .nesa-consent-banner-inner {
        padding: 18px;
    }

    .nesa-consent-banner-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .nesa-consent-category {
        grid-template-columns: 1fr;
    }

    .nesa-consent-switch,
    .nesa-consent-required {
        justify-self: start;
    }

    .nesa-consent-dialog > footer {
        display: grid;
        grid-template-columns: 1fr;
    }
}
