/* ==========================================================================
   vtracking.info — stylesheet
   Upload to Saltcorn Files, reference as /files/serve/vtracking.css
   Load AFTER Tabler CSS. Mobile-first: most people check a parcel on a phone.
   ========================================================================== */

:root {
  --vb-deep:   #12455C;
  --vb-ocean:  #1B6B80;
  --vb-teal:   #2E9284;
  --vb-jade:   #55C08A;
  --vb-spark:  #3FD18E;
  --vb-mint:   #EAF7F1;
  --vb-paper:  #F7FAFA;
  --vb-ink:    #0C232C;
  --vb-slate:  #587480;
  --vb-line:   #DCE8E9;

  --vb-grad:   linear-gradient(100deg, var(--vb-deep) 0%, var(--vb-teal) 55%, var(--vb-jade) 100%);

  --vb-display: "Be Vietnam Pro", system-ui, sans-serif;
  --vb-body: "Lexend", system-ui, sans-serif;

  --vb-radius: 14px;
  --vb-shadow: 0 2px 4px rgba(12,35,44,.04), 0 12px 32px -12px rgba(12,35,44,.18);
}

/* Tabler sets html/body to height:100% for its app-shell layout; a normal
   scrolling page should wrap its content instead. */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: auto; min-height: 100%; margin: 0; }

body {
  --tblr-primary: #1B6B80;
  --tblr-primary-rgb: 27, 107, 128;
  --tblr-font-sans-serif: var(--vb-body);
  --tblr-body-color: var(--vb-ink);
  --tblr-border-radius: var(--vb-radius);
  font-family: var(--vb-body);
  color: var(--vb-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  /* Footer sits at the bottom even when the page is short */
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
/* Keep the result clear of the sticky header when it scrolls into view */
#vb-tr-result { scroll-margin-top: 88px; }

.container, .container-xl { padding-left: 1.5rem; padding-right: 1.5rem; }
@media (max-width: 575.98px) {
  .container, .container-xl { padding-left: 1.15rem; padding-right: 1.15rem; }
}

h1, h2, h3, h4, h5 {
  font-family: var(--vb-display);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--vb-ink);
}

/* --------------------------------------------------------------- type scale */
.vb-h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.06; font-weight: 800; }
.vb-h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.14; font-weight: 800; }
.vb-lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.65; color: var(--vb-slate); }

.vb-eyebrow {
  font-family: var(--vb-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--vb-teal);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .9rem;
}
.vb-eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--vb-grad);
  border-radius: 2px;
}
.vb-eyebrow--light { color: rgba(255,255,255,.82); }
.vb-eyebrow--light::before { background: var(--vb-spark); }

/* ================================================================== header
   vtracking.info — track your shipment                                    */
