/* Buzi Order Tracking — the code box on "Faleminderit" and the "Ndiq porosinë" page. */
.bot-box,
.bot-track {
  --bot-accent: #ef3b35;
  --bot-ok: #1a8f3c;
  --bot-ok-bg: #f1faf3;
  --bot-line: #e4e7eb;
  --bot-muted: #6b7280;
  --bot-text: #1f2328;
  color: var(--bot-text);
  box-sizing: border-box;
}
.bot-box *,
.bot-track * { box-sizing: border-box; }

/* ---- "Faleminderit" ---------------------------------------------------- */
.bot-box {
  margin: 0 0 24px;
  padding: 22px 18px;
  border: 2px solid var(--bot-ok);
  border-radius: 16px;
  background: var(--bot-ok-bg);
  text-align: center;
}
/* The box says it already; WooCommerce's own one-liner would repeat it. */
.bot-box ~ .woocommerce-notice.woocommerce-thankyou-order-received { display: none; }
.bot-box p { margin: 0; }
.bot-box__title { font-size: 20px; font-weight: 700; color: var(--bot-ok); }
.bot-box__tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-right: 8px; border-radius: 50%;
  background: var(--bot-ok); color: #fff; font-size: 17px; vertical-align: -3px;
}
.bot-box__label { margin-top: 16px !important; font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--bot-muted); }
.bot-box__code { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 6px !important; }
.bot-box__value {
  font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: .06em;
  font-variant-numeric: tabular-nums; color: var(--bot-text);
  padding: 4px 14px; border: 2px dashed var(--bot-ok); border-radius: 10px; background: #fff;
  user-select: all;
}
.bot-box__copy {
  min-height: 44px; padding: 0 16px; border: 2px solid var(--bot-text); border-radius: 10px;
  background: #fff; color: var(--bot-text); font-size: 15px; font-weight: 700; cursor: pointer;
}
.bot-box__copy.is-copied { border-color: var(--bot-ok); color: var(--bot-ok); }
.bot-box__hint { margin: 14px auto 0 !important; max-width: 520px; font-size: 15px; line-height: 1.5; }
.bot-box__track {
  display: inline-block; margin-top: 16px; padding: 12px 22px; border-radius: 10px;
  background: var(--bot-accent); color: #fff !important; font-size: 16px; font-weight: 700; text-decoration: none !important;
}
.bot-box__track:hover { filter: brightness(.95); }

