.hb-newsletter-popup {
    --hb-np-blue: #1b355e;
    --hb-np-blue-dark: #0b1c35;
    --hb-np-ink: #080d14;
    --hb-np-red: #ed3b24;
    --hb-np-red-dark: #c92d1a;
    --hb-np-white: #fff;
    --hb-np-text: #f7f9fc;
    --hb-np-muted: rgba(247, 249, 252, .82);
    --hb-np-line: rgba(255, 255, 255, .18);
    --hb-np-danger: #ffb6ad;
    --hb-np-success: #bff4d1;
    --hb-np-overlay-opacity: .72;
    --hb-np-background-position: center center;
    --hb-np-background-image: linear-gradient(135deg, #071426 0%, #1b355e 58%, #0f223f 100%);
    --hb-np-tab-offset: 16px;
    color: var(--hb-np-text);
    font-family: inherit;
}

.hb-newsletter-popup [hidden] {
    display: none !important;
}

.hb-newsletter-popup__dialog {
    position: fixed;
    inset: 0;
    z-index: 10050;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: auto;
    overscroll-behavior: contain;
}

.hb-newsletter-popup__surface {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: max(72px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(54px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    background-image:
        linear-gradient(118deg,
            rgba(3, 8, 17, var(--hb-np-overlay-opacity)) 0%,
            rgba(7, 19, 36, calc(var(--hb-np-overlay-opacity) + .08)) 48%,
            rgba(17, 38, 68, calc(var(--hb-np-overlay-opacity) - .02)) 100%),
        var(--hb-np-background-image);
    background-position: center, var(--hb-np-background-position);
    background-repeat: no-repeat;
    background-size: cover;
    box-sizing: border-box;
    isolation: isolate;
}

/* .hb-newsletter-popup__surface::before,
.hb-newsletter-popup__surface::after {
    position: absolute;
    z-index: -1;
    content: '';
    pointer-events: none;
}

.hb-newsletter-popup__surface::before {
    inset: 0;
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 255, 255, .09), transparent 32%),
        linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .34));
}

.hb-newsletter-popup__surface::after {
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 30px;
} */

.hb-newsletter-popup__content {
    position: relative;
    width: min(700px, 100%);
    margin: 0 auto;
    padding: clamp(30px, 4vw, 44px);
    overflow: hidden;
    border: 1px solid var(--hb-np-line);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(8, 17, 31, .62), rgba(8, 17, 31, .36));
    box-shadow: 0 24px 80px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .08);
    text-align: center;
    box-sizing: border-box;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.hb-newsletter-popup__content::before {
    position: absolute;
    top: 0;
    left: 12%;
    width: 76%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(237, 59, 36, .92), transparent);
    content: '';
}

.hb-newsletter-popup__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin: 0 auto 20px;
}

.hb-newsletter-popup__logo {
    display: block;
    width: auto;
    max-width: min(180px, 52vw);
    max-height: 66px;
    object-fit: contain;
    filter: drop-shadow(0 7px 20px rgba(0, 0, 0, .22));
}

.hb-newsletter-popup__step {
    width: 100%;
    animation: hb-newsletter-popup-enter .34s cubic-bezier(.2, .7, .2, 1) both;
}

.hb-newsletter-popup__step.is-entering {
    animation: hb-newsletter-popup-enter .34s cubic-bezier(.2, .7, .2, 1) both;
}

.hb-newsletter-popup__eyebrow {
    margin: 0 0 8px;
    color: #ff8171;
    font-size: clamp(14px, 1.5vw, 17px);
    font-weight: 650;
    letter-spacing: .18em;
    line-height: 1.25;
    text-transform: uppercase;
}

.hb-newsletter-popup__title {
    margin: 0;
    color: var(--hb-np-white);
    font-size: clamp(46px, 7vw, 78px);
    font-style: italic;
    font-weight: 800;
    letter-spacing: -.038em;
    line-height: .96;
    text-shadow: 0 10px 30px rgba(0, 0, 0, .28);
    text-transform: uppercase;
}

.hb-newsletter-popup__prompt,
.hb-newsletter-popup__newsletter-text {
    max-width: 560px;
    margin: 20px auto 24px;
    color: var(--hb-np-muted);
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 400;
    line-height: 1.55;
}

.hb-newsletter-popup__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    width: min(600px, 100%);
    margin: 0 auto;
}

.hb-newsletter-popup__option,
.hb-newsletter-popup__submit,
.hb-newsletter-popup__back,
.hb-newsletter-popup__close,
.hb-newsletter-popup__tab-trigger,
.hb-newsletter-popup__tab-close {
    appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.hb-newsletter-popup__option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 13px 44px 13px 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 16px;
    background: rgba(5, 14, 27, .56);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 24px rgba(0, 0, 0, .12);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .045em;
    line-height: 1.2;
    text-transform: uppercase;
    transition:
        transform .22s ease,
        border-color .22s ease,
        background-color .22s ease,
        box-shadow .22s ease,
        border-radius .22s ease;
}

