/* L4: checkout page only. Do not change shared h1/label/input/card rules. */
@font-face {
  font-family: "MM3D Display Serif";
  src: url("/assets/NotoSerifTC-VF.ttf?v=20260815-account-title-v4") format("truetype");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}

body.checkout-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 0%, rgba(8, 124, 255, 0.09), transparent 30%),
    radial-gradient(circle at 12% 4%, rgba(255, 157, 36, 0.07), transparent 23%),
    #eef3f7;
  color: #101820;
}

body.checkout-page .site-topbar.site-topbar--simple {
  min-height: 72px;
  height: auto;
  padding-inline: max(24px, calc((100vw - min(86vw, 1450px)) / 2));
}

body.checkout-page .checkout-shell,
body.checkout-page .checkout-main,
body.checkout-page .checkout-form,
body.checkout-page .checkout-grid,
body.checkout-page .checkout-card,
body.checkout-page .checkout-section {
  min-width: 0;
}

body.checkout-page .checkout-shell {
  padding: 24px 0 32px;
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.checkout-page .checkout-main,
body.checkout-page .checkout-form {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

body.checkout-page .checkout-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 20px;
  background: transparent;
}

body.checkout-page .checkout-heading-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding-top: 0;
}

body.checkout-page .checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #087cff;
  font-family: var(--mm3d-body-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

body.checkout-page .checkout-back-icon {
  display: block;
  flex: 0 0 auto;
}

body.checkout-page .checkout-back:hover {
  color: #0756c7;
}

body.checkout-page .checkout-back:focus-visible {
  outline: 3px solid rgba(8, 124, 255, 0.28);
  outline-offset: 3px;
  border-radius: 4px;
}

body.checkout-page .checkout-test-cluster {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-left: auto;
}

body.checkout-page .checkout-test-badge {
  margin: 0;
  padding: 4px 10px;
  border: 1px solid #e08932;
  border-radius: 999px;
  background: #fff;
  color: #c56a12;
  font-family: var(--mm3d-body-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

body.checkout-page .checkout-test-cluster p {
  margin: 0;
  color: #8a6a4a;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-align: right;
}

body.checkout-page .checkout-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.checkout-page .checkout-form {
  display: block;
}

body.checkout-page .checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: stretch;
}

body.checkout-page .checkout-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
  border: 1px solid #c9d5e0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 24, 32, 0.05);
}

body.checkout-page .checkout-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

body.checkout-page .checkout-step-num {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 50%;
  background: #e8f2fb;
  color: #087cff;
  font-family: var(--mm3d-body-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

body.checkout-page .checkout-card-title h2,
body.checkout-page .checkout-summary-head h2 {
  margin: 0;
  color: #101820;
  font-family: var(--mm3d-display-serif);
  font-size: 19px;
  font-weight: 1000;
  font-variation-settings: "wght" 1000;
  font-synthesis: none;
  line-height: 1.25;
  letter-spacing: 0;
  -webkit-text-stroke: 0;
  paint-order: normal;
}

body.checkout-page .checkout-subhead {
  margin: 0 0 10px;
  color: #1b2a36;
  font-family: var(--mm3d-body-sans);
  font-size: 16px;
  font-weight: 1000;
  font-variation-settings: normal;
  line-height: 1.3;
  letter-spacing: 0;
  -webkit-text-stroke: 0;
  paint-order: normal;
}

body.checkout-page .checkout-card-lead {
  margin: 0 0 12px;
  color: #6b7d8d;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

body.checkout-page .checkout-section {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.checkout-page .checkout-card--account .checkout-section + .checkout-section,
body.checkout-page .checkout-card--plan .checkout-section + .checkout-section {
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
}

body.checkout-page [hidden] {
  display: none !important;
}

body.checkout-page .checkout-field {
  display: grid;
  gap: 6px;
  color: #26363c;
  font-size: 15px;
  font-weight: 1000;
}

body.checkout-page .checkout-field + .checkout-field {
  margin-top: 14px;
}

body.checkout-page .checkout-field input,
body.checkout-page .checkout-field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #c5d2dc;
  border-radius: 8px;
  background-color: #fff;
  color: #101820;
  font-size: 15px;
  font-weight: 400;
}

body.checkout-page .checkout-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23566a78' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' d='M1.2 1.4 6 6.2l4.8-4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
}

body.checkout-page .checkout-field input:focus,
body.checkout-page .checkout-field select:focus {
  outline: 3px solid rgba(8, 124, 255, 0.12);
  border-color: #087cff;
}

body.checkout-page .checkout-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

body.checkout-page .checkout-field-grid .checkout-field {
  margin-top: 0;
  min-width: 0;
}

body.checkout-page .checkout-field-grid + .checkout-field,
body.checkout-page .checkout-field + .checkout-field-grid,
body.checkout-page .checkout-pay-method + .checkout-field,
body.checkout-page .checkout-pay-methods + .checkout-card-lead,
body.checkout-page .checkout-pay-methods + #checkoutCardFields,
body.checkout-page .checkout-card-lead + #checkoutCardFields {
  margin-top: 14px;
}

body.checkout-page .checkout-field-hint {
  color: #6b7d8d;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

body.checkout-page .checkout-alert {
  margin-bottom: 16px;
}

body.checkout-page .checkout-cycle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 16px 0 0;
  padding: 4px;
  border-radius: 8px;
  background: #e8eef3;
}

body.checkout-page .checkout-cycle button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: #7a8792;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

body.checkout-page .checkout-cycle button.active {
  border-color: #087cff;
  background: #e8f3ff;
  box-shadow: none;
  color: #087cff;
}

body.checkout-page .checkout-cycle em {
  display: block;
  color: inherit;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  opacity: 0.82;
}

body.checkout-page .checkout-pay-methods {
  display: grid;
  gap: 8px;
}

body.checkout-page .checkout-pay-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #d5dee4;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body.checkout-page .checkout-pay-method.is-selected {
  border-color: #087cff;
  background: #f5f9ff;
}

body.checkout-page .checkout-pay-method:focus-visible {
  outline: 3px solid rgba(8, 124, 255, 0.28);
  outline-offset: 2px;
}

body.checkout-page .checkout-pay-method-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3d4f5e;
  font-size: 14px;
  font-weight: 600;
}

