/* ==========================================================================
   GA Woo Order Tracker — v2.2.0
   Full Redesign · Bold Modern UI · All-Device Responsive
   Every element toggleable & stylable from Elementor.
   ========================================================================== */

/* ----------------------------- Tokens ----------------------------------- */
.oot-container {
  --oot-primary:        #10b981;
  --oot-primary-dark:   #059669;
  --oot-primary-light:  #d1fae5;
  --oot-bg-from:        #ffffff;
  --oot-bg-to:          #f8fafc;
  --oot-border:         #e2e8f0;
  --oot-title:          #064e3b;
  --oot-title-highlight:#10b981;
  --oot-text:           #4b5563;
  --oot-muted:          #9ca3af;
  --oot-value:          #0f172a;
  --oot-label:          #6b7280;
  --oot-btn-from:       #10b981;
  --oot-btn-to:         #059669;
  --oot-btn-text:       #ffffff;
  --oot-step-done:      #10b981;
  --oot-step-active:    #10b981;
  --oot-step-pending:   #e5e7eb;
  --oot-badge-bg:       #ffffff;
  --oot-badge-text:     #065f46;
  --oot-badge-icon:     #10b981;
  --oot-badge-border:   #d1fae5;
  --oot-error-bg:       #fef2f2;
  --oot-error-text:     #b91c1c;
  --oot-error-border:   #fecaca;

  /* Header icon defaults */
  --oot-hicon-bg-from:  var(--oot-btn-from);
  --oot-hicon-bg-to:    var(--oot-btn-to);
  --oot-hicon-color:    #ffffff;
  --oot-hicon-border:   transparent;

  /* Search icon defaults */
  --oot-sicon-bg:       transparent;
  --oot-sicon-color:    var(--oot-primary);
  --oot-sicon-border:   transparent;

  --oot-r:    20px;
  --oot-r-sm: 14px;
  --oot-r-xs: 10px;

  --oot-shadow-input:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 4px 12px -6px rgba(15,23,42,.12);
  --oot-shadow-btn:
    0 1px 0 rgba(255,255,255,.3) inset,
    0 8px 20px -8px rgba(16,185,129,.55);

  display: block !important;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, system-ui, sans-serif;
  box-sizing: border-box;
  container-type: inline-size;
  container-name: oot;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  align-self: auto;
  flex: none;
  grid-column: auto;
  grid-row: auto;
}
.oot-container *,
.oot-container *::before,
.oot-container *::after { box-sizing: border-box; }

/* ===================== OUTER CARD ======================================= */
.oot-track-card {
  display: block;
  position: relative;
  width: 100%;
  background: linear-gradient(145deg, var(--oot-bg-from) 0%, var(--oot-bg-to) 100%);
  border: 1px solid var(--oot-border);
  border-radius: var(--oot-r);
  box-shadow:
    0 10px 40px -10px rgba(15, 23, 42, 0.08),
    0 1px 3px rgba(15, 23, 42, 0.03);
  padding: clamp(24px, 4cqi, 40px);
  overflow: hidden;
  isolation: isolate;
}
.oot-card-content { display: block; position: relative; z-index: 1; padding: 0; }

/* ===================== HEADER =========================================== */
.oot-header {
  display: block;
  text-align: center;
  margin-bottom: clamp(24px, 4cqi, 40px);
}

/* ----- Header icon (above title) ---- */
.oot-header-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: clamp(52px, 8cqi, 72px);
  height: clamp(52px, 8cqi, 72px);
  margin-bottom: clamp(14px, 2cqi, 20px);
  font-size: clamp(22px, 3.5cqi, 32px);
  color: var(--oot-hicon-color);
  line-height: 1;
  transition: transform .25s ease;
}
.oot-header-icon:hover { transform: translateY(-2px) scale(1.04); }
.oot-header-icon svg,
.oot-header-icon-img {
  width: 1em; height: 1em; display: block;
  fill: currentColor; color: inherit;
}
.oot-header-icon-img { object-fit: contain; }
.oot-header-icon i { color: var(--oot-hicon-color); font-size: inherit; line-height: 1; }

