/* ─────────────────────────────────────────────────────────────
   Build & Price (store.html), store phase 1
   Monochrome only. Reuses .vl-lf-field inputs from lead-form.css.
   ───────────────────────────────────────────────────────────── */

.st-hero {
  min-height: auto;
  padding: calc(var(--nav-height) + 96px) 40px 72px;
}
.st-hero .lead { max-width: 640px; }

/* Purchasing-office steer: visible on the first screen, fast fade */
.st-quote-line {
  display: block;
  max-width: 640px;
  margin: 36px auto 0;
  padding: 16px 24px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 16px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out) 0.3s forwards;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.st-quote-line strong { display: block; font-weight: 500; color: var(--white); margin-bottom: 2px; }
.st-quote-line:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

.st-section { padding: 80px 40px 120px; }
.st-wrap { max-width: 1200px; margin: 0 auto; }

.st-alert {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 24px;
  border: 1px solid var(--light-gray);
  border-radius: 16px;
  text-align: center;
  font-weight: 300;
}

/* Two columns: steps | sticky summary */
.st-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 40px;
  align-items: start;
}
.st-grid[hidden] { display: none; }
.st-steps { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.st-card {
  margin: 0;
  min-width: 0;
  padding: 32px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 8px 22px 1px rgba(0,20,80,0.15), 0 0 14px 2px rgba(0,20,80,0.09);   /* David 10/12: visible left/right edges */   /* same lift as the site's light tiles */
}
.st-step {
  float: left;               /* keep the legend off the fieldset border */
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--off-black);
}
.st-num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--off-black);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.st-step + * { clear: both; }
.st-card[hidden], .st-btn[hidden], .st-item[hidden] { display: none; }
.st-help {
  margin: 0 0 20px 46px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--mid-gray);
}
.st-help a { color: var(--off-black); text-decoration: underline; text-underline-offset: 2px; }
.st-help a:hover { opacity: 0.7; }
.st-empty { margin: 4px 0 0 46px; font-size: 15px; font-weight: 300; color: var(--mid-gray); }
.st-empty[hidden] { display: none; }

/* Customer type cards */
.st-choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st-choice { position: relative; display: block; cursor: pointer; }
.st-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.st-choice-body {
  display: block;
  height: 100%;
  padding: 20px 22px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 14px;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.st-choice-title { display: block; font-size: 18px; font-weight: 500; margin-bottom: 4px; }
.st-choice-text { display: block; font-size: 14px; font-weight: 300; line-height: 1.45; color: var(--mid-gray); }
.st-choice input:checked + .st-choice-body { border-color: var(--off-black); box-shadow: inset 0 0 0 1px var(--off-black); }
.st-choice input:focus-visible + .st-choice-body { outline: 2px solid var(--off-black); outline-offset: 2px; }

/* Line items with steppers */
.st-items { display: flex; flex-direction: column; }
.st-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.st-item:first-child { border-top: 0; padding-top: 4px; }
.st-item-main { flex: 1; min-width: 0; }
.st-item-name { font-size: 18px; font-weight: 500; }
.st-item-name sup { font-size: 0.55em; }
.st-item-meta { margin-top: 2px; font-size: 14px; font-weight: 300; color: var(--mid-gray); }
.st-item-meta a { color: inherit; }
.st-item-price { font-size: 16px; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }

.st-stepper {
  flex: none;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 100px;
}
.st-stepper button {
  width: 48px;
  height: 48px;              /* gloved-hand target */
  border: 0;
  background: none;
  font: inherit;
  font-size: 22px;
  font-weight: 300;
  color: var(--off-black);
  cursor: pointer;
  border-radius: 100px;
}
.st-stepper button:disabled { color: var(--light-gray); cursor: default; }
.st-stepper button:not(:disabled):hover { background: rgba(0,0,0,0.04); }
.st-stepper output {
  min-width: 28px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.st-tiers {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.st-tiers li {
  padding: 6px 14px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 400;
  color: var(--mid-gray);
  transition: all 0.2s var(--ease-out);
}
.st-tiers li.is-on { background: var(--off-black); border-color: var(--off-black); color: var(--white); }

/* Code */
.st-code-row { display: flex; align-items: flex-end; gap: 12px; margin-left: 46px; }
.st-code-field { flex: 1; margin: 0; }
.st-code-apply { flex: none; height: 48px; padding: 0 24px; }
.st-code-apply:disabled { opacity: 0.4; cursor: default; }
.st-code-msg { margin-top: 10px; margin-bottom: 0; min-height: 1.5em; }
.st-code-msg.is-ok { color: var(--off-black); }

/* Buyer fields */
.st-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.st-fields [hidden] { display: none; }
.st-same { font-size: 15px; }
.vl-lf-req[hidden] { display: none; }
.st-fields .vl-lf-field--wide { grid-column: 1 / -1; }
.st-fields .st-sub { grid-column: 1 / -1; margin: 12px 0 4px; font-size: 14px; font-weight: 500; }

.st-docs { margin-top: 20px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,0.08); }
.st-docs[hidden] { display: none; }
.st-docs-title { font-size: 18px; font-weight: 500; margin: 0 0 4px; }
.st-docs .st-help { margin-left: 0; }
.st-doc-list { display: flex; flex-direction: column; gap: 4px; }
.st-doc {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-height: 48px;
  padding: 10px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.45;
}
.st-doc input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--off-black); }
.st-doc small { display: block; font-size: 13px; color: var(--mid-gray); }
.st-consent { margin-top: 16px; }

