/* =========================================================
   SCOPIONE ORDER TRACKING PAGE — scopione-tracking.css  (TRACK-1, Jun 2026)

   Loads AFTER scopione-contact.css on /order-tracking/ (page-tracking.php). The
   contact sheet styles the copied bottom-7 blocks (form, reveal, channels, trust,
   marquee, ticker, final CTA) AND the reused hero (.sc-contact-hero …). THIS sheet
   styles only what's unique to this page:
     1) a small "ported" block re-declaring the handful of body-scoped contact rules
        the copied blocks need here (tokens + CF7 submit pill + form-band padding) —
        mirrors the FAQ-1c block in scopione-faqs.css, so the shared sheet stays untouched;
     2) the REAL WooCommerce order-lookup form (form.track_order), restyled into a
        white card that echoes the connect-form pillow, with a gold→dark shine submit;
     3) the tracking FAQ accordion — question pills, each with a relevant gold icon,
        POP on hover (lift) + SHINE on hover (gold sheen sweep), reduced-motion safe
        (cloned from scopione-faqs.css; flat, no category groups, no search/quick-nav JS).

   Shine note (same as the FAQ sheet): the cross-surface "shine" recipe uses a white
   sweep + mix-blend:screen, invisible on a white card — so these clones use a GOLD-
   tinted sweep (normal blend) for the FAQ pills, and the CF7 white-band recipe for the
   gold/dark buttons (visible because the button inverts to dark on hover).
   ========================================================= */


/* =========================================================
   1) PORTED FROM scopione-contact.css (TRACK-1c)

   scopione-contact.css scopes a few rules to .page-template-page-contact /
   .page-template-page-dealer, so they don't reach this page (body class
   .page-template-page-tracking). Re-declared here verbatim, scope swapped — values
   kept in sync with scopione-contact.css (and the FAQ-1c clone in scopione-faqs.css).
   ========================================================= */

/* 1a) Design tokens — type scale + section rhythm. The copied blocks, the lookup
   section AND the FAQ accordion all resolve these via var(); without them
   var(--shop-*) / var(--sc-block-pad) are undefined on this page and the layout
   collapses. (scopione-contact.css scopes the same block to
   .page-template-page-contact, .page-template-page-dealer.) */
.page-template-page-tracking {
  --shop-h1: clamp(1.9rem, 4.5vw, 2.75rem);
  --shop-h2: clamp(1.55rem, 3.2vw, 2.1rem);
  --shop-body: clamp(1rem, 1.5vw, 1.1rem);
  --shop-small: clamp(0.8rem, 1.2vw, 0.9rem);
  --shop-section-gap: clamp(3rem, 5vw, 4rem);
  --sc-block-pad: calc(var(--shop-section-gap) / 2);
}

/* 1b) CF7 submit pill — re-assert base + hover at page-template scope + !important so
   the gold→dark white-shine sweep wins over a plugin's global form-button :hover.
   (Verbatim from scopione-faqs.css FAQ-1c block 2, scope swapped.) */
.page-template-page-tracking .scopione-form-wrap .wpcf7 input.wpcf7-submit.btn-scopione {
  background-color: var(--sc-yellow) !important;
  background-image: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.85) 50%, transparent 65%) !important;
  background-repeat: no-repeat !important;
  background-size: 250% 100% !important;
  background-position: 150% 0 !important;
  color: var(--sc-dark) !important;
  border: 2px solid transparent !important;
  transition: background-color 0.3s ease, background-position 0.7s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

.page-template-page-tracking .scopione-form-wrap .wpcf7 input.wpcf7-submit.btn-scopione:hover,
.page-template-page-tracking .scopione-form-wrap .wpcf7 input.wpcf7-submit.btn-scopione:focus-visible {
  background-color: var(--sc-dark) !important;
  background-position: -50% 0 !important;
  color: #fff !important;
  border-color: var(--sc-yellow) !important;
  box-shadow: 0 0 25px rgba(255, 190, 61, 0.55), 0 10px 40px rgba(255, 190, 61, 0.28) !important;
}

@media (prefers-reduced-motion: reduce) {
  .page-template-page-tracking .scopione-form-wrap .wpcf7 input.wpcf7-submit.btn-scopione,
  .page-template-page-tracking .scopione-form-wrap .wpcf7 input.wpcf7-submit.btn-scopione:hover,
  .page-template-page-tracking .scopione-form-wrap .wpcf7 input.wpcf7-submit.btn-scopione:focus-visible {
    background-position: 150% 0 !important;
  }
}

/* 1c) The copied "Let's Connect" form band — even section rhythm (was Bootstrap .py-5). */
.page-template-page-tracking section.bg-light#contact-form {
  padding-top: var(--sc-block-pad) !important;
  padding-bottom: var(--sc-block-pad) !important;
}


/* =========================================================
   2) ORDER-LOOKUP SECTION + the WooCommerce [woocommerce_order_tracking] form

   The form (form.track_order) already gets a brand-correct white card + 2-col grid +
   gold-focus inputs from the BASE block directly below (body form.track_order …,
   moved here from scopione-child.css in batch-child-css-cleanup-2).
   Here we (a) give the section a light backdrop + the page's section rhythm, (b)
   harmonise the card chrome with the connect-form pillow (10px radius, matching
   border/shadow), and (c) replace the card's dark→gold button with the gold→dark
   white-shine submit used elsewhere on the page.

   Cascade: the global rules are `body form.track_order …` (specificity 0,1,2 for the
   card; 0,2,3 for the button). Wrapping the shortcode in `.sc-track-lookup` and using
   `.sc-track-lookup .track_order …` (0,2,0) / `.sc-track-lookup .track_order
   button[type="submit"]` (0,3,1) beats both on the class column — no !important.
   ========================================================= */