.hb-newsletter-popup__option:hover,
.hb-newsletter-popup__option:focus-visible,
.hb-newsletter-popup__option.is-selected {
    border-color: rgba(237, 59, 36, .25);
    border-radius: 18px;
    background: rgba(27, 53, 94, .9);
    box-shadow: 0 0 0 3px rgba(237, 59, 36, .12), 0 15px 34px rgba(0, 0, 0, .2);
    transform: translateY(-1px);
}

.hb-newsletter-popup__option-check {
    position: absolute;
    right: 14px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .30);
    border-radius: 50%;
    color: transparent;
    font-size: 13px;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.hb-newsletter-popup__option.is-selected .hb-newsletter-popup__option-check {
    border-color: var(--hb-np-red);
    background: var(--hb-np-red);
    color: #fff;
    transform: scale(1.04);
}

.hb-newsletter-popup__newsletter-title {
    max-width: 580px;
    margin: 0 auto;
    color: var(--hb-np-white);
    font-size: clamp(34px, 5vw, 58px);
    font-style: italic;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    text-transform: uppercase;
}

.hb-newsletter-popup__form {
    width: min(500px, 100%);
    margin: 0 auto;
    text-align: left;
}

.hb-newsletter-popup__email-label {
    display: block;
    margin: 0 0 7px;
    color: #fff;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.hb-newsletter-popup__email {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 15px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .13);
    color: #10141b;
    font-size: 15px;
    line-height: 1;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease, border-radius .2s ease;
}

.hb-newsletter-popup__email:focus {
    border-color: var(--hb-np-red);
    border-radius: 17px;
    box-shadow: 0 0 0 4px rgba(237, 59, 36, .14), 0 12px 28px rgba(0, 0, 0, .14);
    outline: 0;
}

.hb-newsletter-popup__consent {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    margin: 15px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

.hb-newsletter-popup__consent-checkbox {
    width: 18px;
    height: 18px;
    margin: 1px 0 0 !important;
    accent-color: var(--hb-np-red);
    position: static !important;
}

.hb-newsletter-popup__consent a {
    color: #ff8a7b;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hb-newsletter-popup__submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin: 18px 0 0;
    padding: 13px 24px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 16px;
    background: var(--hb-np-red);
    box-shadow: 0 15px 34px rgba(0, 0, 0, .2);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-radius .2s ease;
}

.hb-newsletter-popup__submit:hover,
.hb-newsletter-popup__submit:focus-visible {
    border-radius: 19px;
    background: var(--hb-np-red-dark);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .27), 0 0 0 4px rgba(237, 59, 36, .13);
    transform: translateY(-1px);
    border: none;
}

.hb-newsletter-popup__submit:disabled {
    cursor: wait;
    opacity: .76;
    transform: none;
}

.hb-newsletter-popup__spinner {
    display: none;
    width: 17px;
    height: 17px;
    margin-left: 9px;
    border: 2px solid rgba(255, 255, 255, .34);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hb-newsletter-popup-spin .7s linear infinite;
}

.hb-newsletter-popup__submit.is-loading .hb-newsletter-popup__spinner {
    display: inline-block;
}

.hb-newsletter-popup__back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 40px;
    margin: 0 0 17px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 13px;
    background: rgba(4, 11, 22, .38);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: background-color .2s ease, border-color .2s ease, border-radius .2s ease;
}

.hb-newsletter-popup__back:hover,
.hb-newsletter-popup__back:focus-visible {
    border-color: rgba(237, 59, 36, .7);
    border-radius: 16px;
    background: rgba(27, 53, 94, .88);
}

.hb-newsletter-popup__back span {
    color: #ff8171;
    font-size: 22px;
    line-height: 1;
    position: relative;
    top: -2px;
}

.hb-newsletter-popup__close {
    position: fixed;
    top: max(18px, env(safe-area-inset-top));
    right: max(18px, env(safe-area-inset-right));
    z-index: 2;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 14px;
    background: rgba(4, 12, 24, .68);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
    transition:
        color .24s ease,
        background-color .24s ease,
        transform .24s ease,
        box-shadow .24s ease;
}

.hb-newsletter-popup__close span {
    display: block;
    margin-top: -3px;
    font-size: 40px;
    font-weight: 300;
    line-height: 1;
}

.hb-newsletter-popup__close:hover,
.hb-newsletter-popup__close:focus,
.hb-newsletter-popup__close:focus-visible {
    background: var(--hb-np-blue);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .23), 0 0 0 4px rgba(237, 59, 36, .10);
    color: var(--hb-np-red);
    transform: scale(1.035);
}