/* Summary */
.st-summary { position: sticky; top: calc(var(--nav-height) + var(--subnav-h, 0px) + 24px); min-width: 0; }
.st-summary-card {
  padding: 28px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 22px 1px rgba(0,20,80,0.15), 0 0 14px 2px rgba(0,20,80,0.09);   /* David 10/12: visible left/right edges */
}
.st-summary-title { font-size: 24px; font-weight: 300; margin: 0 0 2px; letter-spacing: -0.01em; }
.st-summary-type { margin: 0 0 16px; font-size: 14px; line-height: 1.45; color: var(--mid-gray); }
.st-summary-type small { display: block; font-size: 13px; }
.st-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
}
.st-line span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-line--sub { padding-top: 0; font-size: 13px; color: var(--mid-gray); }
.st-line--disc { color: var(--off-black); font-weight: 400; }
.st-line--rule { border-top: 1px solid rgba(0,0,0,0.08); margin-top: 6px; padding-top: 12px; }
.st-lines-empty { font-size: 15px; font-weight: 300; color: var(--mid-gray); padding: 8px 0; }
.st-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--off-black);
  font-size: 15px;
  font-weight: 500;
}
.st-total[hidden] { display: none; }
.st-total-num { font-size: 30px; font-weight: 300; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.st-contact {
  margin: 12px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--off-white);
  font-size: 17px;
  font-weight: 500;
}
.st-contact[hidden] { display: none; }
.st-contact span { display: block; margin-top: 4px; font-size: 14px; font-weight: 300; color: var(--mid-gray); }
.st-fine { list-style: none; margin: 14px 0 0; padding: 0; font-size: 13px; color: var(--mid-gray); line-height: 1.6; }

.st-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.st-actions--single { grid-template-columns: minmax(0, 320px); }
.st-btn { width: 100%; justify-content: center; min-height: 52px; }
.st-btn:disabled { opacity: 0.4; cursor: default; }
.st-action-note { margin: 10px 0 0; font-size: 13px; color: var(--mid-gray); text-align: center; }
.st-fallback {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--off-white);
  font-size: 14px;
  line-height: 1.45;
}
.st-fallback[hidden] { display: none; }
.st-status { margin: 10px 0 0; font-size: 14px; min-height: 1.4em; }
.st-status.is-err { color: var(--off-black); font-weight: 500; }

/* Done */
.st-done { max-width: 640px; margin: 0 auto; text-align: center; padding: 40px 0; outline: none; }
.st-done[hidden] { display: none; }
.st-done-title { font-size: 40px; font-weight: 200; margin-bottom: 16px; }
.st-done-text { font-weight: 300; line-height: 1.6; margin-bottom: 32px; }

/* Standalone vendor documents (dark) */
.st-vd { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.st-vd-head .lead { margin-top: 20px; }
.st-vd .st-doc { color: rgba(255,255,255,0.9); }
.st-vd .st-doc input { accent-color: var(--white); }
.st-vd .st-doc small { color: rgba(255,255,255,0.5); }
.st-vd .st-doc-list { margin: 8px 0; }
.st-vd .vl-lf-field label { color: rgba(255,255,255,0.8); }
.st-vd .vl-lf-field input, .st-vd .vl-lf-field textarea { color: var(--white); border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); }
.st-vd .vl-lf-check, .st-vd .st-sub { color: rgba(255,255,255,0.85); }
.st-done--dark { text-align: left; padding: 0; }
.st-done--dark .st-done-title { color: var(--white); }
.section-dark .st-status { color: rgba(255,255,255,0.85); }
.section-dark .st-status.is-err { color: var(--white); }