body.checkout-page .checkout-pay-method.is-selected .checkout-pay-method-main {
  color: #087cff;
}

body.checkout-page .checkout-pay-method-mark {
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border: 2px solid #b7c4cd;
  border-radius: 50%;
  background: #fff;
}

body.checkout-page .checkout-pay-method.is-selected .checkout-pay-method-mark {
  border: 4px solid #087cff;
}

body.checkout-page .checkout-pay-brands {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.checkout-page .checkout-pay-brands img {
  display: block;
  height: 18px;
  width: auto;
}

body.checkout-page .checkout-summary {
  position: static;
  top: auto;
}

body.checkout-page .checkout-summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid #e1e7e9;
  font-size: 19px;
  font-weight: 1000;
}

body.checkout-page .checkout-summary-head a {
  color: #087cff;
  font-family: var(--mm3d-body-sans);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

body.checkout-page .checkout-summary-head a:focus-visible {
  outline: 3px solid rgba(8, 124, 255, 0.28);
  outline-offset: 2px;
  border-radius: 3px;
}

body.checkout-page .checkout-plan {
  display: flex;
  align-items: center;
  padding: 14px 0 8px;
}

body.checkout-page .checkout-plan h3,
body.checkout-page .checkout-plan h2 {
  margin: 0;
  color: #101820;
  font-family: var(--mm3d-body-sans);
  font-size: 16px;
  font-weight: 1000;
  font-variation-settings: normal;
  -webkit-text-stroke: 0;
}

body.checkout-page .checkout-plan p {
  margin: 2px 0 0;
  color: #6b7d8d;
  font-size: 12px;
  line-height: 1.4;
}

body.checkout-page .checkout-plan > strong {
  display: none;
}

body.checkout-page .checkout-totals {
  margin: 8px 0 16px;
  gap: 10px;
}

body.checkout-page .checkout-totals > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

body.checkout-page .checkout-totals dt {
  min-width: 0;
  text-align: left;
}

body.checkout-page .checkout-totals dd {
  min-width: 0;
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

body.checkout-page .checkout-totals .checkout-total {
  margin-top: 4px;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: #eef6ff;
  font-size: 16px;
}

body.checkout-page .checkout-totals .checkout-total dt {
  align-self: center;
  color: #3d4f5e;
  font-size: 16px;
  font-weight: 1000;
}

body.checkout-page .checkout-totals .checkout-total dd {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  color: #087cff;
}

body.checkout-page .checkout-amount-with-tax {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

body.checkout-page .checkout-tax-note {
  font-size: 12px;
  font-weight: 600;
  color: #4a5d6c;
  white-space: nowrap;
}

body.checkout-page .checkout-totals .checkout-total .checkout-tax-note {
  font-size: 14px;
  font-weight: 700;
  color: #3d4f5e;
}

body.checkout-page .checkout-tax-hint {
  margin: -8px 0 12px;
  color: #4a5d6c;
  font-size: 13px;
  line-height: 1.45;
}

body.checkout-page .checkout-totals .checkout-tax-included-row dt {
  color: #4a5d6c;
  font-weight: 600;
}

body.checkout-page .checkout-totals .checkout-tax-included-row dd:empty {
  display: none;
}

body.checkout-page .checkout-consent {
  margin-top: auto;
  padding: 4px 0 12px;
  font-size: 13px;
  line-height: 1.5;
}

body.checkout-page .checkout-consent a {
  color: #087cff;
  font-weight: 600;
  text-decoration: underline;
}

body.checkout-page .checkout-consent a:focus-visible {
  outline: 3px solid rgba(8, 124, 255, 0.28);
  outline-offset: 2px;
}

body.checkout-page .checkout-submit {
  min-height: 46px;
  font-size: 15px;
}

body.checkout-page .checkout-submit:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  background: #9aabb8;
  box-shadow: none;
}

body.checkout-page .checkout-submit.is-processing:disabled {
  cursor: wait;
  opacity: 0.72;
  background: linear-gradient(135deg, #087cff, #0756c7);
}

body.checkout-page .checkout-submit-hint {
  margin: 8px 0 0;
  color: #78858a;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

body.checkout-page .checkout-success {
  margin: 24px auto 0;
}

body.checkout-page .checkout-wechat-wait p {
  margin: 0 auto 8px;
}

body.checkout-page .checkout-wechat-wait .checkout-wechat-brand {
  margin: 0 0 6px;
  color: #07c160;
  font-size: 13px;
  font-weight: 700;
}

body.checkout-page .checkout-wechat-wait .checkout-wechat-plan {
  margin: 0 0 4px;
  color: #3d4f5e;
  font-size: 15px;
  font-weight: 600;
}

body.checkout-page .checkout-wechat-amount-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

body.checkout-page .checkout-wechat-amount {
  display: inline;
  margin: 0;
  color: #101820;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
}

body.checkout-page .checkout-wechat-qr-frame {
  width: 236px;
  height: 236px;
  margin: 0 auto 20px;
  padding: 8px;
  border: 1px solid #e1e7e9;
  border-radius: 12px;
  background: #fff;
}

body.checkout-page .checkout-wechat-qr-frame img {
  display: block;
  width: 220px;
  height: 220px;
}

body.checkout-page .checkout-wechat-wait h1 {
  margin: 0 0 8px;
  font-size: 22px;
}

body.checkout-page .checkout-wechat-expire {
  margin: 0 0 18px;
  color: #64737a;
  font-size: 14px;
}

body.checkout-page .checkout-wechat-expire strong {
  color: #101820;
}

body.checkout-page .checkout-wechat-wait .checkout-success-back {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

body.checkout-page .checkout-wechat-wait .checkout-submit + .checkout-success-back,
body.checkout-page .checkout-wechat-wait .checkout-submit {
  margin-top: 4px;
}

body.checkout-page .checkout-success h1 {
  margin: 0 0 10px;
  font-size: 32px;
}

body.checkout-page .checkout-success-invoice {
  max-width: 36em;
  margin: 0 auto 18px;
  color: #4a5d6c;
  font-size: 14px;
  line-height: 1.5;
}

body.checkout-page .checkout-invoice-type {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

body.checkout-page .checkout-invoice-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

body.checkout-page .checkout-invoice-choices button {
  min-height: 42px;
  padding: 8px 6px;
  border: 1px solid #d5dee4;
  border-radius: 8px;
  background: #fff;
  color: #3d4f5e;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body.checkout-page .checkout-invoice-choices button.is-selected {
  border-color: #087cff;
  background: #f5f9ff;
  color: #087cff;
}

body.checkout-page .checkout-invoice-choices button:focus-visible {
  outline: 3px solid rgba(8, 124, 255, 0.28);
  outline-offset: 2px;
}

body.checkout-page #invoiceSection .checkout-field + .checkout-card-lead,
body.checkout-page #invoiceSection .checkout-pay-methods + .checkout-card-lead,
body.checkout-page #invoiceSection .checkout-field + #invoiceTwPersonal,
body.checkout-page #invoiceSection .checkout-field + #invoiceTwCompany,
body.checkout-page #invoiceTwPersonal .checkout-field + .checkout-field-hint,
body.checkout-page #invoiceTwPersonal .checkout-field-hint + .checkout-field {
  margin-top: 14px;
}

@media (max-width: 1199px) {
  body.checkout-page .checkout-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  body.checkout-page .checkout-summary {
    grid-column: 1 / -1;
  }
}

@media (max-height: 780px) {
  body.checkout-page .checkout-shell {
    padding-top: 16px;
    padding-bottom: 12px;
  }

  body.checkout-page .checkout-heading {
    margin-bottom: 14px;
  }
}

@media (max-width: 767px) {
  body.checkout-page .checkout-shell {
    padding: 16px 0 24px;
  }

  body.checkout-page .checkout-grid,
  body.checkout-page .checkout-field-grid,
  body.checkout-page .checkout-invoice-choices {
    grid-template-columns: 1fr;
  }

  body.checkout-page .checkout-success h1 {
    font-size: 28px;
  }
}
