/* Match marketing_tokens.css and the compact Pricing page, scoped to the dialog. */
.credit-checkout {
  --cc-canvas: #faf8f4;
  --cc-surface: #f6f3eb;
  --cc-purple: #3c1a47;
  --cc-ink: #302a31;
  --cc-muted: #706770;
  --cc-line: #dbd4cb;
  --cc-serif: "Fraunces", Georgia, serif;
  --cc-sans: "DM Sans", system-ui, sans-serif;
  box-sizing: border-box;
  width: min(460px, calc(100vw - 24px));
  min-width: 0;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 32px;
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  background: var(--cc-canvas);
  color: var(--cc-ink);
  font: 400 14px/1.65 var(--cc-sans);
  -webkit-font-smoothing: antialiased;
  overflow: auto;
  box-shadow: 0 16px 60px rgb(48 42 49 / 16%);
}
.credit-checkout::backdrop { background: rgb(48 42 49 / 35%); }
.credit-checkout * { box-sizing: border-box; }
.credit-checkout button, .credit-checkout input { font: inherit; }
.credit-checkout button { cursor: pointer; text-transform: none; text-shadow: none; }
.credit-checkout h2 { margin: 0 36px 26px 0; padding: 0; font: 400 40px/1.1 var(--cc-serif); letter-spacing: -.045em; color: var(--cc-ink); }
.credit-checkout h2:focus { outline: none; }
.credit-checkout .cc-close { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--cc-muted); font-size: 25px; line-height: 1; }
.credit-checkout fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
.credit-checkout legend { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; padding: 0; overflow: hidden; white-space: nowrap; }

.credit-checkout .cc-cadences { display: flex; gap: 5px; margin-bottom: 24px; padding: 5px; border-radius: 6px; background: var(--cc-surface); }
.credit-checkout .cc-cadences label { flex: 1; min-width: 0; position: relative; cursor: pointer; }
.credit-checkout .cc-cadences input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.credit-checkout .cc-cadences span { display: grid; grid-template-rows: 23px 18px; align-content: center; min-height: 60px; gap: 3px; padding: 8px 4px; border-radius: 4px; text-align: center; white-space: nowrap; }
.credit-checkout .cc-cadences input:checked + span { background: white; color: var(--cc-purple); box-shadow: 0 1px 5px rgb(48 42 49 / 7%); }
.credit-checkout .cc-cadences small { font-size: 11px; color: var(--cc-muted); }
.credit-checkout .cc-cadences input:focus-visible + span { outline: 3px solid var(--cc-purple); outline-offset: 2px; }

.credit-checkout .cc-packages { display: flex; flex-direction: column; gap: 8px; }
.credit-checkout .cc-row { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; min-height: 52px; padding: 12px; border: 1px solid var(--cc-line); border-radius: 5px; background: transparent; cursor: pointer; }
.credit-checkout .cc-row input { position: static; opacity: 1; appearance: auto; flex: 0 0 16px; width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--cc-purple); cursor: pointer; }
.credit-checkout .cc-row strong { font-weight: 400; }
.credit-checkout .cc-row > span { min-width: 0; overflow-wrap: anywhere; }
.credit-checkout .cc-row > span:last-child { margin-left: auto; color: var(--cc-purple); white-space: nowrap; }
.credit-checkout .cc-row:has(input:checked) { border-color: var(--cc-purple); background: white; }
.credit-checkout .cc-popular { margin-top: 6px; }
.credit-checkout .cc-popular-label { position: absolute; top: -9px; left: 32px; padding: 0 6px; background: var(--cc-canvas); font-size: 11px; font-weight: 400; line-height: 17px; color: var(--cc-muted); }
.credit-checkout .cc-row:has(input:checked) .cc-popular-label { background: white; }
.credit-checkout .cc-row input:focus-visible { outline: 3px solid var(--cc-purple); outline-offset: 4px; }

.credit-checkout .cc-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.credit-checkout .cc-action small { color: var(--cc-muted); font-size: 12px; }
.credit-checkout .cc-next { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 50%; padding: 0; background: var(--cc-purple); color: white; }
.credit-checkout .cc-next svg { width: 22px; height: 22px; flex-shrink: 0; }
.credit-checkout button:disabled { cursor: wait; opacity: .45; }
.credit-checkout.cc-pack-offer { width: min(430px, calc(100vw - 24px)); }
.credit-checkout.cc-pack-offer h2 { margin-bottom: 25px; font-size: 29px; }
.credit-checkout .cc-pack-purchase { display: flex; align-items: center; gap: 20px; padding: 19px 17px; border: 1px solid var(--cc-line); border-radius: 5px; background: white; }
.credit-checkout .cc-pack-price { min-width: 0; font: 400 32px/1.1 var(--cc-serif); letter-spacing: -.04em; }
.credit-checkout .cc-pack-price small { display: block; margin-top: 4px; color: var(--cc-muted); font: 400 11px/1.65 var(--cc-sans); letter-spacing: 0; }
.credit-checkout .cc-plans, .credit-checkout .cc-back, .credit-checkout .cc-retry { min-height: 44px; border: 0; background: none; padding: 8px 0; color: var(--cc-purple); text-align: left; font-size: 13px; }
.credit-checkout .cc-plans { display: block; width: 100%; margin: 16px 0 0; padding: 4px 0; text-align: center; font-size: 11px; }
.credit-checkout .cc-plans span { margin-left: 5px; }
.credit-checkout .cc-back { margin: -12px 0 8px; }
.credit-checkout .cc-status { font: 400 13px/1.65 var(--cc-sans); margin: 14px 0 0; color: var(--cc-muted); }
.credit-checkout .cc-status:empty { display: none; }
.credit-checkout a { color: var(--cc-purple); text-decoration: underline; }
@media (max-width: 600px) {
  .credit-checkout { padding: 26px 20px; }
  .credit-checkout h2 { margin-bottom: 22px; font-size: 36px; }
  .credit-checkout.cc-pack-offer { width: min(390px, calc(100vw - 24px)); padding: 28px 22px; }
  .credit-checkout.cc-pack-offer h2 { margin-bottom: 22px; font-size: 27px; }
  .credit-checkout .cc-pack-purchase { padding: 17px 13px; gap: 15px; }
}
@media (max-width: 370px) {
  .credit-checkout .cc-row { font-size: 12px; }
  .credit-checkout .cc-cadences { font-size: 13px; }
  .credit-checkout.cc-pack-offer { padding: 26px 17px; }
  .credit-checkout.cc-pack-offer h2 { font-size: 25px; }
  .credit-checkout .cc-pack-purchase { padding: 15px 11px; gap: 11px; }
}