/* shapes */
.oot-hicon-shape-rounded {
  border-radius: clamp(14px, 2cqi, 20px);
  background: linear-gradient(135deg, var(--oot-hicon-bg-from), var(--oot-hicon-bg-to));
  box-shadow:
    0 1px 0 rgba(255,255,255,.35) inset,
    0 12px 28px -10px color-mix(in oklab, var(--oot-hicon-bg-from) 55%, transparent);
}
.oot-hicon-shape-circle {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--oot-hicon-bg-from), var(--oot-hicon-bg-to));
  box-shadow:
    0 1px 0 rgba(255,255,255,.35) inset,
    0 12px 28px -10px color-mix(in oklab, var(--oot-hicon-bg-from) 55%, transparent);
}
.oot-hicon-shape-square {
  border-radius: 0;
  background: linear-gradient(135deg, var(--oot-hicon-bg-from), var(--oot-hicon-bg-to));
  box-shadow:
    0 1px 0 rgba(255,255,255,.35) inset,
    0 12px 28px -10px color-mix(in oklab, var(--oot-hicon-bg-from) 55%, transparent);
}
.oot-hicon-shape-plain {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

/* ----- Title & Sub ----- */
.oot-main-title {
  margin: 0 0 .4em;
  font-size: clamp(24px, 5.5cqi, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--oot-title);
}
.oot-main-title span {
  background: linear-gradient(135deg, var(--oot-title-highlight) 0%, color-mix(in oklab, var(--oot-title-highlight) 60%, black) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.oot-sub-title {
  max-width: 58ch;
  margin: 0 auto;
  color: var(--oot-text);
  font-size: clamp(13px, 1.7cqi, 16px);
  line-height: 1.7;
}

/* ===================== SEARCH BAR ======================================= */
.oot-search-wrapper {
  display: flex;
  gap: clamp(8px, 1.5cqi, 12px);
  margin: 0 auto clamp(16px, 3cqi, 28px);
  flex-wrap: wrap;
}
.oot-input-group {
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: center;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1.5px solid color-mix(in oklab, var(--oot-border) 85%, white);
  border-radius: var(--oot-r-sm);
  padding: 0 clamp(14px, 2cqi, 20px);
  box-shadow: var(--oot-shadow-input);
  transition: border-color .22s, box-shadow .22s, transform .18s;
}
.oot-input-group:hover { transform: translateY(-1px); }
.oot-input-group:focus-within {
  border-color: var(--oot-primary);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 0 0 4px color-mix(in oklab, var(--oot-primary) 20%, transparent),
    0 8px 24px -12px color-mix(in oklab, var(--oot-primary) 50%, transparent);
  transform: translateY(-1px);
}

/* ----- Search icon ----- */
.oot-search-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: clamp(22px, 2.8cqi, 28px);
  height: clamp(22px, 2.8cqi, 28px);
  margin-right: clamp(8px, 1.2cqi, 14px);
  color: var(--oot-sicon-color);
  background: var(--oot-sicon-bg);
  font-size: clamp(16px, 2cqi, 20px);
  flex-shrink: 0;
  transition: transform .2s ease, background .2s ease;
}
.oot-search-icon i { color: var(--oot-sicon-color); font-size: inherit; line-height: 1; }
.oot-search-icon svg,
.oot-search-icon .oot-icon-img {
  width: clamp(18px, 2.4cqi, 22px);
  height: clamp(18px, 2.4cqi, 22px);
  display: block;
}
.oot-search-icon svg { fill: currentColor; color: inherit; }
.oot-icon-img { object-fit: contain; }
.oot-sicon-shape-plain   { border-radius: 0; }
.oot-sicon-shape-circle  { border-radius: 999px; padding: 4px; }
.oot-sicon-shape-rounded { border-radius: 8px; padding: 4px; }
.oot-sicon-shape-square  { border-radius: 0; padding: 4px; }

.oot-input-group input {
  flex: 1; min-width: 0; width: 100%;
  border: none !important; border-radius: 0 !important; outline: none !important; box-shadow: none !important; background: transparent !important;
  -webkit-appearance: none !important; appearance: none !important;
  padding: clamp(14px, 2cqi, 18px) 0 !important;
  font-size: clamp(14px, 1.8cqi, 16px);
  color: var(--oot-value);
  font-family: inherit;
}
.oot-input-group input::placeholder {
  color: color-mix(in oklab, var(--oot-muted) 65%, transparent);
}

/* ===================== BUTTON =========================================== */
.oot-track-btn {
  position: relative; flex-shrink: 0;
  border: 0; cursor: pointer;
  border-radius: var(--oot-r-sm);
  padding: clamp(14px, 2cqi, 18px) clamp(22px, 3.5cqi, 40px);
  font-family: inherit;
  font-size: clamp(14px, 1.8cqi, 16px);
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  color: var(--oot-btn-text);
  background: linear-gradient(135deg, var(--oot-btn-from) 0%, var(--oot-btn-to) 100%);
  box-shadow: var(--oot-shadow-btn);
  transition: transform .15s, box-shadow .22s, filter .18s;
  overflow: hidden;
}
.oot-track-btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.38) 50%, transparent 75%);
  transform: translateX(-130%);
  transition: transform .75s ease;
}
.oot-track-btn:hover {
  transform: translateY(-2px); filter: brightness(1.07);
  box-shadow:
    0 1px 0 rgba(255,255,255,.4) inset,
    0 16px 36px -12px color-mix(in oklab, var(--oot-btn-from) 70%, transparent);
}
.oot-track-btn:hover::before { transform: translateX(130%); }
.oot-track-btn:active { transform: translateY(0); }
.oot-track-btn:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 4px color-mix(in oklab, var(--oot-primary) 30%, transparent),
    0 10px 22px -8px color-mix(in oklab, var(--oot-btn-from) 60%, transparent);
}