/* --- BASE: body form.track_order — card shell + 2-col grid + inputs + dark button.
   Moved here from scopione-child.css (batch-child-css-cleanup-2, Jun 13 2026) so all
   order-tracking CSS lives in one file. Lower specificity than the .sc-track-lookup /
   .page-template-page-tracking overrides below, which still win. --- */

/* Card shell + width (same as My Account) */
body form.track_order{
  box-sizing: border-box;
  max-width: 760px;
  margin: 0 auto 34px;
  padding: 26px 28px;
  background: #fff;
  border: 1px solid rgba(17,17,17,.12);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* Convert the default float layout into a clean grid */
body form.track_order{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

/* Intro text spans full width */
body form.track_order > p:not(.form-row){
  grid-column: 1 / -1;
  margin: 0 0 6px;
  color: rgba(17,17,17,.78);
  line-height: 1.55;
}

/* Form rows */
body form.track_order p.form-row{
  margin: 0;
  width: 100%;
}

/* Submit row spans full width */
body form.track_order p.form-row:not(.form-row-first):not(.form-row-last){
  grid-column: 1 / -1;
  margin-top: 6px;
}

/* Labels */
body form.track_order label{
  display: block;
  color: var(--sc-dark);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
}

/* Inputs */
body form.track_order input[type="text"],
body form.track_order input[type="email"],
body form.track_order input.input-text{
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(17,17,17,.18);
  background: #fff;
  color: var(--sc-dark);
  transition: border-color .18s ease, box-shadow .18s ease;
}

body form.track_order input::placeholder{
  opacity: .55;
}

body form.track_order input:focus{
  outline: none;
  border-color: rgba(255,190,61,.85);
  box-shadow: 0 0 0 4px rgba(255,190,61,.20);
}

/* Button (match My Account) */
body form.track_order button[type="submit"],
body form.track_order .button{
  border: 0;
  border-radius: 12px;
  background: var(--sc-dark);
  color: #fff;
  height: 44px;
  padding: 0 18px;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}

body form.track_order button[type="submit"]:hover,
body form.track_order .button:hover{
  background: var(--sc-yellow);
  color: #000;
  transform: translateY(-1px);
}

body form.track_order button[type="submit"]:focus-visible,
body form.track_order .button:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(255,190,61,.28);
}

/* Chrome/Safari autofill cleanup */
body form.track_order input:-webkit-autofill{
  -webkit-text-fill-color: var(--sc-dark) !important;
  transition: background-color 9999s ease-out 0s;
  box-shadow: 0 0 0 1000px #fff inset !important;
}

/* Responsive */
@media (max-width: 840px){
  body form.track_order{
    max-width: calc(100% - 28px);
  }
}

@media (max-width: 640px){
  body form.track_order{
    grid-template-columns: 1fr;
    padding: 18px 16px;
    border-radius: 16px;
  }
}

.sc-track-lookup-section {
  padding: var(--sc-block-pad) 0;
  background: #f8f9fa; /* light backdrop (≈ Bootstrap .bg-light) so the white card pops */
}

.sc-track-lookup-head {
  /* h2 + .lead inherit the theme defaults — same treatment as the copied
     "Let's Connect About Your Project" head, for a consistent pairing.
     TRACK-3: tightened the gap to the pillow (was Bootstrap .mb-5 = 3rem). */
  margin-bottom: 1.5rem;
}

.sc-track-lookup-head h2 {
  font-size: var(--shop-h2);
  margin: 0; /* TRACK-6: the icon + heading now share a centered flex row (.sc-track-lookup-headrow) */
}

/* Harmonise the global .track_order card with the connect-form pillow (.scopione-form-wrap):
   match the 10px radius / soft border / shadow, and drop the global 34px bottom margin so
   the section padding owns the rhythm. Keeps the global 2-col grid + input styling. */
.sc-track-lookup .track_order {
  max-width: 1040px; /* TRACK-3: match the FAQ list + connect-form pillow width (was global 760px) */
  border-radius: 10px;
  border-color: rgba(17, 17, 17, 0.09);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  margin: 0 auto;
}

/* Center the WooCommerce intro line (was flush-left), to sit under the centered head. */
.sc-track-lookup .track_order > p:not(.form-row) {
  text-align: center;
}

/* Order ID / Billing email fields → match the contact form (.scopione-form-wrap):
   thin #ddd border, 10px radius, gold focus glow + 600/1rem labels — instead of the
   global My-Account track_order look (rgba border, 12px radius, 46px fixed height, 13px label). */
.sc-track-lookup .track_order label {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.sc-track-lookup .track_order input[type="text"],
.sc-track-lookup .track_order input[type="email"],
.sc-track-lookup .track_order input.input-text {
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sc-track-lookup .track_order input[type="text"]:focus,
.sc-track-lookup .track_order input[type="email"]:focus,
.sc-track-lookup .track_order input.input-text:focus {
  border-color: var(--sc-yellow);
  box-shadow: 0 0 0 3px rgba(255, 190, 61, 0.25);
  outline: none;
}

/* Center the submit row so the (now wider) Track button sits centered, not flush-left.
   TRACK-4: also pull the button ~20% closer to the fields — the global submit row is
   margin-top:6px on top of the 16px grid row-gap (~22px); 2px → ~18px (~20% tighter). */
.sc-track-lookup .track_order p.form-row:not(.form-row-first):not(.form-row-last) {
  text-align: center;
  margin-top: 2px;
}

/* Submit → IDENTICAL to the hero "Track My Order" pill (.sc-contact-cta-btn): same
   gold→dark white-shine hover, same glow, NO lift. Values verbatim from
   scopione-contact.css .sc-contact-cta-btn.

   TRACK-4 cascade fix: the base `body form.track_order button:hover` (in the BASE block
   above in this file) is a (0,3,3) rule that (a) uses the `background` SHORTHAND — resetting this
   button's shine `background-image` to none ON HOVER — and (b) re-applies
   `transform: translateY(-1px)`. At the old `.sc-track-lookup …` (0,3,1) specificity the
   global won those two properties on hover (shine killed + lift back). Scoping under
   `.page-template-page-tracking` lifts every selector above (0,3,3), so the base shine
   survives into hover and `transform:none` kills the global lift. Geometry only differs
   from the hero pill (min-width + inline-flex + height:auto so the WC <button> reads as a
   wide, centered pill governed by the hero's padding). */
.page-template-page-tracking .sc-track-lookup .track_order button[type="submit"],
.page-template-page-tracking .sc-track-lookup .track_order .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 260px;
  height: auto;
  background-color: var(--sc-yellow, #ffbe3d);
  background-image: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.85) 50%, transparent 65%);
  background-repeat: no-repeat;
  background-size: 250% 100%;
  background-position: 150% 0;
  color: var(--sc-dark, #111);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 2.25rem;
  border: 2px solid transparent;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(255, 190, 61, 0.32);
  transition: background-color 0.3s ease, background-position 0.7s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-template-page-tracking .sc-track-lookup .track_order button[type="submit"]:hover,
.page-template-page-tracking .sc-track-lookup .track_order .button:hover {
  background-color: var(--sc-dark, #111);
  background-position: -50% 0;
  color: #fff;
  border-color: var(--sc-yellow, #ffbe3d);
  box-shadow: 0 0 25px rgba(255, 190, 61, 0.55), 0 10px 40px rgba(255, 190, 61, 0.28);
  transform: none; /* kill the global :hover translateY(-1px) — the hero pill has no lift */
}

.page-template-page-tracking .sc-track-lookup .track_order button[type="submit"]:focus-visible,
.page-template-page-tracking .sc-track-lookup .track_order .button:focus-visible {
  outline: 2px solid var(--sc-dark, #111);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .page-template-page-tracking .sc-track-lookup .track_order button[type="submit"],
  .page-template-page-tracking .sc-track-lookup .track_order .button,
  .page-template-page-tracking .sc-track-lookup .track_order button[type="submit"]:hover,
  .page-template-page-tracking .sc-track-lookup .track_order .button:hover {
    background-position: 150% 0 !important;
  }
}


/* =========================================================
   3) TRACKING FAQ ACCORDION  (cloned from scopione-faqs.css L17-256)

   Flat list (no category groups), simple native <details>/<summary>, no search /
   quick-nav JS. Each pill: relevant gold icon (reuses §25 sc_faqs_icon), POP on hover
   (lift + gold border + glow) + SHINE on hover (gold sheen sweep, ≥992px desktop fine-
   pointer only), reduced-motion safe.
   ========================================================= */

/* ---- Section shell + title ---- */
.sc-track-faq {
  padding: var(--sc-block-pad) 0;
}

.sc-track-faq-title {
  margin: 0 0 0.5rem;
  text-align: center;
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--shop-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sc-dark);
}

/* ---- Question pills grid (1-up mobile → 2-up ≥992px), capped + centered like /faq/ ---- */
.sc-track-faq-list {
  max-width: 1040px;
  margin: 1.75rem auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 992px) {
  .sc-track-faq-list {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1.25rem;
    align-items: start; /* an opened pill doesn't stretch its row neighbour */
  }
}

/* ---- The pill (native <details>/<summary>) ---- */
.sc-track-faq-item {
  position: relative;
  overflow: hidden; /* clips the shine sweep to the rounded card */
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* POP on hover — lift + gold border + glow */
@media (hover: hover) and (pointer: fine) {
  .sc-track-faq-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 190, 61, 0.5);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.09), 0 0 20px rgba(255, 190, 61, 0.2);
  }
}

.sc-track-faq-item[open] {
  border-color: rgba(255, 190, 61, 0.6);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}

/* SHINE on hover — gold sheen sweep. Desktop fine-pointer ≥992px only; reduced-motion safe. */
.sc-track-faq-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 190, 61, 0.22) 50%, transparent 62%);
  opacity: 0;
  transform: translateX(-100%);
  pointer-events: none;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) and (min-width: 992px) {
  .sc-track-faq-item:hover::after {
    animation: scTrackFaqShine 2.4s ease-out forwards;
  }
}

