*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #101828;
  background: #f4f6f8;
}

a {
  color: #017aff;
}

.brand-bar {
  background: #011f5b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
}

.brand-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-bar span {
  font-size: 12px;
  opacity: 0.8;
}

.checkout-error {
  display: none;
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef3f2;
  color: #b42318;
  font-size: 14px;
}

.checkout-error.is-visible {
  display: block;
}

.help-line {
  margin: 16px 0 0;
  text-align: center;
  color: #667085;
  font-size: 14px;
}

.checkout-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.checkout-shell--wide {
  max-width: 1120px;
}

.checkout-header-sub {
  margin-top: 8px !important;
  font-size: 14px !important;
  color: #667085 !important;
}

.checkout-header {
  margin-bottom: 24px;
}

.checkout-header h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  color: #011f5b;
}

.checkout-header p {
  margin: 0;
  color: #475467;
  font-size: 15px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 860px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

.checkout-grid--select {
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .checkout-grid--select {
    grid-template-columns: 1fr;
  }
}

.order-summary-bar {
  margin-top: 20px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.order-summary-bar h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #011f5b;
  width: 100%;
}

@media (min-width: 640px) {
  .order-summary-bar h2 {
    width: auto;
    margin-right: 8px;
  }

  .order-summary-bar .summary-row,
  .order-summary-bar .summary-total {
    margin: 0;
    padding: 0;
    border: none;
  }

  .order-summary-bar .summary-total {
    margin-left: auto;
  }
}

.checkout-main {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 24px;
}

.checkout-aside {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 20px;
  position: sticky;
  top: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 10px;
  color: #475467;
}

.summary-row strong {
  color: #101828;
  text-align: right;
}

.summary-total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e4e7ec;
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  color: #011f5b;
}

.method-list {
  display: grid;
  gap: 12px;
}

.method-list--select {
  gap: 8px;
}

.method-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

button.method-card {
  appearance: none;
}

.method-card--select {
  padding: 12px 14px;
}

.method-card.is-selected {
  border-color: #017aff;
  background: #f5faff;
  box-shadow: 0 2px 8px rgba(1, 122, 255, 0.1);
}

.method-card-chevron {
  margin-left: auto;
  font-size: 20px;
  color: #98a2b3;
  flex-shrink: 0;
  line-height: 1;
}

.method-card.is-selected .method-card-chevron {
  color: #017aff;
}

.method-card:hover,
.method-card:focus {
  border-color: #017aff;
  box-shadow: 0 4px 16px rgba(1, 122, 255, 0.12);
  text-decoration: none;
}

