/* design-system/css/components.css */
/* Component-level styles for Loadshift detail-page elements (Item, Pickup/Delivery, About Shipper, Quote, Coordinator, Map, Financing). */
/* Not for: atom-level form controls (.form-input, .form-textarea, .form-label, .form-row, .form-group, .load-id-badge — those moved to atoms.css). Not for: page layout (see layout.css). */

@import "./atoms.css";

/* ══════════════════════════════════════════
   Item Component
   ══════════════════════════════════════════ */

.item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* .load-id-badge moved to atoms.css */

.time-posted {
  font-size: 13px;
  color: #5c6370;
}

.item-list {
  display: flex;
  flex-direction: column;
}

.item-list .item-row + .item-row {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e8eaed;
}

.item-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.item-thumb {
  width: 84px;
  height: 84px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e8eaed;
  flex-shrink: 0;
}

.item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-title {
  font-size: 15px;
  font-weight: 600;
  color: #151515;
}

.item-meta {
  font-size: 13px;
  color: #5c6370;
}

.item-qty,
.item-weight {
  text-align: right;
  min-width: 80px;
  font-size: 14px;
}

.item-total {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid #e8eaed;
  margin-top: 12px;
  font-weight: 700;
}

/* ══════════════════════════════════════════
   Pickup / Delivery Component
   ══════════════════════════════════════════ */

.route-section {
  margin-bottom: 24px;
}

.route-label {
  font-size: 16px;
  font-weight: 700;
  color: #151515;
  margin-bottom: 8px;
}

.route-location {
  font-size: 14px;
  color: #1f376b;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}

.route-location:hover {
  text-decoration: underline;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.route-detail-label {
  font-size: 12px;
  font-weight: 600;
  color: #5c6370;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.route-detail-value {
  font-size: 14px;
  color: #151515;
}

.route-notes {
  margin-top: 8px;
}

.route-divider {
  height: 1px;
  background: #e8eaed;
  margin: 24px 0;
}

.route-distance {
  font-size: 14px;
  color: #5c6370;
  text-align: right;
}

.report-issues {
  font-size: 13px;
  color: #5c6370;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  cursor: pointer;
}

/* ══════════════════════════════════════════
   About Shipper Component
   ══════════════════════════════════════════ */

.about-shipper-title {
  margin-bottom: 20px;
}

.shipper-location {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 14px;
  color: #151515;
}

.shipper-flag {
  width: 20px;
  height: 14px;
}

.star-rating {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 18px;
}

.star-rating img {
  width: 16px;
  height: 16px;
}

.star-rating .shipper-rating-user {
  width: 14px;
  height: 14px;
  margin-right: 4px;
}

.shipper-row-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.star-score {
  font-size: 14px;
  font-weight: 700;
  color: #f5a623;
  margin-left: 4px;
}

.review-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #5c6370;
  margin-left: 8px;
  background: #fff3e0;
  padding: 2px 8px;
  border-radius: 4px;
}

.review-count img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.member-since {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #5c6370;
  margin-bottom: 4px;
}

.verification-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.verification-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.verification-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #151515;
}

.verification-item img {
  width: 16px;
  height: 16px;
}

/* ══════════════════════════════════════════
   Action Now Component
   ══════════════════════════════════════════ */

.action-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ══════════════════════════════════════════
   Quote Component
   (form-* atoms moved to atoms.css; only Quote-specific
   compositions and copy elements live here.)
   ══════════════════════════════════════════ */

.quote-info {
  font-size: 14px;
  color: #5c6370;
  line-height: 22px;
  margin-bottom: 20px;
}

.quote-question {
  font-size: 15px;
  font-weight: 700;
  color: #151515;
  margin-bottom: 16px;
}

/* ── Quote form alignment ─────────────────────────────────────────
   Wrap the quote card in .quote-form. Money rows share a 3-column grid
   (label | $ ....... number | AUD) so the $, the right-aligned number,
   and AUD line up across every row. The amount row wraps $ + input in
   one bordered box; AUD sits outside on the right. */
