.storefront { --store-header-offset: calc(90px + env(safe-area-inset-top, 0px)); }
.storefront .wrap { max-width: calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); }
.storefront .topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  padding-top: env(safe-area-inset-top, 0px);
  background: #fbfcfe;
}
.storefront .topnav a { white-space: nowrap; }
.storefront .topnav a[aria-current] { color: var(--blue); }
.storefront .nav-order { border-radius: 999px; }

.storefront .footer-links { align-items: center; min-width: 0; }
.store-contact-list, .store-contact-wechat { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; max-width: 100%; }
.store-contact-list { gap: 4px 14px; font-size: .875rem; }
.store-contact-phone { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.store-contact-wechat { gap: 3px 8px; }
.store-contact-wechat span { overflow-wrap: anywhere; }
.store-contact-wechat input { flex-basis: 100%; min-width: 0; }
.store-contact-feedback { flex-basis: 100%; margin: 0; color: var(--muted); }

.nav-icon { display: none; }
.storefront :is(.selector-panel, #generation, #generation-title, .summary-panel, .product-images, #main) {
  scroll-margin-block-start: var(--store-header-offset);
}
.storefront .summary-panel { top: var(--store-header-offset); }

.storefront .button {
  border-radius: 999px;
  transition: background .18s, border-color .18s, box-shadow .18s, transform .18s ease-out;
}
.storefront .button:not(:disabled):active { transform: scale(.97); }

.storefront .hero { min-height: clamp(315px, 35vw, 420px); border-radius: 30px; }
.storefront .hero-visual { inset-inline-start: 24%; background-position: 63% 55%; }
.generic-hero .hero-visual {
  inset: 0;
  background: radial-gradient(ellipse at 78% 30%, #4b83e3 0%, #1a4181 48%, #04123b 76%);
}
.storefront .hero-content { width: min(64%, 650px); padding: 42px 20px 48px clamp(30px, 5vw, 66px); }
.storefront .hero h1 { text-wrap: balance; overflow-wrap: anywhere; text-shadow: 0 1px 12px rgb(3 14 41 / 52%); }
.storefront .hero-caption { max-width: 28rem; color: #edf3ff; overflow-wrap: anywhere; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.hero-actions .hero-button { margin: 0; min-height: 44px; }
.hero-actions .hero-details {
  min-height: 44px;
  color: #fff;
  background: #1d3765;
  border-color: rgb(209 225 255 / 46%);
}
.hero-actions .hero-details:hover { background: #294878; }
.storefront-chevron {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline: 0 2px;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}
.storefront .hero-credit { border-radius: 999px; }
.storefront .campaign-hero {
  display: grid;
  grid-template: "content art" auto / minmax(0, .82fr) minmax(0, 1.18fr);
  min-height: clamp(330px, 35vw, 420px);
  border: 1px solid #dfe4ed;
  background-color: #f6f8fc;
  background-image: radial-gradient(ellipse 47% 77% at 73% 47%, #fff, rgb(223 232 246 / 53%) 48%, transparent),
    linear-gradient(144deg, #fcfdff 13%, #eff3f8 69%, #f8f9fc);
  color: var(--ink);
}
.storefront .campaign-hero::after { content: none; }
.campaign-content { grid-area: content; align-self: center; padding: 27px clamp(23px, 4vw, 54px); }
.campaign-copy { padding-bottom: 22px; }
.campaign-product { margin-bottom: 11px; color: var(--muted); font-size: .875rem; font-weight: 650; letter-spacing: .04em; }
.storefront .campaign-hero h1 {
  font-size: clamp(2.7rem, 5.45vw, 4.55rem);
  font-weight: 820;
  line-height: 1.03;
  letter-spacing: -.055em;
  text-shadow: none;
}
.storefront .campaign-hero .hero-caption { margin-top: 15px; color: var(--muted); font-size: 1.0625rem; }
.campaign-art {
  grid-area: art;
  align-self: center;
  min-width: 0;
  margin: 12px 12px 12px 0;
}
.campaign-art .hero-custom-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 560px;
  margin-inline: auto;
  object-fit: contain;
}
.storefront .campaign-art .hero-credit {
  position: static;
  padding: 4px 10px;
  color: var(--muted);
  background: transparent;
  font-size: .6875rem;
  text-align: right;
}
.campaign-purchase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 21px;
}
.hero-price { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.hero-price-label { color: var(--muted); font-size: .75rem; font-weight: 650; }
.hero-price-value { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.hero-price-value strong {
  font: 800 clamp(1.45rem, 3.2vw, 2rem)/1 var(--numeric);
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.hero-price-value small { color: var(--muted); font-size: .75rem; }
.campaign-purchase .hero-actions { flex-wrap: nowrap; margin: 0; }
.storefront .campaign-hero .hero-button,
.storefront.shop-page .mobile-purchase .button.primary:not(:disabled, .stock-purchase) {
  color: #fff;
  background-color: #0955c9;
  background-image: linear-gradient(155deg, #1768df, #064fbf 76%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 26%), 0 4px 15px rgb(5 74 185 / 19%);
}
.storefront .campaign-hero .hero-button:hover,
.storefront.shop-page .mobile-purchase .button.primary:not(:disabled, .stock-purchase):hover {
  background-image: linear-gradient(155deg, #0b5bd1, #0648ae 76%);
}
.storefront .campaign-hero .hero-details {
  background: transparent;
  border-color: transparent;
  color: var(--blue);
  padding-inline: 8px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.storefront .campaign-hero .hero-details:hover { background: var(--blue-pale); color: var(--blue-deep); }
.storefront .segmented, .storefront .stepper { border-radius: 999px; }
.storefront .segmented button { border-radius: 999px; }
.storefront .model-button { position: relative; }
.storefront .model-button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: 9px 10px auto auto;
  width: 6px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.storefront .uploaded-thumb { object-fit: contain; object-position: center; background: #f0f2f5; }
.product-thumb-empty { display: none; }
.model-grid + .empty-product-options, [hidden] + .model-grid { margin-top: 16px; }
.empty-product-options { color: var(--muted); }
.summary-product-link { text-decoration: underline; text-underline-offset: 3px; }
.storefront :is(.checkout-bundle p, .selected-product p, .order-list-item strong) { overflow-wrap: anywhere; }

.unit-pricing { margin-top: 11px; }
.unit-pricing-values { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 7px; }
.unit-pricing-values strong { color: var(--blue); font: 800 1.46rem/1.16 var(--numeric); font-variant-numeric: tabular-nums; }
.unit-pricing-values :is(.unit-label, del) { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.unit-pricing-values del { font-variant-numeric: tabular-nums; }
.discount-badge, .stock-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 740;
  line-height: 1.2;
  white-space: nowrap;
}
.discount-badge { gap: 5px; padding: 3px 8px; background: #fff0e6; color: #813917; border-color: #f8d9c6; }
.discount-badge b { padding-inline-start: 5px; border-inline-start: 1px solid #e6b79a; font-size: .8125rem; white-space: nowrap; }
.discount-badge.timed-discount { background: #ffe6d8; color: #882d14; border-color: #f1b79b; }
.promotion-deadline { color: #833d22; margin-top: 5px; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.stock-badge { border-color: #efd37a; background: #fff3c1; color: #654811; }
.stock-badge.sold-out { border-color: #e2e7ef; background: #eef1f6; color: #4c5c75; }
.variant-button .sold-out-text { color: #596579; }
.storefront .option-sold-out, .storefront .option-sold-out:hover {
  color: #495365;
  background: #edf0f4;
  border-color: #d5dbe4;
}
.storefront .option-sold-out[aria-pressed="true"] {
  color: #394457;
  background: #e6eaf0;
  border-color: #808da0;
  box-shadow: inset 0 0 0 1px #808da0;
}
.storefront .button.primary.sold-out-purchase:disabled { border-color: #dce0e6; background: #e2e5ea; color: #4d586a; opacity: 1; }
.storefront .button.primary.stock-purchase:enabled { border-color: #dfaa26; background: #ffcf53; color: #382600; }
.storefront .button.primary.stock-purchase:enabled:hover { border-color: #cb9317; background: #f3bf37; }
.quantity-caption { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 7px; }
.selection-stock { margin-top: 9px; }

.checkout-unit-row { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 5px 8px; margin-top: 10px; }
.checkout-unit-row .unit-pricing { margin: 0; }
.checkout-unit-row > :empty { display: none; }
.region-picker { display: grid; gap: 5px; min-width: 0; }
.region-picker > p:first-child { font-size: .9375rem; font-weight: 680; }
.region-selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.region-selects > div { min-width: 0; }
.region-selects select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 6px 5px;
  border: 1px solid #d5dfee;
  border-radius: 9px;
  background: #fcfdff;
  color: var(--ink);
  font: 500 1rem var(--font);
  text-overflow: ellipsis;
}
.region-selects select:disabled { background: #f2f5fa; color: var(--muted); opacity: 1; }
.region-trigger {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  padding: 8px 13px 8px 9px;
  border: 1px solid #d1dcef;
  border-radius: 14px;
  background: #f9fbff;
  text-align: start;
  color: var(--muted);
  font-weight: 580;
  line-height: 1.4;
}
.region-trigger.has-region { color: var(--ink); font-weight: 680; }
.region-trigger:disabled { opacity: .72; }
.region-trigger:enabled:hover { border-color: #a8bdea; background: #f3f7ff; }
.region-trigger[aria-invalid="true"] { border-color: #b13a37; }
.region-trigger .storefront-chevron { color: #536b96; }
#checkout-region-value { overflow-wrap: anywhere; }
.region-pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #e8efff;
  color: var(--blue);
}
.region-pin::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 1.6px solid;
  border-radius: 50% 50% 2px 50%;
  transform: translateY(-2px) rotate(45deg);
}
.region-pin::after { content: ""; position: absolute; top: 13px; left: 15px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

.region-sheet {
  --region-gutter: 18px;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(460px, calc(100% - 32px));
  height: min(540px, calc(var(--region-visible-height, 100vh) - 32px));
  max-width: none;
  max-height: none;
  overflow: hidden;
  border: 1px solid #e3eaf6;
  border-radius: 26px;
  padding: 0;
  background: #f8faff;
  color: var(--ink);
  box-shadow: 0 24px 70px rgb(12 28 58 / 27%);
}
.region-sheet:not([open]) { display: none; }
.region-sheet::backdrop { background: rgb(13 27 49 / 43%); backdrop-filter: blur(3px); }
.storefront:has(.region-sheet[open]) { overflow: hidden; }
.region-sheet-layout { display: flex; flex-direction: column; height: 100%; }
.region-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--region-gutter) 10px;
}
.region-sheet-header h2 { font-size: 1.25rem; font-weight: 790; letter-spacing: -.025em; }
.region-sheet-close {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eaf0f8;
  color: var(--subtle);
  font: 530 1.55rem/1 var(--font);
}
.region-sheet-close:hover { background: #dfe8f7; }
.region-steps {
  display: flex;
  gap: 4px;
  margin: 0 var(--region-gutter) 12px;
  padding: 4px;
  border-radius: 15px;
  background: #eaf0f8;
}
.region-step {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 6px 7px;
  border-radius: 11px;
  background: transparent;
  color: var(--subtle);
  font-size: .9rem;
  font-weight: 680;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.region-step:disabled { color: var(--muted); }
.region-step[aria-current="step"] { background: #fff; color: var(--blue); box-shadow: 0 2px 6px rgb(22 48 94 / 12%); }
.region-search {
  position: relative;
  display: grid;
  margin: 0 var(--region-gutter) 12px;
  min-width: 0;
}
.region-search > i {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 13px;
  height: 13px;
  border: 1.7px solid var(--muted);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.region-search > i::after { content: ""; position: absolute; width: 6px; height: 1.7px; right: -4px; bottom: -2px; transform: rotate(45deg); background: var(--muted); border-radius: 1px; }
.storefront .region-search input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px 8px 38px;
  border: 1px solid #dae4f2;
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
}
.storefront .region-search input::placeholder { color: var(--muted); }
.region-sheet-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 0 var(--region-gutter) 15px;
}
.region-options {
  list-style: none;
  margin: 0;
  padding: 4px;
  border: 1px solid #e5ebf5;
  border-radius: 15px;
  background: #fff;
}
.region-options li + li { border-top: 1px solid #eff2f8; }
.region-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 49px;
  padding: 7px 11px;
  border-radius: 10px;
  background: transparent;
  text-align: start;
  overflow-wrap: anywhere;
  font-weight: 570;
}
.region-option > i { flex: none; }
.region-option .storefront-chevron { color: #5d7197; }
.region-option[aria-current="true"] { background: var(--blue-pale); color: var(--blue-deep); font-weight: 740; }
.region-option:focus-visible, .region-step:focus-visible { outline-offset: -3px; }
.region-option-check { width: 7px; height: 12px; margin-right: 3px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(44deg); }
.region-empty { padding: 26px 10px; color: var(--muted); text-align: center; }
@media (hover: hover) {
  .region-option:not([aria-current]):hover { background: #f2f6fe; }
  .region-step:enabled:not([aria-current]):hover { color: var(--blue); }
}
@media (max-width: 660px), (max-height: 500px) {
  .region-sheet {
    --region-gutter: max(15px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    inset: auto 0 var(--region-viewport-bottom, 0px);
    margin: 0;
    width: 100%;
    height: min(536px, 78vh);
    height: min(536px, 78dvh, calc(var(--region-visible-height, 100dvh) - env(safe-area-inset-top, 0px) - 10px));
    border-radius: 25px 25px 0 0;
  }
  .region-sheet-scroll { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: no-preference) {
  .region-sheet[open] { animation: region-sheet-rise .27s cubic-bezier(.18, .78, .24, 1) both; }
  .region-sheet[open]::backdrop { animation: region-backdrop-in .2s ease-out both; }
  .region-trigger { transition: background .16s, border-color .16s, transform .16s ease-out; }
  .region-trigger:enabled:active { transform: scale(.985); }
}
@keyframes region-sheet-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes region-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
.region-status, .checkout-privacy { color: var(--muted); font-size: .8125rem; }
.region-picker > .button { justify-self: start; min-height: 44px; }
.storefront .checkout-fields :is(.checkout-field input, .checkout-field textarea, .region-selects select, .region-trigger) { scroll-margin-block-start: var(--store-header-offset); }
.checkout-privacy { margin: 14px 0 7px; }
.checkout-privacy a { display: inline-block; padding-block: 5px; text-decoration: underline; text-underline-offset: 2px; }
#checkout-stock-retry { margin-top: 2px; min-height: 44px; }

.wechat-payment {
  display: grid;
  gap: 7px;
  margin-top: 13px;
  padding: 11px;
  border: 1px solid #cfe8db;
  border-radius: 15px;
  background: #f0f9f3;
}
.wechat-payment .button { color: white; background: #087642; border-color: #087642; }
.wechat-payment .button:hover { background: #066537; border-color: #066537; }
.wechat-payment p { color: #256044; font-size: .875rem; text-align: center; }

.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 9px;
  margin-top: 13px;
}
.payment-method {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: clamp(10px, 2.3vw, 15px);
  border: 1px solid #dce6f3;
  border-radius: 15px;
  background: #f6f9fe;
}
.payment-method h2 { font-size: 1rem; font-weight: 780; }
.payment-method p { color: var(--muted); font-size: .875rem; }
.payment-scan #payment-qr {
  display: block;
  justify-self: center;
  width: min(192px, 100%);
  height: auto;
  aspect-ratio: 1;
  background: white;
  border: 1px solid #e5ebf4;
  border-radius: 12px;
}
.payment-method-buttons { display: grid; gap: 7px; margin-top: 2px; }
.payment-method-buttons .button { white-space: normal; }

.shipment-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px 12px;
  margin-block: 0 14px;
  padding: 12px;
  border: 1px solid #cfe4da;
  border-radius: 17px;
  background: #f0f8f4;
}
.shipment-info { display: grid; min-width: 0; grid-template-columns: 35px minmax(0, 1fr); align-items: center; gap: 9px; }
.shipment-info div { display: grid; min-width: 0; gap: 2px; overflow-wrap: anywhere; }
.shipment-info div > span { color: #245840; font-size: .8125rem; font-weight: 720; }
.shipment-info strong { font: 720 1rem/1.28 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.shipment-info small { color: #4e675d; font-size: .75rem; }
.shipment-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 12px; background: #dbefe3; color: #2d6c4e; }
.shipment-icon::before { content: ""; width: 16px; height: 14px; border: 1.5px solid currentColor; border-radius: 3px; background: linear-gradient(currentColor, currentColor) center top / 1px 5px no-repeat; }
.shipment-card .button { min-width: 78px; min-height: 44px; color: #245840; border-color: #c0dccc; padding-inline: 10px; }
.shipment-card .button:hover { background: #e6f5ec; }
.shipment-card :is(.shipment-copy-input, .shipment-copy-feedback, .shipment-tracking) { grid-column: 1 / -1; }
.shipment-copy-feedback { font-size: .8125rem; color: #245840; }
.shipment-tracking { min-width: 0; border-top: 1px solid #cfe4da; }
.shipment-tracking summary { min-height: 44px; padding: 11px 2px; color: #245840; font-weight: 720; cursor: pointer; }
.shipment-tracking-status { margin: 0 0 10px; color: #245840; font-size: .875rem; font-weight: 680; }
.shipment-timeline { margin: 4px 0 4px 5px; padding: 0; list-style: none; }
.shipment-timeline li { position: relative; border-left: 1px solid #b0ccbd; padding: 0 0 12px 14px; overflow-wrap: anywhere; }
.shipment-timeline li:last-child { border-color: transparent; padding-bottom: 1px; }
.shipment-timeline li::before { content: ""; position: absolute; top: 6px; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: #608c75; }
.shipment-timeline li:first-child::before { background: #245840; }
.shipment-timeline small { color: #4e675d; font-size: .75rem; }
.shipment-timeline p { margin: 2px 0 0; font-size: .875rem; line-height: 1.45; }
.shipment-compact { margin: 0 13px 13px; }

.product-images {
  width: min(100%, 830px);
  margin: clamp(18px, 3vw, 36px) auto 0;
  overflow: hidden;
}
.product-images-heading {
  align-items: center;
  gap: 12px;
  padding: clamp(10px, 2.2vw, 18px) clamp(13px, 3vw, 24px);
}
.product-images-heading h2 { font-size: clamp(1.2rem, 3.6vw, 1.55rem); }
.product-images-heading .button { flex: none; min-height: 44px; padding-inline: 13px; }
.product-image-sequence { background: #131e2d; }
.product-image-sequence > img {
  display: block;
  width: 100%;
  height: auto;
}
.product-detail-copy {
  padding: 14px clamp(13px, 3vw, 24px) 16px;
  color: var(--subtle);
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.store-catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 245px), 1fr)); gap: 14px; }
.store-product-card { overflow: hidden; display: flex; flex-direction: column; color: var(--ink); }
.store-product-card:hover { border-color: #8eabeb; }
.store-product-card > img { width: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.store-product-card-copy { flex: 1; display: grid; align-content: center; gap: 7px; padding: clamp(16px, 2.7vw, 24px); }
.store-product-card-copy h2 { font-size: 1.22rem; overflow-wrap: anywhere; }
.store-product-card-copy p { color: var(--muted); overflow-wrap: anywhere; }
.store-product-card-copy span { display: flex; align-items: center; gap: 4px; color: var(--blue); font-size: .875rem; font-weight: 700; }

.storefront {
  --page: #f3f5f8;
  --paper: #fff;
  --ink: #11151e;
  --muted: #515b6b;
  --subtle: #333d4c;
  --line: #dce3ed;
  --blue: #0758c6;
  --blue-deep: #0646a3;
  --blue-pale: #edf4ff;
  --store-inset: #edf1f6;
  --store-raised: #f7f9fc;
  --shadow: 0 8px 26px rgb(36 52 82 / 7%);
  background: radial-gradient(ellipse 95% 545px at 72% 0, #fff, transparent 100%), var(--page);
  -webkit-tap-highlight-color: rgb(7 88 198 / 16%);
}
.storefront .topbar { background: rgb(248 250 253 / 94%); }
.storefront .brand img {
  background: linear-gradient(150deg, #fff, #edf2f9);
  border: 1px solid #e2e8f1;
  border-radius: 11px;
  padding: 3px;
}
.storefront :focus-visible { outline-color: var(--blue); }
.storefront.shop-page .hero { box-shadow: var(--shadow); }
.storefront.shop-page .uploaded-thumb { background: var(--store-inset); }
.storefront.shop-page .store-notice {
  background: var(--store-raised);
  color: var(--ink);
  border: 1px solid var(--line);
}
.storefront.shop-page :is(.segmented, .bundle-options, .quantity-line) { background: var(--store-inset); }
.storefront.shop-page .segmented button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--blue);
  box-shadow: 0 2px 7px rgb(34 52 78 / 12%);
}
@supports selector(:has(*)) {
  .storefront.shop-page .segmented {
    --segment-index: 0;
    position: relative;
    isolation: isolate;
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    width: min(100%, 278px);
  }
  .storefront.shop-page .segmented::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 4px auto 4px 4px;
    width: calc((100% - 16px) / 3);
    border-radius: 999px;
    background: var(--paper);
    box-shadow: 0 1px 5px rgb(34 52 78 / 14%), inset 0 0 0 1px rgb(255 255 255 / 90%);
    transform: translateX(calc(var(--segment-index) * (100% + 4px)));
    transition: transform 230ms cubic-bezier(.22, .85, .25, 1);
  }
  .storefront.shop-page .segmented:has([data-category="erev"][aria-pressed="true"]) { --segment-index: 1; }
  .storefront.shop-page .segmented:has([data-category="ev"][aria-pressed="true"]) { --segment-index: 2; }
  .storefront.shop-page .segmented button[aria-pressed="true"] { background: transparent; box-shadow: none; }
}
.storefront.shop-page :is(.model-button, .variant-button, .button.subtle, .button.outline) {
  background: var(--store-raised);
  border-color: var(--line);
  color: var(--ink);
}
.storefront.shop-page :is(.model-button, .variant-button, .button.subtle, .button.outline):hover { border-color: #9badca; }
.storefront.shop-page :is(.model-button, .variant-button)[aria-pressed="true"] {
  background: var(--blue-pale);
  border-color: #6899df;
  color: var(--blue-deep);
  box-shadow: inset 0 0 0 1px rgb(94 148 218 / 19%);
}
.storefront.shop-page :is(.bundle-options b, .parts-list li > b, .section-label) { color: var(--blue-deep); }
.storefront.shop-page .button.primary:disabled { background: #e9edf2; border-color: #dce2ec; color: #526074; }
.storefront.shop-page .option-sold-out { background: #edf0f4; color: #536173; }
.storefront.shop-page .option-sold-out[aria-pressed="true"] {
  background: #e8ecf2;
  border-color: #8795aa;
  color: #3f4b5e;
  box-shadow: inset 0 0 0 1px rgb(135 149 170 / 25%);
}

@supports ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .storefront .topbar, .storefront .mobile-purchase, .storefront .topnav {
    background: rgb(249 251 254 / 86%);
    -webkit-backdrop-filter: saturate(155%) blur(18px);
    backdrop-filter: saturate(155%) blur(18px);
  }
  .hero-actions .hero-details {
    background: rgb(15 35 76 / 66%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}
@media (min-width: 641px) {
  .storefront .topnav { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .storefront.shop-page .nav-order { background: var(--store-raised); }
}

@media (max-width: 800px) {
  .storefront .hero { min-height: 302px; }
  .storefront .hero-content { width: 66%; }
}

@media (max-width: 640px) {
  .storefront {
    --store-header-offset: calc(73px + env(safe-area-inset-top, 0px));
    --store-nav-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .storefront .topbar { background: #fbfcfe; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .storefront .topnav, .storefront .mobile-purchase {
    position: fixed;
    inset-inline: max(10px, env(safe-area-inset-left, 0px)) max(10px, env(safe-area-inset-right, 0px));
    border: 1px solid #dbe3ee;
    box-shadow: 0 6px 22px rgb(26 49 81 / 15%), inset 0 1px 0 #fff;
  }
  .storefront .topnav {
    bottom: var(--store-nav-bottom);
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: min(100% - 20px, 440px);
    margin-inline: auto;
    padding: 4px;
    gap: 3px;
    border-radius: 999px;
    background-color: rgb(249 251 254 / 96%);
  }
  .storefront .topnav a {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 46px;
    gap: 3px;
    padding: 4px 3px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: .75rem;
    line-height: 1.2;
    transition: background .18s, color .18s, transform .18s ease-out;
  }
  .storefront .topnav a:active { transform: scale(.96); }
  .storefront .topnav a[aria-current] { background: #e3ebfb; color: #1a44ac; }
  .storefront.shop-page :is(.topnav, .mobile-purchase) {
    background: #f9fbfe;
    border-color: rgb(255 255 255 / 93%);
    box-shadow: 0 10px 30px rgb(27 46 76 / 15%), inset 0 1px 1px #fff, inset 0 -1px 0 rgb(120 144 179 / 28%);
  }
  @supports ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
    .storefront.shop-page :is(.topnav, .mobile-purchase) {
      background: linear-gradient(156deg, rgb(255 255 255 / 93%), rgb(247 250 255 / 77%));
      -webkit-backdrop-filter: saturate(160%) blur(20px);
      backdrop-filter: saturate(160%) blur(20px);
    }
  }
  .storefront.shop-page .topnav a[aria-current] {
    background-color: #eaf1fb;
    background-image: linear-gradient(160deg, #f8fbff, #e4edf9);
    color: var(--blue);
    box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgb(126 156 198 / 26%), 0 1px 5px rgb(30 72 137 / 10%);
  }
  .storefront .topnav .receipt-icon { display: inline-block; height: 15px; color: inherit; }
  .storefront .nav-icon { position: relative; display: inline-block; width: 16px; height: 15px; }
  .grid-icon {
    border: 1.5px solid currentColor;
    border-radius: 3px;
    background: linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat,
      linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
  }
  .package-icon { border: 1.5px solid currentColor; border-radius: 3px; }
  .package-icon::before { content: ""; position: absolute; inset: 0 4px auto; height: 5px; border: 1px solid currentColor; border-top: 0; border-radius: 0 0 2px 2px; }
  .choose-icon { border: 1.5px solid currentColor; border-radius: 50%; width: 15px; }
  .choose-icon::before { content: ""; position: absolute; inset: 2px auto auto 4px; width: 4px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
  .storefront.checkout-page .topnav { display: none; }
  .storefront .hero { min-height: 283px; border-radius: 25px; }
  .storefront .hero-content { width: 100%; padding: 27px 21px 53px; }
  .storefront .hero h1 { max-width: 10em; font-size: clamp(2.05rem, 7.6vw, 3.3rem); }
  .storefront .hero-visual { inset-inline-start: 22%; background-position: 67% center; }
  .storefront .hero::after { background: linear-gradient(90deg, #04123b 0%, rgb(4 18 59 / 96%) 28%, rgb(4 18 59 / 72%) 58%, rgb(4 18 59 / 21%) 100%); }
  .storefront .hero-caption { max-width: 16rem; }
  .hero-actions { margin-top: 16px; }
  .hero-actions .button { padding: 8px 13px; font-size: .875rem; }
  .storefront .hero-credit { inset: auto 11px 10px auto; }
  .storefront .campaign-hero {
    grid-template: "copy" auto "art" auto "purchase" auto / minmax(0, 1fr);
    min-height: 0;
    padding: 0;
    background-image: radial-gradient(ellipse 77% 51% at 50% 55%, #fff, rgb(222 231 245 / 52%) 57%, transparent),
      linear-gradient(155deg, #fcfdff 12%, #f0f3f8 80%, #f9fbfd);
  }
  .campaign-content { display: contents; }
  .campaign-copy { grid-area: copy; padding: 16px 17px 7px; }
  .campaign-product { margin-bottom: 5px; font-size: .75rem; }
  .storefront .campaign-hero h1 { max-width: none; font-size: clamp(1.9rem, 8.65vw, 2.65rem); }
  .storefront .campaign-hero .hero-caption { margin-top: 7px; max-width: none; font-size: .875rem; }
  .campaign-art { margin: 3px 0 0; }
  .campaign-art .hero-custom-image { width: 100%; max-height: none; }
  .campaign-purchase {
    grid-area: purchase;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 7px;
    padding: 10px 10px 10px 15px;
    border-top: 1px solid #e1e7ef;
    background: #fcfdff;
  }
  .campaign-purchase .hero-actions { gap: 3px; }
  .campaign-purchase .hero-button { padding-inline: 13px; font-size: .85rem; white-space: nowrap; }
  .storefront .campaign-hero .hero-details { min-width: 44px; padding-inline: 5px; font-size: .8rem; white-space: nowrap; }
  .storefront.shop-page .segmented { width: 100%; }
  .storefront .mobile-purchase {
    bottom: calc(var(--store-nav-bottom) + 62px);
    width: min(100% - 20px, 440px);
    margin-inline: auto;
    padding: 7px 7px 7px 12px;
    border-radius: 24px;
  }
  .storefront.shop-page .mobile-purchase {
    transition: opacity 190ms ease-out, transform 230ms cubic-bezier(.22, .85, .25, 1), visibility 190ms;
  }
  .storefront.hero-actions-visible .mobile-purchase:not([data-has-selection]) {
    visibility: hidden;
    opacity: 0;
    transform: translateY(7px);
    pointer-events: none;
  }
  .storefront .mobile-base { width: 100%; gap: 8px; }
  .storefront .mobile-base > .button { min-width: 107px; min-height: 46px; padding-inline: 12px; }
  .storefront .mobile-selection > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .storefront.shop-page .footer { padding-bottom: calc(149px + env(safe-area-inset-bottom, 0px)); }
  .storefront:not(.checkout-page):not(.shop-page) .footer { padding-bottom: calc(77px + env(safe-area-inset-bottom, 0px)); }
  .storefront.shop-page :is(#generation, #generation-title, .summary-panel) {
    scroll-margin-block-end: calc(144px + env(safe-area-inset-bottom, 0px));
  }
  .shipment-card { padding: 8px; gap: 6px; }
  .shipment-info { grid-template-columns: 31px minmax(0, 1fr); gap: 7px; }
  .shipment-icon { width: 31px; height: 31px; border-radius: 10px; }
  .shipment-info strong { font-size: .875rem; }
  .shipment-card .button { min-width: 76px; }
}

@media (max-width: 480px) {
  .region-selects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region-selects > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 370px) {
  .region-selects { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-transparency: reduce) {
  .storefront.shop-page :is(.topnav, .mobile-purchase) {
    background: #f9fbfe;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .storefront :is(.hero:not(.campaign-hero), .checkout-heading, .campaign-art .hero-custom-image) {
    animation: storefront-enter .2s ease-out both;
  }
}
@keyframes storefront-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
