:root {
  --blue: #087cff;
  --blue-dark: #0068df;
  --text: #616161;
  --muted: #ababab;
  --line: #e3e3e3;
  --strong-line: #b7b7b7;
  --page: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  line-height: 1.25;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quote-page {
  min-width: 0;
  padding: 45px 35px 0 32px;
}

.stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  margin-bottom: 40px;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  height: 3px;
  background: #b7b7b7;
}

.stepper::after {
  content: "";
  position: absolute;
  top: 32px;
  left: 0;
  width: 25%;
  height: 3px;
  background: var(--blue);
}

.step {
  position: relative;
  display: grid;
  grid-template-rows: 64px auto;
  justify-items: center;
  gap: 12px;
  min-width: 0;
  color: #b4b4b4;
  font-size: 20px;
  text-align: center;
}

.step span {
  position: relative;
  z-index: 2;
  display: inline-block;
  grid-row: 2;
  padding: 0 10px;
  background: #fff;
}

.step b {
  position: relative;
  z-index: 3;
  grid-row: 1;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 2px solid #b7b7b7;
  border-radius: 50%;
  background: #fff;
  color: #b7b7b7;
}

.step b svg {
  width: 34px;
  height: 34px;
}

.step.active {
  color: var(--blue);
}

.step.active b {
  border-width: 3px;
  border-color: var(--blue);
  color: var(--blue);
}

.quote-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr));
  max-width: 721px;
  align-items: start;
  gap: 36px;
  margin-bottom: 45px;
}

.control-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
}

.help {
  width: 24px;
  height: 24px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.shipment-mode-help {
  position: absolute;
  z-index: 40;
  top: 66px;
  left: 0;
  width: min(590px, 100%);
  max-height: min(480px, calc(100dvh - 32px));
  overflow-y: auto;
  padding: 22px 32px 18px;
  border: 1px solid #b8bec5;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 10px 26px rgb(0 0 0 / 18%);
  color: #4f4f4f;
  font-size: 18px;
  line-height: 1.35;
  text-align: center;
}

.shipment-mode-help[hidden] {
  display: none;
}

.shipment-mode-help p {
  margin: 0;
}

.shipment-mode-help p + p {
  margin-top: 24px;
}

.shipment-mode-help strong {
  color: #333;
}

.shipment-mode-help-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.shipment-mode-help-close:hover,
.shipment-mode-help-close:focus-visible {
  color: var(--blue);
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.segmented {
  display: flex;
  height: 54px;
  border: 1px solid var(--strong-line);
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}

.segmented button {
  min-width: 0;
  flex: 1 1 0;
  border: 0;
  border-right: 1px solid var(--strong-line);
  background: #fff;
  color: #aaa;
  font-size: 24px;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented .selected {
  background: var(--blue);
  color: #fff;
}

.date-field {
  position: relative;
  display: grid;
  gap: 2px;
  height: 54px;
  border-bottom: 2px solid #b6b6b6;
  color: #5f5f5f;
}

.date-field span {
  color: #b1b1b1;
  font-size: 20px;
}

.date-field strong,
.date-field input {
  font-size: 24px;
  font-weight: 400;
}

.date-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #5f5f5f;
  padding: 0 34px 0 0;
}

.date-field input::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 0;
  opacity: 0;
  cursor: pointer;
}

.date-field svg {
  position: absolute;
  right: 0;
  bottom: 14px;
  width: 25px;
  height: 25px;
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 32px 48px;
  border-bottom: 1px solid var(--line);
}

.address-panel {
  container: address / inline-size;
  min-width: 0;
  padding-bottom: 28px;
}

h1 {
  margin: 0;
  color: var(--blue);
  font-size: 30px;
  font-weight: 400;
}

.underline {
  width: 80px;
  margin-top: 6px;
  border-bottom: 2px solid var(--blue);
}

.select-line {
  height: 65px;
  margin-top: 24px;
  display: flex;
  align-items: end;
  gap: 10px;
  border-bottom: 2px solid #b6b6b6;
  color: #606060;
  padding-bottom: 12px;
  font-size: 24px;
}

.select-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-line svg {
  flex: 0 0 24px;
}

.address-type {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr) 36px;
  height: auto;
  margin-top: 24px;
}

.address-type button {
  min-width: 0;
  min-height: 54px;
  padding: 10px 8px;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.address-type .caret-only {
  min-width: 0;
  padding: 0;
  color: #606060;
}

@container address (max-width: 650px) {
  .address-type { grid-template-columns: repeat(2, minmax(0, 1fr)) 36px; }
  .address-type button:nth-child(-n + 2) { border-bottom: 1px solid var(--strong-line); }
  .address-type .caret-only { grid-column: 3; grid-row: 1 / span 2; }
}

.accessorial {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 31px;
  border: 0;
  background: transparent;
  color: #aaa;
  padding: 0;
  font-size: 24px;
}

.accessorial b {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 32px;
  font-weight: 400;
}

.accessorial-control {
  position: relative;
  width: min(430px, 100%);
  margin-top: 31px;
}

.accessorial-control .accessorial {
  margin-top: 0;
}

.accessorial-menu {
  position: absolute;
  z-index: 30;
  top: 58px;
  left: 0;
  width: min(410px, 100%);
  border: 1px solid #d4d7dc;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(35, 45, 60, 0.2);
  max-height: min(480px, 50vh);
  overflow-y: auto;
}

.accessorial-menu[hidden] {
  display: none;
}

.accessorial-menu button {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #e3e5e8;
  background: #fff;
  color: #555;
  padding: 12px 20px;
  text-align: left;
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}

.accessorial-menu button:last-child {
  border-bottom: 0;
}

.accessorial-menu button:hover,
.accessorial-menu button:focus-visible {
  background: #f2f7ff;
  outline: 0;
}

.accessorial-menu button > span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 2px solid #aaa;
  border-radius: 3px;
}