/* ===================== LOADER =========================================== */
.oot-loader {
  width: 42px; height: 42px; margin: 28px auto;
  border-radius: 50%;
  border: 3px solid color-mix(in oklab, var(--oot-border) 80%, white);
  border-top-color: var(--oot-primary);
  border-right-color: color-mix(in oklab, var(--oot-primary) 55%, transparent);
  animation: oot-spin .85s linear infinite;
}
@keyframes oot-spin { to { transform: rotate(360deg); } }

/* ===================== ERROR ============================================ */
.oot-error-msg {
  margin: clamp(14px, 2.5cqi, 20px) auto;
  padding: clamp(12px, 1.8cqi, 16px) clamp(16px, 2.2cqi, 22px);
  border-radius: var(--oot-r-sm);
  background: var(--oot-error-bg);
  border: 1px solid var(--oot-error-border);
  color: var(--oot-error-text);
  font-size: clamp(13px, 1.6cqi, 15px);
  font-weight: 600;
  text-align: center;
  box-shadow: 0 6px 18px -12px color-mix(in oklab, var(--oot-error-text) 45%, transparent);
  animation: oot-shake .45s cubic-bezier(.36,.07,.19,.97);
}
@keyframes oot-shake {
  10%,90% { transform: translateX(-2px); }
  20%,80% { transform: translateX(3px); }
  30%,50%,70% { transform: translateX(-4px); }
  40%,60% { transform: translateX(4px); }
}

