html.jc-modal-open { overflow: hidden; }

.jzh-store .jc-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.jzh-store .jc-dialog {
  --jc-soft: #f5ede6;
  --jc-promotional: #f8eff1;
  --jc-plain: var(--surface, #fffdfa);
  --jc-divider: var(--line, #e0d7cf);
  --jc-text: var(--ink, #2a2227);
  --jc-muted: var(--muted, #615759);
  --jc-primary: var(--accent, #6b3148);
  --jc-contrast: var(--accent-ink, #fff8f4);
  z-index: 20;
  inset: 0 0 0 auto;
  width: min(100%, 480px);
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  background: var(--jc-plain);
  color: var(--jc-text);
  font: 400 .92rem/1.45 var(--body, system-ui, sans-serif);
  box-shadow: 0 12px 52px #32172438;
}

.jzh-store .jc-dialog::backdrop { background: #1e141bad; }

.jzh-store .jc-dialog:is([data-screen="checkout"], [data-screen="confirmation"], [data-screen="receipt"]) {
  inset: 0;
  width: min(calc(100vw - 48px), 890px);
  height: max-content;
  max-height: calc(100dvh - 48px);
  margin: auto;
  border-radius: 17px;
}

.jzh-store .jc-dialog:is([data-screen="confirmation"], [data-screen="receipt"]) { width: min(calc(100vw - 48px), 620px); }
.jzh-store .jc-dialog :where(h2, h3, p, dl, dd, ul, fieldset) { margin: 0; }
.jzh-store .jc-dialog fieldset { min-inline-size: 0; }
.jzh-store .jc-dialog button { font: inherit; color: inherit; cursor: pointer; }
.jzh-store .jc-dialog button:disabled { cursor: default; }
.jzh-store .jc-dialog :where(button, input):focus-visible { outline: 2px solid var(--jc-primary); outline-offset: 3px; }
.jzh-store .jc-dialog [hidden] { display: none !important; }
.jzh-store .jc-dialog svg { flex-shrink: 0; }

.jzh-store .jc-panel {
  height: 100%;
  max-height: inherit;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.jzh-store .jc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  flex-shrink: 0;
  min-height: 74px;
  padding: max(10px, env(safe-area-inset-top)) 18px 10px 22px;
  border-bottom: 1px solid var(--jc-divider);
}

.jzh-store .jc-header h2 {
  font: 400 clamp(2rem, 4vw, 2.65rem)/.95 var(--display, Georgia, serif);
  margin-inline-end: auto;
  letter-spacing: -.028em;
}

.jzh-store .jc-header h2:focus { outline: none; }

.jzh-store .jc-icon, .jzh-store .jc-link, .jzh-store .jc-back, .jzh-store .jc-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  background: transparent;
  text-align: center;
}

.jzh-store .jc-icon { min-width: 44px; padding: 0; }
.jzh-store .jc-close { border-radius: 50%; background: var(--jc-soft); }
.jzh-store .jc-icon:hover:not(:disabled), .jzh-store .jc-back:hover { background: var(--jc-promotional); }
.jzh-store .jc-close:hover { color: var(--jc-primary); }
.jzh-store .jc-link { color: var(--jc-primary); padding: 0; font-size: .83rem !important; font-weight: 650 !important; }
.jzh-store .jc-link:hover { text-decoration: underline; text-underline-offset: .17em; }

.jzh-store .jc-back {
  min-width: 44px;
  padding: 0 10px;
  margin-left: -9px;
  border-radius: 7px;
  font-size: .81rem !important;
  font-weight: 600 !important;
}

.jzh-store .jc-button {
  min-height: 50px;
  padding: 9px 14px;
  border: 1px solid var(--jc-primary);
  border-radius: 7px;
  background: var(--jc-primary);
  color: var(--jc-contrast) !important;
  font-size: .88rem !important;
  font-weight: 650 !important;
}

.jzh-store .jc-button:hover:not(:disabled) { filter: brightness(1.1); }
.jzh-store .jc-button:disabled { color: var(--jc-muted) !important; border-color: var(--jc-divider); background: var(--jc-divider); }
.jzh-store .jc-button-secondary { color: var(--jc-primary) !important; background: none; }

.jzh-store .jc-scroll {
  min-height: 0;
  flex: 1 1 auto;
  padding: 16px 22px 23px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--jc-divider) transparent;
}

.jzh-store .jc-item-count { color: var(--jc-muted); font-size: .82rem; }
.jzh-store .jc-items { list-style: none; padding: 0; }

.jzh-store .jc-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid var(--jc-divider);
}

.jzh-store .jc-item-photo {
  width: 100%;
  aspect-ratio: .88;
  overflow: hidden;
  border-radius: 5px;
  background: var(--jc-soft);
}

.jzh-store .jc-item-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.jzh-store .jc-item-info h3, .jzh-store .jc-item-price { font-size: .88rem; font-weight: 650; }
.jzh-store .jc-item-info h3 > span { font-weight: 400; }
.jzh-store .jc-item-info p { margin: 3px 0 0; color: var(--jc-muted); font-size: .78rem; }
.jzh-store .jc-item-info p span { padding: 0 3px; }
.jzh-store .jc-item-price { text-align: end; }
.jzh-store .jc-item-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0 10px; margin-top: 6px; }

.jzh-store .jc-quantity {
  display: grid;
  grid-template-columns: 44px minmax(19px, auto) 44px;
  place-items: center;
  border: 1px solid var(--jc-divider);
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
}

.jzh-store .jc-quantity .jc-icon:disabled { opacity: .34; }
.jzh-store .jc-line-links { display: flex; align-items: center; gap: 4px; }
.jzh-store .jc-dialog .jc-item-link { min-width: 44px; color: var(--jc-primary); font-size: .74rem !important; }
.jzh-store .jc-item-gift .jc-item-photo { background: var(--jc-promotional); }
.jzh-store .jc-item-gift img { object-fit: contain; }
.jzh-store .jc-item-gift .jc-item-price { color: var(--jc-primary); }

.jzh-store .jc-empty, .jzh-store .jc-account {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 15px 0;
}

.jzh-store .jc-empty h3, .jzh-store .jc-account h3 { font: 400 2rem/1.02 var(--display, Georgia, serif); }
.jzh-store .jc-empty p, .jzh-store .jc-account p { color: var(--jc-muted); max-width: 32ch; }
.jzh-store .jc-empty .jc-button, .jzh-store .jc-account .jc-button { margin-top: 4px; }

.jzh-store .jc-empty-icon, .jzh-store .jc-complete-icon {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border-radius: 50%;
  background: var(--jc-promotional);
  color: var(--jc-primary);
}

.jzh-store .jc-combo { padding: 13px; margin-top: 15px; border-radius: 8px; background: var(--jc-promotional); }

.jzh-store .jc-combo-heading {
  display: grid;
  grid-template-columns: 21px 1fr;
  gap: 8px;
  align-items: start;
  color: var(--jc-primary);
}

.jzh-store .jc-combo-heading h3, .jzh-store .jc-payment h3, .jzh-store .jc-checkout-summary > h3, .jzh-store .jc-summary-heading h3, .jzh-store .jc-account-orders h3 {
  font-size: .97rem;
  line-height: 1.25;
  font-weight: 690;
}

.jzh-store .jc-combo-heading p { margin-top: 2px; font-size: .77rem; color: var(--jc-muted); }
.jzh-store .jc-progress-list { display: grid; gap: 8px; margin-top: 12px; }

.jzh-store .jc-progress-title {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  font-size: .77rem;
}

.jzh-store .jc-progress-title span:first-child { font-weight: 650; }
.jzh-store .jc-progress-title span:last-child { color: var(--jc-muted); }

.jzh-store .jc-progress progress {
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 4px;
  appearance: none;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #e5d3d9;
  color: var(--jc-primary);
}

.jzh-store .jc-progress ::-webkit-progress-bar { border-radius: 8px; background: #e5d3d9; }
.jzh-store .jc-progress ::-webkit-progress-value { border-radius: 8px; background: var(--jc-primary); }
.jzh-store .jc-progress ::-moz-progress-bar { border-radius: 8px; background: var(--jc-primary); }
.jzh-store .jc-progress button { margin-bottom: -8px; }

.jzh-store .jc-foot {
  flex-shrink: 0;
  display: grid;
  gap: 7px;
  background: var(--jc-plain);
  border-top: 1px solid var(--jc-divider);
  padding: 13px 22px max(13px, env(safe-area-inset-bottom));
}

.jzh-store .jc-totals { display: grid; gap: 4px; }

.jzh-store .jc-total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--jc-muted);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}

.jzh-store .jc-total-row dd { text-align: end; white-space: nowrap; }
.jzh-store .jc-saving { color: var(--jc-primary); font-weight: 670; }
.jzh-store .jc-total-final { border-top: 1px solid var(--jc-divider); padding-top: 6px; margin-top: 4px; color: var(--jc-text); font-size: .96rem; font-weight: 720; }
.jzh-store .jc-delivery-summary, .jzh-store .jc-footnote { color: var(--jc-muted); font-size: .76rem; }
.jzh-store .jc-continue { justify-self: center; }
.jzh-store .jc-checkout-intro { display: grid; gap: 4px; margin-bottom: 15px; }
.jzh-store .jc-preview-label { color: var(--jc-primary); font-size: .69rem; font-weight: 700; letter-spacing: .13em; line-height: 1.3; }
.jzh-store .jc-checkout-intro p { color: var(--jc-muted); font-size: .82rem; }

.jzh-store .jc-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 17px;
  align-items: start;
}

.jzh-store .jc-fieldset { width: 100%; padding: 0; border: 0; }
.jzh-store .jc-fieldset legend, .jzh-store .jc-payment h3 { display: flex; align-items: center; gap: 7px; padding: 0; margin-bottom: 9px; font-size: .96rem; font-weight: 690; }

.jzh-store .jc-delivery-option {
  min-height: 53px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--jc-divider);
  border-radius: 7px;
  padding: 8px 10px;
  font-size: .82rem;
  cursor: pointer;
}