@keyframes scTrackFaqShine {
  0%   { opacity: 0; transform: translateX(-100%); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(100%); }
}

/* ---- Summary (question row) ---- */
.sc-track-faq-q {
  position: relative;
  z-index: 2; /* keep text/chevron above the shine sweep */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  list-style: none;
  cursor: pointer;
}

.sc-track-faq-q::-webkit-details-marker {
  display: none;
}

.sc-track-faq-q-inner {
  display: flex;
  align-items: flex-start; /* pin the icon to the FIRST line of a wrapped question */
  gap: 0.7rem;
  min-width: 0; /* allow the question text to wrap */
}

.sc-track-faq-icon {
  flex: 0 0 auto;
  display: inline-flex;
  margin-top: 2px; /* optical: center the 22px icon on the first text line */
  color: var(--sc-yellow);
  line-height: 0;
  transition: transform 0.2s ease;
}

.sc-track-faq-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* Icon pops in concert with the card lift */
@media (hover: hover) and (pointer: fine) {
  .sc-track-faq-item:hover .sc-track-faq-icon {
    transform: scale(1.18);
  }
}

.sc-track-faq-q-text {
  font-weight: 600;
  font-size: var(--shop-body);
  line-height: 1.45;
  color: var(--sc-dark);
}

/* Gold chevron — down when closed, flips up when open */
.sc-track-faq-q::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--sc-yellow);
  border-bottom: 2px solid var(--sc-yellow);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.sc-track-faq-item[open] .sc-track-faq-q::after {
  transform: rotate(-135deg);
}

.sc-track-faq-q:focus-visible {
  outline: 2px solid var(--sc-yellow);
  outline-offset: -2px;
  border-radius: 10px;
}

