/* Isolate the checkout surface from both themes of the builder. */
#sl-cp-dialog {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(384px, calc(100vw - 24px));
  min-width: 0;
  max-width: none;
  height: fit-content;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  margin: auto;
  padding: 24px;
  border: 1px solid #27272a;
  border-radius: 24px;
  background: #111218;
  color: #f8f8fa;
  color-scheme: dark;
  box-shadow: 0 20px 80px rgb(0 0 0 / 32%);
  font: 500 14px/1.45 "Inter", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -.015em;
  text-align: left;
}
#sl-cp-dialog[open] { display: block; }
#sl-cp-dialog:not([open]), #sl-cp-dialog [hidden] { display: none !important; }
#sl-cp-dialog::backdrop {
  background: rgb(15 15 24 / 38%);
  backdrop-filter: none;
}
#sl-cp-dialog *, #sl-cp-dialog *::before, #sl-cp-dialog *::after { box-sizing: border-box; }
#sl-cp-dialog :is(p, h2, h3) { margin: 0; }
#sl-cp-dialog :is(button, select) { font: inherit; letter-spacing: inherit; }
#sl-cp-dialog :is(button, select):focus-visible {
  outline: 2px solid #70f1cf; outline-offset: 3px;
}
#sl-cp-dialog .sl-cp-icon {
  display: inline-block; flex: none; width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
