/* checkout, cart, stock and waitlist styles */

/* tiers: hand, ship_wi, ship_us */
.tier-ship_wi .bz-icon, .tier-ship_us .bz-icon { background: rgba(126,226,174,.14); color: var(--mint); }
.eta-dot.tier-ship_wi, .eta-dot.tier-ship_us { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.cz-icon.tier-ship_wi, .cz-icon.tier-ship_us { background: #dcf5e8; color: #1e6f49; }

/* zip results: tier, cost, eta, pickup */
.zr-body { display: grid; gap: 2px; min-width: 0; }
.zr-head { color: #fff; }
.zr-line { color: var(--text-mid); }
.zr-alt { color: var(--gold); font-weight: 600; font-size: .88rem; }
.modal .zr-head, .co-zip-note .zr-head { color: var(--ink); }
.modal .zr-line, .co-zip-note .zr-line { color: var(--ink-soft); }
.modal .zr-alt, .co-zip-note .zr-alt { color: var(--green-700); }
.bz-alt { color: var(--gold); font-weight: 600; }
.eta-alt { display: block; margin-top: 2px; color: var(--text-dim); font-size: .86rem; }
.zip-check label { line-height: 1.4; }
.buy-zip .zip-inline { max-width: 580px; }

/* product card: one product, so it gets the room */
.product-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.box-mini { --w: 120px; }
.product-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.product-price-row { flex-wrap: wrap; }
@media (min-width: 900px) {
  .product-grid { max-width: 960px; }
  .product-card {
    display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 40px; align-items: stretch; padding: 36px;
  }
  .product-art { height: auto; min-height: 380px; margin-bottom: 0; }
  .box-mini { --w: 150px; }
}

/* stock pill */
.stock-pill {
  display: inline-flex; align-items: center; gap: 7px; margin-left: auto;
  font: 700 .78rem/1 var(--font-head); letter-spacing: .01em;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
}
.stock-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock-pill.is-in_stock { color: var(--mint); background: rgba(126,226,174,.12); border-color: rgba(126,226,174,.32); }
.stock-pill.is-low { color: var(--gold); background: rgba(255,182,18,.14); border-color: rgba(255,182,18,.4); }
.stock-pill.is-held { color: #b4c8ee; background: rgba(120,160,230,.14); border-color: rgba(180,200,238,.4); white-space: normal; text-align: left; line-height: 1.25; }
.stock-pill.is-out { color: #f1a39b; background: rgba(176,72,63,.22); border-color: rgba(241,163,155,.4); }

.btn:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-primary:disabled:hover { background: var(--gold); box-shadow: none; }

/* touch targets and focus on light surfaces */
.modal-close, .cart-header .icon-btn { min-width: 44px; min-height: 44px; }
.zip-pill { min-height: 44px; }
.check-row { min-height: 44px; }
.cart-drawer :focus-visible, .modal :focus-visible { outline-color: var(--green-700); }
.cart-zip .link-btn, .buy-zip-set .link-btn { min-height: 44px; padding: 0 8px; }
.cart-qty button { width: 44px; height: 44px; font-size: 1.1rem; }
.cart-qty button.is-maxed { opacity: .4; cursor: not-allowed; }
.cart-qty { gap: 6px; }
.cart-qty span { min-width: 1.4em; text-align: center; font-weight: 600; }
.cart-item-remove { min-height: 44px; padding: 0 4px; margin-top: -10px; }

/* cart */
.cart-note {
  margin: 0; padding: 10px 24px; font-size: .86rem; line-height: 1.45;
  background: #fff7e0; color: #6b4f00; border-bottom: 1px solid #f1dfa8;
}
.cart-note:empty { padding: 0; border: 0; }
.t-note > span:first-child { color: var(--ink-soft); font-size: .88rem; }
.cart-zip small + small { margin-top: 1px; }

/* checkout: how do you want to get it */
.co-how { display: grid; gap: 8px; }
.co-how .co-label { margin-top: 0; }
.co-how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal .co-opt {
  position: relative; display: flex; align-items: flex-start; gap: 12px;
  min-height: 44px; padding: 14px; border: 2px solid var(--line); border-radius: 14px;
  background: var(--card); cursor: pointer; font-weight: 400;
  transition: border-color .15s, background .15s;
}
.co-opt input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green-700); }
.co-opt-body { display: grid; gap: 2px; line-height: 1.35; min-width: 0; }
.co-opt-body b { font-size: .95rem; }
.co-opt-body small { font-size: .82rem; }
.modal .co-opt:hover { border-color: var(--green-600); }
.modal .co-opt:has(input:checked) { border-color: var(--green-600); background: #f1f8f4; }
.modal .co-opt:focus-within { outline: 2px solid var(--green-700); outline-offset: 2px; }

.co-address { display: grid; gap: 14px; }
.co-addr-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(0, .8fr); gap: 14px; }
.co-street, .co-street2 { grid-column: 1 / -1; }
.modal select {
  font: inherit; width: 100%; padding: 11px 36px 11px 13px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234a544f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 13px center / 12px 8px;
  color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer;
}
.modal select:focus { outline: 2px solid var(--green-600); outline-offset: 1px; background-color: #fff; }
.modal select.is-invalid { border-color: #b0483f; background-color: #fff5f4; }
.co-step:focus { outline: none; }
.co-zip-note.is-bad { color: #b0483f; }
.co-aside a { color: var(--green-700); font-weight: 600; }
.co-gift { display: grid; gap: 12px; }
.sum-gift { color: var(--ink-soft); font-size: .88rem; font-style: italic; }
.pay-box .form-error {
  padding: 10px 12px; border-radius: 10px; font-weight: 500; line-height: 1.5;
  background: #fff5f4; border: 1px solid #f0cbc7;
}
.pay-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-actions:empty { display: none; }
.paypal-slot[aria-busy="true"] { opacity: .6; }
.chip-pick-wide button { min-height: 44px; }

/* support slots */
[data-support], .pay-box .form-error { overflow-wrap: anywhere; }
.cart-fine a { color: var(--green-700); font-weight: 600; }
.footer-help { margin-top: 10px; }
.footer-help a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* order tracker */
.track-next { margin: 10px 0 0; font-size: .88rem; line-height: 1.45; color: var(--ink-soft); }

/* waitlist modal */
.modal-waitlist form { display: grid; gap: 14px; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.wl-context {
  margin-bottom: 14px; padding: 9px 12px; border-radius: 10px;
  background: #fff7e0; border: 1px solid #f1dfa8; color: #6b4f00; font-size: .88rem; line-height: 1.45;
}
.wl-status { min-height: 2.9em; font-size: .9rem; line-height: 1.45; color: var(--ink-soft); }
.wl-status.is-ok { color: #1e6f49; font-weight: 600; }
.wl-status.is-info { color: var(--ink); font-weight: 600; }
.wl-status.is-bad { color: #b0483f; font-weight: 600; }
.modal input[readonly] { background: #ece9e0; color: var(--ink-soft); }

@media (max-width: 700px) {
  .zp-place { display: none; }
}

@media (max-width: 640px) {
  .stock-pill { margin-left: 0; }
  .zip-pill svg { display: none; }
  .zp-verb { display: none; }
  .co-how-grid { grid-template-columns: 1fr; }
  .co-addr-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .co-city { grid-column: 1 / -1; }
  .cart-note { padding-inline: 20px; }
  .wl-status { min-height: 4.4em; }
}

@media (max-width: 380px) {
  .co-nav .btn { padding-inline: 14px; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .modal .co-opt { transition: none; }
}
