/* hebrew */
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/assistant-hebrew.woff2") format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
/* latin-ext */
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/assistant-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/assistant-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Stitch home screen, adapted to the store's existing catalog and handoff. */
.digital-store {
  --ink: #0d0e11;
  --muted: #5a606e;
  --blue: #1d4ed8;
  --line: #e2e4e9;
  --panel: #f7f8f9;
  color: var(--ink);
  background: #fff;
  --store-font-fallback: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-family: "Assistant", var(--store-font-fallback);
  letter-spacing: .025em;
}

html:lang(zh-TW) .digital-store,
html:lang(zh-HK) .digital-store {
  --store-font-fallback: "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

.digital-store :is(button, input, select, textarea) {
  font-family: inherit;
}

.digital-store .wrap {
  max-width: 1280px;
  padding-inline: clamp(16px, 4vw, 54px);
}

.digital-store .wrap > header {
  min-height: 60px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}

.digital-store .brand {
  color: var(--ink);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: .01em;
}

.digital-store #language {
  min-height: 40px;
  padding: 7px 9px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 13px;
}

.digital-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
  padding-block: clamp(18px, 3.8vw, 54px);
}

.digital-hero-copy {
  min-width: 0;
}

.digital-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
}

.digital-hero h1 {
  margin: 7px 0;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: .01em;
  text-align: start;
  overflow-wrap: anywhere;
}

[dir=rtl] .digital-hero h1 {
  text-align: right;
}

.digital-hero p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.9vw, 20px);
  line-height: 1.45;
}

#digital-gallery-open,
.digital-store .gate #browse,
.digital-store .featured-detail .primary {
  min-height: 44px;
  padding: 9px 17px;
  color: white;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 0;
  font-size: 13px;
  font-weight: 650;
}

#digital-gallery-open {
  margin-top: 14px;
}

.digital-hero-image {
  display: block;
  width: 100%;
  height: clamp(240px, 32vw, 410px);
  padding: clamp(10px, 1.8vw, 25px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.digital-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.digital-hero-image img[src*="/iphoneduo/colors/"] {
  transform: translateY(-20%) scale(1.43);
}

.digital-hero-image img[src*="/iphone17/store/"] {
  transform: scale(1.28);
}

.digital-models:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.digital-models button {
  min-height: 48px;
  padding: 6px 5px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: #fff;
  font-size: clamp(11px, 2.8vw, 14px);
  font-weight: 650;
}

.digital-models button[aria-pressed="true"] {
  border-bottom-color: var(--ink);
  color: var(--ink);
  background: var(--panel);
}

.digital-store .gate.hero {
  min-height: 0;
  margin-top: clamp(18px, 3vw, 30px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  color: var(--ink);
}

.digital-store .gate .hero-copy {
  padding: clamp(13px, 2.5vw, 24px);
}

.digital-store .gate .eyebrow {
  padding: 0;
  color: var(--muted);
  background: none;
  font-size: 11px;
}

.digital-store .gate h2 {
  margin: 6px 0 0;
  font-size: clamp(21px, 3vw, 31px);
  line-height: 1.15;
}

.digital-store .gate #heroPrice:empty {
  display: none;
}

.digital-store .gate #gateTerms {
  margin: 6px 0;
  color: var(--muted);
  font-size: 12px;
}

.digital-store .gate #browse {
  width: auto;
  margin: 4px 0 0;
  color: var(--ink);
  border-color: var(--ink);
  background: white;
}

.digital-store .gate .hero-tiles {
  gap: 7px;
  padding-block: 12px;
}

.digital-store .gate-pick {
  border-color: var(--line);
  border-radius: 0;
  color: var(--ink);
}

.digital-store .gate-pick img {
  height: 98px;
  border-radius: 0;
  background: white;
}

.digital-store .gate-pick-bottom span:first-child {
  color: var(--muted);
  font-size: 10px;
}

.digital-store #catalog {
  margin-top: clamp(20px, 4vw, 44px);
}

.digital-store #catalog .tools,
.digital-store #catalog .section-head {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.digital-store #catalog .card,
.digital-store #search,
.digital-store #catalog .outline,
.digital-store .config-select {
  border-color: var(--line);
  border-radius: 0;
  box-shadow: none;
}

.digital-store #catalog .card .pic {
  background: var(--panel);
}

.digital-store #catalog .outline {
  color: var(--ink);
}

.digital-store .bottom-categories {
  border-color: var(--line);
  background: #fff;
}

.digital-store .bottom-categories .tabs button {
  border-color: var(--line);
  border-radius: 0;
  color: var(--muted);
  background: white;
}