/* ---- Answer ---- */
.sc-track-faq-a {
  position: relative;
  z-index: 2;
  /* Full-width like the /faq/ answer: starts at the card padding, not indented under
     the question text past the icon. */
  padding: 0 1.3rem 1.15rem;
  color: rgba(17, 17, 17, 0.78);
  line-height: 1.7;
}

.sc-track-faq-a p {
  margin: 0 0 0.75rem;
}

.sc-track-faq-a p:last-child {
  margin-bottom: 0;
}

.sc-track-faq-a a {
  color: var(--sc-dark);
  text-decoration: underline;
  text-decoration-color: var(--sc-yellow);
}

.sc-track-faq-a a:hover {
  color: var(--sc-yellow);
}

/* ---- Reduced motion: no lift, no shine, no icon scale ---- */
@media (prefers-reduced-motion: reduce) {
  .sc-track-faq-item,
  .sc-track-faq-icon,
  .sc-track-faq-q::after {
    transition: none;
  }
  .sc-track-faq-item:hover {
    transform: none;
  }
  .sc-track-faq-item:hover .sc-track-faq-icon {
    transform: none;
  }
  .sc-track-faq-item:hover::after {
    animation: none;
  }
}


/* =========================================================
   4) TRACK-5 AUDIT — bug fixes · award-tier parity · polish (Jun 8 2026)

   From a 3-agent audit of the live page. Fixes a mobile button-overflow + a
   placeholder-contrast a11y nit, brands the WooCommerce error/info notice (was
   unstyled — every WC notice rule in the theme is scoped to cart/checkout/product),
   adds the award-tier scroll-progress bar + scroll-reveal fades (parity with /faq/ +
   /contact-us/), and a heading accent + assurance strip on the lookup section. The
   SUCCESS-state order-details styling lands in a follow-up, against a real test order.
   ========================================================= */

/* ---- 4a) Mobile lookup card + Track button ---- */
/* The 1040px card override (above) outranks the global mobile calc(); re-assert a clean
   full-width card under the global's 840px breakpoint so it never crowds the edges. */
@media (max-width: 840px) {
  .sc-track-lookup .track_order {
    max-width: 100%;
  }
}
/* The Track button's min-width:260px can exceed the card at the smallest widths →
   horizontal scroll. Clamp it to the cell; go full-width on phones. */
.page-template-page-tracking .sc-track-lookup .track_order button[type="submit"],
.page-template-page-tracking .sc-track-lookup .track_order .button {
  max-width: 100%;
}
@media (max-width: 420px) {
  .page-template-page-tracking .sc-track-lookup .track_order button[type="submit"],
  .page-template-page-tracking .sc-track-lookup .track_order .button {
    min-width: 0;
    width: 100%;
  }
}

/* ---- 4b) Placeholder contrast (WCAG 1.4.3) — the global ::placeholder opacity:.55
   (~3.4:1) fails AA; a solid rgba(...,.62) ≈ 4.6:1. Scoped to tracking only. ---- */
.sc-track-lookup .track_order input::placeholder {
  color: rgba(17, 17, 17, 0.62);
  opacity: 1;
}

/* ---- 4c) Lookup heading accent — a small gold icon chip above "Look Up Your Order"
   (echoes the contact channel-card icon chips). ---- */
/* TRACK-6 (Stan): icon sits INLINE to the LEFT of the heading (was a block chip on top). */
.sc-track-lookup-headrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}
.sc-track-lookup-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0;
  color: var(--sc-yellow);
  background: rgba(255, 190, 61, 0.08);
  border: 1px solid rgba(255, 190, 61, 0.25);
  border-radius: 50%;
}
.sc-track-lookup-ico svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* ---- 4d) Assurance strip — trust cues under the form. ---- */
.sc-track-assurance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1.5rem;
  max-width: 1040px;
  margin: 1.25rem auto 0;
  padding: 0 1rem;
  list-style: none;
  text-align: center;
}
.sc-track-assurance li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--shop-small);
  font-weight: 600;
  color: rgba(17, 17, 17, 0.72);
}
.sc-track-assurance-ico {
  flex: 0 0 auto;
  display: inline-flex;
  line-height: 0;
  color: var(--sc-yellow);
}
.sc-track-assurance-ico svg {
  width: 18px;
  height: 18px;
}

/* ---- 4e) WooCommerce ERROR / INFO notice (invalid lookup) — branded card. Was
   unstyled here. Adapted, self-contained, from the product-page notice pattern
   (scopione-product.css ~L1538+). Renders inside .sc-track-lookup (the shortcode's
   .woocommerce wrapper). ---- */
.sc-track-lookup .woocommerce-error,
.sc-track-lookup .woocommerce-info,
.sc-track-lookup .woocommerce-message {
  position: relative;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem 0.85rem 3rem;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  color: var(--sc-dark);
  font-size: var(--shop-small);
  font-weight: 600;
  line-height: 1.5;
}
.sc-track-lookup .woocommerce-error::before,
.sc-track-lookup .woocommerce-info::before,
.sc-track-lookup .woocommerce-message::before {
  display: none; /* hide WC's default font-icon; we draw an SVG at the padding gap */
}
.sc-track-lookup .woocommerce-error {
  border-color: rgba(217, 45, 32, 0.25);
  background:
    rgba(217, 45, 32, 0.05)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d92d20' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M12 7v6'/><circle cx='12' cy='16.5' r='.6' fill='%23d92d20' stroke='none'/></svg>")
    14px 50% / 20px no-repeat;
}
.sc-track-lookup .woocommerce-info {
  border-color: rgba(255, 190, 61, 0.35);
  background:
    rgba(255, 190, 61, 0.07)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffbe3d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M12 8v0M12 11v5'/></svg>")
    14px 50% / 20px no-repeat;
}
.sc-track-lookup :is(.woocommerce-error, .woocommerce-info, .woocommerce-message) li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sc-track-lookup :is(.woocommerce-error, .woocommerce-info) a {
  color: var(--sc-dark);
  text-decoration: underline;
  text-decoration-color: var(--sc-yellow);
  text-underline-offset: 3px;
}
.sc-track-lookup :is(.woocommerce-error, .woocommerce-info) a:hover {
  color: var(--sc-yellow);
}

