:root {
  --pax-blue: #1647d8;
  --pax-blue-dark: #0b245e;
  --pax-sky: #eaf3ff;
  --pax-white: #fff;
  --pax-ink: #202938;
  --pax-muted: #657084;
  --pax-coral: #ff5a5f;
  --pax-line: #dbe3ee;
  --pax-max: 1180px;
  --pax-safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 300px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.pax-body {
  min-height: 100vh;
  margin: 0;
  background: var(--pax-white);
  color: var(--pax-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.pax-body :where(button, input) {
  font: inherit;
}

.pax-body :where(button, a) {
  -webkit-tap-highlight-color: transparent;
}

.pax-body button {
  border: 0;
  cursor: pointer;
}

.pax-body a {
  color: inherit;
  text-decoration: none;
}

.pax-body img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.pax-shell {
  width: min(calc(100% - 36px), var(--pax-max));
  margin-inline: auto;
}

.pax-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 9px 13px;
  border-radius: 8px;
  background: #fff;
  color: var(--pax-blue-dark);
  box-shadow: 0 8px 24px rgba(11, 36, 94, .18);
  transform: translateY(-160%);
}

.pax-skip:focus {
  transform: translateY(0);
}

.pax-header {
  position: relative;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  background: var(--pax-blue);
  color: #fff;
}

.pax-header__inner {
  position: relative;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pax-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.pax-brand img {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: contain;
}

.pax-brand strong {
  color: #fff;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -.025em;
  line-height: 1;
  white-space: nowrap;
}

.pax-brand strong span {
  font-weight: 650;
}

.pax-menu-button {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .46) !important;
  border-radius: 9px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}

.pax-menu {
  position: absolute;
  top: calc(100% - 6px);
  right: 0;
  display: none;
  width: min(270px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid rgba(11, 36, 94, .12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(11, 36, 94, .22);
  color: var(--pax-ink);
}

.pax-menu.is-open {
  display: grid;
}

.pax-menu a {
  min-height: 48px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pax-line);
  font-weight: 700;
}

.pax-menu a:last-child {
  border-bottom: 0;
}

.pax-hero {
  overflow: hidden;
  background: var(--pax-blue);
  color: #fff;
}

.pax-hero__grid {
  width: 100%;
}

.pax-hero__copy {
  width: min(calc(100% - 36px), 570px);
  margin-inline: auto;
  padding: 28px 0 20px;
}

.pax-kicker {
  margin: 0 0 11px;
  color: rgba(255, 255, 255, .78);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.pax-kicker--blue {
  color: var(--pax-blue);
}

.pax-hero h1 {
  max-width: 590px;
  margin: 0;
  color: #fff;
  font-size: 40px;
  font-weight: 780;
  letter-spacing: -.058em;
  line-height: .98;
}

.pax-hero__intro {
  max-width: 475px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: 15px;
  line-height: 1.5;
}

.pax-search {
  margin-top: 18px;
}

.pax-search > label {
  display: block;
  margin-bottom: 9px;
  color: #fff;
  font-size: 14px;
  font-weight: 760;
}

.pax-search__row {
  display: grid;
  gap: 12px;
}

.pax-search input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 17px;
  border: 2px solid transparent;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: var(--pax-ink);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: .01em;
}

.pax-search input::placeholder {
  color: #929caf;
  font-weight: 500;
}

.pax-search button {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--pax-coral);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 12px 25px rgba(105, 16, 31, .22);
}

.pax-search button:disabled,
.pax-section-heading button:disabled {
  cursor: wait;
  opacity: .68;
}

.pax-search small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
}

.pax-field-error {
  min-height: 20px;
  margin: 7px 0 0;
  color: #fff3bd;
  font-size: 13px;
  font-weight: 700;
}

.pax-field-error:empty {
  display: none;
}

.pax-hero__media {
  width: 100%;
  height: 210px;
  margin: 0;
  overflow: hidden;
  background: #d9e6f3;
}

.pax-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pax-loading {
  padding: 26px 0;
  background: var(--pax-sky);
}

.pax-loading .pax-shell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pax-loading p {
  margin: 0;
  font-weight: 750;
}

.pax-loading span {
  display: block;
  width: 84px;
  height: 5px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--pax-line);
}

.pax-loading span::after {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: var(--pax-blue);
  content: "";
  animation: pax-loading 1.1s ease-in-out infinite alternate;
}

@keyframes pax-loading {
  to { transform: translateX(125%); }
}

.pax-status-band {
  scroll-margin-top: 16px;
  padding: 14px 0 12px;
  background: var(--pax-sky);
}

