/* =========================================================
   Status zamówienia (/status-zamowienia) i etapy w „Moje konto → Zamówienia” — inc/order-tracking.php
   ========================================================= */

.ord { display: grid; gap: 24px; margin-bottom: 32px; }
.ord-now { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 620; letter-spacing: -0.02em; line-height: 1.3; }

/* oś etapów: kropki połączone linią, zrobione — czarne, bieżący z obwódką */
.ord-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); }
.ord-steps li { position: relative; display: grid; align-content: start; gap: 2px; padding: 30px 12px 0 0; }
.ord-steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 8px; left: 24px; right: 8px; height: 2px; border-radius: 2px; background: var(--line);
}
.ord-steps li:has(+ .is-done)::after { background: var(--ink); }
.ord-steps__dot { position: absolute; top: 1px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.ord-steps .is-done .ord-steps__dot { background: var(--ink); box-shadow: none; }
.ord-steps .is-current .ord-steps__dot { box-shadow: 0 0 0 5px rgba(21, 23, 26, .12); }
.ord-steps .is-stop .ord-steps__dot { background: #b91c1c; box-shadow: 0 0 0 5px rgba(185, 28, 28, .14); }
.ord-steps strong { font-weight: 520; color: var(--ink-3); }
.ord-steps .is-done strong { color: var(--ink); }
.ord-steps .is-current strong { font-weight: 650; }
.ord-steps time { font-size: .875rem; color: var(--ink-2); }

/* telefon: oś pionowa, data po prawej */
@media (max-width: 560px) {
  .ord-steps { grid-template-columns: 1fr; }
  .ord-steps li { grid-template-columns: 1fr auto; align-items: baseline; gap: 12px; padding: 0 0 24px 34px; }
  .ord-steps li:last-child { padding-bottom: 0; }
  .ord-steps li:not(:last-child)::after { top: 24px; bottom: 6px; left: 7px; right: auto; width: 2px; height: auto; }
  .ord-steps__dot { top: 3px; }
}

/* jak dotrze: paczkomat z mapy, odbiór osobisty w biurze, kurier (inc/shipping.php) */
.ord-via { display: grid; gap: 2px; margin: 0; padding: 18px 20px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.ord-via span { font-size: .875rem; color: var(--ink-2); }
.ord-via strong { font-weight: 600; overflow-wrap: anywhere; }
.ord-via small { font-size: .9375rem; color: var(--ink-2); }

/* przesyłka */
.ord-ship {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  padding: 18px 20px; border-radius: var(--radius); background: var(--mist);
}
.ord-ship p { display: grid; gap: 2px; min-width: 0; }
.ord-ship span { font-size: .875rem; color: var(--ink-2); }
.ord-ship strong { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 560px) { .ord-ship .btn { width: 100%; } }

/* produkty (strona śledzenia) */
.ord-items { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ord-items li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.ord-items img, .ord-items__pic { width: 48px; height: 48px; object-fit: contain; padding: 4px; border-radius: 10px; background: var(--mist); }
.ord-items small { color: var(--ink-2); font-size: .875rem; white-space: nowrap; }

/* strona śledzenia: formularz */
.ord-lead { margin-bottom: 24px; }
.ord-nowrap { white-space: nowrap; }
.ord-form { max-width: 520px; background: var(--mist); }
.ord-form input:not([type="radio"]):not([type="checkbox"]) { background: #fff; }
.ord-help { margin-top: 20px; color: var(--ink-2); font-size: .9375rem; }
.ord-help a { color: var(--ink); font-weight: 560; }
.ord-help + .ord-help { margin-top: 8px; }

/* strona śledzenia: link wysłany na e-mail (jak prośba o potwierdzenie e-maila w Moim koncie) */
.ord-sent { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; align-items: start; max-width: 640px; padding: 20px 22px; border-radius: var(--radius); background: var(--mist); }
.ord-sent svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ord-sent strong { font-weight: 600; }
.ord-sent p { margin: 4px 0 0; color: var(--ink-2); }

/* Moje konto → zamówienie: wiadomości i szczegóły WooCommerce */
.ord-notes__title, .woocommerce-MyAccount-content .woocommerce-order-details__title,
.woocommerce-MyAccount-content .woocommerce-column__title { font-size: 1.25rem; letter-spacing: -0.015em; margin: 32px 0 12px; }
.ord-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ord-notes li { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--mist); font-size: .9375rem; }
.ord-notes time { display: block; font-size: .8125rem; color: var(--ink-2); margin-bottom: 4px; }
.ord-notes p { margin: 0; }
.woocommerce-MyAccount-content .woocommerce-customer-details address { font-style: normal; color: var(--ink-2); line-height: 1.6; padding: 18px 20px; border-radius: var(--radius); background: var(--mist); }
.woocommerce-MyAccount-content .woocommerce-columns--addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.woocommerce-MyAccount-content .woocommerce-customer-details--phone, .woocommerce-MyAccount-content .woocommerce-customer-details--email,
.woocommerce-MyAccount-content .woocommerce-customer-details--nip { margin: 6px 0 0; }
