.oe-promo-terms {
    position: fixed;
    inset: 0;
    z-index: 2000000000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(39, 58, 136, .9);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility 0s linear .3s;
}

.oe-promo-terms[hidden],
.oe-promo-terms__copy[hidden] {
    display: none !important;
}

.oe-promo-terms.oe-is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .3s ease, visibility 0s;
}

.oe-promo-terms__dialog {
    position: relative;
    box-sizing: border-box;
    width: min(95%, 900px);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    padding: 36px 32px 30px;
    overflow-y: auto;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 0 30px 0 #020202;
    color: #273a88;
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(.96);
    transition: transform .42s cubic-bezier(.2, .9, .25, 1), opacity .3s ease;
}

.oe-promo-terms.oe-is-open .oe-promo-terms__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#oe-promo-terms .oe-promo-terms__heading {
    margin: 0 38px 22px 0;
    color: #273a88 !important;
    font-family: 'caros', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    text-transform: none;
}
#oe-promo-terms .oe-promo-terms__copy{
    display: flex;
    flex-direction: column;
    gap: 15px;
}
#oe-promo-terms .oe-promo-terms__copy,
#oe-promo-terms .oe-promo-terms__copy p {
    color: #7a7a7a;
    font-family: 'caros', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
}

#oe-promo-terms .oe-promo-terms__copy p {
    margin: 0;
    padding: 0;
}

#oe-promo-terms .oe-promo-terms__copy p:last-child {
    margin-bottom: 0;
}

#oe-promo-terms .oe-promo-terms__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    min-width: 35px;
    margin: 0;
    padding: 0;
    border: 2px solid #4dc2ed;
    border-radius: 50% !important;
    appearance: none;
    background: #fff;
    color: #4dc2ed;
    font-family: 'caros', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 30px;
    text-transform: none;
    box-shadow: none;
    text-shadow: none;
    cursor: pointer;
    transition: all .3s ease-in-out;
}

#oe-promo-terms .oe-promo-terms__close:hover {
    border-color: #4dc2ed;
    background: #4dc2ed;
    color: #fff;
}

#oe-promo-terms .oe-promo-terms__close:focus-visible {
    outline: 2px solid #273a88;
    outline-offset: 3px;
}

html.oe-promo-terms-open,
body.oe-promo-terms-open {
    overflow: hidden !important;
}

@media (max-width: 600px) {
    .oe-promo-terms {
        padding: 14px;
    }

    .oe-promo-terms__dialog {
        width: 100%;
        max-height: calc(100vh - 28px);
        max-height: calc(100dvh - 28px);
        padding: 32px 20px 24px;
        border-radius: 18px;
    }

    #oe-promo-terms .oe-promo-terms__heading {
        margin: 4px 32px 18px 0;
        font-size: 24px;
    }

    #oe-promo-terms .oe-promo-terms__copy,
    #oe-promo-terms .oe-promo-terms__copy p {
        font-size: 15px;
        line-height: 1.6;
    }

    #oe-promo-terms .oe-promo-terms__close {
        top: 12px;
        right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oe-promo-terms,
    .oe-promo-terms__dialog,
    #oe-promo-terms .oe-promo-terms__close {
        transition: none;
    }
}
