/* In-app checkout (web/embedded-checkout.js): Stripe's form in a Spossity window. Stripe draws its form on white, so the
   window is white in both themes; it keeps the 12px phone gutter and the 28px corners of every Spossity pop-up. */
dialog.spossity-checkout-dialog {
  box-sizing: border-box; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0;
  border-radius: 28px; background: #fff; color: #0b285b; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 2px 6px rgba(29,25,62,.08), 0 24px 60px rgba(29,25,62,.22);
}
dialog.spossity-checkout-dialog:not([open]) { display: none; }
dialog.spossity-checkout-dialog::backdrop { background: rgba(20,18,44,.38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.spossity-checkout-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 12px 20px; border-bottom: 1px solid rgba(23,22,58,.07); }
.spossity-checkout-head strong { display: block; font-size: 17px; }
.spossity-checkout-head small { display: block; margin-top: 2px; font-size: 12.5px; color: #52698f; }
.spossity-checkout-close { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(23,22,58,.06); color: #0b285b; font-size: 22px; line-height: 1; cursor: pointer; }
.spossity-checkout-body { overflow: auto; -webkit-overflow-scrolling: touch; padding: 8px 4px 12px; min-height: 320px; }
.spossity-checkout-status { margin: 24px 20px; color: #52698f; text-align: center; }
.spossity-checkout-country { margin: 14px 20px 0; padding: 10px 12px; border-radius: 12px; background: rgba(33, 103, 245, .07); color: #52698f; font-size: 13px; line-height: 1.4; }
.spossity-checkout-country[hidden] { display: none; }
@media (max-width: 600px) { dialog.spossity-checkout-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px - env(safe-area-inset-bottom)); } }
/* Squares and rectangles: the close button is a rounded square like every other Spossity close button. */
.spossity-checkout-close { border-radius: 12px; }
/* Dark mode: the window is dark glass (the app's dialogs), so its own words are light. Stripe's form below stays on white. */
html[data-theme="dark"] dialog.spossity-checkout-dialog { background: #10243c; color: #f5f8ff; }
html[data-theme="dark"] .spossity-checkout-head { border-bottom-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .spossity-checkout-head strong { color: #f5f8ff; }
html[data-theme="dark"] .spossity-checkout-head small,
html[data-theme="dark"] .spossity-checkout-status { color: #9fb4d2; }
html[data-theme="dark"] .spossity-checkout-country { background: rgba(255,255,255,.07); color: #9fb4d2; }
html[data-theme="dark"] .spossity-checkout-close { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #f5f8ff; }
html[data-theme="dark"] .spossity-checkout-mount { margin: 12px 8px 0; border-radius: 16px; overflow: hidden; background: #fff; }
