body.selcom-button-popup-open {
    overflow: hidden !important;
}

.selcom-button-popup {
    position: fixed;
    inset: 0;
    z-index: 999998;
    pointer-events: none;
}

.selcom-button-popup[hidden] {
    display: none !important;
}

.selcom-button-popup.is-active {
    pointer-events: auto;
}

.selcom-button-popup__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(31, 58, 98, 0.18) 0%, rgba(13, 23, 38, 0.18) 32%, rgba(7, 12, 20, 0.82) 100%);
    backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.selcom-button-popup.is-active .selcom-button-popup__backdrop {
    opacity: 1;
}

.selcom-button-popup__stage {
    position: fixed;
    z-index: 2;
}

.selcom-button-popup__card {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    min-height: 620px;
    max-height: min(86vh, 860px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    background:
        linear-gradient(145deg, rgba(6, 19, 38, 0.96) 0%, rgba(8, 16, 30, 0.98) 56%, rgba(13, 24, 41, 0.98) 100%);
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
    transform-origin: top left;
    transition:
        transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.52s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.selcom-button-popup__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(179, 16, 13, 0.2) 0%, rgba(179, 16, 13, 0) 34%),
        radial-gradient(circle at bottom left, rgba(31, 83, 145, 0.26) 0%, rgba(31, 83, 145, 0) 42%);
    pointer-events: none;
}

.selcom-button-popup__content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 28px;
    padding: 42px 42px 38px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.selcom-button-popup__content > * {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.26s ease,
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.selcom-button-popup__card--expanded .selcom-button-popup__content > * {
    opacity: 1;
    transform: translateY(0);
}

.selcom-button-popup__close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 3;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #c41414 url('https://row-prova.it/wp-content/uploads/2025/11/close.svg') center / 18px 18px no-repeat;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.selcom-button-popup__close:hover {
    transform: scale(1.04);
    background: #d71919;
}

.selcom-button-popup__close span {
    display: none;
}

.selcom-button-popup__eyebrow {
    margin: 0;
    padding-right: 80px;
    color: rgba(255, 255, 255, 0.68);
    font-family: "NexaLight", sans-serif;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.selcom-button-popup__title {
    margin: 0;
    max-width: 700px;
    color: #ffffff;
    font-family: "Nexa Bold", sans-serif;
    font-size: 38px;
    line-height: 1.08;
}

.selcom-button-popup__lead {
    display: grid;
    gap: 16px;
}

.selcom-button-popup__paragraph {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-family: "NexaLight", sans-serif;
    font-size: 18px;
    line-height: 1.62;
}

.selcom-button-popup__highlights-wrap {
    display: grid;
    gap: 16px;
    padding: 24px 24px 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
}

.selcom-button-popup__section-label {
    margin: 0;
    color: #b3100d;
    font-family: "Nexa Bold", sans-serif;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.selcom-button-popup__highlights {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.selcom-button-popup__highlight {
    position: relative;
    padding-left: 22px;
    color: #ffffff;
    font-family: "NexaLight", sans-serif;
    font-size: 17px;
    line-height: 1.5;
}

.selcom-button-popup__highlight::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #b3100d;
    box-shadow: 0 0 0 5px rgba(179, 16, 13, 0.14);
}

.selcom-button-popup__sections {
    display: grid;
    gap: 18px;
}

.selcom-button-popup__section {
    display: grid;
    gap: 10px;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.015) 100%);
}

.selcom-button-popup__section-title {
    margin: 0;
    color: #b3100d;
    font-family: "Nexa Bold", sans-serif;
    font-size: 22px;
    line-height: 1.2;
}

.selcom-button-popup__section-body {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-family: "NexaLight", sans-serif;
    font-size: 17px;
    line-height: 1.62;
}

.selcom-button-popup__eyebrow {
    transition-delay: 0.04s;
}

.selcom-button-popup__title {
    transition-delay: 0.08s;
}

.selcom-button-popup__lead {
    transition-delay: 0.12s;
}

.selcom-button-popup__highlights-wrap {
    transition-delay: 0.16s;
}

.selcom-button-popup__sections {
    transition-delay: 0.2s;
}

@media (max-width: 767px) {
    .selcom-button-popup__stage {
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        top: 12px !important;
    }

    .selcom-button-popup__card {
        min-height: auto;
        max-height: calc(100vh - 24px);
        border-radius: 24px;
    }

    .selcom-button-popup__content {
        gap: 22px;
        padding: 28px 22px 24px;
    }

    .selcom-button-popup__close {
        top: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }

    .selcom-button-popup__close span {
        font-size: 28px;
    }

    .selcom-button-popup__eyebrow {
        padding-right: 58px;
    }

    .selcom-button-popup__title {
        font-size: 28px;
    }

    .selcom-button-popup__paragraph,
    .selcom-button-popup__highlight,
    .selcom-button-popup__section-body {
        font-size: 15px;
        line-height: 1.55;
    }

    .selcom-button-popup__section {
        padding: 18px;
        border-radius: 18px;
    }

    .selcom-button-popup__section-title {
        font-size: 18px;
    }
}