.method-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.method-icon--card { background: #eef4ff; color: #017aff; }
.method-icon--paypal { background: #fff4e5; color: #003087; }
.method-icon--wallet { background: #ecfdf3; color: #027a48; }
.method-icon--ach { background: #f2f4f7; color: #344054; }
.method-icon--venmo { background: #e8f7fc; color: #008cff; }
.method-icon--cn { background: #fff1f0; color: #1677ff; }

.method-copy h2 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.3;
}

.method-copy p {
  margin: 0;
  font-size: 13px;
  color: #667085;
}

.checkout-aside--detail {
  position: static;
  max-height: none;
  padding: 0;
  border: none;
  background: transparent;
}

.method-detail-empty {
  background: #fff;
  border: 1px dashed #d0d5dd;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
}

.method-detail-empty p {
  margin: 0 0 8px;
}

.method-detail-empty-zh {
  color: #98a2b3;
  font-size: 13px;
}

.method-detail {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 20px 22px 24px;
}

.method-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.method-detail-header h2 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.25;
  color: #011f5b;
}

.method-detail-sub {
  margin: 0;
  font-size: 13px;
  color: #667085;
  line-height: 1.45;
}

.method-detail-api {
  margin: 0 0 16px;
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #344054;
}

.method-detail-api strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #667085;
  margin-bottom: 4px;
}

.method-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 720px) {
  .method-detail-grid {
    grid-template-columns: 1fr;
  }
}

.method-detail-block {
  background: #fafbfc;
  border: 1px solid #eaecf0;
  border-radius: 10px;
  padding: 12px 14px;
}

.method-detail-block--wide {
  grid-column: 1 / -1;
}

.method-detail-block--intl {
  background: #fffbeb;
  border-color: #fde68a;
}

.method-detail-block h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #011f5b;
  line-height: 1.35;
}

.method-detail-block h3 span {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: #667085;
  margin-top: 2px;
}

.method-detail-block ul,
.method-detail-block ol {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.55;
  color: #475467;
}

.method-detail-block li + li {
  margin-top: 6px;
}

.method-detail-docs {
  margin: 16px 0 0;
  font-size: 13px;
}

.method-detail-cta {
  margin-top: 16px;
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #344054;
}

.form-field input,
.form-field select {
  width: 100%;
  height: 44px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row--expiry {
  grid-template-columns: 1fr 1fr;
}

.expiry-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #344054;
}

.expiry-fields {
  display: flex;
  align-items: center;
  gap: 8px;
}

.expiry-fields input {
  width: 100%;
  height: 44px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 15px;
  text-align: center;
}

.expiry-fields input[data-exp-month] {
  max-width: 72px;
}

.expiry-fields input[data-exp-year] {
  max-width: 72px;
}

.expiry-sep {
  font-size: 18px;
  font-weight: 600;
  color: #98a2b3;
  flex-shrink: 0;
}

.btn-primary {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 8px;
  background: #011f5b;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary:hover {
  background: #02307a;
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-wallet {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  border: 1px solid #d0d5dd;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 12px;
}

.btn-wallet--google { border-color: #4285f4; color: #202124; }
.btn-wallet--apple { background: #000; color: #fff; border-color: #000; }
.btn-wallet--samsung { background: #1428a0; color: #fff; border-color: #1428a0; }
.btn-wallet--link { background: #00d66f; color: #011f5b; border-color: #00d66f; }
.btn-wallet--paypal { background: #ffc439; color: #003087; border-color: #ffc439; }
.btn-wallet--venmo { background: #008cff; color: #fff; border-color: #008cff; }

.qr-box {
  width: 220px;
  height: 220px;
  margin: 0 auto 16px;
  border: 2px dashed #98a2b3;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  color: #667085;
  background: #f9fafb;
}

.note {
  font-size: 13px;
  color: #667085;
  line-height: 1.5;
  margin: 0 0 16px;
}

.progress {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #98a2b3;
}

.progress span.is-active {
  color: #017aff;
}

.result-card {
  max-width: 560px;
  margin: 48px auto;
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.result-card h1 {
  margin: 0 0 12px;
  font-size: 26px;
  color: #011f5b;
}

.result-card p {
  margin: 0 0 20px;
  color: #475467;
  line-height: 1.5;
}

.result-card .btn-primary {
  max-width: 280px;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.result-success { border-top: 4px solid #12b76a; }
.result-pending { border-top: 4px solid #f79009; }
.result-failed { border-top: 4px solid #f04438; }

.confirmation-shell {
  max-width: 880px;
  margin: 30px auto 40px;
  background: #fff;
  border: 1px solid #d7e2db;
  border-radius: 14px;
  overflow: hidden;
}

.confirmation-tabs {
  display: flex;
  background: #0f2a60;
  padding: 0 12px;
}

.confirmation-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: #d4e0ff;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 16px;
  cursor: pointer;
}

.confirmation-tab.is-active {
  color: #fff;
  background: #1fa84f;
  border-radius: 8px;
  margin: 6px 8px 6px 0;
}

.confirmation-view {
  display: none;
}

.confirmation-view.is-active {
  display: block;
}

.success-hero {
  background: #1fa84f;
  color: #fff;
  text-align: center;
  padding: 22px 18px 18px;
}

.success-check {
  width: 60px;
  height: 60px;
  margin: -10px auto 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
}

.success-hero h1 {
  margin: 0 0 6px;
  font-size: 40px;
  line-height: 1.2;
}

.success-hero p {
  margin: 0;
  font-size: 22px;
}

.confirmation-section {
  padding: 20px 26px;
  border-top: 1px solid #dceee2;
}

.confirmation-section h2 {
  margin: 0 0 16px;
  color: #027a48;
  font-size: 14px;
  letter-spacing: 0.18em;
}

.confirmation-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #ecf3ee;
  padding: 9px 0;
  font-size: 18px;
}

.confirmation-row span {
  color: #5b6b75;
}

.confirmation-row strong {
  text-align: right;
  color: #21313c;
  font-weight: 700;
}

.confirmation-row small {
  display: block;
  font-size: 15px;
  color: #81919c;
  margin-top: 3px;
}

.confirmation-row-total strong {
  color: #16a34a;
}

.next-steps {
  margin: 0;
  padding-left: 26px;
}

.next-steps li {
  margin-bottom: 14px;
  color: #475467;
}

.next-steps p {
  margin: 4px 0 0;
  line-height: 1.5;
}

.next-steps strong {
  color: #11423f;
}

.confirmation-footer {
  padding: 16px 26px 24px;
  border-top: 1px solid #dceee2;
}

.confirmation-footer .btn-primary {
  background: #1fa84f;
  max-width: none;
}

.email-card {
  background: #fff;
}

.email-header {
  padding: 22px 26px 12px;
  border-bottom: 1px solid #eaecf0;
}

.email-header h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #0f172a;
}

.email-header p {
  margin: 0;
  color: #475467;
  font-size: 14px;
}

.email-body {
  padding: 18px 26px 26px;
  color: #1f2937;
  line-height: 1.58;
}

.email-body h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  color: #111827;
}

.email-bullets {
  margin: 6px 0 0;
  padding-left: 18px;
}

.email-bullets li {
  margin-bottom: 4px;
}

.email-footer {
  padding: 12px 26px 20px;
  border-top: 1px solid #eaecf0;
  color: #667085;
  font-size: 13px;
}

@media (max-width: 760px) {
  .confirmation-shell {
    margin: 18px 12px 30px;
  }

  .success-hero h1 {
    font-size: 32px;
  }

  .success-hero p {
    font-size: 18px;
  }

  .confirmation-row {
    font-size: 15px;
  }
}