/* ===================== RESULT SECTION =================================== */
.oot-result-section {
  display: block;
  margin-top: clamp(24px, 4cqi, 44px);
  animation: oot-slide-up .4s cubic-bezier(.16,1,.3,1);
}
@keyframes oot-slide-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================== STEPPER ========================================== */
.oot-stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: flex-start;
  margin: clamp(20px, 3.5cqi, 36px) 0 clamp(24px, 4.5cqi, 44px);
}
.oot-stepper::before {
  content: ""; position: absolute;
  top: clamp(19px, 2.8cqi, 27px);
  left: 12.5%; right: 12.5%;
  height: 4px;
  background: var(--oot-step-pending);
  border-radius: 4px; z-index: 0;
}
.oot-stepper::after {
  content: ""; position: absolute;
  top: clamp(19px, 2.8cqi, 27px);
  left: 12.5%; height: 4px; width: 0;
  background: linear-gradient(90deg, var(--oot-step-done), var(--oot-step-active));
  border-radius: 4px; z-index: 0;
  box-shadow: 0 0 12px color-mix(in oklab, var(--oot-step-active) 55%, transparent);
  transition: width .7s cubic-bezier(.4,0,.2,1);
}
.oot-stepper[data-progress="1"]::after { width: 25%; }
.oot-stepper[data-progress="2"]::after { width: 50%; }
.oot-stepper[data-progress="3"]::after { width: 67%; }
.oot-stepper[data-progress="4"]::after { width: 75%; }

.oot-step {
  position: relative; z-index: 1;
  text-align: center;
  padding: 0 clamp(4px, 1cqi, 10px);
}
.oot-step-circle {
  width: clamp(38px, 5.5cqi, 54px);
  height: clamp(38px, 5.5cqi, 54px);
  margin: 0 auto clamp(10px, 1.5cqi, 14px);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--oot-step-pending);
  color: var(--oot-muted);
  font-weight: 800;
  font-size: clamp(11px, 1.5cqi, 14px);
  box-shadow: 0 4px 12px -8px rgba(15,23,42,.18);
  transition: transform .28s, background .28s, border-color .28s, color .28s, box-shadow .28s;
}
.oot-step-label {
  display: block;
  font-size: clamp(10px, 1.4cqi, 13px);
  font-weight: 500; line-height: 1.35;
  color: var(--oot-muted);
  word-break: break-word; hyphens: auto;
}
.oot-step.completed .oot-step-circle {
  background: linear-gradient(135deg, var(--oot-step-done), color-mix(in oklab, var(--oot-step-done) 65%, black));
  border-color: var(--oot-step-done); color: #fff;
  box-shadow: 0 6px 16px -8px color-mix(in oklab, var(--oot-step-done) 65%, transparent);
}
.oot-step.completed .oot-step-label { color: var(--oot-value); font-weight: 700; }
.oot-step.active .oot-step-circle {
  background: #fff;
  border-color: var(--oot-step-active); color: var(--oot-step-active);
  transform: scale(1.1);
  box-shadow:
    0 0 0 5px color-mix(in oklab, var(--oot-step-active) 16%, transparent),
    0 0 22px color-mix(in oklab, var(--oot-step-active) 42%, transparent);
  animation: oot-pulse 2.2s ease-in-out infinite;
}
.oot-step.active .oot-step-label { color: var(--oot-step-active); font-weight: 700; }
.oot-step.cancelled .oot-step-circle {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border-color: #ef4444; color: #fff;
}
@keyframes oot-pulse {
  0%,100% {
    box-shadow:
      0 0 0 5px color-mix(in oklab, var(--oot-step-active) 16%, transparent),
      0 0 22px color-mix(in oklab, var(--oot-step-active) 42%, transparent);
  }
  50% {
    box-shadow:
      0 0 0 9px color-mix(in oklab, var(--oot-step-active) 8%, transparent),
      0 0 30px color-mix(in oklab, var(--oot-step-active) 52%, transparent);
  }
}