.jzh-store .jc-delivery-option + .jc-delivery-option { margin-top: 6px; }
.jzh-store .jc-delivery-option:has(:checked) { border-color: var(--jc-primary); background: var(--jc-promotional); }
.jzh-store .jc-delivery-option :where(input) { margin: 0; accent-color: var(--jc-primary); }
.jzh-store .jc-delivery-option small, .jzh-store .jc-payment-line small { display: block; margin-top: 2px; color: var(--jc-muted); font-size: .75rem; line-height: 1.24; }
.jzh-store .jc-sample { padding: 9px 12px; margin-top: 7px; background: var(--jc-soft); border-radius: 6px; font-size: .8rem; }
.jzh-store .jc-sample > span { font-weight: 690; }
.jzh-store .jc-sample p { margin-top: 4px; color: var(--jc-muted); }
.jzh-store .jc-payment { margin-top: 16px; }

.jzh-store .jc-payment-line {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  border: 1px solid var(--jc-divider);
  padding: 9px 10px;
  border-radius: 7px;
  font-size: .82rem;
}

.jzh-store .jc-checkout-summary { min-width: 0; padding: 12px; border: 1px solid var(--jc-divider); border-radius: 9px; background: var(--jc-soft); }
.jzh-store .jc-checkout-summary > h3 { display: flex; gap: 7px; justify-content: space-between; align-items: start; }
.jzh-store .jc-summary-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: -8px; }
.jzh-store .jc-summary-heading h3 span { margin-inline-start: 4px; }
.jzh-store :is(.jc-checkout-summary > h3, .jc-summary-heading h3) span { color: var(--jc-muted); white-space: nowrap; font-size: .75rem; font-weight: 550; }