.digital-store .bottom-categories .tabs button.active {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.digital-store #dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}

.digital-store .featured-detail,
.digital-store .featured-detail h2 {
  color: var(--ink);
}

.digital-store .featured-gallery .detail-image {
  border-radius: 0;
  background: white;
}

.phone-preview-detail .color-picks {
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
}

.digital-store .color-pick {
  border-radius: 0;
}

.digital-store .color-pick[aria-pressed="true"] {
  border-color: var(--blue);
  background: #f2f6ff;
}

.phone-preview-detail .featured-actions {
  padding-top: 5px;
}

.phone-extra-photo {
  margin-block: 8px;
  color: var(--ink);
  font-size: 13px;
}

.phone-extra-photo summary {
  min-height: 44px;
  padding: 12px 4px;
  cursor: pointer;
}

.phone-extra-photo img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 700px) {
  .digital-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding-block: 14px 18px;
  }

  .digital-hero-image {
    order: -1;
    height: clamp(184px, 59vw, 296px);
  }

  .digital-hero-copy {
    padding-inline: 3px;
  }

  .digital-store .gate .hero-copy {
    padding-bottom: 0;
  }

  .digital-store .gate .hero-tiles {
    padding: 9px 10px 11px;
  }

  .digital-store .gate-pick img {
    height: 62px;
  }
}

.digital-store .gate #heroPrice:not(:empty) {
  margin-top: 5px;
  color: var(--ink);
  font-size: clamp(31px, 6vw, 47px);
}

.digital-store .catalog-price-layout {
  color: var(--muted);
}

.digital-store .catalog-price-layout strong {
  color: var(--ink);
}

.digital-store .featured-price-panel.catalog-price-layout {
  border-color: var(--line);
  border-radius: 0;
  background: var(--panel);
}

.digital-store .catalog-price-layout .featured-price,
.digital-store .catalog-price-layout .featured-terms {
  color: var(--muted);
}

.safari-contact h2 {
  margin: 0 0 8px;
}

#contactIntro, #contactPreview {
  color: var(--muted);
  line-height: 1.55;
}

#contactIntro {
  margin: 0 0 18px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  background: #f6f8fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-item img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 5px;
  background: #fff;
}

.contact-item strong, .contact-item span {
  display: block;
  overflow-wrap: anywhere;
}

.contact-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

#contactStage {
  margin-top: 18px;
}

.contact-timer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.contact-timer bdi {
  color: #175bd9;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.contact-timer strong {
  font-size: 26px;
}

.contact-progress {
  width: 100%;
  height: 8px;
  accent-color: #175bd9;
}

#contactForm {
  display: grid;
  gap: 10px;
}

#contactForm input:not([type="checkbox"]),
#contactForm textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  min-height: 44px;
  border: 1px solid #858e9e;
  border-radius: 6px;
  font: inherit;
  font-size: 16px;
}

#contactPreview {
  margin: 12px 0;
  font-size: 13px;
}

#contactForm > label:not(.consent) {
  font-weight: 600;
}

.contact-delivery {
  padding: 10px 12px;
  background: #f6f8fb;
  border-radius: 6px;
  line-height: 1.55;
  font-size: 14px;
}

.contact-delivery p {
  margin: 0;
}

.contact-delivery p + p {
  margin-top: 6px;
}

#shippingAddressHint {
  color: var(--muted);
  line-height: 1.5;
}

.contact-receipt {
  padding: 16px;
  border: 1px solid #b9dbca;
  border-radius: 8px;
  background: #edf7f1;
  color: #153b28;
}

.contact-receipt h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.contact-receipt p {
  margin: 0;
  line-height: 1.55;
}

.digital-store .gate #gateHeadline {
  display: block;
  line-height: 1.2;
}

.guide-offer {
  line-height: 1.5;
  font-weight: 650;
}

.digital-store .featured-price-panel.catalog-price-layout p:first-child {
  margin: 0 0 5px;
  color: var(--ink);
}

.store-operator p {
  margin: 5px 0;
}

#merchantLabel {
  font-weight: 650;
}

.contact-operator {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.contact-operator span {
  display: block;
  font-weight: 650;
}

.digital-store .has-conditional-offer .hero-copy {
  container-type: inline-size;
}

.digital-store .has-conditional-offer #gateLead,
.digital-store .has-conditional-offer #gateTail {
  display: block;
  color: #313443;
  font-size: clamp(12px, 1.467vw, 16.667px);
  font-weight: 700;
  line-height: 1.4;
  text-wrap: balance;
}

.digital-store .has-conditional-offer #heroPrice:not(:empty) {
  display: block;
  margin: 4px 0;
  color: #a50e50;
  font-size: clamp(72px, 11vw, 132px);
  font-size: min(clamp(72px, 11vw, 132px), 32cqi);
  font-variant-numeric: lining-nums proportional-nums;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.035em;
}

@media (prefers-reduced-motion: no-preference) {
  .digital-store .has-conditional-offer #heroPrice.price-in-view {
    animation: offer-price-pop 540ms ease-in-out;
    transform-origin: left center;
  }

  [dir="rtl"] .digital-store .has-conditional-offer #heroPrice.price-in-view {
    transform-origin: right center;
  }
}

@keyframes offer-price-pop {
  0%, 100% { transform: scale(1); }
  48% { transform: scale(1.045); }
  76% { transform: scale(.995); }
}
