/* Front styles */
.delivery-timeline-wrapper{
  --bg1:#0a577a;--bg2:#0a3d59;--line:rgba(255,255,255,.28);--progress:#fff;--titleColor:#fff;--textColor:#e6f3ff;--bannerBg:rgba(255,255,255,.12);--bannerBorder:rgba(255,255,255,.2);--progressPercent:.35;--accent:#22c55e;--extraBg:rgba(255,255,255,.06);--extraColor:#fff;
  --mobIcon:52px;--mobTitle:13px;--mobDate:10px;
  background:linear-gradient(135deg,var(--bg1),var(--bg2));padding:22px;border-radius:20px;color:var(--textColor);box-shadow:0 10px 28px rgba(0,0,0,.16);overflow:hidden;position:relative;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,sans-serif
}
.delivery-timeline-wrapper[dir="rtl"]{direction:rtl}
.timeline-header{margin-bottom:14px;position:relative}
.timeline-banner{color:var(--titleColor);background:var(--bannerBg);border:1px solid var(--bannerBorder);border-radius:12px;padding:10px 12px;text-align:center;font-weight:700}
.dttx-mobile-toggle{display:none;position:absolute;top:8px;inset-inline-end:10px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.3);border-radius:999px;width:36px;height:28px;display:grid;place-items:center;color:#fff}
@media (max-width: 900px){.dttx-mobile-toggle{display:grid}}

.delivery-timeline-bar{--lineY:50%;display:flex;align-items:center;justify-content:space-between;gap:24px;position:relative;padding:34px 20px 8px;min-height:130px}
.delivery-timeline-bar:before{content:'';position:absolute;left:6%;right:6%;top:var(--lineY);height:4px;background:var(--line);transform:translateY(-50%);border-radius:999px}
.timeline-progress{position:absolute;top:var(--lineY);left:6%;height:6px;width:calc(var(--progressPercent) * 88%);background:var(--progress);border-radius:999px;transform:translateY(-50%);overflow:hidden}
.delivery-timeline-wrapper[dir="rtl"] .timeline-progress{left:auto;right:6%}
.timeline-progress:after{content:'';position:absolute;top:0;width:60px;height:100%;right:-60px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.9),transparent);animation:shimmer 1.8s linear infinite}
@keyframes shimmer{0%{right:calc(100% + 10px)}100%{right:-60px}}

.timeline-step{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;flex:1 1 0;min-width:0;text-align:center}
.timeline-step .step-icon{display:grid;place-items:center;width:78px;height:78px;background:#fff;color:#111;border-radius:50%;font-size:30px;box-shadow:0 8px 22px rgba(0,0,0,.22);border:5px solid rgba(0,0,0,.15);position:relative;line-height:1}
.timeline-step .step-icon img.dttx-emoji{width:66%;height:66%;object-fit:contain}
.timeline-step .step-title{font-size:20px;font-weight:900;color:var(--titleColor);line-height:1.2}
.timeline-step .step-date{opacity:.92;font-size:14px;line-height:1.2}
.timeline-step.complete .step-icon{box-shadow:0 0 0 4px rgba(34,197,94,.35),0 0 22px rgba(34,197,94,.55);border-color:rgba(34,197,94,.45);animation:pulse 2s ease-out infinite}
.timeline-step.complete .step-icon::after{content:'✔';position:absolute;inset-inline-end:-6px;inset-block-end:-6px;width:28px;height:28px;border-radius:50%;background:var(--accent);color:#fff;font-size:16px;display:grid;place-items:center}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(34,197,94,.55)}70%{box-shadow:0 0 0 12px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}

/* --- Mobile polish using variables --- */
@media (max-width: 760px){
  .delivery-timeline-bar{padding:20px 12px 6px;gap:10px;min-height:110px}
  .delivery-timeline-bar:before{left:5%;right:5%}
  .timeline-progress{left:5%;width:calc(var(--progressPercent) * 90%)}
  .delivery-timeline-wrapper[dir="rtl"] .timeline-progress{right:5%}
  .timeline-step .step-icon{width:var(--mobIcon);height:var(--mobIcon);font-size:calc(var(--mobIcon) * .38);border-width:4px}
  .timeline-step .step-title{font-size:var(--mobTitle)}
  .timeline-step .step-date{font-size:var(--mobDate)}
  .timeline-banner{font-size:14px;padding:8px 10px}
}

/* Extra box — banner style centered (stronger specificity) */
.delivery-timeline-wrapper .timeline-extra{
  margin-top:14px !important;
  border-radius:12px !important;
  padding:12px 16px !important;
  background:var(--extraBg) !important;
  color:var(--extraColor) !important;
}
.delivery-timeline-wrapper .timeline-extra.as-banner{
  background:var(--bannerBg) !important;
  border:1px solid var(--bannerBorder) !important;
}
.delivery-timeline-wrapper .timeline-extra-inner{
  display:flex !important;
  gap:8px !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  width:100% !important;
}
.delivery-timeline-wrapper .timeline-extra-emoji{font-size:16px}
.delivery-timeline-wrapper .timeline-extra-text{font-weight:700 !important;color:var(--titleColor) !important}