/* ---- 4f) Scroll-progress gold bar — clone of scopione-contact.css (scroll-progress
   block), re-scoped. Pure CSS (animation-timeline: scroll(root)); ≥768px + @supports +
   reduced-motion → a clean no-op on phones / older browsers / reduced-motion. ---- */
@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  @supports (animation-timeline: scroll(root)) {
    .page-template-page-tracking::before {
      content: "";
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 2px;
      background: var(--sc-yellow);
      transform-origin: 0 50%;
      transform: scaleX(0);
      animation: sc-track-scroll-progress linear forwards;
      animation-timeline: scroll(root);
      z-index: 9999;
      pointer-events: none;
      box-shadow: 0 0 8px color-mix(in srgb, var(--sc-yellow) 60%, transparent);
    }
    @keyframes sc-track-scroll-progress {
      from { transform: scaleX(0); }
      to   { transform: scaleX(1); }
    }
  }
}

/* ---- 4g) Scroll-reveal fade-ups on the LIGHT sections — clone of the scopione-faqs.css
   fade block, re-scoped. Dark hero/marquee/ticker/CTA excluded (Trap #50); the lookup
   form itself is left crisp (no fade on the primary action). ---- */
@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  @supports (animation-timeline: view()) {
    .page-template-page-tracking .sc-track-faq,
    .page-template-page-tracking section.bg-light#contact-form,
    .page-template-page-tracking .sc-contact-channels {
      animation: sc-track-fade-up linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
    @keyframes sc-track-fade-up {
      from { opacity: 0.6; transform: translateY(14px); }
      to   { opacity: 1; transform: translateY(0); }
    }
  }
}


/* =========================================================
   5) TRACK-6 — WooCommerce "order found" SUCCESS view (branded)

   The shortcode swaps the form for the result (verified against test order 40120):
   a status line (.order-info with <mark>s) → the woo-advanced-shipment-tracking card
   (.fluid_* + a blue .track-button) → the order-details table
   (.woocommerce-order-details .shop_table.order_details). All render inside
   .sc-track-lookup .woocommerce, default-WC/plugin-styled — branded here to the design
   system. (That plugin also emits a PHP "date_shipped" warning — suppressed page-side
   in functions.php §26; the proper fix is WP_DEBUG_DISPLAY=false in wp-config.)
   ========================================================= */

/* Constrain + center the whole result, matching the form-card width. */
.sc-track-lookup .woocommerce {
  max-width: 1040px;
  margin: 0 auto;
}

/* ---- Status line → branded callout with a gold status badge ---- */
.sc-track-lookup .order-info {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-left: 4px solid var(--sc-yellow);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  font-size: var(--shop-body);
  color: var(--sc-dark);
  text-align: center; /* TRACK-13 (Stan): centre the "Order #… is currently …" line on all screens */
}
.sc-track-lookup .order-info mark {
  background: transparent;
  color: var(--sc-dark);
  font-weight: 700;
}
.sc-track-lookup .order-info mark.order-status {
  display: inline-block;
  padding: 0.1em 0.65em;
  background: var(--sc-yellow);
  border-radius: 8px; /* TRACK-7: match the "Track Your Order" pill's 8px radius (was a 999px pill) */
  letter-spacing: 0.02em;
}

/* ---- Result headings ("Tracking Information") ---- */
.sc-track-lookup .woocommerce > h2 {
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--sc-dark);
  margin: 1.5rem 0 1rem;
}

/* ---- Shipment tracking card (woo-advanced-shipment-tracking) — override its inline
   gray card + blue button. .sc-track-lookup … (≥0,2,0) beats the plugin's 1-class
   inline <style>; the button keeps a couple of !important against WC's .button base. ---- */
.sc-track-lookup .fluid_section { margin: 0 0 1.5rem; }
.sc-track-lookup .fluid_container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  width: 100%;
  padding: 0.4rem 0.6rem;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-left: 4px solid var(--sc-yellow); /* TRACK-7: gold left line on all 3 result pillows */
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}
/* TRACK-8: the plugin sets .fluid_cl{width:70%;display:table-cell} + .fluid_right_cl{padding-top:15px}
   — that broke the column sizing + floated the button low. Kill those; lay the card out as a
   clean, compact flex row with the button vertically centered, inline with the carrier info. */
.sc-track-lookup .fluid_cl {
  display: block;
  width: auto;
  padding: 0.6rem 0.75rem;
}
.sc-track-lookup .fluid_left_cl { flex: 1 1 auto; min-width: 0; }
.sc-track-lookup .fluid_right_cl {
  flex: 0 0 auto;
  width: auto;
  margin-left: auto;
  padding: 0.6rem 0.75rem;
  text-align: right;
  align-self: center;
}
/* Provider mark + name on one tidy centered row. */
.sc-track-lookup .fluid_img_with_provider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.sc-track-lookup .provider_name { width: auto; }
/* TRACK-7 (Stan): swap the plugin's empty default provider image for the Scopione "S" mark. */
.sc-track-lookup .fluid_provider_img {
  flex: 0 0 auto;
  width: 44px;
  height: 30px;
  margin: 0;
  background: url("../img/scopione-logo-sq.svg") center / contain no-repeat;
}
.sc-track-lookup .fluid_provider_img img { display: none; }
.sc-track-lookup .tracking_provider { color: var(--sc-dark); font-size: 1.05rem; }
.sc-track-lookup .tracking_number {
  color: var(--sc-dark);
  text-decoration: underline;
  text-decoration-color: var(--sc-yellow);
  text-underline-offset: 3px;
  word-break: break-all;
}
.sc-track-lookup .tracking_number:hover { color: var(--sc-yellow); }
.sc-track-lookup .order_status.completed { color: rgba(17, 17, 17, 0.7); font-size: var(--shop-small); }
/* TRACK-9 (Stan): give the plugin's "Track Your Order" button the SAME gold→dark
   white-shine hover as the hero "Tracking Help" pill (.sc-contact-cta-btn). Longhands +
   !important beat the plugin's `a.button.track-button { background:#005b9a }` shorthand. */
