:root {
  color-scheme: light;
  --page: #f4f5f7;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --ink: #17191c;
  --ink-soft: #70747c;
  --ink-faint: #9b9fa6;
  --line: #e8eaee;
  --accent: #ff5a36;
  --accent-dark: #e84624;
  --accent-soft: #fff1ed;
  --success: #0c9f6c;
  --success-soft: #eaf8f2;
  --warning: #b8740d;
  --warning-soft: #fff6e7;
  --danger: #d83c33;
  --danger-soft: #fff1ef;
  --shadow-soft: 0 10px 36px rgb(23 25 28 / 7%);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #e9ebef;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #e9ebef;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.sheet-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgb(255 90 54 / 26%);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.site-shell {
  position: relative;
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--page);
  box-shadow: 0 24px 80px rgb(23 25 28 / 13%);
}

#productView {
  padding-bottom: calc(118px + var(--safe-bottom));
}

/* Loading and error states */
.loading-state {
  min-height: 100vh;
  padding-bottom: 110px;
  background: var(--page);
}

.loading-state > p {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: #e5e7eb;
}

.skeleton::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(100deg, transparent 24%, rgb(255 255 255 / 60%) 45%, transparent 66%);
  transform: translateX(-100%);
  animation: shimmer 1.45s infinite;
}

.skeleton--hero {
  aspect-ratio: 1;
}

.skeleton-card {
  margin-top: 10px;
  padding: 26px 20px;
  background: var(--surface);
}

.skeleton--eyebrow {
  display: none;
}

.skeleton--title {
  width: 72%;
  height: 26px;
  margin-bottom: 15px;
  border-radius: 8px;
}

.skeleton--line {
  width: 94%;
  height: 13px;
  margin-bottom: 24px;
  border-radius: 6px;
}

.skeleton--price {
  width: 38%;
  height: 34px;
  border-radius: 8px;
}

.error-state {
  display: grid;
  min-height: 100vh;
  padding: 56px 30px 120px;
  place-content: center;
  justify-items: center;
  background: var(--surface);
  text-align: center;
}

.error-state__mark {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 20px;
  color: var(--accent);
  background: var(--accent-soft);
  font-family: "DIN Alternate", "Avenir Next", sans-serif;
  font-size: 30px;
  font-weight: 700;
}