/* ===================== DETAIL CARDS ===================================== */
.oot-order-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: clamp(10px, 2cqi, 18px);
}
.oot-detail-card {
  position: relative;
  padding: clamp(14px, 2.2cqi, 22px) clamp(14px, 2.2cqi, 20px);
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid color-mix(in oklab, var(--oot-border) 70%, white);
  border-radius: var(--oot-r-sm);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 4px 14px -10px rgba(15,23,42,.15);
  transition: transform .22s, box-shadow .22s;
}
.oot-detail-card::before {
  content: ""; position: absolute;
  left: 0; top: 0; bottom: 0; width: 3.5px;
  background: linear-gradient(180deg, var(--oot-btn-from), var(--oot-btn-to));
}
.oot-detail-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 16px 32px -16px rgba(15,23,42,.2);
}
.oot-detail-card label {
  display: block; margin-bottom: 6px;
  font-size: clamp(10px, 1.2cqi, 11px);
  font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--oot-label);
}
.oot-detail-card span {
  display: block;
  font-size: clamp(14px, 1.9cqi, 17px);
  font-weight: 700;
  color: var(--oot-value);
  word-break: break-word;
}

/* ===================== TRUST BADGES ===================================== */
.oot-trust-badges {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: clamp(8px, 1.4cqi, 14px);
  margin-top: clamp(22px, 4cqi, 40px);
}
.oot-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: clamp(7px, 1.2cqi, 11px) clamp(14px, 2.2cqi, 22px);
  background: var(--oot-badge-bg);
  border: 1.5px solid var(--oot-badge-border);
  border-radius: 999px;
  color: var(--oot-badge-text);
  font-size: clamp(11px, 1.4cqi, 13px);
  font-weight: 600;
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 4px 12px -8px rgba(15,23,42,.14);
  transition: transform .2s, box-shadow .2s;
}
.oot-badge:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 10px 20px -10px rgba(15,23,42,.18);
}
.oot-badge-icon {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--oot-badge-icon);
  line-height: 1;
}
.oot-badge-icon svg { width: 1em; height: 1em; display: block; fill: currentColor; }
.oot-badge-icon i { font-size: 1em; line-height: 1; color: var(--oot-badge-icon); }
.oot-badge-img { width: 1.15em; height: 1.15em; object-fit: contain; display: block; }
.oot-badge-icon-none { display: none; }

/* ===================== RESPONSIVE ======================================= */
@container oot (max-width: 600px) {
  .oot-search-wrapper { flex-direction: column; }
  .oot-track-btn { width: 100%; }
}
@container oot (max-width: 480px) {
  .oot-step-label { font-size: 10px; }
  .oot-trust-badges { gap: 6px; }
  .oot-badge { padding: 6px 12px; font-size: 11px; }
  .oot-order-details-grid { grid-template-columns: repeat(2, 1fr); }
}
@container oot (max-width: 360px) {
  .oot-step-label { font-size: 9px; line-height: 1.2; }
  .oot-step-circle { border-width: 2px; }
  .oot-badge { font-size: 10px; padding: 5px 10px; }
}
@media (max-width: 768px) {
  .oot-main-title { font-size: 28px; }
  .oot-sub-title { font-size: 14px; }
}
@media (max-width: 600px) {
  .oot-search-wrapper { flex-direction: column; }
  .oot-track-btn { width: 100%; }
  .oot-main-title { font-size: 24px; }
}
@media (max-width: 480px) {
  .oot-main-title { font-size: 21px; }
  .oot-step-label { font-size: 10px; }
  .oot-step-circle { width: 38px; height: 38px; font-size: 11px; }
  .oot-detail-card { padding: 14px; }
  .oot-detail-card span { font-size: 14px; }
  .oot-badge { font-size: 11px; padding: 6px 12px; }
  .oot-order-details-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 360px) {
  .oot-main-title { font-size: 19px; }
  .oot-step-label { font-size: 9px; line-height: 1.2; }
  .oot-badge { font-size: 10px; padding: 5px 10px; }
  .oot-order-details-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .oot-step.active .oot-step-circle,
  .oot-track-btn, .oot-detail-card, .oot-badge,
  .oot-input-group, .oot-loader,
  .oot-header-icon, .oot-search-icon { transition: none; animation: none; }
  .oot-stepper::after { transition: none; }
  .oot-result-section { animation: none; }
}