/* ---- "Ndiq porosinë" --------------------------------------------------- */
.bot-track { max-width: 680px; margin: 0 auto 32px; font-size: 16px; line-height: 1.5; }
.bot-h2 { margin: 0 0 12px; font-size: 22px; font-weight: 700; }
.bot-mine { margin-bottom: 32px; }
.bot-intro { margin: 0 0 14px; }
.bot-form { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--bot-line); border-radius: 14px; background: #fafafa; }
.bot-field { display: grid; gap: 6px; margin: 0; font-weight: 600; }
.bot-field input {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #c9ced6; border-radius: 10px;
  background: #fff; font-size: 17px; font-weight: 400;
}
.bot-field input:focus { outline: 2px solid var(--bot-accent); outline-offset: 1px; border-color: var(--bot-accent); }
.bot-submit {
  min-height: 50px; border: 0; border-radius: 10px; background: var(--bot-accent); color: #fff;
  font-size: 17px; font-weight: 700; cursor: pointer;
}
.bot-submit[disabled] { opacity: .6; cursor: wait; }
.bot-where { margin: 0; font-size: 14px; color: var(--bot-muted); }
.bot-result { margin-top: 20px; }
.bot-muted { margin: 8px 0 0; color: var(--bot-muted); font-size: 14px; }
.bot-message { margin: 0; padding: 14px 16px; border-radius: 10px; background: #f3f4f6; }
.bot-message--warn { background: #fff4e5; border: 1px solid #f5c26b; }

/* one order */
.bot-order { margin: 0 0 18px; padding: 18px; border: 1px solid var(--bot-line); border-radius: 14px; background: #fff; }
.bot-order--done { border-color: var(--bot-ok); }
.bot-order--stopped { border-color: #f0b4b1; }
.bot-order__head p { margin: 0; }
.bot-order__code { font-size: 14px; color: var(--bot-muted); }
.bot-order__code strong { color: var(--bot-text); font-size: 16px; letter-spacing: .03em; }
.bot-order__headline { margin: 4px 0 2px !important; font-size: 19px; font-weight: 700; line-height: 1.35; }
.bot-order--done .bot-order__headline { color: var(--bot-ok); }
.bot-order--stopped .bot-order__headline { color: #b42318; }
.bot-order__meta { font-size: 14px; color: var(--bot-muted); }
.bot-order__note { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #fdf0ef; font-weight: 600; }

/* the road */
.bot-steps { list-style: none; margin: 16px 0 0 !important; padding: 0; }
.bot-step { position: relative; display: flex; gap: 12px; margin: 0; padding: 0 0 16px; }
.bot-step:last-child { padding-bottom: 0; }
.bot-step::before {
  content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--bot-line);
}
.bot-step:last-child::before { display: none; }
.bot-step--done::before { background: var(--bot-ok); }
.bot-step__dot {
  position: relative; z-index: 1; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid #c9ced6; background: #fff;
}
.bot-step--done .bot-step__dot { border-color: var(--bot-ok); background: var(--bot-ok); }
.bot-step--done .bot-step__dot::after { content: "✓"; position: absolute; inset: 0; color: #fff; font-size: 14px; line-height: 20px; text-align: center; }
.bot-step--current .bot-step__dot { border: 6px solid var(--bot-accent); box-shadow: 0 0 0 4px rgba(239, 59, 53, .18); }
.bot-step--stopped .bot-step__dot { border-color: #b42318; background: #b42318; }
.bot-step--stopped .bot-step__dot::after { content: "✕"; position: absolute; inset: 0; color: #fff; font-size: 13px; line-height: 20px; text-align: center; }
.bot-step__text { display: flex; flex-direction: column; min-width: 0; }
.bot-step__label { font-weight: 600; }
.bot-step--todo .bot-step__label { color: var(--bot-muted); font-weight: 400; }
.bot-step--current .bot-step__label { color: var(--bot-accent); font-weight: 700; }
.bot-step__at { font-size: 14px; color: var(--bot-muted); }

/* Web 2.4: the courier's statuses inside "U ngarkua" */
.bot-step__detail { font-size: 14px; color: var(--bot-muted); }
.bot-step__message { margin-top: 6px; font-size: 14px; color: var(--bot-muted); }
.bot-substeps { list-style: none; margin: 8px 0 2px !important; padding: 0 0 0 12px; border-left: 2px dashed var(--bot-line); }
.bot-substep {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px;
  margin: 0; padding: 5px 0; font-size: 15px; line-height: 1.35;
}
.bot-substep + .bot-substep { border-top: 1px solid #f1f2f4; }
.bot-substep.is-last .bot-substep__label { font-weight: 700; color: var(--bot-text); }
.bot-substep__label { min-width: 0; color: #4b5563; }
.bot-substep__at { color: var(--bot-muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bot-order--stopped .bot-order__note { margin-top: 10px; }

/* Posta Ultra */
.bot-courier { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--bot-line); }
.bot-courier__title { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.bot-courier__ref { margin: 0 0 8px; font-size: 14px; color: var(--bot-muted); }
.bot-events { list-style: none; margin: 8px 0 0 !important; padding: 0; }
.bot-event { display: flex; gap: 12px; margin: 0; padding: 6px 0; border-bottom: 1px solid #f1f2f4; font-size: 15px; }
.bot-event:last-child { border-bottom: 0; font-weight: 700; }
.bot-event__at { flex: 0 0 auto; min-width: 96px; white-space: nowrap; color: var(--bot-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.bot-event__label { min-width: 0; }

.bot-items { margin-top: 14px; }
.bot-items summary { cursor: pointer; font-weight: 600; }
.bot-items ul { margin: 8px 0 0 !important; padding-left: 20px; }
.bot-help { margin: 14px 0 0; font-size: 14px; color: var(--bot-muted); }

@media (max-width: 480px) {
  .bot-box__value { font-size: 34px; }
  .bot-order { padding: 14px; }
  .bot-event { gap: 10px; }
  .bot-event__at { min-width: 86px; }
}

/* ---- Web 2.5 §3: one order of the account, "← Kthehu" on top ------------- */
.bot-track--single .bot-result { margin-top: 12px; }
.bot-back-row { margin: 0 0 4px !important; }
.bot-back {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--bot-line); border-radius: 10px; background: #fff;
  color: var(--bot-text) !important; font-size: 16px; font-weight: 600; text-decoration: none !important;
}
.bot-back:hover,
.bot-back:focus { border-color: var(--bot-accent); color: var(--bot-accent) !important; }

/* ---- Web 2.5 §4: "Kërko një porosi" above "Porositë" --------------------- */
.bot-acc-find { margin: 0 0 18px; }
.bot-acc-find__toggle { min-height: 44px; }
.bot-acc-find__form[hidden],
.bot-acc-find__msg[hidden] { display: none !important; }
.bot-acc-find__form {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: 460px; margin: 12px 0 0;
  padding: 14px; border: 1px solid #e4e7eb; border-radius: 12px; background: #fafafa;
}
.bot-acc-find__label { margin: 0; font-size: 15px; font-weight: 600; }
/* the field takes what the button leaves: the theme gives text fields a width of their own, which pushed
   "Kërko" off a phone screen and, once the field had the cursor, slid the whole page sideways */
.bot-acc-find__row { display: flex; gap: 8px; min-width: 0; }
.bot-acc-find__input {
  flex: 1 1 0; width: 0 !important; min-width: 0 !important; min-height: 44px; padding: 8px 12px !important;
  border: 1px solid #c9ced6 !important; border-radius: 8px !important; background: #fff; font-size: 16px !important;
}
.bot-acc-find__submit { flex: 0 0 auto; min-height: 44px; }
.bot-acc-find__msg {
  display: block; padding: 10px 12px; border: 1px solid #f5c26b; border-radius: 8px;
  background: #fff4e5; font-size: 15px;
}
