.mpes-overlay {
    --mpes-primary: #ef3438;
    --mpes-accent: #fff1f2;
    --mpes-text: #1a2a4a;
    --mpes-highlight: #f0b800;
    --mpes-muted: #566278;
    --mpes-border: #dfe5ee;
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    /* Mobile pages with an overflowing configurator can enlarge the fixed
       containing block. Use viewport units so this dialog stays on screen. */
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(20, 38, 68, .28);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    color: var(--mpes-text);
    font: 400 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: left;
    isolation: isolate;
    animation: mpes-appear .18s ease-out;
}
.mpes-overlay *, .mpes-overlay *::before, .mpes-overlay *::after { box-sizing: border-box; }
.mpes-overlay [hidden] { display: none !important; }
.mpes-overlay button, .mpes-overlay input, .mpes-overlay textarea { font: inherit; letter-spacing: normal; }
.mpes-overlay button { cursor: pointer; text-transform: none; margin: 0; }
.mpes-overlay button:disabled { cursor: wait; opacity: .65; }
.mpes-overlay :focus-visible { outline: 3px solid var(--mpes-text); outline-offset: 4px; }
.mpes-dialog {
    width: 100%;
    min-width: 0;
    max-width: 650px;
    max-height: min(850px, calc(100vh - 48px));
    max-height: min(850px, calc(100dvh - 48px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(20, 38, 68, .08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(20, 38, 68, .18), 0 2px 10px rgba(20, 38, 68, .06);
    outline: none;
    animation: mpes-rise .22s ease-out;
}
.mpes-header { position: relative; flex: 0 0 auto; padding: 29px 32px 19px; border-bottom: 1px solid #eef0f5; }
.mpes-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--mpes-text); font-size: 10px; font-weight: 750; letter-spacing: .11em; padding-right: 40px; margin-bottom: 12px; }
.mpes-eyebrow::before { content: ""; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 2px; background: var(--mpes-highlight); }
.mpes-overlay .mpes-close {
    position: absolute;
    right: 16px;
    top: 15px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f7f9fc;
    color: var(--mpes-text);
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    box-shadow: none;
}
.mpes-overlay .mpes-close:hover { background: #e6eaf1; color: var(--mpes-text); }
.mpes-dialog.mpes-invitation { max-width: 420px; }
.mpes-invite-header { border: 0; padding-bottom: 22px; }
.mpes-invite-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 35px; padding: 5px 12px; margin: 5px 0 16px; border-radius: 9px; background: var(--mpes-highlight); color: var(--mpes-text); font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.mpes-invitation .mpes-title { margin-right: 0; margin-bottom: 12px; font-size: 27px; line-height: 1.2; }
.mpes-invitation .mpes-intro { font-size: 14px; line-height: 1.6; }
.mpes-invite-actions { padding: 0 32px 28px; }
.mpes-overlay .mpes-invite-button { width: 100%; }
.mpes-overlay .mpes-title { margin: 0 28px 6px 0; color: var(--mpes-text); font-size: 25px; font-weight: 730; line-height: 1.22; letter-spacing: -.035em; }
.mpes-overlay .mpes-intro { margin: 0; color: var(--mpes-muted); font-size: 13px; line-height: 1.5; }
.mpes-progress { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.mpes-progress-label { color: var(--mpes-text); font-size: 11px; font-weight: 700; white-space: nowrap; }
.mpes-progress-track { height: 4px; width: 100%; background: var(--mpes-text); border-radius: 4px; overflow: hidden; }
.mpes-progress-fill { display: block; height: 100%; width: 50%; background: var(--mpes-highlight); border-radius: 4px; transition: width .2s ease; }
.mpes-form { margin: 0 !important; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.mpes-content { min-width: 0; min-height: 0; padding: 23px 32px 10px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bfc7d5 transparent; }
.mpes-fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.mpes-overlay .mpes-question { display: block; float: none; width: 100%; padding: 0; margin: 0 0 16px; color: var(--mpes-text); font-size: 17px; line-height: 1.4; font-weight: 680; letter-spacing: -.015em; }
.mpes-choices { display: grid; grid-template-columns: 1fr; gap: 7px; }
.mpes-choice { position: relative; display: flex !important; align-items: center; gap: 11px; padding: 12px 14px; margin: 0 !important; min-height: 46px; cursor: pointer; border: 1px solid var(--mpes-border); border-radius: 10px; background: #fff; font-weight: 400; transition: border-color .12s, background .12s, box-shadow .12s; }
.mpes-choice:hover { border-color: var(--mpes-primary); background: var(--mpes-accent); }
.mpes-choice:has(.mpes-radio:checked) { border-color: var(--mpes-primary); background: var(--mpes-accent); box-shadow: inset 0 0 0 1px var(--mpes-primary); }
.mpes-choice:has(.mpes-radio:focus-visible) { outline: 3px solid var(--mpes-text); outline-offset: 2px; }
.mpes-overlay .mpes-radio { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; margin: 0; }
.mpes-choice-indicator { flex: 0 0 17px; width: 17px; height: 17px; border: 1.5px solid #8490a5; border-radius: 50%; background: #fff; }
.mpes-radio:checked + .mpes-choice-indicator { background: var(--mpes-primary); border-color: var(--mpes-primary); box-shadow: inset 0 0 0 4px #fff; }
.mpes-radio:checked ~ .mpes-choice-text { color: var(--mpes-text); font-weight: 650; }
.mpes-choice-text { color: var(--mpes-text); font-size: 13px; line-height: 1.4; }
.mpes-other, .mpes-free { margin-top: 18px; }
.mpes-overlay .mpes-label { display: block; padding: 0; margin: 0 0 7px; color: var(--mpes-text); font-size: 13px; font-weight: 650; line-height: 1.45; }
.mpes-optional { display: block; color: var(--mpes-muted); font-size: 11px; margin: -3px 0 8px; }
.mpes-overlay .mpes-input { display: block; width: 100%; max-width: 100%; height: auto; min-height: 43px; padding: 11px 12px; border: 1px solid #a7b2c3; border-radius: 9px; margin: 0; color: var(--mpes-text); background: #fff; box-shadow: none; font-size: 16px; line-height: 1.4; }
.mpes-overlay .mpes-input[aria-invalid="true"] { border-color: #b52a24; }
.mpes-overlay .mpes-textarea { resize: vertical; min-height: 86px; max-height: 220px; }
.mpes-footer { flex: 0 0 auto; padding: 12px 32px 21px; background: #fff; border-top: 1px solid #eef0f5; }
.mpes-actions { display: flex; align-items: center; gap: 15px; }
.mpes-overlay .mpes-primary { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 20px; border: 1px solid transparent; border-radius: 10px; color: #fff; background: linear-gradient(rgba(0, 0, 0, .12), rgba(0, 0, 0, .12)), var(--mpes-primary); font-size: 13px; font-weight: 700; line-height: 1.4; box-shadow: 0 4px 12px rgba(20, 38, 68, .10); }
/* Darken the configurable CTA background, not its text: default white-on-red exceeds 4.5:1. */
.mpes-overlay .mpes-primary:hover { background-image: linear-gradient(rgba(0, 0, 0, .20), rgba(0, 0, 0, .20)); }
.mpes-overlay .mpes-back { min-height: 44px; border: 0; border-radius: 7px; padding: 10px 5px; color: var(--mpes-muted); background: transparent; font-size: 13px; font-weight: 600; box-shadow: none; }
.mpes-overlay .mpes-back:hover { color: var(--mpes-text); text-decoration: underline; }
.mpes-overlay .mpes-note { margin: 10px 0 0; text-align: center; color: var(--mpes-muted); font-size: 10px; line-height: 1.5; }
.mpes-overlay .mpes-error { margin: 0 0 10px; color: #a32b25; font-size: 12px; line-height: 1.5; }
.mpes-error:empty { display: none; }
.mpes-header-thanks { padding-bottom: 20px; border: 0; }
.mpes-thanks { overflow: auto; padding: 0 32px 27px; text-align: center; }
.mpes-success-mark { display: grid; place-items: center; width: 48px; height: 48px; margin: 4px auto 21px; border-radius: 50%; background: var(--mpes-highlight); color: var(--mpes-text); font-size: 23px; }
.mpes-coupon-label { display: block; margin: 0 0 9px; color: var(--mpes-muted); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 650; }
.mpes-overlay .mpes-coupon { width: 100%; height: auto; padding: 16px 8px; border: 1px dashed var(--mpes-highlight); border-radius: 10px; margin: 0 0 16px; color: var(--mpes-text); background: #fff; background: color-mix(in srgb, var(--mpes-highlight) 8%, #fff); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: clamp(15px, 4vw, 24px); letter-spacing: .06em; text-align: center; box-shadow: none; }
.mpes-copy { width: 100%; }
.mpes-overlay .mpes-copy-status { min-height: 19px; margin: 10px 0 0; color: var(--mpes-text); font-size: 12px; }
.mpes-finish { margin-top: 8px !important; }
@keyframes mpes-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes mpes-rise { from { transform: translateY(12px); opacity: .5; } to { transform: translateY(0); opacity: 1; } }
@media (min-width: 680px) {
    .mpes-choices-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mpes-choices-wide .mpes-choice { padding: 11px 12px; }
}
@media (max-width: 540px) {
    .mpes-overlay { padding: 12px; align-items: center; }
    .mpes-dialog { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 19px; }
    .mpes-header { padding: 22px 20px 16px; }
    .mpes-overlay .mpes-title { font-size: 23px; margin-right: 22px; }
    .mpes-overlay .mpes-close { right: 10px; top: 10px; }
    .mpes-eyebrow { font-size: 9px; padding-right: 37px; }
    .mpes-content { padding: 18px 20px 15px; }
    .mpes-overlay .mpes-question { font-size: 16px; }
    .mpes-choice { padding: 11px 12px; }
    .mpes-footer { padding: 12px 20px 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
    .mpes-thanks { padding: 0 20px 22px; }
    .mpes-overlay .mpes-coupon { font-size: clamp(12px, 3.3vw, 20px); }
    .mpes-actions { gap: 10px; }
    .mpes-overlay .mpes-primary { padding: 12px; }
    .mpes-invite-header { padding-bottom: 20px; }
    .mpes-invitation .mpes-title { font-size: 25px; }
    .mpes-invite-actions { padding: 0 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .mpes-overlay, .mpes-dialog { animation: none; }
    .mpes-overlay * { transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
    .mpes-choice:has(.mpes-radio:checked) { outline: 2px solid Highlight; }
    .mpes-radio:checked + .mpes-choice-indicator { background: Highlight; }
    .mpes-dialog, .mpes-choice, .mpes-overlay .mpes-primary { border: 1px solid ButtonText; }
}