.quote-form .quote-money-row {
  display: grid;
  grid-template-columns: 1fr 240px auto;
  align-items: center;
  column-gap: 12px;
  margin-bottom: 12px;
}

.quote-form .quote-money-field {
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.quote-form .quote-money-field--input {
  height: 40px;
  border: 1px solid #e8eaed;
  border-radius: 4px;
}

.quote-form .quote-money-field--input:focus-within {
  border-color: #1f376b;
}

.quote-form .quote-money-cur {
  flex-shrink: 0;
  font-size: 14px;
  color: #5c6370;
}

.quote-form .quote-money-num {
  margin-left: auto;
  font-size: 14px;
  color: #151515;
  white-space: nowrap;
}

.quote-form .quote-money-input {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 8px;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: #151515;
  text-align: right;
}

.quote-form .quote-money-aud {
  font-size: 14px;
  color: #5c6370;
  white-space: nowrap;
}

/* Date / vehicle rows — fixed-width bold label with OPTIONAL stacked underneath,
   so the inputs share one left edge and fill the rest of the row. */
.quote-form .form-group-inline {
  gap: 16px;
  margin-bottom: 12px;
}

.quote-form .form-group-inline .form-label {
  width: 240px;
  font-weight: 700;
}

.quote-form .form-group-inline .form-row-tag {
  display: block;
  margin-left: 0;
  margin-top: 3px;
}

/* Composition: stacked form group with inputs that fill the row */
.form-group:not(.form-group-inline) .form-input:not(.form-date-input) {
  width: 100%;
  max-width: 480px;
}

.quote-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e0e4e8;
}

/* ══════════════════════════════════════════
   Coordinator Component
   ══════════════════════════════════════════ */

.coordinator-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.coordinator-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.coordinator-info {
  display: flex;
  flex-direction: column;
}

.coordinator-name {
  font-size: 14px;
  font-weight: 700;
  color: #151515;
}

.coordinator-role {
  font-size: 13px;
  color: #5c6370;
}

.coordinator-status {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-left: 4px;
  vertical-align: middle;
}

.coordinator-desc {
  font-size: 13px;
  color: #5c6370;
  line-height: 20px;
  margin-bottom: 16px;
}

/* ══════════════════════════════════════════
   Map Component
   ══════════════════════════════════════════ */

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ══════════════════════════════════════════
   Financing Assist Component
   ══════════════════════════════════════════ */

.financing-banner-img {
  width: 100%;
  display: block;
  border-radius: 8px 8px 0 0;
}

.financing-content {
  padding: 16px 20px;
}

.financing-desc {
  font-size: 13px;
  color: #5c6370;
  line-height: 20px;
  margin-bottom: 12px;
}

.financing-powered {
  font-size: 12px;
  color: #5c6370;
  margin-top: 12px;
}

/* ══════════════════════════════════════════
   Download App Component
   Sidebar promo: hero image on top, orange CTA, blurb below.
   ══════════════════════════════════════════ */

.download-app-img {
  width: 100%;
  display: block;
  border-radius: 8px 8px 0 0;
}

.download-app-content {
  padding: 16px 20px 20px;
}

.download-app-content .btn {
  margin-bottom: 14px;
}

.download-app-desc {
  font-size: 14px;
  color: #5c6370;
  line-height: 22px;
  text-align: center;
}

/* ══════════════════════════════════════════
   Showcase Utilities (for index.html)
   ══════════════════════════════════════════ */

.component-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9aa3af;
  background: #f0f2f5;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
  display: inline-block;
}

/* ════════════════════════════════════════════════════════════════
   QUOTE CARD (proposal card) — with / without Loadshift Verify badge
   Promoted from the Carrier Membership prototype. Variants:
   .quote-card (plain) and .quote-card + .quote-card__verify (badge strip).
   ════════════════════════════════════════════════════════════════ */


/* Proposal card — horizontal layout to match the existing component */
.quote-card {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(18, 21, 27, 0.12);
}