.vt-head {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--vb-line);
}
.vt-head__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem .7rem;
  min-height: 68px;
  padding: .6rem 0;
}
.vt-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--vb-ink);
}
.vt-brand:hover { color: var(--vb-ink); text-decoration: none; }
.vt-brand__mark {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--vb-grad);
  color: #fff;
}
.vt-brand__name {
  font-family: var(--vb-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.01em;
}
.vt-brand__name span { color: var(--vb-teal); }
.vt-brand__name { direction: ltr; unicode-bidi: isolate; }
.vt-head__sep { color: var(--vb-line); font-weight: 300; font-size: 1.2rem; line-height: 1; }
.vt-head__tag {
  font-size: .95rem;
  color: var(--vb-slate);
}
/* Language picker sits at the right of the header on every screen */
.vt-head .vt-head__lang { margin: 0 0 0 auto; }
.vt-head__lang .vb-lang__wrap { padding: .2rem .5rem .2rem .6rem; }
.vt-head__lang .vb-lang__sel { font-size: .88rem; max-width: 9.5rem; }
[dir="rtl"] .vt-head .vt-head__lang { margin: 0 auto 0 0; }

@media (max-width: 420px) {
  .vt-head__sep { display: none; }
  .vt-head__tag { order: 3; flex-basis: 100%; padding-left: calc(34px + .55rem); font-size: .85rem; margin-top: -.15rem; }
  .vt-head__lang .vb-lang__sel { max-width: 7.5rem; }
}

/* -------------------------------------------------------------------- hero */
.vb-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  background-color: var(--vb-deep);
  background-image:
    linear-gradient(105deg, rgba(7,38,52,.93) 0%, rgba(15,62,84,.86) 45%, rgba(24,96,102,.74) 100%),
    var(--vb-hero-photo, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.vb-hero h1 { color: #fff; }
.vb-hero p { color: rgba(255,255,255,.92); }
.vb-hero--page { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.vb-hero--page h1 { font-size: clamp(1.75rem, 4vw, 2.9rem); }

/* ---------------------------------------------------------------- sections */
.vb-section { padding: clamp(3.25rem, 7vw, 5.5rem) 0; }
.vb-section--mint { background: var(--vb-mint); }

/* ---------------------------------------------------------------- buttons */
.vb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--vb-display); font-weight: 600; font-size: .96rem;
  padding: .8rem 1.5rem; border-radius: 11px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: all .2s ease; line-height: 1.2;
}
.vb-btn--primary { background: var(--vb-grad); color: #fff; background-size: 160% 100%; }
.vb-btn--primary:hover { background-position: 100% 0; color: #fff; box-shadow: 0 10px 24px -10px rgba(27,107,128,.7); }
.vb-btn--outline { border-color: var(--vb-line); color: var(--vb-deep); background: #fff; }
.vb-btn--outline:hover { border-color: var(--vb-teal); color: var(--vb-teal); }
.vb-btn--block { width: 100%; }
.vb-btn:disabled { opacity: .75; cursor: progress; }

/* ------------------------------------------------------------------- forms */
.vb-form { background: #fff; border: 1px solid var(--vb-line); border-radius: 18px; padding: clamp(1.35rem, 3vw, 2.25rem); }
.vb-label { font-size: .875rem; font-weight: 500; margin-bottom: .4rem; display: block; color: #23414B; }
.vb-label .vb-req { color: #D6455E; }
.vb-input {
  width: 100%; font-family: var(--vb-body); font-size: .95rem;
  padding: .7rem .9rem; border: 1.5px solid var(--vb-line); border-radius: 11px;
  background: #fff; color: var(--vb-ink); transition: border-color .18s, box-shadow .18s;
}
.vb-input:focus {
  outline: none; border-color: var(--vb-teal); box-shadow: 0 0 0 3px rgba(46,146,132,.14);
}
.vb-input.is-invalid { border-color: #D6455E; }
.vb-field { margin-bottom: 1.1rem; }

.vb-alert { border-radius: 12px; padding: 1rem 1.15rem; font-size: .93rem; line-height: 1.6; display: none; margin-bottom: 1rem; }
.vb-alert.is-shown { display: block; }
.vb-alert--ok { background: #E8F7EF; border: 1px solid #B4E3CB; color: #14603F; }
.vb-alert--err { background: #FDECEF; border: 1px solid #F5C2CC; color: #96233A; }

/* ================================================================== footer */
.vt-foot {
  background: var(--vb-ink);
  color: rgba(255,255,255,.78);
  padding: 2.5rem 0 1.75rem;
  text-align: center;
}
.vt-foot__msg {
  max-width: 640px;
  margin: 0 auto;
  font-size: .98rem;
  line-height: 1.7;
  color: #fff;
}
.vt-foot__base {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}

/* --------------------------------------------------------------- utilities */
:focus-visible { outline: 3px solid var(--vb-spark); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Tracking page
   ========================================================================== */

.vb-tr-wrap { max-width: 760px; margin: 0 auto; }

/* ------------------------------------------------------------------ form */
.vb-tr-form .vb-field:last-of-type { margin-bottom: 1.35rem; }
.vb-tr-help {
  font-size: .82rem;
  color: var(--vb-slate);
  margin: .35rem 0 0;
  line-height: 1.55;
}
#waybill {
  font-family: var(--vb-display);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
#secret-phone {
  font-family: var(--vb-display);
  font-weight: 700;
  letter-spacing: .22em;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------- postcode / phone switcher */
.vb-tr-mode {
  border: 0;
  padding: 0;
  margin: 0 0 1.1rem;
  min-inline-size: 0;          /* fieldsets refuse to shrink without this */
}
.vb-tr-mode > legend {
  padding: 0;
  float: left;                 /* keeps the legend in normal flow width */
  width: 100%;
}
.vb-tr-mode > legend + * { clear: both; }

.vb-tr-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem;
  background: var(--vb-paper);
  border: 1px solid var(--vb-line);
  border-radius: 12px;
  padding: .3rem;
  margin-bottom: 1.05rem;
}
.vb-tr-seg__opt { margin: 0; cursor: pointer; }
/* The radio stays focusable for keyboard and screen readers. */
.vb-tr-seg__opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.vb-tr-seg__opt span {
  display: block;
  text-align: center;
  padding: .62rem .5rem;
  border-radius: 9px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--vb-slate);
  line-height: 1.3;
  transition: background .15s ease, color .15s ease;
}
.vb-tr-seg__opt input:checked + span {
  background: #fff;
  color: var(--vb-deep);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(12, 35, 44, .1);
}
.vb-tr-seg__opt input:focus-visible + span {
  outline: 2px solid var(--vb-teal);
  outline-offset: 2px;
}
@media (max-width: 380px) {
  .vb-tr-seg { grid-template-columns: 1fr; }
}

.vb-tr-pane[hidden] { display: none; }
.vb-tr-pane .vb-tr-help { margin-bottom: .9rem; }
.vb-tr-small { font-size: .85em; opacity: .85; }

/* --------------------------------------------------------------- result */
#vb-tr-result { display: none; }
#vb-tr-result.is-shown { display: block; }

.vb-tr-h2 {
  font-family: var(--vb-display);
  font-weight: 800;
  font-size: 1.22rem;
  color: var(--vb-ink);
  margin: 2.25rem 0 1rem;
}

/* identity confirmation strip */
.vb-tr-confirm {
  background: var(--vb-deep);
  background-image: var(--vb-grad);
  color: #fff;
  border-radius: 18px;
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: var(--vb-shadow);
}
.vb-tr-confirm__head {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  flex-wrap: wrap;
  padding-bottom: .9rem;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}
.vb-tr-confirm__kicker {
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  font-weight: 600;
}
.vb-tr-confirm__wb {
  font-family: var(--vb-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
}
.vb-tr-confirm__lead {
  font-size: .85rem;
  color: rgba(255, 255, 255, .78);
  margin: .9rem 0 .7rem;
}
.vb-tr-confirm__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem 1rem;
}
.vb-tr-confirm__grid span {
  display: block;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  margin-bottom: .18rem;
}
.vb-tr-confirm__grid strong {
  font-family: var(--vb-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.3;
  display: block;
}
.vb-tr-confirm__date {
  font-size: .8rem;
  color: rgba(255, 255, 255, .6);
  margin: 1rem 0 0;
}
@media (min-width: 520px) {
  .vb-tr-confirm__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------- shipment */
.vb-tr-ship {
  background: #fff;
  border: 1px solid var(--vb-line);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--vb-shadow);
}
.vb-tr-ship + .vb-tr-ship { margin-top: 1rem; }

.vb-tr-ship__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.vb-tr-ship__kicker {
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--vb-teal);
  font-weight: 600;
}
.vb-tr-ship__title {
  font-family: var(--vb-display);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--vb-ink);
  margin: .25rem 0 0;
}
.vb-tr-ship__meta {
  font-size: .85rem;
  color: var(--vb-slate);
  margin: .3rem 0 0;
}

/* progress ring, drawn with a conic gradient (--p is 0-100) */
.vb-tr-ring {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(var(--vb-jade) calc(var(--p) * 1%), var(--vb-line) 0);
  position: relative;
}
.vb-tr-ring::before {
  content: '';
  position: absolute;
  inset: 5px;
  background: #fff;
  border-radius: 50%;
}
.vb-tr-ring span {
  position: relative;
  font-family: var(--vb-display);
  font-weight: 800;
  font-size: .78rem;
  color: var(--vb-deep);
}

/* Holds one item now: the estimated arrival at the last-mile hub. The label is
   a full sentence, so it is not uppercased or letter-spaced — that would make
   it unreadable at this length. */
.vb-tr-dates {
  margin: 1.1rem 0 0;
  padding: .85rem .95rem;
  background: var(--vb-mint);
  border: 1px solid #CDE7DE;
  border-radius: 12px;
}
.vb-tr-dates span {
  display: block;
  font-size: .78rem;
  color: #14605A;
  margin-bottom: .2rem;
  line-height: 1.4;
}
.vb-tr-dates strong {
  font-family: var(--vb-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--vb-deep);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- steps */
.vb-tr-steps {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}
.vb-tr-step {
  position: relative;
  display: flex;
  gap: .9rem;
  padding-bottom: 1.15rem;
}
.vb-tr-step:last-child { padding-bottom: 0; }

/* the connecting rail */
.vb-tr-step::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: var(--vb-line);
}
.vb-tr-step:last-child::before { display: none; }
.vb-tr-step.is-done::before { background: var(--vb-jade); }

.vb-tr-step__mark {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid var(--vb-line);
  color: #fff;
  position: relative;
  z-index: 1;
}
.vb-tr-step.is-done .vb-tr-step__mark {
  background: var(--vb-jade);
  border-color: var(--vb-jade);
}
.vb-tr-step.is-current .vb-tr-step__mark {
  border-color: var(--vb-teal);
  box-shadow: 0 0 0 4px rgba(46, 146, 132, .16);
}
.vb-tr-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vb-teal);
}

.vb-tr-step__body { padding-top: .1rem; }
.vb-tr-step__label {
  display: block;
  font-weight: 500;
  font-size: .97rem;
  line-height: 1.4;
  color: var(--vb-slate);
}
.vb-tr-step.is-done .vb-tr-step__label { color: var(--vb-ink); font-weight: 600; }
.vb-tr-step.is-current .vb-tr-step__label { color: var(--vb-deep); font-weight: 700; }
.vb-tr-step__time {
  display: block;
  font-size: .82rem;
  color: var(--vb-slate);
  margin-top: .12rem;
  font-variant-numeric: tabular-nums;
}
.vb-tr-step__note {
  display: block;
  font-size: .85rem;
  color: var(--vb-slate);
  margin-top: .3rem;
  padding-left: .7rem;
  border-left: 2px solid var(--vb-line);
  line-height: 1.55;
}

/* ------------------------------------------------------ local delivery */
.vb-tr-dels { display: grid; gap: 1rem; }

.vb-tr-del {
  background: #fff;
  border: 1px solid var(--vb-line);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: var(--vb-shadow);
}
.vb-tr-del__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .85rem;
  flex-wrap: wrap;
}
.vb-tr-del__kicker {
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--vb-teal);
  font-weight: 600;
}
.vb-tr-del__partner {
  font-family: var(--vb-display);
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--vb-ink);
  margin: .22rem 0 0;
}

.vb-tr-badge {
  flex: none;
  font-size: .78rem;
  font-weight: 600;
  padding: .36rem .7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.vb-tr-badge--done { background: #E8F7EF; color: #14603F; border: 1px solid #B4E3CB; }
.vb-tr-badge--live { background: var(--vb-mint); color: #14605A; border: 1px solid #CDE7DE; }
.vb-tr-badge--warn { background: #FFF4E5; color: #8A5200; border: 1px solid #F6DCB0; }
.vb-tr-badge--fail { background: #FDECEF; color: #96233A; border: 1px solid #F5C2CC; }
/* "-" when no delivery attempt has been recorded yet */
.vb-tr-badge--idle {
  background: var(--vb-paper);
  color: var(--vb-slate);
  border: 1px solid var(--vb-line);
  min-width: 2.2rem;
  text-align: center;
}

.vb-tr-del__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem 1rem;
  margin: 1.05rem 0 0;
  padding: .95rem 0 0;
  border-top: 1px solid var(--vb-line);
}
.vb-tr-del__facts dt {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vb-slate);
  font-weight: 600;
  margin-bottom: .2rem;
}
.vb-tr-del__facts dd {
  margin: 0;
  font-size: .95rem;
  color: var(--vb-ink);
  font-weight: 500;
}
/* The courier reference gets the full row so it is never split mid-number. */
.vb-tr-del__facts .is-wide { grid-column: 1 / -1; }

/* ----------------------------------------------- copy tracking number */
.vb-tr-copyrow {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.vb-tr-copy {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  flex: none;
  padding: .32rem .6rem;
  font-family: var(--vb-body);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1;
  color: var(--vb-teal);
  background: #fff;
  border: 1px solid var(--vb-line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
  /* comfortable to hit on a phone without making the row taller */
  min-height: 32px;
}
.vb-tr-copy:hover { border-color: var(--vb-teal); background: var(--vb-mint); }
.vb-tr-copy:focus-visible { outline: 2px solid var(--vb-teal); outline-offset: 2px; }
.vb-tr-copy.is-done {
  color: #14603F;
  border-color: #B4E3CB;
  background: #E8F7EF;
}
.vb-tr-copy.is-failed {
  color: #8A5200;
  border-color: #F6DCB0;
  background: #FFF4E5;
}
.vb-tr-copy__ico { flex: none; }

.vb-tr-code {
  display: inline-block;
  font-family: var(--vb-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  background: var(--vb-mint);
  border: 1px solid #CDE7DE;
  border-radius: 7px;
  padding: .16rem .45rem;
  color: var(--vb-deep);
  overflow-wrap: anywhere;      /* wrap only if it genuinely cannot fit */
}
.vb-tr-del__cta {
  width: 100%;
  margin-top: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

/* ------------------------------- switch between the two lookup screens */
/* Title of each lookup screen, with the switch to the other screen at the
   top right. On narrow screens the switch drops under the title. */
.vb-tr-formhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem 1.25rem;
  margin: 0 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--vb-line);
}
.vb-tr-formtitle {
  font-family: var(--vb-display);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--vb-ink);
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.vb-tr-switch {
  flex: 0 1 17rem;
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: .4rem;
  padding: .3rem .5rem;
  margin: -.15rem -.5rem 0 0;
  background: none;
  border: 0;
  border-radius: 8px;
  font-family: var(--vb-body);
  font-weight: 500;
  font-size: .86rem;
  line-height: 1.4;
  text-align: right;
  color: var(--vb-teal);
  cursor: pointer;
}
.vb-tr-switch span {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(46, 146, 132, .4);
}
.vb-tr-switch:hover { color: var(--vb-deep); }
.vb-tr-switch:hover span { text-decoration-color: currentColor; }
.vb-tr-switch:focus-visible { outline: 2px solid var(--vb-teal); outline-offset: 2px; }
.vb-tr-switch svg { flex: none; margin-top: .1rem; }
@media (max-width: 575.98px) {
  .vb-tr-formhead { flex-direction: column; }
  .vb-tr-switch { flex: none; justify-content: flex-start; text-align: left; margin: 0 0 0 -.5rem; }
}
[dir="rtl"] .vb-tr-switch { text-align: left; justify-content: flex-start; margin: -.15rem 0 0 -.5rem; }
@media (max-width: 575.98px) {
  [dir="rtl"] .vb-tr-switch { justify-content: flex-end; text-align: right; margin: 0 -.5rem 0 0; }
}
.vb-tr-form[hidden] { display: none; }
#waybill-in {
  font-family: var(--vb-display);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
[dir="rtl"] #waybill-in { direction: ltr; text-align: right; }

/* ----------------------------------- parcels received at the warehouse */
.vb-tr-recv {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .6rem;
}
.vb-tr-recv__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem .9rem;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--vb-line);
  border-radius: 14px;
  padding: .85rem 1rem;
}
/* The parcel the visitor searched for */
.vb-tr-recv__item.is-match {
  border-color: var(--vb-teal);
  box-shadow: 0 0 0 3px rgba(46, 146, 132, .12);
}
.vb-tr-recv__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  min-width: 0;
}
.vb-tr-recv__date { font-size: .85rem; color: var(--vb-ink); }
.vb-tr-recv__date span { color: var(--vb-slate); }
[dir="rtl"] .vb-tr-recv__main { align-items: flex-end; }

/* ------------------------------------------------ one block per order */
.vb-tr-multi {
  background: #FFF4E5;
  border: 1px solid #F6DCB0;
  color: #8A5200;
  border-radius: 12px;
  padding: .8rem 1rem;
  font-size: .92rem;
  line-height: 1.55;
  margin: 0 0 1.25rem;
}
.vb-tr-order + .vb-tr-order {
  margin-top: 2.5rem;
  padding-top: 2.25rem;
  border-top: 2px dashed var(--vb-line);
}
.vb-tr-recv + .vb-tr-empty { margin-top: 1rem; }
.vb-tr-confirm__grid:empty { display: none; }
/* Several results: an accordion, one row per result */
.vb-tr-acc {
  border: 1px solid var(--vb-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--vb-shadow);
  overflow: hidden;
}
.vb-tr-acc + .vb-tr-acc { margin-top: .85rem; }
.vb-tr-acc.is-open { border-color: #BFDCDA; }
.vb-tr-acc__head {
  appearance: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem .9rem;
  width: 100%;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: var(--vb-ink);
  font: inherit;
}
.vb-tr-acc__head:hover { background: var(--vb-paper); }
.vb-tr-acc__head:focus-visible { outline: 2px solid var(--vb-teal); outline-offset: -2px; }
.vb-tr-acc__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  min-width: 0;
  flex: 1 1 12rem;
}
.vb-tr-acc__sub { font-size: .82rem; color: var(--vb-slate); }
.vb-tr-acc__toggle {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-left: auto;
  font-size: .84rem;
  font-weight: 600;
  color: var(--vb-teal);
  white-space: nowrap;
}
.vb-tr-acc__chev { transition: transform .2s ease; }
.vb-tr-acc.is-open .vb-tr-acc__chev { transform: rotate(180deg); }
.vb-tr-acc__body { padding: 0 1.1rem 1.25rem; border-top: 1px solid var(--vb-line); }
.vb-tr-acc__body[hidden] { display: none; }
/* The accordion row already names the parcel and waybill */
.vb-tr-acc__body > .vb-tr-confirm:first-child { display: none; }
.vb-tr-acc__body > .vb-tr-h2:first-of-type,
.vb-tr-acc__body > .vb-tr-empty:first-of-type { margin-top: 1.25rem; }
[dir="rtl"] .vb-tr-acc__head { text-align: right; }
[dir="rtl"] .vb-tr-acc__toggle { margin-left: 0; margin-right: auto; }
[dir="rtl"] .vb-tr-acc__main { align-items: flex-end; }

.vb-tr-recv__ship {
  font-size: .8rem;
  font-weight: 600;
  color: var(--vb-teal);
}

/* ------------------------------------------------------ empty / footer */
.vb-tr-empty {
  background: var(--vb-paper);
  border: 1px dashed var(--vb-line);
  border-radius: 16px;
  padding: 1.3rem;
  text-align: center;
}
/* For a message that is good news rather than a missing piece: solid border
   and the mint colour, so it does not read as something absent. */
.vb-tr-empty--ok {
  background: var(--vb-mint);
  border: 1px solid #CDE7DE;
}
.vb-tr-empty--ok strong { color: var(--vb-deep); }
.vb-tr-empty--ok p { color: #14605A; }
.vb-tr-empty strong {
  font-family: var(--vb-display);
  font-weight: 700;
  color: var(--vb-ink);
  display: block;
  margin-bottom: .35rem;
}
.vb-tr-empty p {
  font-size: .92rem;
  color: var(--vb-slate);
  margin: 0;
  line-height: 1.6;
}

.vb-tr-note {
  background: var(--vb-mint);
  border: 1px solid #CDE7DE;
  border-radius: 12px;
  padding: .8rem 1rem;
  font-size: .9rem;
  color: #14605A;
  margin: 1rem 0 0;
  line-height: 1.55;
}

.vb-tr-hint {
  font-size: .88rem;
  color: var(--vb-slate);
  margin: 1rem 0 0;
  line-height: 1.55;
}

.vb-tr-foot {
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--vb-line);
  text-align: center;
}
.vb-tr-foot p {
  font-size: .92rem;
  color: var(--vb-slate);
  line-height: 1.65;
  margin: 0 0 1rem;
}
.vb-tr-foot .vb-btn { min-width: 220px; }

/* Nobody needs the lookup form when printing a tracking record. */
@media print {
  .vb-tr-form, .vb-tr-foot .vb-btn, .vb-lang,
  .vb-hero, .vb-section--mint { display: none !important; }
  .vt-head { position: static; }
  .vb-tr-ship, .vb-tr-del { box-shadow: none; break-inside: avoid; }
  .vb-tr-confirm { background: #fff !important; color: #000 !important; border: 1px solid #000; }
  .vb-tr-confirm__kicker, .vb-tr-confirm__grid span,
  .vb-tr-confirm__lead, .vb-tr-confirm__date { color: #333 !important; }
}

/* ==========================================================================
   Language picker
   ========================================================================== */
.vb-lang {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}
.vb-lang__wrap {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: #fff;
  border: 1px solid var(--vb-line);
  border-radius: 10px;
  padding: .3rem .6rem .3rem .7rem;
  box-shadow: 0 1px 2px rgba(12, 35, 44, .04);
}
.vb-lang__ico { display: flex; color: var(--vb-teal); flex: none; }
.vb-lang__sel {
  border: 0;
  background: transparent;
  font-family: var(--vb-body);
  font-size: .92rem;
  color: var(--vb-ink);
  padding: .25rem 0;
  cursor: pointer;
  /* a native select so the phone shows its own picker wheel */
  max-width: 11rem;
}
.vb-lang__sel:focus-visible { outline: 2px solid var(--vb-teal); outline-offset: 3px; }

/* ==========================================================================
   Right-to-left (Arabic)
   Only the handful of rules whose direction is baked in; everything else is
   either symmetric or already uses flex/grid, which mirror themselves.
   ========================================================================== */
[dir="rtl"] .vb-lang { justify-content: flex-start; }

/* The timeline rail and its markers sit on the left in LTR. */
[dir="rtl"] .vb-tr-step::before { left: auto; right: 11px; }
[dir="rtl"] .vb-tr-step__note {
  padding-left: 0;
  padding-right: .7rem;
  border-left: 0;
  border-right: 2px solid var(--vb-line);
}

/* Latin tracking numbers and waybills stay left-to-right inside RTL text,
   otherwise the digits and letters reorder and the number reads wrongly. */
[dir="rtl"] .vb-tr-code,
[dir="rtl"] .vb-tr-confirm__wb,
[dir="rtl"] #waybill,
[dir="rtl"] #secret-postcode,
[dir="rtl"] #secret-phone {
  direction: ltr;
  text-align: right;
}
[dir="rtl"] .vb-tr-confirm__wb { display: inline-block; }

/* The arrow in the route heading points the wrong way when mirrored. */
[dir="rtl"] .vb-tr-ship__title { direction: rtl; }

[dir="rtl"] .vb-tr-del__cta svg,
[dir="rtl"] .vb-tr-foot .vb-btn svg { transform: scaleX(-1); }