.jzh-store .jc-checkout-summary .jc-item {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.jzh-store .jc-checkout-summary .jc-item-photo { aspect-ratio: 1; }
.jzh-store .jc-checkout-summary .jc-item-info h3, .jzh-store .jc-checkout-summary .jc-item-price { font-size: .78rem; }
.jzh-store .jc-checkout-summary .jc-item-info p { margin-top: 2px; font-size: .72rem; }
.jzh-store .jc-checkout-summary .jc-totals { margin-top: 8px; }

.jzh-store .jc-checkout-foot { grid-template-columns: minmax(0, 1fr) minmax(180px, .46fr); align-items: center; }

/* Keep the next decision and current total together when the scroll area is tall. */
.jzh-store .jc-checkout-total {
  grid-row: span 2;
  display: grid;
  gap: 2px;
  align-content: center;
  color: var(--jc-muted);
  font-size: .79rem;
}

.jzh-store .jc-checkout-total strong {
  font: 400 2.04rem/.96 var(--display, Georgia, serif);
  color: var(--jc-text);
  letter-spacing: -.03em;
}

.jzh-store .jc-checkout-foot .jc-footnote { text-align: center; }

.jzh-store .jc-receipt { padding: 3px 0; }
.jzh-store .jc-receipt-heading { display: flex; align-items: start; gap: 11px; margin-bottom: 14px; }
.jzh-store .jc-receipt-heading h3 { margin: 4px 0; font: 400 2.15rem/.99 var(--display, Georgia, serif); }
.jzh-store .jc-receipt-heading p:last-child { color: var(--jc-muted); }
.jzh-store .jc-complete-icon { flex-shrink: 0; }
.jzh-store .jc-account-orders { display: grid; gap: 7px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--jc-divider); }
.jzh-store .jc-account-orders p { color: var(--jc-muted); font-size: .83rem; }
.jzh-store .jc-account-orders ul { display: grid; gap: 7px; padding: 0; list-style: none; }
.jzh-store .jc-order-card { display: flex; gap: 8px; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--jc-soft); border-radius: 7px; }