.pax-status-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.pax-status-heading h2,
.pax-section-heading h2,
.pax-shipment h2,
.pax-empty h2 {
  margin: 0;
  color: var(--pax-ink);
  font-size: 27px;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.pax-status-heading h2 {
  color: var(--pax-coral);
  font-size: 27px;
}

.pax-order-reference {
  display: none;
  margin: 7px 0 0;
  color: var(--pax-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.pax-order-reference strong {
  color: var(--pax-ink);
}

.pax-step-count {
  flex: 0 0 auto;
  padding-bottom: 4px;
  color: var(--pax-ink);
  font-size: 15px;
}

.pax-progress {
  margin-top: 12px;
}

.pax-progress ol {
  position: relative;
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  list-style: none;
}

.pax-progress ol::before {
  position: absolute;
  top: 10px;
  right: 4%;
  left: 4%;
  height: 3px;
  background: #c8d4e6;
  content: "";
}

.pax-progress li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.pax-progress__marker {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 3px solid #c8d4e6;
  border-radius: 50%;
  background: var(--pax-sky);
  color: #7e8ba1;
  font-size: 10px;
  font-weight: 850;
}

.pax-progress li.is-complete .pax-progress__marker {
  border-color: var(--pax-blue);
  background: var(--pax-blue);
  color: #fff;
}

.pax-progress li.is-current .pax-progress__marker {
  border-color: var(--pax-coral);
  background: var(--pax-coral);
  box-shadow: 0 0 0 5px rgba(255, 90, 95, .13);
  color: #fff;
}

.pax-progress-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: var(--pax-muted);
  font-size: 11px;
}

.pax-details-grid {
  display: grid;
  gap: 40px;
  padding-top: 36px;
  padding-bottom: 48px;
}

.pax-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.pax-section-heading button {
  min-height: 40px;
  padding: 0 13px;
  border-radius: 9px;
  background: var(--pax-sky);
  color: var(--pax-blue);
  font-size: 12px;
  font-weight: 800;
}

.pax-updates ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pax-updates li {
  display: grid;
  min-width: 0;
  padding: 17px 0;
  border-bottom: 1px solid var(--pax-line);
  gap: 13px;
  grid-template-columns: 38px minmax(0, 1fr);
}

.pax-updates li:first-child {
  padding-top: 0;
}

.pax-event-marker {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--pax-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

.pax-updates li.is-latest .pax-event-marker {
  background: var(--pax-coral);
}

.pax-event-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pax-event-head strong {
  font-size: 14px;
}

.pax-event-head time {
  flex: 0 0 auto;
  color: var(--pax-muted);
  font-size: 10px;
  text-align: right;
}

.pax-event-copy p {
  margin: 3px 0 0;
  color: var(--pax-muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.pax-shipment {
  min-width: 0;
  padding-top: 29px;
  border-top: 1px solid var(--pax-line);
}

.pax-shipment dl {
  margin: 19px 0 0;
}

.pax-shipment dl > div {
  display: grid;
  min-width: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--pax-line);
  gap: 7px;
}

.pax-shipment dt {
  color: var(--pax-muted);
  font-size: 11px;
  font-weight: 700;
}

.pax-shipment dd {
  margin: 0;
  color: var(--pax-ink);
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.pax-carrier-link {
  display: flex;
  min-height: 52px;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--pax-blue);
  color: #fff !important;
  font-weight: 800;
}

.pax-carrier-pending {
  margin: 18px 0 0;
  padding: 13px 14px;
  border-radius: 9px;
  background: var(--pax-sky);
  color: var(--pax-muted);
  font-size: 12px;
}

.pax-empty {
  padding: 48px 0 54px;
  background: #fff;
}

.pax-empty .pax-shell {
  max-width: 720px;
}

.pax-empty p:last-child {
  max-width: 590px;
  margin: 12px 0 0;
  color: var(--pax-muted);
}

.pax-footer {
  padding: 31px 0 calc(31px + var(--pax-safe-bottom));
  background: var(--pax-blue-dark);
  color: rgba(255, 255, 255, .77);
}

.pax-footer .pax-shell {
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.pax-footer p {
  margin: 0;
  font-size: 12px;
}

.pax-footer strong {
  color: #fff;
  letter-spacing: .04em;
}

.pax-footer a {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.pax-footer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.pax-footer__actions form {
  margin: 0;
}

.pax-footer__actions button {
  min-height: 44px;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pax-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.pax-body :where(a, button, input):focus-visible {
  outline: 3px solid #ffd35a;
  outline-offset: 3px;
}

.pax-search input[aria-invalid="true"] {
  border-color: #ffd35a;
}

@media (min-width: 680px) {
  .pax-shell {
    width: min(calc(100% - 64px), var(--pax-max));
  }

  .pax-header__inner {
    min-height: 86px;
  }

  .pax-brand img {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .pax-brand strong {
    font-size: 20px;
  }

  .pax-hero h1 {
    font-size: 56px;
  }

  .pax-hero__media {
    height: 320px;
  }

  .pax-status-band {
    padding: 27px 0 25px;
  }

  .pax-order-reference {
    display: block;
  }

  .pax-progress {
    margin-top: 26px;
  }

  .pax-progress ol::before {
    top: 14px;
    height: 4px;
  }

  .pax-progress__marker {
    width: 32px;
    height: 32px;
  }

  .pax-progress-caption {
    margin-top: 9px;
  }

  .pax-menu-button {
    display: none;
  }

  .pax-menu,
  .pax-menu.is-open {
    position: static;
    display: flex;
    width: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
  }

  .pax-menu a {
    min-height: auto;
    padding: 11px 14px;
    border: 0;
    font-size: 13px;
  }

  .pax-search__row {
    grid-template-columns: minmax(0, 1fr) 190px;
  }

  .pax-details-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(270px, .8fr);
  }

  .pax-shipment {
    padding-top: 0;
    padding-left: 34px;
    border-top: 0;
    border-left: 1px solid var(--pax-line);
  }

  .pax-shipment dl > div {
    grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr);
  }

  .pax-shipment dd {
    text-align: right;
  }

  .pax-footer .pax-shell {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 960px) {
  .pax-hero__grid {
    display: grid;
    width: min(100%, 1440px);
    margin-inline: auto;
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
  }

  .pax-hero__copy {
    width: min(calc(100% - 72px), 570px);
    margin-right: 0;
    padding: 72px 0 68px;
  }

  .pax-hero h1 {
    font-size: 64px;
  }

  .pax-hero__media {
    height: auto;
    min-height: 520px;
  }

  .pax-status-band {
    padding: 36px 0 33px;
  }

  .pax-progress {
    margin-top: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pax-loading span::after {
    animation: none;
  }
}