.quote-card + .quote-card { margin-top: 16px; }

.quote-card__body {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
}

.quote-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.quote-card__main {
  flex: 1;
  min-width: 0;
}

.quote-card__name {
  font-size: 15px;
  font-weight: 700;
  color: #1f376b;
}

.quote-card__name span {
  font-weight: 400;
  color: #1f376b;
}

.quote-card__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px 0 6px;
  flex-wrap: wrap;
}

.quote-card__stars {
  display: inline-flex;
  gap: 1px;
}

.quote-card__stars img { width: 14px; height: 14px; }

.quote-card__rnum {
  font-size: 13px;
  font-weight: 700;
  color: #151515;
}

.quote-card__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #5c6370;
}

.quote-card__chip-sq {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  background: #f5a623;
}

.quote-card__chip-ring {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #1f9bde;
}

.quote-card__tagline {
  font-size: 14px;
  font-weight: 700;
  color: #151515;
  margin-bottom: 6px;
}

.quote-card__msg {
  font-size: 13px;
  line-height: 19px;
  color: #5c6370;
}

.quote-card__msg a { color: #1f376b; }

.quote-card__right {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 6px;
}

/* Award / Message side-by-side (left-right), matching the existing card */
.quote-card__actions {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
}

.quote-card__actions .btn { flex: 1; }

.quote-card__price {
  font-size: 17px;
  font-weight: 700;
  color: #151515;
  white-space: nowrap;
}

.quote-card__gst {
  font-size: 12px;
  color: #5c6370;
}

.quote-card__replies {
  font-size: 12px;
  color: #5c6370;
  margin-top: 4px;
}

/* Loadshift Verify badge strip at the BOTTOM of the proposal card */
.quote-card__verify {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-top: 1px solid #e8eaed;
  background: #f6faff;
  border-radius: 0 0 9px 9px;
}

.quote-card__verify-text {
  font-size: 12px;
  color: #5c6370;
}

/* Interactive verify tooltip — hover popover with explanation + upgrade link */
.verify-tip {
  position: relative;
  display: inline-flex;
}

.verify-tip__trigger { cursor: pointer; }

.verify-tip__pop {
  position: absolute;
  top: 100%;
  left: 0;
  display: block;
  padding-top: 9px;             /* transparent hover bridge to the badge */
  width: 290px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.verify-tip:hover .verify-tip__pop,
.verify-tip:focus-within .verify-tip__pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.verify-tip__card {
  display: block;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(18, 21, 27, 0.2);
  padding: 14px 16px;
}

.verify-tip__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #151515;
  margin-bottom: 6px;
}

.verify-tip__text {
  font-size: 12px;
  line-height: 18px;
  color: #5c6370;
  margin-bottom: 12px;
}

.verify-tip__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #ff380f;
  text-decoration: none;
}

.verify-tip__link:hover { text-decoration: underline; }

/* Loadshift Verify badge chip (sits in the .quote-card__verify strip) */
.verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px 0 8px;
  border-radius: 12px;
  background: #eaf2fc;
  border: 1px solid #c5dbf5;
  color: #1f376b;
  font-size: 12px;
  font-weight: 700;
}

.verify-badge__shield {
  width: 14px;
  height: 14px;
}

/* ════════════════════════════════════════════════════════════
   PAYMENT OPTIONS — milestone payment schedule selector
   (Fund now / Fund later radio rows, used in the Award and pay modal)
   ════════════════════════════════════════════════════════════ */

.pay-options__title {
  font-size: 18px;
  font-weight: 700;
  color: #151515;
  margin-bottom: 16px;
}

.pay-option {
  display: block;
  padding: 8px 0;
  cursor: pointer;
}

.pay-option__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pay-option__label {
  font-size: 16px;
  font-weight: 500;
  color: #151515;
}

.pay-option__amount {
  margin-left: auto;
  font-size: 16px;
  font-weight: 400;
  color: #151515;
}

