/* Shared behavior for the journey, results, comparison and their dialogs. */
.mainflow, #mainDialog, #quote, .jsat-panel {
  overflow-wrap: anywhere;
}
.mainflow fieldset, #mainDialog fieldset, #quote fieldset, .jsat-panel fieldset,
.mainflow .tablewrap, .quote-identity > *, .pro-choice > span, .js-offer-car > div {
  min-inline-size: 0;
}
.mainflow :is(button, input, select, textarea),
#mainDialog :is(button, input, select, textarea),
#quote :is(button, input, select, textarea) {
  max-inline-size: 100%;
}
:is(a, button, input, select, textarea, summary, .tablewrap):focus-visible {
  outline: 3px solid #197380;
  outline-offset: 2px;
}
.mainflow .chip[aria-pressed]:focus-visible,
.mainflow :is(.journey-heading h1, .outcome h1, .quote-card h3):focus-visible,
#mainDialog h2:focus-visible, #mainDialog h3:focus-visible, #quote h3:focus-visible {
  outline: 2px solid #197380;
  outline-offset: 3px;
}
#mainDialog {
  max-height: 90vh;
  max-height: 90dvh;
  overscroll-behavior: contain;
}
#mainDialog #modalContent > h2, #mainDialog .pro-picker-context {
  padding-inline-end: 42px;
}
#mainDialog .close, #mainDialog:has(.lease-edit-dialog) .close,
#quote .showroom-close, .jsat-panel .jsat-x {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0;
}
#mainDialog .close {
  top: 8px;
  right: 8px;
}
#mainDialog .pro-picker select, #mainDialog .field select { max-width: 100%; }
.js-offer-actions, .lease-edit-actions { flex-wrap: wrap; }
.js-offer-actions button, .lease-edit-actions button { white-space: normal; }
.jsat-actions button { flex-shrink: 1; }
.mainflow .cost-base { flex-wrap: wrap; }
.mainflow .cost-base strong, .cost-key .cost-entry dd {
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 680px) {
  .brandbar .head:has(nav a.footlink) {
    height: auto;
    min-height: 65px;
    flex-wrap: wrap;
    gap: 0 10px;
    padding-top: 6px;
  }
  .brandbar .head nav:has(a.footlink) {
    width: 100%;
    margin: 0;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0 10px;
    padding-bottom: 6px;
  }
  .brandbar .head nav .footlink { display: inline-flex; align-items: center; min-height: 44px; }
  .brandbar .head nav:has(a.footlink) button:first-of-type { display: none; }
  .brandbar .head nav button, .mainflow .footer button, .mainflow .footer a,
  .mainflow .link, .mainflow .source-option, .mainflow .cost-txt-link,
  .mainflow .offer-edit .link, .journey .offer-leads button, .mainflow .lead-primary,
  #mainDialog .link, #mainDialog :is(.lightbtn, .solid), #proBack,
  #quote .js-offer-link, #quote .js-back, .mainflow summary, #mainDialog summary,
  .journey .fuel-radios label, .journey .radio-picks label, .journey .travel-share input[type="range"],
  .mainflow .checkline:has(input[type="checkbox"]), #mainDialog .checkline:has(input[type="checkbox"]) {
    min-height: 44px;
  }
  .mainflow .footer {
    align-items: start;
    justify-content: flex-start;
    gap: 0 18px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .mainflow .footer span { flex-basis: 100%; margin-bottom: 3px; }
  .mainflow .footer button, .mainflow .footer a { align-content: center; padding-inline: 0; }
  .journey-progress ol { display: grid; grid-auto-flow: column; grid-auto-columns: auto; gap: 4px; }
  .journey-progress button { min-height: 44px; font-size: 12px; line-height: 1.35; }
  .journey-progress .journey-step-label { hyphens: auto; }
  #mainDialog #modalContent { padding: 20px 16px; }
  #mainDialog:has(.lease-edit-dialog) #modalContent { padding: 0; }
  .mainflow .fields :is(input, select), #mainDialog .fields :is(input, select),
  #mainDialog .field :is(input, select, textarea), .mainflow .ins-edit :is(input, select),
  .mainflow .ins-top select, #proShowroomQuery, #proConfig, .jsat-panel textarea {
    min-height: 44px;
    font-size: 16px;
  }
  .lease-km-controls, .lease-url-row { flex-wrap: wrap; }
  .lease-km-controls input, .lease-url-row input { flex: 1 1 7em; }
  .mainflow .cost-headline strong { max-width: 100%; }
}
@media (max-width: 380px) {
  .journey-progress button { font-size: 11.5px; }
  .jsat-panel .jsat-footer .jsat-actions { display: grid; grid-template-columns: auto 1fr; }
  .jsat-panel .jsat-actions .jsat-export { grid-column: 1 / -1; min-height: 44px; }
  .mainflow .verdict { grid-template-columns: 1fr; }
}
@media (max-height: 520px) {
  /* Give the form the whole scrolling surface in landscape or with a short viewport. */
  #quote .modal-head, #mainDialog .lease-edit-actions { position: static; }
  .jsat-shell { display: block; height: auto; }
  .jsat-body { overflow: visible; }
  .jsat-panel { overflow: auto; overscroll-behavior: contain; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.fleet-comparison {margin:20px 0 26px;max-width:820px}
.fleet-pair-table {width:100%;table-layout:fixed;border-collapse:collapse;color:var(--deep);overflow-wrap:anywhere}
.fleet-pair-table caption {text-align:left;font-size:18px;font-weight:700;padding:0 0 10px}
.fleet-pair-table thead th {padding:11px 12px;text-align:left;background:var(--deep);color:white;font-size:16px}
.fleet-pair-table tbody th {text-align:left;padding:7px 12px 0;font-size:13px;font-weight:500;color:#395357;border-top:1px solid #ccd9d6}
.fleet-pair-table td {padding:3px 12px 9px;vertical-align:top;font-variant-numeric:tabular-nums;line-height:1.35}
.fleet-pair-table td strong {display:block;font-size:20px}
.fleet-pair-table td small {display:block;font-size:12px;color:#465e61}
.fleet-terms td {font-size:14px}
.fleet-legend,.fleet-missing {font-size:14px;color:#385556;line-height:1.45}
.fleet-missing {padding-left:20px}
.fleet-missing .link {min-height:44px}
.fleet-contracts {border-block:1px solid #cedbd6;padding-block:3px}
.fleet-contracts summary {padding:12px 0;font-weight:600;cursor:pointer}
@media(max-width:450px){
 .fleet-comparison {margin:12px 0 20px}
 .fleet-pair-table td,.fleet-pair-table thead th,.fleet-pair-table tbody th {padding-inline:8px}
 .fleet-pair-table td strong {font-size:18px}
}