.sc-track-lookup a.button.track-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--sc-yellow) !important;
  background-image: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.85) 50%, transparent 65%) !important;
  background-repeat: no-repeat !important;
  background-size: 250% 100% !important;
  background-position: 150% 0 !important;
  color: var(--sc-dark) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.5rem !important;
  border: 2px solid transparent !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(255, 190, 61, 0.32);
  transition: background-color 0.3s ease, background-position 0.7s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}
.sc-track-lookup a.button.track-button:hover,
.sc-track-lookup a.button.track-button:focus-visible {
  background-color: var(--sc-dark) !important;
  background-position: -50% 0 !important;
  color: #fff !important;
  border-color: var(--sc-yellow) !important;
  box-shadow: 0 0 25px rgba(255, 190, 61, 0.55), 0 10px 40px rgba(255, 190, 61, 0.28) !important;
}
@media (prefers-reduced-motion: reduce) {
  .sc-track-lookup a.button.track-button,
  .sc-track-lookup a.button.track-button:hover,
  .sc-track-lookup a.button.track-button:focus-visible {
    background-position: 150% 0 !important;
  }
}

/* ---- Order-details card + table ---- */
.sc-track-lookup .woocommerce-order-details {
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-left: 4px solid var(--sc-yellow); /* TRACK-7: gold left line on all 3 result pillows */
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}
.sc-track-lookup .shop_table.order_details {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
}
/* TRACK-9 (Stan): kill the stray gray line at the TOP of the order-details pillow —
   WooCommerce core's `td`/`thead th { border-top }` outranked the track-6 reset on
   specificity. Higher-specificity + !important removes it (the between-item dividers are
   my own .order_item border-bottom, so they stay). */
.sc-track-lookup .woocommerce-order-details thead,
.sc-track-lookup .woocommerce-order-details thead th,
.sc-track-lookup .woocommerce-order-details .order_item > td {
  border-top: 0 !important;
}
/* Product line item — img left, details, line total right (a single colspan=2 cell). */
.sc-track-lookup .order_item > td {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 1rem;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}
.sc-track-lookup .order_item .product-name {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1 1 60%;
  min-width: 0;
}
.sc-track-lookup .order_item .product-name > img {
  flex: 0 0 auto;
  width: 84px;
  height: auto;
  border-radius: 4px; /* TRACK-10 (Stan): more square — 8px clipped the corner badges on small thumbs */
}
.sc-track-lookup .order_item .product-details { min-width: 0; }
.sc-track-lookup .order_item .product-details a {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--sc-dark);
  text-decoration: underline;
  text-decoration-color: var(--sc-yellow);
  text-underline-offset: 2px;
}
.sc-track-lookup .order_item .product-details a:hover { color: var(--sc-yellow); }
/* TRACK-7 (Stan): price + qty on one line (price was a block div, qty dropped below). */
.sc-track-lookup .order_item .cart-item__price { display: inline-block; }
.sc-track-lookup .order_item .product-quantity { display: inline-block; margin-left: 0.4rem; color: rgba(17, 17, 17, 0.6); font-weight: 600; }
.sc-track-lookup .order_item .product-total {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--sc-dark);
  white-space: nowrap;
}
/* Totals (tfoot). */
.sc-track-lookup .order_details tfoot th,
.sc-track-lookup .order_details tfoot td {
  padding: 0.7rem 0;
  border: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  text-align: left;
}
.sc-track-lookup .order_details tfoot th { font-weight: 600; color: rgba(17, 17, 17, 0.7); }
.sc-track-lookup .order_details tfoot td { text-align: right; font-weight: 700; color: var(--sc-dark); }
.sc-track-lookup .order_details tfoot tr.order_total th,
.sc-track-lookup .order_details tfoot tr.order_total td { font-size: 1.1rem; }

/* Mobile: stack the tracking card's button full-width. */
@media (max-width: 575.98px) {
  .sc-track-lookup .fluid_right_cl { margin-left: 0; width: 100%; }
  .sc-track-lookup a.button.track-button { width: 100%; }

  /* TRACK-11 (Stan): on phones the line item's two-up (name | line-total) squeezed the
     title to ~one word per line and the $total overlapped it. Give the name+image the full
     row; drop the redundant per-line total (the "$price × qty" right under the title already
     shows it, and the order Subtotal/Total are below). */
  .sc-track-lookup .order_item > td { gap: 0.5rem; }
  .sc-track-lookup .order_item .product-name { flex: 1 1 100%; }
  .sc-track-lookup .order_item .product-name > img { width: 64px; }
  .sc-track-lookup .order_item .product-total { display: none; }
}


/* =========================================================
   §5b) TRACK-12 — Award-tier success-view upgrade (Jun 8 2026)

   The order-status TIMELINE + "need help" CTA inject into the WC result via the
   woocommerce_view_order hook (functions.php §27, page-scoped). The copy-tracking
   button + external-link hardening come from js/scopione-tracking.js. Plus edge-case
   rendering fixes (variations · success notice · refunded), a load-entrance animation,
   row hover, inline validation, and a print sheet.
   ========================================================= */

