/* Header tracking shares the site's blue and paper palette. */
.freight-quick:not([hidden]) { position: relative; flex: 0 0 300px; min-width: 0; }
.nav:has(.freight-quick:not([hidden])) .track { display: none; }
header:has(.freight-quick:not([hidden])) { z-index: 20; }
.freight-quick-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  border: 1px solid #b6c8d7;
  border-radius: 10px;
  background: #fff;
  margin: 0;
  min-height: 44px;
}
.freight-quick-form label {
  display: flex;
  align-items: center;
  padding: 0 9px 0 11px;
  border-right: 1px solid #e0e8ef;
  margin: 0;
  color: #193c58;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}
.freight-quick-form input {
  width: 100%;
  min-width: 0;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.freight-quick-form input:focus-visible { outline: 2px solid #1367d4; outline-offset: -2px; }
.freight-quick-submit {
  margin: 3px;
  padding: 0 12px;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #1367d4;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.freight-quick-submit:hover { background: #084ea8; }
.freight-quick-submit:disabled { cursor: wait; opacity: .75; }
.freight-quick-panel {
  position: absolute;
  z-index: 40;
  inset: calc(100% + 10px) 0 auto auto;
  width: max(100%, min(340px, calc(100vw - 40px)));
  padding: 16px 17px 14px;
  border: 1px solid #cedce7;
  border-top: 3px solid #1367d4;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 16px 34px #11263324;
}
#freight-quick-message { color: #546677; font-size: 13px; line-height: 1.45; margin: 0; }
#freight-quick-message:empty { display: none; }
.freight-quick-reference { margin: 0 0 4px; font-size: 12px; color: #546677; overflow-wrap: anywhere; }
.freight-quick-status { display: block; font-size: 24px; line-height: 1.1; letter-spacing: -.025em; }
.freight-quick-location { margin: 8px 0 0; font-size: 14px; color: #264764; line-height: 1.4; }
.freight-quick-location:empty { display: none; }
.freight-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid #e0e8ef;
  color: #125ab2;
  font-size: 12px;
  font-weight: 700;
}
.freight-quick-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1250px) {
  .nav:has(.freight-quick:not([hidden])) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    row-gap: 10px;
    height: auto;
    min-height: 0;
    padding-block: 15px 13px;
  }
  .nav:has(.freight-quick:not([hidden])) .nav-actions { grid-column: 3; grid-row: 1; }
  .nav .freight-quick:not([hidden]) { grid-column: 1 / -1; grid-row: 2; width: min(100%, 460px); justify-self: end; }
}
@media (max-width: 600px) {
  .nav .freight-quick:not([hidden]) { width: 100%; }
  .freight-quick-form input { font-size: 16px; }
}

.freight-quick-form:focus-within {
  border-color: #4d91df;
  box-shadow: 0 0 0 3px #1367d41a;
}
.freight-quick-panel {
  --tracking-muted: #546677;
  --tracking-accent: #1367d4;
  max-height: min(61vh, 480px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.freight-quick-panel:not([hidden]) { animation: freight-quick-open .14s ease-out; }
@keyframes freight-quick-open {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .freight-quick-panel:not([hidden]) { animation: none; }
}
.freight-quick-dismiss {
  display: grid;
  place-items: center;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: #f0f4f8;
  color: #31516a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.freight-quick-dismiss:hover { background: #e0ebf5; }
#freight-quick-message:not(:empty) { padding-right: 36px; }
#freight-quick-message:has(+ #freight-quick-result:not([hidden])) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.freight-quick-summary { margin-right: 36px; padding: 2px 0 0; }
.freight-quick-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #164d83;
}
.freight-quick-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.freight-quick-summary[data-status="delivered"] .freight-quick-status { color: #176644; }
.freight-quick-summary[data-status="delayed"] .freight-quick-status { color: #8c4c08; }
.freight-quick-timeline {
  margin-top: 14px;
  padding: 0 11px;
  border: 1px solid #dbe4ea;
  border-radius: 7px;
  background: #f8fafc;
}
.freight-quick-timeline > summary {
  padding: 9px 0;
  color: #135db9;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.freight-quick-timeline[open] { padding-bottom: 10px; }
.freight-quick-timeline .freight-step { column-gap: 9px; }
.freight-quick-timeline .freight-step-name { font-size: 13px; }
.freight-quick-timeline .freight-step-time { font-size: 11px; }
@media (min-width: 851px) and (max-width: 1050px) {
  .nav:has(.freight-quick:not([hidden])) { display: flex; height: 82px; padding-block: 0; }
  .nav .freight-quick:not([hidden]) { width: auto; flex: 1 1 320px; max-width: 410px; margin-inline: auto; }
}
