/* F7 — Praćenje dostave (stepper na stranici + kutija na narudžbi). */

.hbb-track-wrap,
.hbb-track-box {
  --hbb-pink: #ff5e8a;
  --hbb-green: #2e7d32;
  --hbb-ink: #1f2a44;
  --hbb-muted: #6b7689;
  --hbb-line: #e7ebf3;
  color: var(--hbb-ink);
}

.hbb-track-card {
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--hbb-line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 28px rgba(20, 40, 80, .06);
}

.hbb-track-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 6px;
}
.hbb-track-head h3 { margin: 0; font-size: 20px; }
.hbb-track-date { color: var(--hbb-muted); font-size: 14px; }

.hbb-track-card-title { margin: 0 0 6px; font-size: 20px; }
.hbb-track-intro { margin: 0 0 16px; color: var(--hbb-muted); }

.hbb-track-status {
  font-size: 16px;
  font-weight: 600;
  margin: 8px 0 4px;
}
.hbb-track-emoji { font-size: 20px; }
.hbb-track-eta { margin: 0 0 8px; color: var(--hbb-pink); font-weight: 600; }

/* Stepper */
.hbb-track-steps {
  list-style: none;
  margin: 18px 0 8px;
  padding: 0;
  display: flex;
  gap: 6px;
}
.hbb-track-step {
  flex: 1 1 0;
  position: relative;
  text-align: center;
  padding-top: 38px;
  min-width: 0;
}
/* spojnica između koraka */
.hbb-track-step::before {
  content: "";
  position: absolute;
  top: 15px;
  left: -50%;
  width: 100%;
  height: 3px;
  background: var(--hbb-line);
  z-index: 0;
}
.hbb-track-step:first-child::before { display: none; }

.hbb-track-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--hbb-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  z-index: 1;
}
.hbb-track-name { display: block; font-size: 13px; font-weight: 600; }
.hbb-track-time { display: block; font-size: 11px; color: var(--hbb-muted); margin-top: 2px; }

/* stanja */
.hbb-is-done .hbb-track-dot { border-color: var(--hbb-green); background: var(--hbb-green); }
.hbb-is-done::before { background: var(--hbb-green); }
.hbb-is-active .hbb-track-dot {
  border-color: var(--hbb-pink);
  box-shadow: 0 0 0 5px rgba(255, 94, 138, .18);
  animation: hbb-pulse 1.6s ease-in-out infinite;
}
.hbb-is-active .hbb-track-name { color: var(--hbb-pink); }
.hbb-is-todo .hbb-track-name { color: var(--hbb-muted); }

@keyframes hbb-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(255, 94, 138, .18); }
  50% { box-shadow: 0 0 0 9px rgba(255, 94, 138, .06); }
}

.hbb-track-foot { margin: 18px 0 0; }
.hbb-track-foot a,
.hbb-track-account a { color: var(--hbb-pink); text-decoration: none; font-weight: 600; }

/* Forma za pretragu */
.hbb-track-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.hbb-track-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 180px;
}
.hbb-track-field > span { font-size: 12.5px; font-weight: 600; color: var(--hbb-muted); }
.hbb-track-field input {
  padding: 10px 12px;
  border: 1px solid var(--hbb-line);
  border-radius: 10px;
  font-size: 15px;
}
.hbb-track-submit.button,
.hbb-track-submit {
  background: var(--hbb-pink) !important;
  border-color: var(--hbb-pink) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 11px 22px !important;
  font-weight: 700 !important;
  border: 0;
  cursor: pointer;
}

.hbb-track-banner {
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 16px;
  font-weight: 600;
}
.hbb-track-banner.hbb-track-err { background: #fdeaea; color: #a5302a; }

/* Kutija na stranici narudžbe (uži prikaz) */
.hbb-track-box {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--hbb-line);
  border-radius: 14px;
  background: #fbfcfe;
}
.hbb-track-box h2 { margin: 0 0 8px; font-size: 18px; }

/* Mobilni: stepper vertikalno */
@media (max-width: 480px) {
  .hbb-track-steps { flex-direction: column; gap: 0; }
  .hbb-track-step {
    text-align: left;
    padding: 0 0 18px 44px;
    min-height: 34px;
  }
  .hbb-track-step::before {
    top: 0; left: 15px; width: 3px; height: 100%;
  }
  .hbb-track-dot { top: 0; left: 0; transform: none; }
  .hbb-track-name { display: inline-block; }
  .hbb-track-time { display: inline-block; margin: 0 0 0 8px; }
}
