.spu-box:has(.refer-a-friend-popup) {
    width: calc(100vw - 32px) !important;
    max-width: 562.26px !important;
    height: auto !important;
    max-height: calc(100vh - 48px) !important;
    max-height: calc(100dvh - 48px) !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: auto !important;
    scrollbar-width: none;
}

.spu-box.spu-position-centered:has(.refer-a-friend-popup) {
    inset: 0 !important;
    height: fit-content !important;
    margin: auto !important;
}

@media (width < 1550px) {
    .spu-box:has(.refer-a-friend-popup) {
        max-width: 421.695px !important;
    }
}

@media (width <= 1550px) {
    .refer-a-friend-popup {
        --refer-popup-disclaimer-scale: 1.1;
    }
}

@media (width < 600px) {
    .refer-a-friend-popup {
        --refer-popup-disclaimer-scale: 1;
    }
}

@media (width <= 600px) {
    .spu-box:has(.refer-a-friend-popup) {
        width: 86vw !important;
    }

    .spu-box.spu-position-centered:has(.refer-a-friend-popup) {
        --refer-popup-top-gap: max(24px, env(safe-area-inset-top));
        --refer-popup-bottom-gap: max(24px, env(safe-area-inset-bottom));
        position: fixed !important;
        box-sizing: border-box;
        inset: var(--refer-popup-top-gap) 0 var(--refer-popup-bottom-gap) !important;
        max-height: calc(100dvh - var(--refer-popup-top-gap) - var(--refer-popup-bottom-gap)) !important;
    }
}

.spu-box:has(.refer-a-friend-popup) .spu-container {
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.spu-box:has(.refer-a-friend-popup) .spu-close {
    inset: 0 6px auto auto;
    width: 44px;
    height: 44px;
    background: url('../../../assets/images/refer-a-friend-close.svg') center top 19px / 12px no-repeat;
    color: transparent !important;
    text-shadow: none !important;
}

@media (600px < width < 1550px) {
    .spu-box:has(.refer-a-friend-popup) .spu-close {
        right: 0;
        background-position: center top 14px;
        background-size: 9px;
    }
}

@media (width <= 600px) {
    .spu-box:has(.refer-a-friend-popup) .spu-close {
        inset: 0 5px auto auto;
        width: 28px;
        height: 28px;
        background-position: center top 8px;
        background-size: 8px;
    }
}

.refer-a-friend-popup {
    container-type: inline-size;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: #002d5f;
    color: #fff;
    text-align: center;
}

.refer-a-friend-popup::before {
    content: '';
    position: absolute;
    inset: -50.274cqw auto auto -60.318cqw;
    z-index: -1;
    width: 145.62cqw;
    aspect-ratio: 1572.7 / 1356.67;
    background: url('../../../assets/images/refer-a-friend-glow.svg') center / 100% 100% no-repeat;
}

.refer-a-friend-popup__link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.refer-a-friend-popup__link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

@media (prefers-reduced-motion: no-preference) {
    .refer-a-friend-popup::before {
        animation: refer-a-friend-glow 2.5s ease-in-out infinite;
    }
}

@keyframes refer-a-friend-glow {
    from {
        transform: translateX(-10cqw);
    }

    to {
        transform: translateX(22cqw);
    }
}

.refer-a-friend-popup,
.refer-a-friend-popup :is(p, h2, a, span, bdi) {
    font-family: Heebo, Arial, sans-serif !important;
}

.refer-a-friend-popup,
.refer-a-friend-popup :is(p, h2, a, span) {
    direction: rtl !important;
}

.refer-a-friend-popup .refer-a-friend-popup__logo {
    display: block;
    width: 14.81cqw;
    height: auto;
    margin: 2.22cqw auto 0;
    object-fit: contain;
}

.refer-a-friend-popup .refer-a-friend-popup__eyebrow {
    margin: 7.59cqw 0 0;
    padding: 0;
    color: #22a7f0;
    font-size: 4.26cqw;
    font-weight: 700;
    line-height: 5.09cqw;
}

.refer-a-friend-popup .refer-a-friend-popup__title {
    margin: 1.94cqw 0 0;
    padding: 0;
    color: #fff;
    font-size: 8.15cqw;
    font-weight: 900;
    line-height: 9.26cqw;
    text-align: center;
}

.refer-a-friend-popup__title span {
    display: inline-block;
    white-space: nowrap;
}

.refer-a-friend-popup__title bdi {
    direction: ltr !important;
    unicode-bidi: isolate;
}

.refer-a-friend-popup__visual {
    position: relative;
    overflow: hidden;
    height: 44.35cqw;
    margin-top: 0.83cqw;
    background: url('../../../assets/images/refer-a-friend-ellipse.svg') center 10cqw / 100% auto no-repeat;
}

.refer-a-friend-popup .refer-a-friend-popup__image {
    display: block;
    width: 69.44cqw;
    height: auto;
    margin: 0 auto;
}

.refer-a-friend-popup .refer-a-friend-popup__terms {
    position: absolute;
    right: 2.65cqw;
    bottom: 0.45cqw;
    margin: 0;
    padding: 0;
    color: #8fa8c7;
    font-size: 1.78cqw;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: normal;
    text-align: right;
}

.refer-a-friend-popup__action {
    padding: 0.74cqw 0;
}

.refer-a-friend-popup .refer-a-friend-popup__button {
    display: flex;
    width: fit-content;
    min-height: max(44px, 4.07cqw);
    align-items: center;
    margin: 0 auto;
    padding: 0 2em;
    border-radius: 2em;
    background: #fff;
    color: #002a70;
    font-size: max(14px, 1.85cqw);
    font-weight: 700;
    text-decoration: none;
}

section.refer-a-friend-popup p.refer-a-friend-popup__disclaimer {
    margin: 0;
    padding: 1.51cqw 2.22cqw;
    background: #002d5f;
    color: #fff;
    font-size: calc(1.956cqw * var(--refer-popup-disclaimer-scale, 1));
    font-weight: 400;
    line-height: 2.4cqw;
    letter-spacing: normal;
    text-align: center;
}

.refer-a-friend-popup__disclaimer br {
    display: none;
}

@media (width <= 600px) {
    section.refer-a-friend-popup p.refer-a-friend-popup__disclaimer {
        padding: 6px 12px 12px;
        font-size: calc(11px * var(--refer-popup-disclaimer-scale, 1));
        font-weight: 300;
        line-height: 14px;
    }

    .refer-a-friend-popup__visual {
        height: auto;
    }

    .refer-a-friend-popup .refer-a-friend-popup__image {
        height: 44.35cqw;
        object-fit: cover;
        object-position: center top;
    }

    .refer-a-friend-popup .refer-a-friend-popup__terms {
        position: static;
        padding: 4px 12px 3px;
        background: #002a70;
        font-size: 9px;
    }

}

@container (min-width: 940px) {
    .refer-a-friend-popup__action {
        position: absolute;
        z-index: 1;
        inset: 28.89cqw 0 auto;
        padding: 0;
    }

    .refer-a-friend-popup .refer-a-friend-popup__button {
        min-height: 2.59cqw;
        font-size: 1.48cqw;
        line-height: 1;
    }
}

.editor-styles-wrapper .refer-a-friend-popup {
    max-width: 562.26px;
    margin-inline: auto;
}
