/* Order Tracker for WooCommerce 1.1.0: isolated, responsive UI. */
.wot-tracker {
  --wot-active:var(--e-global-color-primary, var(--wp--preset--color--primary,#286fcb));
  --wot-done:#16855c;
  --wot-surface:transparent;
  --wot-text:inherit;
  --wot-muted:#667483;
  --wot-border:#dbe1e7;
  --wot-subtle:#f4f6f9;
  box-sizing:border-box; width:100%; max-width:100%; margin:24px 0; padding:clamp(16px,3vw,28px);
  border:1px solid var(--wot-border); border-radius:14px; color:var(--wot-text); background:var(--wot-surface);
  font-family:inherit; line-height:1.5; container-type:inline-size; overflow-wrap:anywhere;
}
.wot-tracker *, .wot-tracker *::before, .wot-tracker *::after {box-sizing:border-box}
.wot-tracker .wot-head {display:flex;justify-content:space-between;align-items:center;gap:14px;padding-bottom:14px;border-bottom:1px solid var(--wot-border)}
.wot-tracker .wot-head h2 {font:inherit;font-size:clamp(1.15rem,2.5vw,1.45rem);font-weight:700;line-height:1.25;margin:4px 0 0;color:inherit}
.wot-tracker .wot-eyebrow {font-size:.78rem;letter-spacing:.04em;opacity:.72}
.wot-tracker .wot-tag {background:color-mix(in srgb,var(--wot-active) 12%,transparent);color:var(--wot-active);padding:6px 12px;border-radius:50px;font-size:.82rem;line-height:1.4;font-weight:700;white-space:normal}
.wot-tracker .wot-details {display:grid;gap:6px;margin:18px 0;padding:14px 16px;background:var(--wot-subtle);border-radius:10px;font-size:.9rem;color:#25313c}
.wot-tracker .wot-details span {display:block}
.wot-tracker .wot-details strong {font-weight:700}
.wot-tracker .wot-timeline {padding:4px 0 0!important;margin:18px 0 0!important;list-style:none!important;display:block}
.wot-tracker .wot-step {padding:0 0 26px!important;margin:0!important;display:flex;position:relative;gap:16px;align-items:flex-start;min-height:68px;list-style:none!important}
.wot-tracker .wot-step::before {position:absolute;content:"";top:24px;bottom:0;left:11px;width:2px;background:var(--wot-border)}
.wot-tracker .wot-step:last-child {padding-bottom:0!important}
.wot-tracker .wot-step:last-child::before {display:none}
.wot-tracker .wot-step.wot-done::before {background:var(--wot-done)}
.wot-tracker .wot-dot {display:grid;place-items:center;position:relative;z-index:1;flex:0 0 24px;width:24px;height:24px;border-radius:50%;border:2px solid #b4c0ce;background:var(--wot-surface,#fff);color:transparent;font-size:.75rem;font-weight:800;line-height:1}
.wot-tracker .wot-done .wot-dot {background:var(--wot-done);border-color:var(--wot-done);color:#fff}
.wot-tracker .wot-current .wot-dot {background:var(--wot-active);border-color:var(--wot-active);color:#fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--wot-active) 14%,transparent)}
.wot-tracker .wot-step-body {flex:1;min-width:0}
.wot-tracker .wot-step-body h3 {color:inherit;margin:0 0 3px;font-size:1rem;font-weight:700;line-height:1.35}
.wot-tracker .wot-step-body p {font-size:.875rem;line-height:1.45;margin:0 0 5px;opacity:.76;color:inherit}
.wot-tracker .wot-step-body time {font-size:.78rem;opacity:.74}
.wot-tracker .wot-upcoming {opacity:.57}
.wot-tracker .wot-step-body .wot-note {font-size:.8rem;opacity:1;padding:8px;background:var(--wot-subtle);color:#374151;border-radius:7px;margin-top:8px}
.wot-tracker .wot-qr {display:flex;align-items:center;gap:18px;margin:20px 0 4px;padding:18px;border:1px dashed var(--wot-border);border-radius:10px;background:var(--wot-subtle);color:#243243}
.wot-tracker .wot-qr-code {flex:0 0 134px;width:134px;height:134px;background:#fff;border-radius:8px;border:1px solid #dee5ec;display:grid;place-items:center;padding:8px}
.wot-tracker .wot-qr-code svg {width:100%;height:100%;display:block}
.wot-tracker .wot-qr-info {min-width:0;flex:1;font-size:.88rem}
.wot-tracker .wot-qr-info p {font-size:.82rem;line-height:1.5;margin:5px 0 10px}
.wot-tracker .wot-qr-info a {color:var(--wot-active);text-decoration:underline}
.wot-tracker .wot-copy-link {padding:7px 12px;border-radius:7px;border:1px solid #c2cbd5;background:#fff;color:#273445;cursor:pointer;font:inherit;font-size:.8rem;margin:4px 0}
.wot-tracker .wot-footer {margin:20px 0 0;font-size:.77rem;opacity:.72;line-height:1.4}
.wot-tracker .wot-alert {border-left:3px solid #c98b1a;padding:12px;background:#fff9e9;color:#40320c;margin:14px 0}
.wot-tracker :focus-visible {outline:2px solid var(--wot-active);outline-offset:3px}
.wot-preview-shell {max-width:1060px}
/* Modern browsers: use actual component width, not device width. This prevents overflow in sidebars and account columns. */
@container (min-width:690px) {
  .wot-tracker.wot-layout-auto .wot-timeline,
  .wot-tracker.wot-layout-horizontal .wot-timeline {
    display:grid;grid-template-columns:repeat(var(--wot-step-count,6),minmax(0,1fr));margin-top:27px!important;gap:0;align-items:start;
  }
  .wot-tracker.wot-layout-auto .wot-step,
  .wot-tracker.wot-layout-horizontal .wot-step {min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;gap:15px;padding:0 8px!important;margin:0!important}
  .wot-tracker.wot-layout-auto .wot-step::before,
  .wot-tracker.wot-layout-horizontal .wot-step::before {top:11px;left:calc(50% + 12px);right:calc(-50% + 12px);height:3px;width:auto;bottom:auto}
  .wot-tracker.wot-layout-auto .wot-step:last-child::before,
  .wot-tracker.wot-layout-horizontal .wot-step:last-child::before {display:none}
  .wot-tracker.wot-layout-auto .wot-step-body,
  .wot-tracker.wot-layout-horizontal .wot-step-body {width:100%;font-size:.83rem}
  .wot-tracker.wot-layout-auto .wot-step-body h3,
  .wot-tracker.wot-layout-horizontal .wot-step-body h3 {font-size:.87rem}
  .wot-tracker.wot-layout-auto .wot-step-body p,
  .wot-tracker.wot-layout-horizontal .wot-step-body p {font-size:.75rem}
  .wot-tracker.wot-layout-auto .wot-step-body time,
  .wot-tracker.wot-layout-horizontal .wot-step-body time {font-size:.7rem}
  .wot-tracker.wot-layout-auto .wot-step .wot-dot,
  .wot-tracker.wot-layout-horizontal .wot-step .wot-dot {margin:0 auto}
}
@media(max-width:550px) {
 .wot-tracker {margin:12px 0;border-radius:10px;padding:14px}
 .wot-tracker .wot-head {align-items:flex-start;display:block}
 .wot-tracker .wot-tag {display:inline-block;margin-top:10px}
 .wot-tracker .wot-qr {flex-direction:column;align-items:flex-start;padding:14px}
 .wot-tracker .wot-qr-code {flex-basis:auto}
}
@media print {
  .wot-tracker {background:white!important;color:black!important;box-shadow:none!important;border:0!important;padding:8px!important}
  .wot-tracker .wot-copy-link {display:none!important}
}

/* v1.4.1: compact live status and cached-page-safe tracking. */
.wot-live-shell{width:100%;min-height:180px}
.wot-live-loading{padding:40px 18px;border:1px solid #dce6ed;border-radius:13px;text-align:center;color:#38536b;background:#fff;font:500 15px/1.6 system-ui,sans-serif}
.wot-live-warning{margin:14px 0;padding:10px 13px;background:#fff4e8;border:1px solid #f0cca8;border-radius:8px;color:#704816;font-size:13px}
.wot-tracker .wot-current-summary{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#edf5f9;border-radius:10px;padding:15px 18px;margin:15px 0;color:#213c50}
.wot-tracker .wot-current-summary>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.wot-tracker .wot-current-summary small{font-size:10px;letter-spacing:.07em;font-weight:750;color:#607c91}
.wot-tracker .wot-current-summary strong{font-size:20px;line-height:1.25;color:#075e89}
.wot-tracker .wot-current-summary span{font-size:13px;line-height:1.5;color:#425b6e}
.wot-tracker .wot-refresh-now{flex:none;border:1px solid #9eb8c9!important;border-radius:8px!important;min-height:40px!important;padding:8px 13px!important;background:#fff!important;color:#075b85!important;box-shadow:none!important;font:600 12px/1.4 system-ui,sans-serif!important;cursor:pointer!important}
.wot-tracker .wot-refresh-now:hover{background:#e1f1f9!important}
.wot-tracker .wot-refresh-now:disabled{opacity:.65!important;cursor:wait!important}
.wot-tracker .wot-qr-details{margin-top:15px;border:1px solid var(--wot-border,#e1e7ec);border-radius:10px;overflow:hidden}
.wot-tracker .wot-qr-details>summary{padding:13px 16px;cursor:pointer;font-size:13px;font-weight:650;color:#2c536b;background:#f7fafc}
.wot-tracker .wot-qr-details>.wot-qr{margin:0;border:0;border-top:1px solid var(--wot-border,#e1e7ec);border-radius:0}
.wot-tracker .wot-live-stamp{font-size:11px!important;color:#697b89!important;margin:10px 0 0!important}
@media (max-width:550px){.wot-tracker .wot-current-summary{flex-direction:column;align-items:stretch}.wot-tracker .wot-refresh-now{align-self:flex-start}}
@media print{.wot-tracker .wot-refresh-now{display:none!important}}

/* v1.6.0: optional photographic evidence, independent of timeline orientation. */
.wot-tracker .wot-evidence{margin:10px 0 0;max-width:240px}.wot-tracker .wot-evidence a{display:inline-flex;flex-direction:column;gap:5px;max-width:100%;font-size:12px;color:inherit;text-decoration:underline}.wot-tracker .wot-evidence img{display:block;width:100%;max-width:220px;max-height:150px;object-fit:contain;border-radius:9px;border:1px solid var(--wot-border,#dce6ed);background:#f4f6f8}.wot-tracker .wot-evidence a:focus-visible{outline:2px solid currentColor;outline-offset:3px}