.accessorial-menu button[aria-selected="true"] > span {
  border-color: var(--blue);
  background: var(--blue);
}

.accessorial-menu button[aria-selected="true"] > span::after {
  content: "";
  width: 9px;
  height: 5px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.accessorial-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.accessorial-summary[hidden] {
  display: none;
}

.accessorial-tag {
  min-height: 32px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #96bfff;
  border-radius: 4px;
  background: #f2f7ff;
  color: #235892;
  padding: 4px 7px 4px 10px;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.accessorial-tag button {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.destination-search {
  height: 65px;
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  justify-content: start;
  align-items: end;
  gap: 14px;
  color: var(--blue);
}

.destination-input-wrap {
  position: relative;
  min-width: 0;
}

.search-box {
  position: relative;
  height: 65px;
  display: grid;
  align-content: center;
  gap: 3px;
  border: 4px solid #8fb7ff;
  border-radius: 4px;
  color: #b1b1b1;
  padding: 0 42px 0 8px;
}

.search-box-caption {
  overflow: hidden;
  color: var(--blue);
  font-size: 14px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #606060;
  font: inherit;
  font-size: 21px;
  line-height: 1.2;
}

.search-box svg {
  position: absolute;
  right: 9px;
  color: #9c9c9c;
}

.lookup-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0 0 13px;
}

.address-suggestions {
  position: absolute;
  z-index: 25;
  top: 69px;
  left: 0;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #c7c7c7;
  background: #fff;
  box-shadow: 0 10px 26px rgb(41 62 88 / 18%);
}

.address-suggestions[hidden] {
  display: none;
}

.address-suggestion {
  min-height: 58px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  padding: 12px 18px;
  border: 0;
  border-bottom: 1px solid #c7c7c7;
  background: #fff;
  color: #262626;
  text-align: left;
}

.address-suggestion:last-child {
  border-bottom: 0;
}

.address-suggestion:hover,
.address-suggestion:focus-visible,
.address-suggestion[aria-selected="true"] {
  outline: 0;
  background: #edf5ff;
}

.address-suggestion-title,
.address-suggestion-label {
  min-width: 0;
  font-size: 18px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  white-space: normal;
}

.address-suggestion-title {
  font-weight: 700;
}

.address-suggestion-title + .address-suggestion-label {
  color: #606060;
  font-size: 15px;
}

.address-suggestions-empty {
  margin: 0;
  padding: 18px;
  color: #747b82;
  font-size: 15px;
}

.items-section {
  padding-top: 32px;
}

.items-table {
  margin-top: 28px;
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.table-header,
.item-row {
  display: grid;
  min-width: 1686px;
  grid-template-columns: 170px 90px 180px 150px 130px minmax(190px, 1fr) 125px 96px 88px 180px 110px 45px;
  align-items: end;
  gap: 12px;
}

.table-header {
  min-height: 114px;
  border-bottom: 1px solid var(--line);
  color: #5e5e5e;
  font-size: 24px;
  line-height: 1.45;
}

.table-header b {
  width: 23px;
  height: 23px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #606060;
  border-radius: 50%;
  font-size: 15px;
  vertical-align: 3px;
}

.item-row {
  min-height: 92px;
  align-items: center;
  color: #606060;
  font-size: 24px;
}

.type-select,
.stepper-input,
.dimension-line,
.weight-line,
.commodity-line,
.class-line,
.nmfc-line,
.sub-line,
.pieces-line {
  height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #b6b6b6;
}

.type-select,
.class-line {
  position: relative;
}

.type-select select,
.class-line input,
.commodity-line input,
.pieces-line input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #606060;
  font: inherit;
  font-size: 24px;
  padding: 0 36px 0 0;
}

.type-select select,
.class-line input {
  appearance: none;
}

.commodity-line input,
.pieces-line input {
  padding-right: 0;
}

.type-select::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-right: 4px solid #606060;
  border-bottom: 4px solid #606060;
  pointer-events: none;
  transform: translateY(-68%) rotate(45deg);
}

.class-line input {
  padding-right: 24px;
  font-size: 18px;
  appearance: textfield;
}

.class-line input::-webkit-outer-spin-button,
.class-line input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.class-line:focus-within {
  border-bottom-color: var(--blue);
}

.freight-class-options {
  position: fixed;
  z-index: 30;
  inset: auto;
  margin: 0;
  padding: 0;
  width: 124px;
  max-height: 252px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #b9c2cc;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgb(0 0 0 / 18%);
}

.freight-class-options[hidden] {
  display: none;
}

.freight-class-options button {
  width: 100%;
  min-height: 40px;
  display: block;
  border: 0;
  border-bottom: 1px solid #e1e5e9;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: 17px;
  text-align: left;
  padding: 8px 14px;
  cursor: pointer;
}

.freight-class-options button:last-child {
  border-bottom: 0;
}

.freight-class-options button[hidden] {
  display: none;
}

.freight-class-options button:hover,
.freight-class-options button:focus-visible,
.freight-class-options button[aria-selected="true"] {
  background: #e8f2ff;
  color: #066fdb;
  outline: 0;
}

.freight-class-empty {
  margin: 0;
  padding: 12px 14px;
  color: #666;
  font-size: 14px;
  line-height: 1.35;
}

.freight-class-empty[hidden] {
  display: none;
}

.stepper-input {
  justify-content: space-between;
  gap: 8px;
}

.stepper-input input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #606060;
  font: inherit;
  font-size: 24px;
}

