/* Native point checkout entry: deliberately scoped away from existing dialogs. */
.imo-checkout-entry{box-sizing:border-box;width:min(760px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:0;border:1px solid #3452a2;border-radius:22px;background:#090f25;color:#f5f7ff;box-shadow:0 28px 100px #0009;font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:dark}
#imoCheckoutEntryDialog[data-imo-checkout-mode="coin"]{height:min(820px,calc(100dvh - 24px))}
#imoCheckoutEntryDialog{overflow:hidden!important}
.imo-checkout-entry *{box-sizing:border-box;min-width:0}
.imo-checkout-entry[open]{display:flex;flex-direction:column}
.imo-checkout-entry [hidden]{display:none!important}
.imo-checkout-entry::backdrop{background:#020511c9;backdrop-filter:blur(5px)}
.imo-ce-header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;background:#0e1737;border-bottom:1px solid #263b75}
.imo-ce-header h2{margin:0;font-size:20px;line-height:1.3;color:#fff}
.imo-checkout-entry button,.imo-checkout-entry a{font:inherit;touch-action:manipulation}
.imo-checkout-entry button{cursor:pointer}
.imo-checkout-entry button:focus-visible,.imo-checkout-entry a:focus-visible{outline:3px solid #93c4ff;outline-offset:3px}
.imo-ce-close,.imo-ce-back{border:1px solid #48629f;border-radius:10px;background:#172449;color:#fff;padding:9px 13px;flex-shrink:0}
.imo-ce-close{font-size:14px!important}
.imo-ce-back{margin:14px 20px 0;align-self:flex-start;flex:0 0 auto}
.imo-ce-choices{display:grid;align-content:start;gap:14px;padding:20px 22px 24px;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.imo-ce-lead{margin:0 0 2px;color:#c3d1f5}
.imo-ce-card{display:grid;gap:7px;width:100%;padding:19px 20px;border:1px solid #4561a9;border-radius:16px;background:#152140;color:#fff;text-align:left;overflow-wrap:anywhere}
.imo-ce-card:hover{border-color:#a6bdff;background:#1a2a50}
.imo-ce-card strong{font-size:19px;line-height:1.35}
.imo-ce-card small{font-size:14px;color:#d1dafa}
.imo-ce-coin{background:#173fac;border-color:#719bff;box-shadow:0 8px 30px #12378c33}
.imo-ce-coin:hover{background:#214dbf}
.imo-ce-help{margin:0;font-size:13px;color:#bac9ed;overflow-wrap:anywhere}
.imo-ce-frame-panel{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;padding:14px 16px 16px}
.imo-ce-frame-tools{display:flex;gap:8px;flex-direction:column;flex:0 0 auto;padding:0 3px 12px}
.imo-ce-frame-tools a{color:#a9ccff;text-decoration:underline;text-underline-offset:3px;font-size:14px}
.imo-ce-frame-tools small{font-size:12px;color:#bac9ed}
.imo-ce-frame-panel iframe{display:block;width:100%;height:100%;min-height:0;flex:1 1 auto;border:1px solid #2d4382;border-radius:12px;background:#080f24}
.imo-ce-status{flex:0 0 auto;margin:0 22px 12px;padding:10px 12px;border:1px solid #486baf;border-radius:10px;color:#d9e9ff;font-size:14px;overflow-wrap:anywhere}
.imo-ce-continue{align-self:flex-end;flex:0 0 auto;margin:0 22px 16px;padding:10px 16px;border:1px solid #7099ff;border-radius:11px;background:#173fac;color:#fff;font-weight:700!important}
.imo-native-coin-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:12px 0;padding:15px 16px;border:1px solid #83acff;border-radius:12px;background:#173fac;color:#fff;text-align:left;font:inherit;cursor:pointer;overflow-wrap:anywhere}
.imo-native-coin-entry strong{font-size:16px}.imo-native-coin-entry small{font-size:12px}
@media(max-width:540px){.imo-checkout-entry{width:calc(100vw - 12px);max-width:calc(100vw - 12px);max-height:calc(100dvh - 16px);margin:auto auto 8px;border-radius:20px 20px 12px 12px}#imoCheckoutEntryDialog[data-imo-checkout-mode="coin"]{height:calc(100dvh - 16px)}.imo-ce-header{padding:15px}.imo-ce-header h2{font-size:18px}.imo-ce-choices{padding:17px 15px}.imo-ce-card{padding:17px}.imo-ce-card strong{font-size:18px}.imo-ce-back{margin:12px 14px 0}.imo-ce-frame-panel{padding:12px 8px 8px}.imo-native-coin-entry{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.imo-checkout-entry *{scroll-behavior:auto!important}}

/* V2 phone shell: preserve the working page and give checkout the full height. */
@media(max-width:640px){
 .imo-checkout-entry{width:100%;max-width:100%;max-height:100dvh;margin:0;border-radius:0;font-size:14px}
 #imoCheckoutEntryDialog[data-imo-checkout-mode="coin"]{height:100dvh;max-height:100dvh}
 .imo-ce-header{gap:8px;padding:10px 12px;padding-top:calc(10px + env(safe-area-inset-top))}.imo-ce-header h2{font-size:16px}.imo-ce-close{min-height:36px;padding:7px 10px;font-size:12px!important}
 .imo-ce-back{min-height:34px;margin:8px 11px 0;padding:6px 9px;font-size:11px!important}
 .imo-ce-frame-panel{padding:8px 0 0}.imo-ce-frame-tools{flex-direction:row;justify-content:space-between;gap:8px;padding:0 12px 8px}.imo-ce-frame-tools a{font-size:11px;line-height:1.4}.imo-ce-frame-tools small{display:none}
 .imo-ce-frame-panel iframe{border-inline:0;border-bottom:0;border-radius:0}.imo-ce-choices{padding:16px 13px;gap:11px}.imo-ce-card{padding:15px}.imo-ce-card strong{font-size:17px}.imo-ce-card small{font-size:12px}.imo-ce-help{font-size:12px}
 .imo-ce-status{margin:0 12px 9px;font-size:12px;padding:8px 10px}.imo-ce-continue{margin:0 12px 10px;font-size:13px!important}
}

/* Compact coin checkout: one header, then the existing payment document.
 * Other payment methods and the new-tab fallback remain in the chooser. */
#imoCheckoutEntryDialog[data-imo-checkout-mode="coin"]{height:min(900px,calc(100dvh - 24px));min-height:0;max-height:calc(100dvh - 24px)}
.imo-ce-header h2{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.imo-ce-header .imo-ce-back{margin:0;align-self:center;min-height:36px;padding:7px 10px;font-size:12px!important}
#imoCheckoutEntryDialog[data-imo-checkout-mode="coin"] .imo-ce-header{gap:8px;padding:8px 12px}
#imoCheckoutEntryDialog[data-imo-checkout-mode="coin"] .imo-ce-header h2{font-size:17px}
#imoCheckoutEntryDialog[data-imo-checkout-mode="coin"] .imo-ce-close{min-height:36px;padding:7px 10px;font-size:12px!important}
#imoCheckoutEntryDialog[data-imo-checkout-mode="coin"] .imo-ce-frame-panel{flex:1 1 0;min-height:0;overflow:hidden;padding:0}
#imoCheckoutEntryDialog[data-imo-checkout-mode="coin"] .imo-ce-frame-panel iframe{flex:1 1 0;width:100%;height:0;min-height:0;border:0;border-radius:0}
.imo-ce-choices .imo-ce-frame-tools{padding:2px 0 0}
@media(max-height:640px) and (min-width:641px){
 #imoCheckoutEntryDialog[data-imo-checkout-mode="coin"]{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}
}
@media(max-width:640px){
 #imoCheckoutEntryDialog[data-imo-checkout-mode="coin"]{height:100dvh;max-height:100dvh;min-height:0;border:0;padding-bottom:env(safe-area-inset-bottom)}
 #imoCheckoutEntryDialog[data-imo-checkout-mode="coin"] .imo-ce-header{padding:8px 10px;padding-top:calc(8px + env(safe-area-inset-top))}
 #imoCheckoutEntryDialog[data-imo-checkout-mode="coin"] .imo-ce-header h2{font-size:15px}
 .imo-ce-header .imo-ce-back{font-size:11px!important;padding:7px 8px}
}