/* Mobile running-total bar (shown ≤900px while configuring) */
.st-mbar { display: none; }

/* ── Tablet ── */
@media (max-width: 1080px) {
  .st-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
  .st-card { padding: 24px; }
  .st-actions { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .st-grid { grid-template-columns: 1fr; }
  .st-summary { position: static; }
  .st-actions { grid-template-columns: 1fr 1fr; }
  .st-vd { grid-template-columns: 1fr; gap: 32px; }
  .st-mbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 20px;
    border-radius: 100px;
    background: rgba(29,29,31,0.92);
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    transform: translateY(160%);
    visibility: hidden;
    transition: transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
  }
  /* David 10/12 15:54: the hidden bar (blur filter) sat under Safari's bottom toolbar and dropped the tiles' side shadows
     there on iPhone; blur and visibility now only while the bar is showing */
  .st-mbar.is-on { transform: none; visibility: visible; transition: transform 0.35s var(--ease-out);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
  .st-mbar-label { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.7); }
  .st-mbar-total { flex: 1; font-size: 20px; font-weight: 400; font-variant-numeric: tabular-nums; }
  .st-mbar-go { padding: 12px 22px; border-radius: 100px; background: var(--white); color: var(--off-black); font-size: 15px; font-weight: 500; }
  .st-section#st-app { padding-bottom: 140px; }
}

/* ── Phone ── */
@media (max-width: 720px) {
  .st-hero { padding: calc(var(--nav-height) + var(--subnav-h, 0px) + 56px) 20px 48px; }
  .st-quote-line { margin-top: 28px; padding: 14px 18px; font-size: 15px; }
  .st-section { padding: 40px 16px 80px; }
  .st-card { padding: 20px 18px; border-radius: 16px; }
  .st-step { font-size: 21px; }
  .st-help, .st-empty { margin-left: 0; }
  .st-code-row { margin-left: 0; }
  .st-choice-row { grid-template-columns: 1fr; }
  .st-item { flex-wrap: wrap; gap: 8px 12px; }
  .st-item-main { flex-basis: 100%; }
  .st-item-price { flex: 1; }
  .st-fields { grid-template-columns: 1fr; }
  .st-summary-card { padding: 22px 18px; }
  .st-actions { grid-template-columns: 1fr; }
  .st-done-title { font-size: 32px; }
  /* Site mobile rule turns light-section buttons light gray; keep the quote CTA primary here */
  .section-light .st-actions .btn-dark {
    background: var(--off-black) !important;
    color: var(--white) !important;
    border-color: var(--off-black) !important;
  }
  .section-light .st-actions .btn-outline-dark { background: var(--white) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .st-quote-line { animation: none; opacity: 1; }
}

/* Cart combo photo (Compass 2026-10-09): one library photo matching what's in the cart */
.st-pic-slot { margin: 14px 0 18px; }
.st-pic-slot:empty { display: none; }
.st-combo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 14px;
  background: #f3f4f6; animation: stPicIn .25s ease-out; }
.st-done-pic { max-width: 520px; margin: 0 auto 28px; }
@keyframes stPicIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .st-combo { animation: none; } }

/* David 10/12 07:34: step circles show the store wallpaper at 10% of its on-page size (desktop 4542x3028 -> 454x303; phone 1531x4594 -> 153x459), a different section per
   circle (--wp set inline in store.html); same image files the section already loads (no new download);
   light outline, no drop shadow. Overrides the shared white-circle rule in styles.css. */
#st-app .st-num { position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box; background: transparent; color: var(--off-black); border: 1px solid rgba(0,20,80,.16); box-shadow: none; }
#st-app .st-num::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: url('../assets/images/wallpaper-new-01.png') no-repeat; background-size: 227px 151px; background-position: var(--wp, 50% 50%); }
  /* David 10/12 15:02: color boost removed; zoomed out 2x (5% of on-page size) so each circle shows more wallpaper */
@media (max-width: 720px) {
  #st-app .st-num::before { background-image: url('../assets/images/mobile-wp-portrait-01.png'); background-size: 77px 230px; background-position: var(--wpm, 50% 50%); }
}

/* David 10/12 16:08: iPhone Safari drops the tiles' side shadows near its bottom toolbar. A firmer edge line keeps the
   left/right edges visible even when Safari drops the shadow; shadow itself unchanged. */
#st-app .st-card, #st-app .st-summary-card { border-color: rgba(0,20,80,0.16); }
