/* AZ Order Tracker - Frontend */
.azot-wrap{
  --azot-primary:#0aa7ff;
  --azot-bg:#f6f7fb;
  --azot-text:#111827;
  --azot-muted:#6b7280;
  --azot-border:rgba(17,24,39,.10);
  --azot-card:#ffffff;
  --azot-shadow: 0 18px 60px rgba(17,24,39,.08);
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 14px 80px;
  color: var(--azot-text);
  box-sizing: border-box;
  font-family: Poppins, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.azot-card{
  background: var(--azot-card);
  border: 1px solid var(--azot-border);
  border-radius: 18px;
  box-shadow: var(--azot-shadow);
  padding: 16px;
  margin-bottom: 14px;
}

.azot-header{
  text-align: center;
  background: linear-gradient(180deg, rgba(10,167,255,.14), rgba(10,167,255,0) 70%);
}

.azot-title{
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .2px;
}

.azot-subtitle{
  margin-top: 6px;
  color: var(--azot-muted);
  font-size: 14px;
}

.azot-form{
  margin-top: 14px;
}

.azot-form-row{
  display: flex;
  gap: 10px;
}

.azot-input{
  flex: 1;
  border: 1px solid var(--azot-border);
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.azot-input:focus{
  border-color: rgba(10,167,255,.55);
  box-shadow: 0 0 0 4px rgba(10,167,255,.15);
}

.azot-btn{
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  background: var(--azot-primary);
  color: #fff;
  min-width: 92px;
}

.azot-btn:hover{ filter: brightness(0.96); }
.azot-btn:active{ transform: translateY(1px); }

.azot-alert{
  margin-top: 12px;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid transparent;
}

.azot-alert-error{
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.2);
  color: #b91c1c;
}

.azot-alert-warn{
  background: rgba(245,158,11,.10);
  border-color: rgba(245,158,11,.25);
  color: #92400e;
}

.azot-order-top{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.azot-code-label{
  display: block;
  font-size: 12px;
  color: var(--azot-muted);
  margin-bottom: 4px;
}

.azot-code-row{
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.azot-code-value{
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .7px;
}

.azot-copy-btn{
  border: 1px solid rgba(10,167,255,.35);
  background: rgba(10,167,255,.08);
  color: var(--azot-primary);
  border-radius: 10px;
  padding: 7px 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 12px;
}

.azot-copy-btn:hover{ background: rgba(10,167,255,.12); }
.azot-copy-btn:active{ transform: translateY(1px); }

.azot-contact{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(10,167,255,.25);
  background: rgba(10,167,255,.08);
  color: var(--azot-text);
  font-weight: 700;
  white-space: nowrap;
}

.azot-contact svg{ color: var(--azot-primary); }

.azot-order-meta{
  margin-top: 10px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  text-align: center;
  justify-items: center;
}

.azot-muted{ color: var(--azot-muted); }

.azot-current{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(10,167,255,.08);
  border: 1px solid rgba(10,167,255,.18);
}

.azot-current-dot{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--azot-primary);
  box-shadow: 0 0 0 6px rgba(10,167,255,.18);
}

.azot-current-title{
  font-weight: 800;
  font-size: 16px;
}
.azot-current-time{
  color: var(--azot-muted);
  font-size: 12px;
  margin-top: 2px;
}

.azot-stepper{
  margin-top: 14px;
  border-radius: 16px;
  border: 1px solid var(--azot-border);
  padding: 12px;
  background: #fff;
}

.azot-stepper-title{
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.azot-stepper-bar{
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
  padding-top: 16px;
}

.azot-stepper-line{
  position: absolute;
  left: 8px;
  right: 8px;
  top: 32px;
  height: 3px;
  border-radius: 999px;
  background: rgba(17,24,39,.12);
}

.azot-stepper-line-active{
  left: 8px;
  right: auto;
  background: var(--azot-primary);
}

.azot-step{
  position: relative;
  text-align: center;
  z-index: 2;
}

.azot-dot{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(17,24,39,.16);
  background: #f4f6fb;
  color: rgba(17,24,39,.55);
}

.azot-step-label{
  margin-top: 8px;
  font-size: 12px;
  color: var(--azot-muted);
  line-height: 1.2;
}

.azot-step.is-done .azot-dot,
.azot-step.is-current .azot-dot{
  border-color: rgba(10,167,255,.35);
  background: rgba(10,167,255,.12);
  color: var(--azot-primary);
}

.azot-step.is-current .azot-dot{
  background: var(--azot-primary);
  color: #fff;
  box-shadow: 0 10px 26px rgba(10,167,255,.25);
}

.azot-step.is-current .azot-step-label{
  color: var(--azot-text);
  font-weight: 800;
}

.azot-step.is-done .azot-step-label{
  color: rgba(17,24,39,.78);
  font-weight: 700;
}

.azot-note{
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.08);
  padding: 12px;
}

.azot-note-title{
  font-weight: 900;
  margin-bottom: 6px;
  color: #b91c1c;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.azot-note-title svg{ color: #ef4444; }

.azot-note-body{
  color: rgba(127,29,29,.92);
  font-size: 14px;
  line-height: 1.45;
}

.azot-delivered{
  margin-top: 14px;
  border-radius: 16px;
  border: 1px solid rgba(16,185,129,.25);
  background: rgba(16,185,129,.08);
  padding: 14px;
  text-align: center;
}

.azot-delivered-icon{
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16,185,129,.15);
  color: rgb(16,185,129);
}

.azot-delivered-title{
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 4px;
}

.azot-delivered-text{
  color: rgba(17,24,39,.75);
  font-size: 14px;
  line-height: 1.4;
}

.azot-history{
  margin-top: 14px;
  padding-left: 14px;
  border-left: 2px dashed rgba(17,24,39,.18);
}

.azot-history-item{
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 10px 0;
}

.azot-history-dot{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f4f6fb;
  border: 1px solid rgba(17,24,39,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(17,24,39,.65);
}

.azot-history-note{
  font-weight: 800;
  font-size: 14px;
}

.azot-history-time{
  margin-top: 3px;
  color: var(--azot-muted);
  font-size: 12px;
}

.azot-wa-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(10,167,255,.25);
  background: #fff;
  box-shadow: 0 18px 60px rgba(17,24,39,.20);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--azot-primary);
  z-index: 9999;
}

.azot-wa-float:hover{ transform: translateY(-1px); }
.azot-wa-float:active{ transform: translateY(0px); }

/* Toast */
.azot-toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(17,24,39,.92);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 10000;
  max-width: calc(100% - 24px);
  text-align: center;
}

.azot-toast.is-show{
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

@media (max-width: 520px){
  .azot-form-row{ flex-direction: column; }
  .azot-btn{ width: 100%; }
  .azot-stepper-bar{
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-top: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .azot-step{
    min-width: 132px;
    flex: 0 0 auto;
    scroll-snap-align: center;
  }
  .azot-stepper-line,
  .azot-stepper-line-active{ display: none; }
}