.pay-option__desc {
  margin: 10px 0 0 30px;
  font-size: 15px;
  line-height: 22px;
  color: #3c4350;
}

.pay-options__or {
  margin: 18px 0;
}

/* ════════════════════════════════════════════════════════════
   PAYMENT SUMMARY — fee rows, total, and footnotes
   ════════════════════════════════════════════════════════════ */

.pay-summary__row[hidden] {
  display: none;
}

.pay-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid #e8eaed;
  border-bottom: 1px solid #e8eaed;
  font-size: 15px;
  color: #151515;
}

.pay-summary__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 700;
  color: #151515;
}

.pay-summary__notes {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-summary__note {
  font-size: 14px;
  line-height: 20px;
  color: #3c4350;
}

.pay-summary__note a {
  color: #1a73e8;
  text-decoration: none;
}

.pay-summary__note a:hover {
  text-decoration: underline;
}

.pay-summary__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.pay-summary__cancel {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #151515;
  cursor: pointer;
}

/* ════════════════════════════════════════════════════════════
   MILESTONE INFO — explainer side panel for the Award and pay modal
   ════════════════════════════════════════════════════════════ */

.milestone-info {
  background: #f5f6f7;
  padding: 36px 32px;
  text-align: center;
  max-width: 320px;
}

.milestone-info__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: #151515;
  margin-bottom: 16px;
}

.milestone-info__lead {
  font-size: 15px;
  line-height: 22px;
  color: #151515;
  margin-bottom: 28px;
}

.milestone-info__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.milestone-info__step:last-child {
  margin-bottom: 0;
}

.milestone-info__icon {
  height: 52px;
}

.milestone-info__text {
  font-size: 15px;
  line-height: 22px;
  color: #151515;
}

/* ══════════════════════════════════════════
   Route Insight component
   NHVR heavy-vehicle network overlay panel that sits under the
   Map component on the Carrier Job Detail page. Composition only —
   the traffic-light dots are the .atom-status-dot atom; buttons and
   the select are atoms. The four status colours used here are the
   documented Status tokens (Success / Warning / Danger / neutral).
   ══════════════════════════════════════════ */

.route-insight__header {
  margin-bottom: 16px;
}

.route-insight__title {
  margin-bottom: 0;
}

.route-insight__subtitle {
  font-size: 13px;
  color: #5c6370;
  margin-top: 2px;
}

/* Vehicle configuration row: label + dropdown */
.route-insight__config {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.route-insight__config-label {
  font-size: 14px;
  font-weight: 700;
  color: #151515;
  flex-shrink: 0;
}

.route-insight__select-wrap {
  position: relative;
  flex: 1;
  max-width: 380px;
}

/* Trigger styled like a native select so open/closed states match */
.route-insight__select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e8eaed;
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: #151515;
  cursor: pointer;
  text-align: left;
}

.route-insight__select:focus {
  border-color: #1f376b;
  outline: none;
}

.route-insight__select-chevron {
  width: 16px;
  height: 16px;
  color: #5c6370;
  flex-shrink: 0;
  margin-left: 8px;
}

/* Open option list (rendered visually for the open state) */
.route-insight__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(18, 21, 27, 0.14);
  padding: 4px;
  z-index: 20;
}

.route-insight__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: 4px;
  font-size: 14px;
  color: #151515;
  cursor: pointer;
}

.route-insight__option:hover {
  background: #f0f2f5;
}

.route-insight__option--selected {
  font-weight: 700;
  background: #f6faff;
}

/* Selected marker (the "(o)" in the wireframe) */
.route-insight__option-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 4px solid #ff380f;
  background: #fff;
  flex-shrink: 0;
}

/* Map area — placeholder base map + coloured overlay drawn on top.
   Sized to match .map-embed (16 / 9). The background image is set on
   the CSS file, so its path resolves correctly on every host page. */
.route-insight__map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  /* Google Maps-style road map background (generated raster, no baked-in route or pins) so the NHVR overlay reads as a layer on top of a real map, not a schematic diagram. */
  background: #f2efe9 url("../img/route-insight-basemap.png") center center / cover no-repeat;
}

