html.omf-bf-open {
    overflow: hidden;
}

.omf-bf-modal {
    position: fixed;
    inset: 0;
    z-index: 99990;
    width: min(420px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #24362a;
    font-family: 'Jost', Arial, sans-serif;
    overflow: visible;
    opacity: 0;
    transform: translateY(14px) scale(.96);
    transition: opacity .34s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}

.omf-bf-modal:not([open]) {
    display: none;
}

.omf-bf-modal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.omf-bf-modal.is-closing {
    opacity: 0;
    transform: translateY(10px) scale(.97);
    transition-duration: .22s;
}

.omf-bf-modal::backdrop {
    background: rgba(20, 29, 23, .56);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .3s ease;
}

.omf-bf-modal.is-visible::backdrop {
    opacity: 1;
}

.omf-bf-modal.is-closing::backdrop {
    opacity: 0;
    transition-duration: .22s;
}

.omf-bf-modal *,
.omf-bf-modal *::before,
.omf-bf-modal *::after {
    box-sizing: border-box;
}

.omf-bf-modal__surface {
    position: relative;
    overflow: auto;
    overscroll-behavior: contain;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 22px;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, .72) 0%, rgba(248, 244, 237, 0) 62%),
        #f7f2ea;
    border: 1px solid rgba(47, 65, 53, .14);
    box-shadow:
        0 28px 68px rgba(17, 26, 20, .34),
        0 4px 16px rgba(17, 26, 20, .14),
        inset 0 1px 0 rgba(255, 255, 255, .8);
}

.omf-bf-modal__frame {
    position: absolute;
    inset: 10px;
    border-radius: 14px;
    border: 1px solid rgba(47, 65, 53, .12);
    pointer-events: none;
}

.omf-bf-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #3a4c3f;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: color .2s ease, transform .2s ease;
}

.omf-bf-modal__close::before {
    content: '';
    position: absolute;
    inset: 6px;
    z-index: -1;
    border-radius: 50%;
    background: rgba(47, 65, 53, .06);
    transition: background-color .2s ease;
}

.omf-bf-modal__close:hover {
    color: #1d2b22;
}

.omf-bf-modal__close:hover::before {
    background: rgba(47, 65, 53, .13);
}

.omf-bf-modal__close svg {
    width: 17px;
    height: 17px;
    display: block;
}

.omf-bf-modal__inner {
    position: relative;
    z-index: 1;
    padding: 28px 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.omf-bf-modal__eyebrow {
    margin: 0 0 14px;
    padding-inline: 32px;
    font-family: 'Jost', Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #627064;
}

.omf-bf-modal__voucher {
    position: relative;
    width: 100%;
    padding: 18px 18px 16px;
    margin: 0 0 18px;
    border-radius: 16px;
    background:
        radial-gradient(95% 120% at 50% 0%, rgba(226, 206, 173, .16) 0%, rgba(36, 54, 42, 0) 64%),
        linear-gradient(155deg, #2b4032 0%, #203126 100%);
    color: #f8f4ed;
    border: 1px solid rgba(216, 195, 165, .28);
    box-shadow:
        0 12px 28px rgba(32, 49, 38, .22),
        inset 0 1px 0 rgba(255, 250, 240, .14);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.omf-bf-modal__voucher::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 11px;
    border: 1px solid rgba(216, 195, 165, .2);
    pointer-events: none;
}

.omf-bf-modal__percent {
    font-family: 'Forum', Georgia, serif;
    font-size: clamp(58px, 14vw, 72px);
    font-weight: 400;
    line-height: .94;
    letter-spacing: -.03em;
    color: #fbf7f0;
    font-variant-numeric: lining-nums tabular-nums;
}

.omf-bf-modal__voucher-note {
    font-family: 'Jost', Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #dfd0b8;
}

.omf-bf-modal__title {
    margin: 0 0 10px;
    padding: 0;
    font-family: 'Forum', Georgia, serif;
    font-size: 29px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.02em;
    text-transform: none;
    color: #213026;
    text-wrap: balance;
}

.omf-bf-modal__desc {
    margin: 0 0 18px;
    max-width: 340px;
    font-family: 'Jost', Arial, sans-serif;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.45;
    color: #546357;
    text-wrap: pretty;
}

.omf-bf-modal__cta {
    width: 100%;
    min-height: 50px;
    padding: 13px 22px;
    border-radius: 999px;
    background: #2f4135;
    color: #fbf8f2;
    text-decoration: none;
    font-family: 'Jost', Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 8px 20px rgba(36, 54, 42, .22);
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.omf-bf-modal__cta:hover {
    background: #223127;
    color: #fbf8f2;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(36, 54, 42, .28);
}

.omf-bf-modal__cta:active {
    transform: translateY(0);
}

.omf-bf-modal__cta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform .2s ease;
}

.omf-bf-modal__cta:hover svg {
    transform: translateX(3px);
}

.omf-bf-modal__dismiss {
    margin: 10px 0 0;
    padding: 6px 14px;
    min-height: 36px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6b786d;
    font-family: 'Jost', Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease;
}

.omf-bf-modal__dismiss:hover {
    color: #24362a;
    background: rgba(47, 65, 53, .06);
}

.omf-bf-modal__cta:focus-visible,
.omf-bf-modal__close:focus-visible,
.omf-bf-modal__dismiss:focus-visible {
    outline: 2px solid #2f4135;
    outline-offset: 3px;
}

@media (max-width: 440px) {
    .omf-bf-modal {
        width: calc(100vw - 24px);
    }

    .omf-bf-modal__inner {
        padding: 28px 22px 20px;
    }

    .omf-bf-modal__eyebrow {
        margin-bottom: 14px;
        font-size: 10.5px;
    }

    .omf-bf-modal__voucher {
        padding: 18px 14px 16px;
        margin-bottom: 18px;
    }

    .omf-bf-modal__title {
        font-size: 26px;
    }

    .omf-bf-modal__desc {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .omf-bf-modal__cta {
        min-height: 48px;
        font-size: 14.5px;
    }
}

@media (max-width: 359px) {
    .omf-bf-modal__inner {
        padding: 26px 18px 18px;
    }

    .omf-bf-modal__title {
        font-size: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .omf-bf-modal,
    .omf-bf-modal::backdrop,
    .omf-bf-modal * {
        animation: none !important;
        transition: none !important;
    }
}