/* ---- Order-status timeline: Placed → Processing → Shipped → Delivered ---- */
.sc-track-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.25rem 1rem;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-left: 4px solid var(--sc-yellow);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}
.sc-track-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
}
.sc-track-step-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  line-height: 0;
  color: rgba(17, 17, 17, 0.4);
  background: rgba(17, 17, 17, 0.04);
  border: 1px solid rgba(17, 17, 17, 0.1);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.sc-track-step-ico svg { width: 20px; height: 20px; }
.sc-track-step-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.sc-track-step-label {
  font-weight: 600;
  font-size: var(--shop-body);
  color: rgba(17, 17, 17, 0.62); /* TRACK-14: was .5 (~3.8:1) → .62 (~4.6:1, WCAG AA) */
}
.sc-track-step-date { /* TRACK-14: real order/ship date, or "Pending" on the dimmed Delivered stage */
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(17, 17, 17, 0.55);
}
/* connector — vertical on mobile (between stacked steps) */
.sc-track-step::before {
  content: "";
  position: absolute;
  left: 19px;
  top: -0.5rem;
  width: 2px;
  height: 0.5rem;
  background: rgba(17, 17, 17, 0.12);
}
.sc-track-step:first-child::before { display: none; }
.sc-track-step.is-done .sc-track-step-ico,
.sc-track-step.is-current .sc-track-step-ico {
  color: var(--sc-dark);
  background: var(--sc-yellow);
  border-color: var(--sc-yellow);
}
.sc-track-step.is-future .sc-track-step-ico {
  border-style: dashed; /* TRACK-14: upcoming stages read as "not yet" by design (incl. the always-future Delivered) */
}
.sc-track-step.is-done .sc-track-step-label,
.sc-track-step.is-current .sc-track-step-label { color: var(--sc-dark); }
.sc-track-step.is-current .sc-track-step-ico {
  box-shadow: 0 0 0 4px rgba(255, 190, 61, 0.25), 0 0 18px rgba(255, 190, 61, 0.45);
}
.sc-track-step.is-done::before,
.sc-track-step.is-current::before { background: var(--sc-yellow); }
@media (min-width: 768px) {
  .sc-track-timeline {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem 1.25rem;
  }
  .sc-track-step {
    flex: 1 1 0;
    flex-direction: column;
    text-align: center;
    gap: 0.55rem;
    padding: 0;
  }
  .sc-track-step-label { font-size: var(--shop-small); }
  /* connector — horizontal: a 2px line at the icon's centre, from the previous icon to
     this one (hidden behind the opaque icon circles, visible only in the gaps). */
  .sc-track-step::before {
    left: auto;
    right: 50%;
    top: 20px;
    width: 100%;
    height: 2px;
  }
}
.sc-track-timeline-note {
  margin: -1rem 0 1.5rem;
  font-size: var(--shop-small);
  color: rgba(17, 17, 17, 0.7);
}
@media (prefers-reduced-motion: no-preference) {
  .sc-track-step.is-current .sc-track-step-ico {
    animation: sc-track-pulse 2.4s ease-in-out infinite;
  }
  @keyframes sc-track-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(255, 190, 61, 0.25), 0 0 14px rgba(255, 190, 61, 0.4); }
    50%      { box-shadow: 0 0 0 6px rgba(255, 190, 61, 0.18), 0 0 22px rgba(255, 190, 61, 0.55); }
  }
}

/* ---- Non-linear status chip (cancelled / refunded / failed) ---- */
.sc-track-statuschip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-left: 4px solid rgba(17, 17, 17, 0.35);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  font-weight: 700;
  color: var(--sc-dark);
}
.sc-track-statuschip-ico { flex: 0 0 auto; display: inline-flex; line-height: 0; color: rgba(17, 17, 17, 0.55); }
.sc-track-statuschip-ico svg { width: 24px; height: 24px; }
.sc-track-statuschip--alert { border-left-color: #d92d20; background: rgba(217, 45, 32, 0.04); }
.sc-track-statuschip--alert .sc-track-statuschip-ico { color: #d92d20; }

/* ---- Copy-tracking-number pill (injected by scopione-tracking.js) ---- */
.sc-track-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;          /* TRACK-13: centre the icon + label */
  align-self: center;               /* TRACK-13: when the plugin stacks the carrier block into a
                                       flex-column (≤600px), centre + hug content (don't stretch
                                       full-width); ignored on desktop where the row is not flex */
  gap: 0.4rem;
  margin-left: 0.6rem;              /* gap from the tracking number on desktop (inline) */
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--sc-dark);
  background: transparent;
  border: 1.5px solid rgba(255, 190, 61, 0.7);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.sc-track-copy-ico { display: inline-flex; line-height: 0; }
/* TRACK-13: on the stacked mobile carrier card give the pill room above it + a bigger tap target. */
@media (max-width: 600px) {
  .sc-track-lookup .sc-track-copy {
    margin: 0.55rem 0 0;            /* breathing room from the tracking number; reset the desktop left gap */
    padding: 0.45rem 1.05rem;
  }
}
@media (hover: hover) { .sc-track-copy:hover { background: var(--sc-yellow); border-color: var(--sc-yellow); } }
.sc-track-copy:focus-visible { outline: 2px solid var(--sc-dark); outline-offset: 2px; }
.sc-track-copy.is-copied { background: var(--sc-yellow); border-color: var(--sc-yellow); color: var(--sc-dark); }
@media (prefers-reduced-motion: no-preference) {
  .sc-track-copy.is-copied { animation: sc-track-copyflash 0.5s ease; }
  @keyframes sc-track-copyflash {
    0%   { box-shadow: 0 0 0 0 rgba(255, 190, 61, 0.6); }
    100% { box-shadow: 0 0 0 10px rgba(255, 190, 61, 0); }
  }
}

/* ---- Edge case: product variations (modern ul.wc-item-meta + legacy dl.variation) ---- */
.sc-track-lookup .order_item .wc-item-meta {
  margin: 0.3rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--shop-small);
  color: rgba(17, 17, 17, 0.62);
}
.sc-track-lookup .order_item .wc-item-meta li { display: flex; gap: 0.35rem; margin: 0 0 0.15rem; }
.sc-track-lookup .order_item .wc-item-meta li > strong.wc-item-meta-label { font-weight: 600; color: rgba(17, 17, 17, 0.75); }
.sc-track-lookup .order_item .wc-item-meta li > p { margin: 0; }
.sc-track-lookup .order_item dl.variation { margin: 0.3rem 0 0; font-size: var(--shop-small); color: rgba(17, 17, 17, 0.62); }
.sc-track-lookup .order_item dl.variation dt { display: inline; font-weight: 600; color: rgba(17, 17, 17, 0.75); }
.sc-track-lookup .order_item dl.variation dt::after { content: " "; }
.sc-track-lookup .order_item dl.variation dd { display: inline; margin: 0 0.6rem 0 0.2rem; }
.sc-track-lookup .order_item dl.variation dd p { display: inline; margin: 0; }