.error-state h1 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.error-state > p {
  max-width: 290px;
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* Product media */
.hero-gallery {
  position: relative;
  overflow: hidden;
  background: #ece8df;
}

.gallery-track {
  display: flex;
  aspect-ratio: 1;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  scroll-snap-align: center;
  background: #eeebe4;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-dots {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.gallery-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(23 25 28 / 24%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 36%);
  pointer-events: auto;
  transition: width 180ms ease, background 180ms ease;
}

.gallery-dot[aria-current="true"] {
  width: 20px;
  background: rgb(23 25 28 / 78%);
}

/* Product information */
.card-section {
  margin-top: 10px;
  background: var(--surface);
}

.product-intro {
  margin-top: 0;
  padding: 24px 20px 22px;
}

.product-intro h1 {
  margin: 0;
  font-size: clamp(23px, 6.2vw, 29px);
  font-weight: 760;
  line-height: 1.34;
  letter-spacing: -0.025em;
}

.product-intro__copy {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.current-price {
  margin: 0;
  color: var(--accent);
  font-family: "DIN Alternate", "Avenir Next", sans-serif;
  font-variant-numeric: tabular-nums;
}

.current-price span {
  margin-right: 2px;
  font-size: 17px;
  font-weight: 700;
}

.current-price strong {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.original-price {
  margin: 0;
  color: var(--ink-faint);
  font-size: 12px;
  text-decoration: line-through;
}

.saving-badge {
  align-self: center;
  padding: 4px 8px;
  border-radius: 7px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 10px;
  font-weight: 700;
}

.delivery-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 11px 12px;
  border-radius: 12px;
  color: #646870;
  background: var(--surface-soft);
  font-size: 11px;
  line-height: 1.55;
}

.delivery-note > span:first-child {
  color: var(--accent);
}

/* SKU and quantity */
.selection-card {
  padding: 22px 20px 20px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-heading h2,
.store-card h2,
.details-title h2,
.checkout-sheet h2,
.payment-result h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.inventory-text {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--success);
  background: var(--success-soft);
  font-size: 10px;
  font-weight: 700;
}

.inventory-text.is-low {
  color: var(--warning);
  background: var(--warning-soft);
}

.inventory-text.is-empty {
  color: var(--danger);
  background: var(--danger-soft);
}

.sku-options {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.sku-option {
  position: relative;
  min-height: 58px;
  padding: 13px 46px 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.sku-option::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 18px;
  height: 18px;
  border: 1.5px solid #c5c8ce;
  border-radius: 50%;
  content: "";
  background: var(--surface);
  transform: translateY(-50%);
}

.sku-option[aria-pressed="true"] {
  border-color: var(--ink);
  background: #fafafa;
}

.sku-option[aria-pressed="true"]::after {
  border: 5px solid var(--ink);
}

.sku-option:active:not(:disabled) {
  transform: scale(0.988);
}

.sku-option:disabled {
  color: #a7abb2;
  background: #f5f6f7;
  cursor: not-allowed;
}

.sku-option strong,
.sku-option span {
  display: block;
}

.sku-option strong {
  font-size: 14px;
  font-weight: 700;
}

.sku-option span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-family: "DIN Alternate", "Avenir Next", sans-serif;
  font-size: 12px;
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.quantity-row > div:first-child {
  min-width: 0;
}

.quantity-row > div:first-child strong,
.quantity-row > div:first-child small {
  display: block;
}

.quantity-row > div:first-child strong {
  font-size: 14px;
  font-weight: 700;
}

.quantity-row > div:first-child small {
  max-width: 190px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stepper {
  display: grid;
  grid-template-columns: 40px 38px 40px;
  min-width: 118px;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.stepper button {
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 19px;
  line-height: 1;
}

.stepper button:disabled {
  color: #c8cbd0;
}

.stepper output {
  display: grid;
  min-height: 40px;
  place-items: center;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
  font-family: "DIN Alternate", "Avenir Next", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

/* Store information */
.store-card {
  display: grid;
  grid-template-columns: 46px 1fr 24px;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
}

.store-card > img {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  object-fit: cover;
  background: var(--surface-soft);
}

.store-card > div {
  min-width: 0;
}

.store-card h2 {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-card p {
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verified-mark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--success);
  font-size: 12px;
  font-weight: 800;
}

/* Merchant-provided details */
.details-section {
  margin-top: 10px;
  background: var(--surface);
}

.details-title {
  padding: 24px 20px 18px;
}

.details-title h2 {
  font-size: 22px;
}

.details-title > p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

.detail-images {
  overflow: hidden;
  background: var(--surface);
}

.detail-images img {
  width: 100%;
  height: auto;
  background: var(--surface-soft);
}

/* Sticky purchase bar */
.purchase-bar {
  position: fixed;
  z-index: 20;
  right: max(10px, calc((100vw - 480px) / 2 + 10px));
  bottom: 10px;
  left: max(10px, calc((100vw - 480px) / 2 + 10px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(176px, 54%);
  gap: 10px;
  padding: 10px;
  padding-bottom: calc(10px + var(--safe-bottom));
  border: 2px solid rgb(255 255 255 / 78%);
  border-radius: 30px;
  background: rgb(234 238 243 / 78%);
  box-shadow:
    0 18px 54px rgb(23 25 28 / 18%),
    inset 0 1px 0 rgb(255 255 255 / 58%);
  backdrop-filter: blur(22px) saturate(1.28);
}

.purchase-bar__price {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding-left: 8px;
}

.purchase-bar__price small {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-bar__price p {
  margin: 3px 0 0;
  color: var(--accent);
  font-family: "DIN Alternate", "Avenir Next", sans-serif;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.purchase-bar__price strong {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.primary-button,
.pay-button {
  min-height: 54px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #ff6945 0%, var(--accent) 56%, #f14b27 100%);
  box-shadow: 0 10px 24px rgb(255 90 54 / 24%);
  transition: transform 150ms ease, filter 150ms ease, opacity 150ms ease;
}

.primary-button:active:not(:disabled),
.pay-button:active:not(:disabled) {
  transform: scale(0.985);
}

.primary-button:hover:not(:disabled),
.pay-button:hover:not(:disabled) {
  filter: brightness(0.97);
}

.primary-button:disabled,
.pay-button:disabled {
  opacity: 0.45;
  box-shadow: none;
}

.primary-button span {
  display: block;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.purchase-bar .primary-button {
  min-height: 60px;
  border-radius: 22px;
  background: linear-gradient(125deg, #111a2b 0%, #1b2639 58%, #885048 132%);
  box-shadow: 0 12px 28px rgb(17 26 43 / 24%);
}

.purchase-bar .primary-button span,
.purchase-bar .primary-button small {
  display: block;
}

.purchase-bar .primary-button span {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.purchase-bar .primary-button small {
  margin-top: 3px;
  color: rgb(255 255 255 / 72%);
  font-family: "DIN Alternate", "Avenir Next", sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.primary-button--wide {
  width: 100%;
  margin-top: 24px;
  font-size: 15px;
}

.secondary-button {
  min-width: 150px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--ink);
  font-weight: 700;
}

/* Checkout sheet */
.sheet-overlay,
.result-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 48px;
  background: rgb(15 17 20 / 55%);
  backdrop-filter: blur(8px);
  animation: fade-in 180ms ease both;
}

.checkout-sheet {
  width: min(100%, 480px);
  max-height: calc(100vh - 24px);
  padding: 10px 18px calc(18px + var(--safe-bottom));
  overflow-y: auto;
  border-radius: 26px 26px 0 0;
  background: var(--page);
  box-shadow: 0 -24px 72px rgb(15 17 20 / 28%);
  animation: sheet-up 240ms cubic-bezier(0.24, 0.8, 0.3, 1) both;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 99px;
  background: #d0d3d8;
}

.checkout-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.checkout-sheet h2 {
  font-size: 22px;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #e9ebee;
  font-size: 24px;
  line-height: 1;
}

.checkout-product {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 13px;
  margin: 18px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.checkout-product img {
  width: 72px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface-soft);
}

.checkout-product > div {
  min-width: 0;
}

.checkout-product strong,
.checkout-product span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-product > div > strong {
  padding-top: 3px;
  font-size: 15px;
  font-weight: 750;
}

.checkout-product span {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 11px;
}

.checkout-product__price {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  margin: 9px 0 0;
  color: var(--accent);
  font-family: "DIN Alternate", "Avenir Next", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

#checkoutAmount {
  display: inline-block;
  overflow: visible;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.field-grid--two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.form-field {
  margin-top: 11px;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: #484c53;
  font-size: 12px;
  font-weight: 700;
}

.form-field label span {
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 400;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  appearance: none;
  transition: border-color 150ms ease, background 150ms ease;
}

.region-trigger {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease;
}

.region-trigger > span:first-child {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.region-trigger > span.is-placeholder {
  color: #adb0b6;
}

.region-trigger__arrow {
  flex: 0 0 auto;
  color: var(--ink-faint);
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1;
  transform: rotate(90deg);
}

.form-field textarea {
  min-height: 78px;
  resize: vertical;
  line-height: 1.55;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #adb0b6;
}

.form-field input:focus,
.form-field textarea:focus,
.region-trigger:focus {
  border-color: rgb(255 90 54 / 56%);
  background: #fff;
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"],
.region-trigger[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.field-error {
  min-height: 16px;
  margin: 4px 0 0;
  color: var(--danger);
  font-size: 10px;
  line-height: 1.4;
}

.checkout-summary {
  margin-top: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.checkout-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  font-size: 12px;
}

.checkout-summary strong {
  font-weight: 600;
}

.checkout-summary > div:first-child strong {
  color: var(--accent);
  font-family: "DIN Alternate", "Avenir Next", sans-serif;
  font-size: 17px;
}

.order-amount-notice {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgb(255 100 64 / 18%);
  border-radius: 14px;
  background: linear-gradient(135deg, rgb(255 245 241 / 96%), rgb(255 250 247 / 82%));
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.order-amount-notice strong {
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

.payment-disclaimer {
  margin: 12px 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.6;
}

.pay-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 750;
}

.pay-button strong {
  font-family: "DIN Alternate", "Avenir Next", sans-serif;
  font-size: 19px;
  font-weight: 800;
}

/* Province, city and district picker */
.region-picker-overlay {
  position: fixed;
  z-index: 140;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgb(15 17 20 / 45%);
  backdrop-filter: blur(8px);
  animation: fade-in 180ms ease both;
}

.region-picker-sheet {
  width: min(100%, 480px);
  padding: 10px 14px calc(16px + var(--safe-bottom));
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 26px 26px 0 0;
  background: rgb(248 249 251 / 98%);
  box-shadow: 0 -24px 72px rgb(15 17 20 / 28%);
  animation: sheet-up 230ms cubic-bezier(0.24, 0.8, 0.3, 1) both;
}

.region-picker__header {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  min-height: 48px;
}

.region-picker__header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  text-align: center;
}

.region-picker__header button {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 14px;
}

.region-picker__header button:last-child {
  color: var(--accent);
  font-weight: 750;
}

.region-picker__header button:disabled {
  color: #b4b7bd;
}

.region-picker__summary {
  min-height: 22px;
  margin: 2px 4px 10px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.region-picker__status {
  display: grid;
  min-height: 276px;
  margin: 0;
  place-items: center;
  color: var(--ink-soft);
  font-size: 13px;
}

.region-picker__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.region-column {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.region-column h3 {
  margin: 0;
  padding: 10px 6px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.region-options {
  height: 240px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.region-options::-webkit-scrollbar {
  display: none;
}

.region-option {
  width: 100%;
  min-height: 44px;
  padding: 7px 5px;
  border: 0;
  border-bottom: 1px solid rgb(23 25 28 / 5%);
  color: #555a62;
  background: transparent;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.region-option[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(135deg, #1a2436, #3e4450);
  font-weight: 750;
}

.region-option:active {
  background: var(--surface-soft);
}

.region-option[aria-selected="true"]:active {
  background: #1a2436;
}

/* Payment result */
.result-overlay {
  align-items: center;
  padding: 24px;
}

.payment-result {
  width: min(100%, 400px);
  padding: 32px 26px 26px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgb(15 17 20 / 28%);
  text-align: center;
  animation: result-in 240ms cubic-bezier(0.2, 0.78, 0.34, 1) both;
}

.result-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: var(--success);
  font-size: 28px;
  font-weight: 800;
}

.payment-result[data-tone="pending"] .result-icon {
  color: #6c4813;
  background: #f4ddb8;
}

.payment-result[data-tone="failed"] .result-icon {
  background: var(--danger);
}

.payment-result h2 {
  font-size: 24px;
}

.payment-result > p:not(.result-order-no) {
  margin: 12px auto 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.payment-result[data-tone="success"] > #resultDescription {
  max-width: 310px;
  text-align: left;
}

.result-order-no {
  display: inline-block;
  margin: 17px auto 0;
  padding: 7px 10px;
  border-radius: 8px;
  color: #5f636a;
  background: var(--page);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.toast {
  position: fixed;
  z-index: 200;
  bottom: calc(96px + var(--safe-bottom));
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 48px);
  padding: 11px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgb(23 25 28 / 92%);
  box-shadow: 0 12px 32px rgb(23 25 28 / 20%);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  transform: translateX(-50%);
  animation: toast-in 180ms ease both;
}

noscript {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  color: var(--ink);
  background: var(--surface);
  text-align: center;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sheet-up {
  from { transform: translateY(36px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes result-in {
  from { transform: translateY(12px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes toast-in {
  from { transform: translate(-50%, 8px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

@media (max-width: 365px) {
  .field-grid--two {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .purchase-bar {
    right: 8px;
    left: 8px;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 55%);
    padding-right: 8px;
    padding-left: 8px;
  }

  .region-picker-sheet {
    padding-right: 8px;
    padding-left: 8px;
  }

  .region-picker__columns {
    gap: 5px;
  }

  .region-option {
    font-size: 11px;
  }

}

@media (min-width: 481px) {
  .site-shell {
    border-right: 1px solid rgb(23 25 28 / 6%);
    border-left: 1px solid rgb(23 25 28 / 6%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