.stepper-input input::-webkit-outer-spin-button,
.stepper-input input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.stepper-input input[type="number"] {
  appearance: textfield;
}

.stepper-input span {
  display: grid;
  gap: 6px;
  flex: 0 0 24px;
}

.stepper-button {
  width: 24px;
  height: 16px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0;
}

.stepper-button i {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
}

.stepper-button:first-child i {
  border-bottom: 8px solid #606060;
}

.stepper-button:last-child i {
  border-top: 8px solid #606060;
}

.dimension-line {
  gap: 10px;
  color: #aaa;
}

.dimension-line input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #606060;
  font: inherit;
  font-size: 24px;
}

.dimension-line input::placeholder {
  color: #aaa;
}

.dimension-line input::-webkit-outer-spin-button,
.dimension-line input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.dimension-line input[type="number"] {
  appearance: textfield;
}

.dimension-line b,
.weight-line > span,
.hazmat-line,
.search-line.blue {
  color: var(--blue);
}

.weight-line {
  gap: 12px;
}

.weight-line .stepper-input {
  min-width: 92px;
  flex: 1;
  border-bottom: 0;
}

.checkbox input {
  appearance: none;
  width: 29px;
  height: 29px;
  border: 2px solid #aaa;
  border-radius: 3px;
  background: #fff;
}

.search-line {
  justify-content: end;
  color: #aaa;
}

.search-line svg {
  width: 24px;
  height: 24px;
}

.nmfc-line,
.sub-line {
  color: #aaa;
}

.hazmat-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.remove-row {
  width: 33px;
  height: 86px;
  border: 0;
  border-left: 4px solid var(--blue);
  background: #fff;
  color: var(--blue);
  font-size: 36px;
  line-height: 1;
}

.quote-results {
  border-top: 1px solid var(--line);
  padding: 30px 0 8px;
}

.quote-results[hidden] {
  display: none;
}

.results-title {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.results-title span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #888;
  font-size: 18px;
}

.quote-card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 18px;
}

.quote-card {
  min-height: 172px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.quote-card.selected {
  border-color: var(--blue);
  box-shadow: 0 8px 18px rgb(8 124 255 / 15%);
}

.quote-card h2 {
  margin: 0;
  color: #333;
  font-size: 24px;
}

.quote-card p {
  margin: 6px 0 0;
  color: #777;
  font-size: 17px;
}

.quote-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 20px 0;
}

.quote-price strong {
  color: var(--blue);
  font-size: 34px;
}

.quote-price span {
  color: #666;
  font-size: 18px;
}

.choose-quote {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.quote-footer {
  display: flex;
  justify-content: flex-end;
  padding: 26px 0 20px;
  color: #626262;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  justify-content: end;
  gap: 26px;
  padding-top: 0;
}

.save,
.select-carrier {
  min-height: 60px;
  min-width: 0;
  max-width: 100%;
  padding: 12px 18px;
  border: 0;
  border-radius: 6px;
  font-size: 20px;
  font-weight: 800;
}

.save {
  width: 224px;
  background: #fff;
  color: var(--blue);
}

.select-carrier {
  width: 347px;
  background: var(--blue);
  color: #fff;
}

.select-carrier:hover,
.accessorial:hover b,
.chat-button:hover {
  background: var(--blue-dark);
}

@media (max-width: 1500px) {
  body {
    font-size: 18px;
  }

  .quote-page {
    padding: 28px 22px 0;
  }
}

@media (max-width: 640px) {
  .quote-page { padding: 24px 16px 0; }
  .stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .stepper::before, .stepper::after { display: none; }
  .quote-controls { margin-bottom: 32px; }
  .destination-search { height: auto; min-height: 94px; grid-template-columns: minmax(0, 1fr); }
  .lookup-button { justify-self: end; padding-bottom: 0; }
  .footer-actions { width: 100%; gap: 12px; }
  .footer-actions button { width: 100%; }
}