.route-insight__map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Live map variant: a real tile map (Leaflet) instead of the raster + SVG
   approximation. isolation keeps Leaflet's internal z-indexes inside the
   map box so the config dropdown still opens above the map. */
.route-insight__map--live {
  background: #e8eaed;
  z-index: 0;
  isolation: isolate;
}

/* Legend row directly under the map */
.route-insight__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
}

.route-insight__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5c6370;
}

/* "Data as of" pushed to the right edge of the legend row */
.route-insight__legend .route-insight__data-as-of {
  margin-left: auto;
}

/* Summary section */
.route-insight__summary {
  margin-top: 18px;
}

.route-insight__summary-text {
  font-size: 14px;
  line-height: 21px;
  color: #151515;
}

.route-insight__poi-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #151515;
  margin-top: 12px;
}

.route-insight__poi-row svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #5c6370;
}

/* Actions row: text link on the left, "Data as of" on the right */
.route-insight__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.route-insight__toggle {
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #1f376b;
  cursor: pointer;
}

.route-insight__toggle:hover {
  text-decoration: underline;
}

.route-insight__data-as-of {
  font-size: 12px;
  color: #9aa3af;
  text-align: right;
  flex-shrink: 0;
}

/* Segment detail list (expanded state) */
.route-insight__segments-title {
  font-size: 14px;
  font-weight: 700;
  color: #151515;
  margin: 18px 0 10px;
}

.route-insight__segments {
  border: 1px solid #e8eaed;
  border-radius: 8px;
  overflow: hidden;
}

.route-insight__segment {
  padding: 12px 16px;
  border-bottom: 1px solid #eef0f3;
}

.route-insight__segment:last-child {
  border-bottom: none;
}

.route-insight__segment-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.route-insight__segment-path {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #151515;
}

.route-insight__segment-path b {
  font-weight: 700;
}

.route-insight__segment-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 116px;
  font-size: 13px;
  font-weight: 600;
  color: #151515;
}

.route-insight__segment-net {
  width: 104px;
  text-align: right;
  font-size: 13px;
  color: #5c6370;
  flex-shrink: 0;
}

.route-insight__segment-note {
  margin: 8px 0 0 30px;
  font-size: 13px;
  line-height: 19px;
  color: #5c6370;
}

/* Fixed disclaimer at the foot of the panel */
.route-insight__disclaimer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e8eaed;
  font-size: 12px;
  line-height: 18px;
  color: #9aa3af;
}

/* Locked / teaser state (non-member, after the free preview) */
.route-insight__locked {
  margin-top: 18px;
}

.route-insight__lock-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.route-insight__lock-icon {
  width: 22px;
  height: 22px;
  color: #5c6370;
  flex-shrink: 0;
}

.route-insight__lock-title {
  font-size: 16px;
  font-weight: 700;
  color: #151515;
}

.route-insight__lock-body {
  font-size: 14px;
  line-height: 21px;
  color: #5c6370;
  margin: 10px 0 16px;
}

/* Blurred teaser row — a genuine CSS blur over a grey placeholder,
   so no real route counts are shown for a locked view. Block-level so
   it always sits on its own line above the offer line. */
