/* Standalone subscription payment popup. */
.iw-payment, .iw-payment * { box-sizing: border-box; }
.iw-payment {
  --iw-orange: #ff5014; --iw-purple: #5d00d2; --iw-accent: var(--iw-orange); --iw-accent-soft: #fff3ed;
  --iw-ink: #202024; --iw-muted: #6c6b72; --iw-line: #e9e8ec; --iw-surface: #f7f7f8;
  position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 24px;
  color: var(--iw-ink); font: 400 15px/1.45 "Wix Madefor Display", Arial, sans-serif; text-align: left;
}
.iw-payment [data-theme="night"] { --iw-accent: var(--iw-purple); --iw-accent-soft: #f4effc; }
.iw-payment button, .iw-payment input { font: inherit; }
.iw-payment__backdrop { position: absolute; inset: 0; background: #18151e99; backdrop-filter: blur(5px); animation: iw-payment-fade 160ms ease-out; }
.iw-payment__dialog {
  position: relative; width: min(100%, 560px); max-height: calc(100dvh - 48px); overflow: auto;
  overscroll-behavior: contain; border-radius: 24px; background: #fff;
  box-shadow: 0 24px 80px #10091b33; animation: iw-payment-enter 180ms ease-out;
}
.iw-payment__topbar { display: flex; align-items: center; gap: 20px; padding: 20px 24px 0 32px; }
.iw-payment__close { flex: 0 0 36px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--iw-muted); cursor: pointer; }
.iw-payment__close:hover { background: var(--iw-surface); color: var(--iw-ink); }
.iw-payment svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iw-payment__steps { display: flex; flex: 1; align-items: center; gap: 18px; margin: 0; padding: 0; list-style: none; }
.iw-payment__steps li { display: flex; gap: 7px; align-items: center; color: #929097; white-space: nowrap; }
.iw-payment__steps li > span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #dedce2; border-radius: 50%; font-size: 11px; font-weight: 600; }
.iw-payment__steps small { font-size: 12px; font-weight: 500; }
.iw-payment__steps .is-active { color: var(--iw-ink); }
.iw-payment__steps .is-active > span { border-color: var(--iw-accent); background: var(--iw-accent); color: white; }
.iw-payment__steps .is-active small { font-weight: 700; }
.iw-payment__steps .is-done > span { border-color: transparent; background: var(--iw-accent-soft); color: var(--iw-accent); }
.iw-payment__steps svg { width: 13px; height: 13px; }
.iw-payment__content { padding: 24px 32px 32px; }
.iw-payment__header { margin: 0 0 24px; }
.iw-payment h2 { margin: 0; color: var(--iw-ink); font: 700 28px/1.15 "Wix Madefor Display", Arial, sans-serif; letter-spacing: -.035em; outline: none; }
.iw-payment__header p { margin: 12px 0 0; color: var(--iw-muted); font-size: 15px; line-height: 1.5; }
.iw-payment__summary { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 14px; margin: 0 0 24px; padding: 18px; border-radius: 16px; background: var(--iw-surface); }
.iw-payment__plan-icon { display: block; width: 40px; height: 40px; object-fit: contain; }
.iw-payment__plan-copy { min-width: 0; }
.iw-payment__plan-copy > strong { display: block; color: var(--iw-ink); font-size: 16px; font-weight: 700; line-height: 1.35; }
.iw-payment__plan-copy > small { display: block; margin-top: 5px; color: var(--iw-muted); font-size: 13px; line-height: 1.45; }
.iw-payment__price { margin-top: 12px; font-variant-numeric: tabular-nums; }
.iw-payment__price b { color: var(--iw-ink); font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
.iw-payment__price span { color: var(--iw-muted); font-size: 13px; }
.iw-payment__summary--review { margin: 0; padding: 0 0 24px; border-bottom: 1px solid var(--iw-line); border-radius: 0; background: transparent; }
.iw-payment__form { display: grid; gap: 20px; }
.iw-payment__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.iw-payment__field { display: block; min-width: 0; margin: 0; }
.iw-payment__field--wide { grid-column: 1 / -1; }
.iw-payment__field > span { display: block; margin: 0 0 8px; color: var(--iw-ink); font-size: 14px; font-weight: 600; }
.iw-payment__field input { display: block; width: 100%; height: 50px; margin: 0; padding: 0 14px; border: 1px solid #d8d6dd; border-radius: 10px; outline: none; background: white; color: var(--iw-ink); font-size: 16px; transition: border-color 120ms, box-shadow 120ms; }
.iw-payment__field input::placeholder { color: #96929d; opacity: 1; }
.iw-payment__field input:focus { border-color: var(--iw-accent); box-shadow: 0 0 0 3px var(--iw-accent-soft); }
.iw-payment__field input[aria-invalid="true"] { border-color: #b83232; }
.iw-payment__field-note { display: block; margin-top: 7px; color: var(--iw-muted); font-size: 12px; line-height: 1.4; }
.iw-payment__consents { display: grid; gap: 14px; }
.iw-payment__consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; margin: 0; cursor: pointer; }
.iw-payment__consent input { appearance: auto; accent-color: var(--iw-accent); width: 19px; height: 19px; margin: 1px 0 0; cursor: pointer; }
.iw-payment__consent span { color: var(--iw-muted); font-size: 13px; line-height: 1.5; }
.iw-payment__consent a { color: var(--iw-ink); text-decoration: underline; text-underline-offset: 3px; }
.iw-payment__error { display: block; margin-top: 7px; color: #b83232; font-size: 12px; line-height: 1.4; }
.iw-payment__notice, .iw-payment__payment-error { margin: 0; padding: 12px 14px; border-radius: 10px; background: #fff4e3; color: #795417; font-size: 13px; line-height: 1.5; }
.iw-payment__primary, .iw-payment__secondary { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; margin: 0; padding: 14px 18px; border: 0; border-radius: 12px; text-align: center; font: 600 16px/1.4 "Wix Madefor Display", Arial, sans-serif; text-decoration: none; cursor: pointer; }
.iw-payment__primary { background: var(--iw-accent); color: #fff; transition: filter 120ms; }
.iw-payment__primary:hover { filter: brightness(.94); }
.iw-payment__primary:disabled { cursor: not-allowed; opacity: .65; }
.iw-payment__primary > .iw-payment__spinner { border-color: #ffffff66; border-top-color: white; }
.iw-payment__primary svg { width: 18px; height: 18px; }
.iw-payment__secondary { color: var(--iw-muted); background: transparent; font-size: 14px; }
.iw-payment__secondary:hover { background: var(--iw-surface); color: var(--iw-ink); }
.iw-payment button:focus-visible, .iw-payment a:focus-visible, .iw-payment input[type="checkbox"]:focus-visible { outline: 3px solid var(--iw-accent); outline-offset: 3px; }
.iw-payment__actions { display: grid; gap: 4px; }
.iw-payment__confirmation { display: grid; gap: 24px; }
.iw-payment__section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.iw-payment__section-heading h3 { margin: 0; color: var(--iw-ink); font: 600 14px/1.4 "Wix Madefor Display", Arial, sans-serif; }
.iw-payment__edit { flex-shrink: 0; min-height: 32px; margin: -6px -6px -6px 0; padding: 6px; border: 0; border-radius: 6px; background: transparent; color: var(--iw-muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.iw-payment__edit:hover { color: var(--iw-ink); }
.iw-payment__edit:disabled { opacity: .6; cursor: wait; }
.iw-payment__details { display: grid; gap: 13px; margin: 0; }
.iw-payment__details > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.iw-payment__details dt { color: var(--iw-muted); font-size: 14px; }
.iw-payment__details dd { min-width: 0; margin: 0; color: var(--iw-ink); font-size: 14px; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.iw-payment__details .iw-payment__plate { font-weight: 600; letter-spacing: .03em; }
.iw-payment__payment-panel { display: grid; gap: 18px; margin: 0 -32px -32px; padding: 24px 32px; border-top: 1px solid var(--iw-line); background: var(--iw-surface); }
.iw-payment__billing > div { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.iw-payment__billing span { color: var(--iw-ink); font-size: 16px; font-weight: 600; }
.iw-payment__billing small { display: block; margin-top: 3px; color: var(--iw-muted); font-size: 12px; font-weight: 400; }
.iw-payment__billing strong { color: var(--iw-ink); font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.iw-payment__billing p { margin: 16px 0 0; color: var(--iw-muted); font-size: 13px; line-height: 1.5; }
.iw-payment__payment-actions { display: grid; gap: 12px; }
.iw-payment__footnote { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; color: var(--iw-muted); font-size: 12px; text-align: center; }
.iw-payment__footnote svg { width: 13px; height: 13px; }
.iw-payment__payment-error { background: #ffeded; color: #a02d2d; }
.iw-payment__status { padding: 4px 0 0; }
.iw-payment__status > .iw-payment__secondary { margin-top: 24px; }
.iw-payment__status-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 50%; background: var(--iw-surface); color: var(--iw-muted); }
.iw-payment__status-icon svg { width: 24px; height: 24px; }
.iw-payment__status-icon.is-orange { background: #fff3ed; color: #bd471a; }
.iw-payment__checklist { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.iw-payment__checklist li { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: start; gap: 14px; min-height: 76px; padding: 18px 0; border-bottom: 1px solid var(--iw-line); color: #8e8b93; }
.iw-payment__checklist li:first-child { padding-top: 8px; min-height: 66px; }
.iw-payment__checklist li > span { display: grid; place-items: center; width: 26px; height: 24px; }
.iw-payment__checklist strong { display: block; font-size: 15px; line-height: 24px; font-weight: 500; }
.iw-payment__checklist p { margin: 4px 0 0; color: var(--iw-muted); font-size: 13px; line-height: 1.5; }
.iw-payment__checklist .is-active { color: var(--iw-ink); }
.iw-payment__checklist .is-active strong { font-weight: 600; }
.iw-payment__checklist .is-done { color: var(--iw-ink); }
.iw-payment__checklist .is-done > span { color: var(--iw-accent); }
.iw-payment__pending { display: block; width: 7px; height: 7px; border-radius: 50%; background: #d8d5dd; }
.iw-payment__spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid #ddd9e1; border-top-color: var(--iw-accent); border-radius: 50%; animation: iw-payment-spin 700ms linear infinite; }
@keyframes iw-payment-fade { from { opacity: 0; } }
@keyframes iw-payment-enter { from { opacity: 0; transform: translateY(8px); } }
@keyframes iw-payment-spin { to { transform: rotate(360deg); } }
@media (max-width: 620px) {
  .iw-payment { align-items: end; padding: 0; }
  .iw-payment__dialog { width: 100%; max-height: calc(100dvh - 28px); border-radius: 22px 22px 0 0; }
  .iw-payment__topbar { padding: 16px 14px 0 20px; gap: 8px; }
  .iw-payment__steps { gap: 12px; }
  .iw-payment__steps li { gap: 6px; }
  .iw-payment__steps small { font-size: 12px; }
  .iw-payment__content { padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
  .iw-payment h2 { font-size: 27px; }
  .iw-payment__summary { padding: 16px; }
  .iw-payment__summary--review { padding: 0 0 22px; }
  .iw-payment__plan-copy > strong { font-size: 16px; }
  .iw-payment__fields { grid-template-columns: 1fr; gap: 18px; }
  .iw-payment__details > div { grid-template-columns: 98px minmax(0, 1fr); gap: 10px; }
  .iw-payment__payment-panel { margin: 0 -20px calc(-24px - env(safe-area-inset-bottom)); padding: 24px 20px calc(22px + env(safe-area-inset-bottom)); }
  .iw-payment__billing strong { font-size: 29px; }
}
@media (max-width: 359px) {
  .iw-payment__topbar { padding-left: 16px; padding-right: 10px; }
  .iw-payment__content { padding-left: 16px; padding-right: 16px; }
  .iw-payment__steps { gap: 8px; }
  .iw-payment__steps li { gap: 4px; }
  .iw-payment__steps small { font-size: 11px; }
  .iw-payment__plan-icon { width: 32px; height: 32px; }
  .iw-payment__summary { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .iw-payment__summary--review { padding: 0 0 22px; }
  .iw-payment__payment-panel { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .iw-payment *, .iw-payment *::before, .iw-payment *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.iw-payment svg.iw-payment__plan-icon { width: 40px; height: 40px; flex: 0 0 40px; }
@media (max-width: 600px) { .iw-payment svg.iw-payment__plan-icon { width: 32px; height: 32px; flex-basis: 32px; } }
.iw-payment__plan-picker { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.iw-payment__plan-picker legend { margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.iw-payment__plan-picker > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.iw-payment__plan-picker button {
  display: grid; gap: 4px; padding: 12px 6px; border: 1px solid #e7e1dc; border-radius: 12px;
  background: #fff; color: inherit; font: inherit; font-size: 13px; text-align: center; cursor: pointer;
}
.iw-payment__plan-picker button[aria-pressed="true"] { border-color: #ff5014; background: #fff2ec; }
.iw-payment__plan-picker button:focus-visible { outline: 2px solid #ff5014; outline-offset: 2px; }
.iw-payment__plan-picker span { color: #625d69; }