@media (max-width: 660px) {
  .jzh-store .jc-dialog:is([data-screen="checkout"], [data-screen="confirmation"], [data-screen="receipt"]) {
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  .jzh-store .jc-header { min-height: 61px; padding-inline: 14px; }
  .jzh-store .jc-scroll, .jzh-store .jc-foot { padding-inline: 14px; }
  .jzh-store .jc-scroll { padding-block: 11px 14px; }
  .jzh-store .jc-checkout-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .jzh-store .jc-checkout-intro { margin-bottom: 11px; }
  .jzh-store .jc-checkout-foot { grid-template-columns: minmax(0, 1fr) minmax(148px, auto); gap: 5px 8px; }
  .jzh-store .jc-checkout-foot .jc-button { padding-inline: 8px; }
  .jzh-store .jc-checkout-total { grid-row: auto; line-height: 1.22; }
  .jzh-store .jc-checkout-foot .jc-footnote { grid-column: 1 / -1; text-align: end; }
}

@media (max-width: 360px) {
  .jzh-store .jc-header, .jzh-store .jc-scroll, .jzh-store .jc-foot { padding-inline: 12px; }
  .jzh-store .jc-item { grid-template-columns: 51px minmax(0, 1fr) auto; gap: 8px; }
  .jzh-store .jc-item-actions { gap: 0 7px; }
  .jzh-store .jc-header h2 { font-size: 2rem; }
  .jzh-store .jc-dialog[data-screen="checkout"] .jc-back span { display: none; }
  .jzh-store .jc-receipt-heading h3 { font-size: 1.9rem; }
}