.route-insight__teaser {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.route-insight__teaser-label {
  font-size: 14px;
  font-weight: 600;
  color: #151515;
}

.route-insight__teaser-blur {
  font-size: 14px;
  color: #5c6370;
  background: #eef0f3;
  border-radius: 4px;
  padding: 2px 12px;
  filter: blur(3.5px);
  user-select: none;
  pointer-events: none;
}

.route-insight__lock-cta {
  width: auto;
  min-width: 240px;
}

.route-insight__offer-row {
  margin-bottom: 16px;
}

/* Grouped selector menu: "Your vehicles" (profile-mapped) vs "All configurations" */
.route-insight__menu-group {
  padding: 8px 10px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #9aa3af;
}

.route-insight__menu-foot {
  margin-top: 4px;
  padding: 10px;
  border-top: 1px solid #eef0f3;
  font-size: 13px;
  color: #5c6370;
}

.route-insight__menu-foot a {
  font-weight: 700;
  color: #1f376b;
  text-decoration: none;
  white-space: nowrap;
}

.route-insight__menu-foot a:hover {
  text-decoration: underline;
}

/* Muted suffix inside the closed select, e.g. "(from your profile)" */
.route-insight__select-hint {
  flex: 1;
  margin-left: 8px;
  font-size: 12px;
  color: #9aa3af;
  text-align: left;
}

/* Free-preview header: title row with pill + strip inside the same card */
.route-insight__header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.route-insight__pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  border: 1px solid #f5a623;
  border-radius: 12px;
  background: #fff8e1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #151515;
  flex-shrink: 0;
}

.route-insight__preview-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid #f5a623;
  border-radius: 6px;
  background: #fff8e1;
  font-size: 13px;
  line-height: 19px;
  color: #151515;
}

.route-insight__preview-strip a {
  font-weight: 700;
  color: #1f376b;
  text-decoration: none;
  white-space: nowrap;
}

.route-insight__preview-strip a:hover {
  text-decoration: underline;
}

.route-insight__preview-dismiss {
  margin-left: auto;
  padding: 0 2px;
  border: 0;
  background: none;
  font-size: 18px;
  line-height: 1;
  color: #5c6370;
  cursor: pointer;
}

/* Summary-first header: route length + ETA headline (mirrors NHVR GO's
   "1 hour 54 minutes (159.38 km)" line), via line, and permit warning */
.route-insight__eta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.route-insight__eta {
  font-size: 18px;
  font-weight: 700;
  color: #151515;
}

.route-insight__via {
  font-size: 13px;
  color: #5c6370;
  margin-top: 2px;
}

.route-insight__warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: #151515;
}

.route-insight__warning svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #f5a623;
  flex-shrink: 0;
}

/* Detail state: directions-style leg list on the left, live map on the right
   (mirrors NHVR GO's Directions panel; clicking a leg focuses the map) */
.route-insight__detail-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 16px;
  margin-top: 16px;
}

.route-insight__legs {
  border: 1px solid #e8eaed;
  border-radius: 8px;
  overflow-y: auto;
  max-height: 560px;
  align-self: start;
}

.route-insight__leg {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #eef0f3;
  background: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.route-insight__leg:last-child {
  border-bottom: none;
}

.route-insight__leg:hover {
  background: #f0f2f5;
}

.route-insight__leg--active {
  background: #f6faff;
}

.route-insight__leg .atom-status-dot {
  margin-top: 5px;
}

.route-insight__leg-main {
  flex: 1;
  min-width: 0;
}

.route-insight__leg-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #151515;
}

.route-insight__leg-sub {
  display: block;
  font-size: 12px;
  color: #5c6370;
  margin-top: 2px;
}

.route-insight__leg-warn {
  display: block;
  font-size: 12px;
  line-height: 17px;
  color: #151515;
  margin-top: 6px;
}

.route-insight__leg-dist {
  font-size: 13px;
  color: #5c6370;
  flex-shrink: 0;
  margin-top: 1px;
}

.route-insight__leg-chevron {
  width: 14px;
  height: 14px;
  color: #9aa3af;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Taller map for the two-column detail state */
.route-insight__map--tall {
  aspect-ratio: auto;
  height: 560px;
}

/* Missing truck type prompt (profile has no truck types / no mapping) */
.route-insight__prompt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #e3edf9;
  font-size: 13px;
  line-height: 19px;
  color: #151515;
}

.route-insight__prompt svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #1f376b;
  flex-shrink: 0;
}

.route-insight__prompt a {
  font-weight: 700;
  color: #1f376b;
  text-decoration: none;
  white-space: nowrap;
}

.route-insight__prompt a:hover {
  text-decoration: underline;
}
