/*
================================================================
Space Vanta Theme 2.0
Module: PDP delivery estimate
Path: public/pdp/delivery.css
Version: PDP-DELIVERY-004
Route, per-speed rows, estimated shipping cost, free-shipping cells.
================================================================
*/

.sv-pdp-ship { --pd-mono: ui-monospace, "IBM Plex Mono", SFMono-Regular, Menlo, Consolas, monospace; --pd-paper: #fbf7f0; --pd-line: #ddd6c9; --pd-muted: #5f574d; --pd-ink: #252321; --pd-blue: var(--svd-seam, #1d6bff); --pd-blue-hi: var(--svd-seam-hi, #4d8dff); --pd-rim: #aeb6c2; --pd-cut: 12px; box-sizing: border-box; }
.sv-pdp-ship *, .sv-pdp-ship *::before, .sv-pdp-ship *::after { box-sizing: border-box; }


.sv-pdp-ship {
  position: relative;
  padding: 18px 20px 16px;
  background: var(--pd-paper);
  border: 1px solid var(--pd-line);
  clip-path: polygon(var(--pd-cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--pd-cut));
  color: var(--pd-ink);
}
.sv-pdp-ship[hidden] { display: none; }
.sv-pdp-ship__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.sv-pdp-ship__eyebrow {
  font-family: var(--pd-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sv-pdp-ship__eyebrow { color: var(--pd-ink); font-weight: 600; }


/* route */
.sv-pdp-ship__route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.sv-pdp-ship__route::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 5px;
  height: 1px;
  background: linear-gradient(90deg, var(--pd-blue) 0 24%, #b9c1ce 24%);
}
.sv-pdp-ship__step { position: relative; display: flex; flex-direction: column; gap: 3px; padding-top: 18px; animation: sv-pdp-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i) * 70ms); }
.sv-pdp-ship__node {
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  background: var(--pd-paper);
  border: 1.5px solid var(--pd-blue);
  transform: rotate(45deg);
}
.sv-pdp-ship__step:first-child .sv-pdp-ship__node { background: var(--pd-blue); }
.sv-pdp-ship__k { font-family: var(--pd-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pd-muted); }
.sv-pdp-ship__v { font-size: 12.5px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }

/* Made to order: the second node is hatched, its segment dashed */
.sv-pdp-ship[data-sv-mode="made"] .sv-pdp-ship__route::before {
  background: repeating-linear-gradient(90deg, #b9c1ce 0 6px, rgba(185, 193, 206, 0) 6px 10px);
}
.sv-pdp-ship__step.is-made .sv-pdp-ship__node {
  background: repeating-linear-gradient(135deg, var(--pd-blue) 0 1.5px, var(--pd-paper) 1.5px 3.5px);
  box-shadow: 3px -3px 0 -1px var(--pd-paper), 3px -3px 0 0 var(--pd-blue);
}
.sv-pdp-ship[data-sv-mode="made"] { border-style: dashed; border-color: #aab3c1; }

/* speed rows */
.sv-pdp-ship__options { display: flex; flex-direction: column; gap: 10px; }
.sv-pdp-ship__opt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  background: var(--pd-ground);
  border-left: 2px solid var(--pd-rim);
}
.sv-pdp-ship__opt-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sv-pdp-ship__opt-name { font-size: 14px; font-weight: 800; }
.sv-pdp-ship__opt-name em { font-style: normal; font-family: var(--pd-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pd-muted); margin-left: 6px; }
.sv-pdp-ship__opt-when { font-size: 13px; font-weight: 600; }
.sv-pdp-ship__opt-date { font-size: 12.5px; color: var(--pd-muted); }
.sv-pdp-ship__cost { display: flex; align-items: baseline; gap: 10px; font-size: 13px; }
.sv-pdp-ship__cost span { color: var(--pd-muted); }
.sv-pdp-ship__cost b { font-family: var(--pd-mono); font-size: 14px; font-weight: 800; letter-spacing: 0; }
.sv-pdp-ship__cost.is-free b { color: var(--pd-blue); }
.sv-pdp-ship__cost s { font-family: var(--pd-mono); font-size: 11.5px; color: var(--pd-muted); }
.sv-pdp-ship__cost.is-tbd b { font-family: inherit; font-size: 13px; font-weight: 600; color: var(--pd-muted); }
.sv-pdp-ship__opt-free { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.sv-pdp-ship__free { color: var(--pd-blue); font-weight: 800; }
.sv-pdp-ship__rem { font-weight: 700; }
.sv-pdp-ship__thr { font-family: var(--pd-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pd-muted); }
.sv-pdp-ship__cells { display: flex; gap: 3px; }
.sv-pdp-ship__cells i { flex: 1; height: 7px; background: #d9d5cb; transform: skewX(-18deg); transition: background 0.3s ease; transition-delay: calc(var(--c) * 35ms); }
.sv-pdp-ship__cells i.is-on { background: linear-gradient(180deg, var(--pd-blue-hi), var(--pd-blue)); }
.sv-pdp-ship__opt:has(.sv-pdp-ship__free) { border-left-color: var(--pd-blue); }
.sv-pdp-ship__foot { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 12px; color: var(--pd-muted); }
.sv-pdp-ship__foot svg { width: 14px; height: 14px; flex: none; color: var(--pd-blue); }

@keyframes sv-pdp-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }


/* phone */
@media (max-width: 749px) {
  .sv-pdp-ship { padding: 16px 14px 14px; }
}


html[data-sv-motion="calm"] .sv-pdp-ship__step { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .sv-pdp-ship__step { animation: none !important; } }


/* ---------- Ship to (market switch) ---------- */
.sv-pdp-ship__head { align-items: center; }
.sv-pdp-ship__market { position: relative; }
.sv-pdp-ship__to {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 10px 7px 12px; cursor: pointer;
  font-family: var(--pd-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--pd-ink);
  background: var(--svd-face-soft, #efebe8); border: 0; border-radius: 0;
  box-shadow: inset 0 0 0 1px #d6d1c8; clip-path: polygon(7px 0, 100% 0, 100% 100%, 0 100%, 0 7px);
  transition: box-shadow .2s ease, background .2s ease;
}
.sv-pdp-ship__to:hover, .sv-pdp-ship.is-menu .sv-pdp-ship__to { box-shadow: inset 0 0 0 1px var(--pd-blue); background: #fff; }
.sv-pdp-ship__to:focus-visible { outline: 2px solid var(--pd-blue); outline-offset: 2px; }
.sv-pdp-ship__to-k { color: var(--pd-muted); }
.sv-pdp-ship__to b { font-weight: 800; color: var(--pd-blue); letter-spacing: .06em; }
.sv-pdp-ship__to i { width: 7px; height: 7px; margin: -3px 0 0 2px; border: solid var(--pd-blue); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .2s ease; }
.sv-pdp-ship.is-menu .sv-pdp-ship__to i { transform: rotate(-135deg); margin-top: 2px; }
.sv-pdp-ship__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 220px; margin: 0; padding: 6px; list-style: none;
  background: var(--svd-face-deep, #313540); color: #fff;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
.sv-pdp-ship__menu::before { content: ""; position: absolute; left: 10px; right: 0; top: 0; height: 2px; background: var(--svd-seam-line, linear-gradient(90deg, #7dadde, #e5ffff, #1d6bff)); }
.sv-pdp-ship__menu[hidden] { display: none; }
.sv-pdp-ship__menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 18px; margin: 0; padding: 11px 12px; border: 0; border-radius: 0; cursor: pointer; text-align: left;
  font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.88); background: transparent;
}
.sv-pdp-ship__menu button em { font-style: normal; font-family: var(--pd-mono); font-size: 10.5px; letter-spacing: .1em; color: rgba(229,255,255,.6); }
.sv-pdp-ship__menu button:hover { background: rgba(255,255,255,.08); }
.sv-pdp-ship__menu button.is-on { color: #fff; box-shadow: inset 2px 0 0 var(--svd-ice, #e5ffff); background: rgba(77,141,255,.16); }
.sv-pdp-ship__menu button:focus-visible { outline: 2px solid var(--svd-ice, #e5ffff); outline-offset: -2px; }

.sv-pdp-ship__note { margin: 12px 0 0; padding: 9px 12px; font-size: 12.5px; line-height: 1.5; color: var(--pd-ink); background: var(--pd-ground, #f4eee4); border-left: 2px solid var(--pd-blue); }
.sv-pdp-ship__note[hidden] { display: none; }
.sv-pdp-ship.is-busy .sv-pdp-ship__options { opacity: .55; transition: opacity .2s ease; }
.sv-pdp-ship[data-state="fallback"] .sv-pdp-ship__route { margin-bottom: 4px; }
.sv-pdp-ship { overflow: visible; }
.sv-pdp-ship.is-menu { clip-path: polygon(var(--pd-cut) 0, 100% 0, 100% calc(100% + 380px), 0 calc(100% + 380px), 0 var(--pd-cut)); z-index: 5; }
@media (max-width: 749px) {
  .sv-pdp-ship__head { gap: 10px; flex-wrap: wrap; }
  .sv-pdp-ship__market { width: 100%; }
  .sv-pdp-ship__to { width: 100%; justify-content: space-between; white-space: nowrap; }
  .sv-pdp-ship__to b { margin-left: auto; }
  .sv-pdp-ship__menu { left: 0; right: 0; min-width: 0; }
  /* route: 2 x 2 instead of a tall list */
  .sv-pdp-ship__route { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; padding-left: 0; }
  .sv-pdp-ship__route::before { display: none; }
  .sv-pdp-ship__step { flex-direction: column; align-items: stretch; gap: 3px; padding: 0 0 0 20px; }
  .sv-pdp-ship__node { top: 3px; left: 0; }
  .sv-pdp-ship__k { flex: none; }
  .sv-pdp-ship__to { padding: 9px 10px 9px 12px; }
  .sv-pdp-ship__menu button { padding: 13px 12px; }
}

/* ---------- order cut-off ---------- */
.sv-pdp-ship__cutoff { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 12px; align-items: baseline; margin: 0 0 16px; padding: 10px 12px; background: var(--svd-face-soft, #efebe8); box-shadow: inset 2px 0 0 var(--svd-steel, #485d7c); font-size: 12.5px; line-height: 1.5; }
.sv-pdp-ship__cutoff:empty { display: none; }
.sv-pdp-ship__cutoff-k { font-family: var(--pd-mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pd-muted); }
.sv-pdp-ship__cutoff-v { font-weight: 700; }
.sv-pdp-ship__cutoff-s { grid-column: 2; color: var(--pd-muted); }
.sv-pdp-ship__cutoff-s.is-late { color: var(--pd-ink); font-weight: 600; }
@media (max-width: 749px) { .sv-pdp-ship__cutoff { grid-template-columns: minmax(0, 1fr); } .sv-pdp-ship__cutoff-s { grid-column: 1; } }

/* ---------- v005: shipping method, real-cart progress, price that follows "Ship to" ---------- */
.sv-pdp-ship__methods { display: flex; gap: 8px; flex-wrap: wrap; }
.sv-pdp-ship__methods[hidden] { display: none; }
.sv-pdp-ship__method {
  display: inline-flex; align-items: baseline; gap: 8px; margin: 0; padding: 9px 14px 9px 12px; cursor: pointer; border: 0; border-radius: 0;
  background: transparent; color: var(--pd-muted); box-shadow: inset 0 0 0 1px var(--pd-rim);
  clip-path: polygon(7px 0, 100% 0, 100% 100%, 0 100%, 0 7px); transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.sv-pdp-ship__method b { font-family: var(--pd-mono); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sv-pdp-ship__method span { font-size: 12px; font-weight: 600; }
.sv-pdp-ship__method:hover { color: var(--pd-ink); box-shadow: inset 0 0 0 1px var(--pd-blue); }
.sv-pdp-ship__method.is-on { color: #fff; background: #313540; box-shadow: none; }
.sv-pdp-ship__method:focus-visible { outline: 2px solid var(--pd-blue); outline-offset: 2px; }

.sv-pdp-ship__cart { display: flex; flex-direction: column; gap: 6px; }
.sv-pdp-ship__cart.is-empty .sv-pdp-ship__rem { color: var(--pd-muted); font-weight: 600; }
.sv-pdp-ship__with { font-size: 12.5px; color: var(--pd-muted); padding-left: 10px; border-left: 1.5px solid var(--pd-rim); }
.sv-pdp-ship__with.is-unlock { color: var(--pd-blue); font-weight: 700; border-left-color: var(--pd-blue); }

/* price block: the converted price sits where the store price was */
.sv-product-information-price.is-market-price .sv-product-information-price__content { display: none; }
.sv-pdp-mprice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.sv-pdp-mprice[hidden] { display: none; }
.sv-pdp-mprice__was { font-size: 16px; color: var(--pd-muted); text-decoration: line-through; }
.sv-pdp-mprice__now { font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; color: var(--pd-ink); }
.sv-pdp-mprice__now i { font-style: normal; font-weight: 600; font-size: .62em; margin-right: 6px; color: var(--pd-blue); vertical-align: .18em; }
.sv-pdp-mprice__note { flex-basis: 100%; font-family: var(--pd-mono); font-size: 10.5px; letter-spacing: .04em; line-height: 1.5; color: var(--pd-muted); }
.sv-pdp-mprice { --pd-mono: ui-monospace, "IBM Plex Mono", SFMono-Regular, Menlo, Consolas, monospace; --pd-muted: #5f574d; --pd-ink: #252321; --pd-blue: var(--svd-seam, #1d6bff); }