#sl-cp-dialog .sl-cp-head {
  position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 24px;
}
#sl-cp-dialog .sl-cp-head h2 {
  color: #fafafa; font: inherit; font-size: 16px; font-weight: 740; letter-spacing: -.045em;
}
#sl-cp-dialog .sl-cp-badge {
  display: inline-flex; width: auto; min-height: 22px; margin: 0; padding: 2px 7px;
  border: 1px solid #45424e; border-radius: 6px; background: #282630; color: #e2dfeb;
  font-size: 10px; line-height: 15px; font-weight: 650; letter-spacing: 0; cursor: pointer;
}
#sl-cp-dialog .sl-cp-badge:hover, #sl-cp-dialog .sl-cp-badge[aria-expanded="true"] {
  background: #35323e;
}
#sl-cp-dialog .sl-cp-info {
  margin: -9px 0 18px; padding: 10px 12px; border: 1px solid #31313b;
  border-radius: 9px; background: #1b1c24; color: #d8d7df;
  font-size: 12px; line-height: 1.5; overflow-wrap: anywhere;
}
#sl-cp-dialog .sl-cp-info strong { color: white; }
#sl-cp-dialog .sl-cp-info p { margin: 3px 0; color: inherit; font: inherit; }
#sl-cp-dialog .sl-cp-info a {
  color: #8ae7c8; text-decoration: underline; text-underline-offset: 2px;
}
#sl-cp-dialog .sl-cp-mark {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 10px; background: #fff; color: #13151a;
}
#sl-cp-dialog .sl-cp-mark svg { width: 18px; height: 18px; stroke-width: 2; }
#sl-cp-dialog .sl-cp-icon-button {
  display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px;
  min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 6px;
  cursor: pointer; background: transparent; color: #81818e; box-shadow: none;
}
#sl-cp-dialog .sl-cp-icon-button:hover { color: #fff; background: #25262d; }
#sl-cp-dialog .sl-cp-icon-button.sl-cp-close {
  position: absolute; right: -7px; top: -7px; width: 32px; height: 32px;
}
#sl-cp-dialog .sl-cp-close svg { width: 19px; height: 19px; }
#sl-cp-dialog .sl-cp-summary {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
  margin-bottom: 19px;
}
#sl-cp-dialog .sl-cp-numbers { min-width: 0; }
#sl-cp-dialog .sl-cp-eyebrow {
  color: #92929e; font-weight: 650; font-size: 12px; line-height: 16px;
  letter-spacing: .025em; text-transform: uppercase;
}
#sl-cp-dialog .sl-cp-amount-row { display: flex; align-items: center; gap: 3px; margin-top: 5px; }
#sl-cp-dialog [data-cp="amount"] {
  display: block; min-width: 0; color: #fff; font: inherit; font-size: 32px; font-weight: 730;
  letter-spacing: -.035em; line-height: 40px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums;
}
#sl-cp-dialog[data-step="details"] [data-cp="amount"] { font-size: 26px; line-height: 32px; }
#sl-cp-dialog .sl-cp-timer {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  margin-top: 13px; font-size: 13px; line-height: 20px; font-weight: 620; color: #00cc96;
}
#sl-cp-dialog .sl-cp-dot { width: 8px; height: 8px; border-radius: 50%; background: #08a979; }
#sl-cp-dialog .sl-cp-timer svg { margin-left: 3px; }
#sl-cp-dialog .sl-cp-timer time {
  font: 700 13px/1.3 ui-monospace, "Cascadia Mono", monospace; letter-spacing: .01em;
}
#sl-cp-dialog .sl-cp-qr {
  display: block; width: 112px; height: 112px; flex: none; border-radius: 9px; background: white;
}
#sl-cp-dialog .sl-cp-field { display: block; margin: 0; }
#sl-cp-dialog .sl-cp-field + .sl-cp-field { margin-top: 15px; }
#sl-cp-dialog .sl-cp-field > span:first-child, #sl-cp-dialog .sl-cp-label {
  display: block; margin: 0 0 5px; color: #9c9ca8; font-size: 12px; line-height: 18px; font-weight: 550;
}
#sl-cp-dialog .sl-cp-select, #sl-cp-dialog .sl-cp-reference {
  display: flex; align-items: center; position: relative; min-height: 46px;
  border: 1px solid #24252d; border-radius: 11px; background: #1b1c24;
}
#sl-cp-dialog .sl-cp-select select {
  display: block; width: 100%; height: 44px; margin: 0; padding: 0 38px 0 16px;
  appearance: none; border: 0; border-radius: inherit; background: transparent;
  color: #fafafa; font-size: 14px; font-weight: 650; cursor: pointer;
}
#sl-cp-dialog .sl-cp-select option { background: #1c1d24; }
#sl-cp-dialog .sl-cp-select > svg { position: absolute; right: 16px; width: 15px; height: 15px; color: #aaaab5; pointer-events: none; }
#sl-cp-dialog .sl-cp-sol {
  pointer-events: none; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: linear-gradient(40deg, #936ff7, #89a8f6 48%, #4cdca7);
  color: #fff; font-size: 11px; font-weight: 750;
}
#sl-cp-dialog .sl-cp-sol + select { height: 48px; padding-left: 49px; }
#sl-cp-dialog .sl-cp-reference { min-height: 50px; justify-content: space-between; gap: 6px; padding: 8px 12px 8px 16px; }
#sl-cp-dialog .sl-cp-reference code {
  overflow-wrap: anywhere; background: transparent; color: #00d6c0;
  font: 550 12px/1.4 ui-monospace, "Cascadia Mono", monospace; user-select: all;
}
#sl-cp-dialog .sl-cp-primary {
  display: block; width: 100%; min-height: 48px; margin: 24px 0 0; padding: 11px 14px;
  border: 0; border-radius: 11px; background: #0fc082; box-shadow: 0 8px 20px rgb(15 192 130 / 5%);
  color: #fff; font-size: 14px; font-weight: 740; cursor: pointer;
}
#sl-cp-dialog .sl-cp-primary:hover { background: #0baf78; }
#sl-cp-dialog .sl-cp-primary:active { background: #089967; }
#sl-cp-dialog .sl-cp-primary:disabled { opacity: .6; cursor: progress; }
#sl-cp-dialog .sl-cp-foot {
  display: grid; justify-items: center; gap: 3px; margin: 19px 0 0; padding: 0; border: 0;
  color: #ededf1; text-align: center; font-size: 10px; font-weight: 650; line-height: 15px;
  letter-spacing: -.01em;
}
#sl-cp-dialog .sl-cp-security {
  display: inline-flex; align-items: center; gap: 3px; color: #9f9fab; font-weight: 450;
}
#sl-cp-dialog .sl-cp-security span { font-size: 9px; }
#sl-cp-dialog .sl-cp-foot a { color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 1px; }
#sl-cp-dialog a:focus-visible { outline: 2px solid #70f1cf; outline-offset: 2px; }
#sl-cp-dialog .sl-cp-feedback:not(:empty) { margin: 8px 0 -5px; color: #a7e8d6; text-align: center; font-size: 12px; }
#sl-cp-dialog .sl-cp-result h3 { color: #fafafa; font-size: 18px; font-weight: 690; }
#sl-cp-dialog .sl-cp-result p { margin-top: 5px; color: #babac7; font-size: 13px; }
#sl-cp-dialog:is([data-step="expired"],[data-step="complete"],[data-step="unavailable"]) .sl-cp-timer { display: none; }
@media (max-width: 370px) {
  #sl-cp-dialog { padding: 20px; }
  #sl-cp-dialog .sl-cp-qr { width: 84px; height: 84px; }
  #sl-cp-dialog[data-step="details"] [data-cp="amount"] { font-size: 22px; }
  #sl-cp-dialog .sl-cp-summary { gap: 6px; }
}

/* left text column stretches, QR stays fixed */
#sl-cp-dialog .sl-cp-step { flex: 1 1 auto; min-width: 0; }
#sl-cp-dialog .sl-cp-summary { flex: 1 1 auto; min-width: 0; }