.hb-newsletter-popup__field-error,
.hb-newsletter-popup .mage-error {
    min-height: 18px;
    margin-top: 5px;
    color: var(--hb-np-danger);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.hb-newsletter-popup__status {
    min-height: 21px;
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

.hb-newsletter-popup__status.is-error {
    color: var(--hb-np-danger);
}

.hb-newsletter-popup__status.is-success {
    color: var(--hb-np-success);
}

.hb-newsletter-popup__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.hb-newsletter-popup__tab {
    position: fixed;
    z-index: 9950;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 42px;
    min-height: 152px;
    padding: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(7, 10, 15, .90);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
    box-sizing: border-box;
    transition:
        background-color .26s ease,
        border-color .26s ease,
        box-shadow .26s ease,
        transform .26s ease,
        opacity .26s ease;
}

.hb-newsletter-popup__tab:hover,
.hb-newsletter-popup__tab:focus-within {
    border-color: var(--hb-np-red);
    background: rgba(237, 59, 36, 1);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .28);
}

.hb-newsletter-popup--right .hb-newsletter-popup__tab {
    right: max(8px, env(safe-area-inset-right));
}

.hb-newsletter-popup--left .hb-newsletter-popup__tab {
    left: max(8px, env(safe-area-inset-left));
}

.hb-newsletter-popup--tab-top .hb-newsletter-popup__tab {
    top: max(86px, var(--hb-np-tab-offset));
}

.hb-newsletter-popup--tab-center .hb-newsletter-popup__tab {
    top: calc(50% + var(--hb-np-tab-offset));
    transform: translateY(-50%);
}

.hb-newsletter-popup--tab-bottom .hb-newsletter-popup__tab {
    bottom: max(86px, var(--hb-np-tab-offset));
}

.hb-newsletter-popup--tab-center .hb-newsletter-popup__tab:hover,
.hb-newsletter-popup--tab-center .hb-newsletter-popup__tab:focus-within {
    transform: translateY(-50%) scale(1.02);
}

.hb-newsletter-popup__tab-close {
    display: grid;
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    min-height: 25px;
    padding: 0;
    place-items: center;
    margin: 1px 0 3px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: rgba(0, 0, 0, .05);
    color: #fff;
    opacity: .20;
    position: relative;
    transition: background-color .2s ease, border-color .2s ease, opacity .2s ease, transform .2s ease;
}

.hb-newsletter-popup__tab-close span {
    font-size: 22px;
    line-height: 0.6;
    font-weight: 300;
    position: absolute;
}

.hb-newsletter-popup__tab-close:hover,
.hb-newsletter-popup__tab-close:focus-visible {
    background: rgba(0, 0, 0, .20);
    opacity: 1;
    transform: scale(1.04);
    border: none;
}

.hb-newsletter-popup__tab-trigger {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    width: 85%;
    min-width: 0;
    min-height: 102px;
    margin-top: 3px;
    padding: 7px 0 10px;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .10em;
    line-height: 1;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transition: color .2s ease, background-color .2s ease;
}

.hb-newsletter-popup--left .hb-newsletter-popup__tab-trigger {
    writing-mode: vertical-lr;
}

.hb-newsletter-popup__tab-trigger:hover,
.hb-newsletter-popup__tab-trigger:focus-visible {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border: none;
}

.hb-newsletter-popup button:focus-visible,
.hb-newsletter-popup input:focus-visible,
.hb-newsletter-popup a:focus-visible {
    outline: 2px solid #ff8a7b;
    outline-offset: 3px;
    border: none;
}

@keyframes hb-newsletter-popup-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.992);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hb-newsletter-popup-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {
    .hb-newsletter-popup__surface {
        align-items: flex-start;
        padding-top: max(82px, calc(env(safe-area-inset-top) + 64px));
        padding-right: max(14px, env(safe-area-inset-right));
        padding-bottom: max(30px, env(safe-area-inset-bottom));
        padding-left: max(14px, env(safe-area-inset-left));
    }

    .hb-newsletter-popup__surface::after {
        inset: 8px;
        border-radius: 22px;
    }

    .hb-newsletter-popup__content {
        padding: 26px 18px 24px;
        border-radius: 22px;
    }

    .hb-newsletter-popup__brand {
        min-height: 42px;
        margin-bottom: 16px;
    }

    .hb-newsletter-popup__logo {
        max-width: min(155px, 48vw);
        max-height: 56px;
    }

    .hb-newsletter-popup__title {
        font-size: clamp(42px, 14vw, 62px);
    }

    .hb-newsletter-popup__options {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .hb-newsletter-popup__option {
        min-height: 50px;
        font-size: 13px;
    }

    .hb-newsletter-popup__prompt,
    .hb-newsletter-popup__newsletter-text {
        margin-top: 17px;
        margin-bottom: 19px;
        font-size: 14px;
    }

    .hb-newsletter-popup__newsletter-title {
        font-size: clamp(32px, 10vw, 46px);
    }

    .hb-newsletter-popup__close {
        top: max(14px, env(safe-area-inset-top));
        right: max(14px, env(safe-area-inset-right));
        width: 48px;
        height: 48px;
        border-radius: 13px;
    }

    .hb-newsletter-popup__close span {
        font-size: 37px;
    }

    .hb-newsletter-popup__tab {
        width: 52px;
        min-height: 138px;
    }

    .hb-newsletter-popup__tab-close {
        width: 28px;
        height: 28px;
        min-height: 28px;
        opacity: 1;
    }

    .hb-newsletter-popup__tab-trigger {
        min-height: 91px;
        font-size: 11px;
    }

    .hb-newsletter-popup--tab-center .hb-newsletter-popup__tab {
        top: 55%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hb-newsletter-popup *,
    .hb-newsletter-popup *::before,
    .hb-newsletter-popup *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