/* ---- Edge case: success notice (.woocommerce-message had the card but no bg/icon) ---- */
.sc-track-lookup .woocommerce-message {
  border-color: rgba(46, 160, 67, 0.30);
  background:
    rgba(46, 160, 67, 0.06)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232ea043' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='m8 12 3 3 5-6'/></svg>")
    14px 50% / 20px no-repeat;
}
.sc-track-lookup .woocommerce-message a { color: var(--sc-dark); text-decoration: underline; text-decoration-color: var(--sc-yellow); text-underline-offset: 3px; }
.sc-track-lookup .woocommerce-message a:hover { color: var(--sc-yellow); }

/* ---- Edge case: refunded orders ---- */
.sc-track-lookup .order_item.refunded,
.sc-track-lookup .order_item.refunded .product-details a { color: rgba(17, 17, 17, 0.45); }
.sc-track-lookup .order_item.refunded .product-total { text-decoration: line-through; color: rgba(17, 17, 17, 0.45); }
.sc-track-lookup .order_details tfoot tr.refunded th,
.sc-track-lookup .order_details tfoot tr.refunded td { color: #2ea043; }
/* coupon/discount amount reads as a credit (the generic tfoot rule already lays it out) */
.sc-track-lookup .order_details tfoot tr.cart-discount td { color: #2ea043; }

/* ---- "Need help with this order?" CTA (functions.php §27 @20) ---- */
.sc-track-needhelp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  max-width: 1040px;
  margin: 1.5rem auto 0;
  padding: 1.1rem 1.25rem;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}
.sc-track-needhelp-text { margin: 0; font-weight: 600; color: rgba(17, 17, 17, 0.75); }
.sc-track-needhelp-btn { font-size: 0.95rem; padding: 0.7rem 1.6rem; }

/* ---- Order-item row hover ---- */
@media (hover: hover) {
  .sc-track-lookup .order_item:hover > td { background: rgba(255, 190, 61, 0.04); }
}

/* ---- Inline validation affordance (CSS-only; the billing-email field is type=email) ---- */
.sc-track-lookup .track_order input:user-invalid,
.sc-track-lookup .track_order input[type="email"]:not(:placeholder-shown):invalid {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.18);
}

/* ---- Result entrance (load-time; distinct from the §4g scroll view() fades) ---- */
@media (prefers-reduced-motion: no-preference) {
  .sc-track-lookup .order-info,
  .sc-track-timeline,
  .sc-track-statuschip,
  .sc-track-lookup .fluid_container,
  .sc-track-lookup .woocommerce-order-details {
    animation: sc-track-result-in 0.5s ease both;
  }
  .sc-track-timeline { animation-delay: 0.06s; }
  .sc-track-lookup .fluid_container { animation-delay: 0.12s; }
  .sc-track-lookup .woocommerce-order-details { animation-delay: 0.18s; }
  @keyframes sc-track-result-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ---- Print: keep only the result chrome, clean (clone of the /faq/ print approach) ---- */
@media print {
  .page-template-page-tracking::before,
  .sc-track-faq,
  .sc-shop-ticker,
  .sc-contact-reveal-section,
  .sc-contact-channels,
  .sc-contact-trust,
  .sc-dealer-carmarquee,
  #contact-form,
  .sc-contact-final-cta,
  .sc-track-assurance,
  .sc-track-copy,
  .sc-track-needhelp,
  .sc-track-lookup a.button.track-button {
    display: none !important;
  }
  .sc-track-lookup .woocommerce,
  .sc-track-timeline,
  .sc-track-statuschip,
  .sc-track-lookup .order-info,
  .sc-track-lookup .fluid_container,
  .sc-track-lookup .woocommerce-order-details {
    box-shadow: none !important;
    break-inside: avoid;
  }
  .sc-track-step.is-current .sc-track-step-ico { animation: none !important; box-shadow: none !important; }
}


/* =========================================================
   §5c) TRACK-14 — audit fixes + polish (Jun 8 2026)
   ========================================================= */

/* "Package X of Y" label above each shipment card (JS-injected on multi-package orders). */
.sc-track-pkg {
  margin: 0 0 0.4rem;
  font-size: var(--shop-small);
  font-weight: 700;
  color: rgba(17, 17, 17, 0.6);
}
/* Breathing room between stacked shipment cards (multi-package orders). */
.sc-track-lookup .fluid_section + .fluid_section,
.sc-track-lookup .fluid_container + .fluid_container {
  margin-top: 1rem;
}

/* Order-number format hint under the lookup intro. */
.sc-track-lookup-hint {
  margin: 0.5rem 0 0;
  font-size: var(--shop-small);
  color: rgba(17, 17, 17, 0.6);
}
.sc-track-lookup-hint strong { color: var(--sc-dark); font-weight: 700; }

/* Visually hide the JS-appended "(opens in a new tab)" hint — the child sheet doesn't
   define .screen-reader-text, so don't rely on it being present. */
.sc-sr-newtab {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
