.maxi-inline-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.14em;
}

.maxi-inline-icon.is-spinning {
  animation: maxi-inline-icon-spin 0.82s linear infinite;
}

@keyframes maxi-inline-icon-spin { to { transform: rotate(360deg); } }

.address-route-grid {
  display: grid;
  gap: 1.25rem;
}

.address-route-errors {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}

.address-route-errors__spacer {
  display: none;
}

.address-route-errors .field-error {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  word-break: normal;
  overflow-wrap: normal;
}

.address-route-errors .field-error > span {
  min-width: 0;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.address-route-errors [data-error-for="loadingLocation"],
.address-route-errors [data-error-for="unloadingLocation"] {
  grid-column: 1;
}

.address-editor {
  position: relative;
  min-width: 0;
  margin-bottom: 0;
  overflow: visible;
  border: 1px solid #d8e0eb;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 14px 34px rgba(11, 18, 32, 0.07);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.address-editor,
.address-search-editor,
.geo-combobox__popup {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.address-editor:focus-within {
  z-index: 40;
  border-color: rgba(247, 198, 0, 0.75);
  box-shadow: 0 0 0 5px rgba(247, 198, 0, 0.1), 0 18px 40px rgba(11, 18, 32, 0.09);
}

.address-search-editor {
  position: relative;
  min-width: 0;
  overflow: visible;
}

.address-search-editor:focus-within {
  z-index: 40;
}

.address-search-editor .address-editor__body {
  padding: 0;
}

.address-search-editor .address-manual-panel {
  left: 0;
  width: 100%;
}

.address-editor__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.875rem;
  padding: 1.125rem 1.125rem 1rem;
  border-bottom: 1px solid #edf1f7;
}

.address-editor__heading {
  min-width: 0;
}

.address-editor__marker {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 1rem;
  background: #fffbea;
  color: #c88f00;
}

.address-editor__marker--destination {
  background: #0b1220;
  color: #f7c600;
}

.address-editor__eyebrow {
  margin: 0;
  color: #8fa0b6;
  font-size: 0.625rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.address-editor__title {
  margin: 0.3rem 0 0;
  color: #0b1220;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.address-editor__tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.address-editor__progress {
  display: flex;
  gap: 0.28rem;
}

.address-editor__progress-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #d8e0eb;
  transition: width 180ms ease, background 180ms ease;
}

.address-editor__progress-dot.is-complete {
  width: 1rem;
  background: #f7c600;
}

.address-editor__details-toggle {
  position: absolute;
  z-index: 30;
  bottom: 0;
  left: 50%;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #f7c600;
  border-radius: 999px;
  background: #fff;
  color: #81510b;
  box-shadow: 0 7px 18px rgba(11, 18, 32, 0.13);
  cursor: pointer;
  transform: translate(-50%, 50%);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.address-editor__details-toggle:hover,
.address-editor__details-toggle:focus-visible,
.address-editor.is-manual-expanded .address-editor__details-toggle,
.address-search-editor.is-manual-expanded .address-editor__details-toggle {
  border-color: #f7c600;
  background: #fff3bd;
  color: #81510b;
}

.address-editor__details-toggle:hover {
  transform: translate(-50%, 50%) scale(1.06);
}

.address-editor__details-toggle:active {
  transform: translate(-50%, 50%) scale(0.96);
}

.address-editor__body {
  display: grid;
  gap: 0.875rem;
  padding: 1.125rem;
}

.address-stage {
  min-width: 0;
  opacity: 0;
  transform: translateY(5px);
  animation: address-stage-in 240ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

@keyframes address-stage-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.address-field-grid {
  display: grid;
  gap: 0.875rem;
}

.address-details-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
}

.address-details-grid .address-field-label {
  min-height: 2.15rem;
  align-items: flex-start;
}

.address-details-grid .address-field-label__optional {
  flex: 0 0 auto;
  margin-top: 0.1rem;
}

.address-field--full {
  grid-column: 1 / -1;
}

.address-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.42rem;
  color: #425066;
  font-size: 0.73rem;
  font-weight: 900;
}

.address-field-label__optional {
  color: #8fa0b6;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.address-field-label__optional.is-required {
  color: #ef4444;
  font-size: 0.75rem;
}

.address-field-label__recommended {
  border-radius: 999px;
  background: #fff3bd;
  padding: 0.24rem 0.48rem;
  color: #81510b;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.address-search-stage {
  position: relative;
  z-index: 10;
}

.address-manual-panel {
  position: fixed;
  z-index: 9990;
  max-height: min(70vh, 42rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  border: 1px solid #d8e0eb;
  border-radius: 1.25rem;
  background: #fff;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 24px 60px rgba(11, 18, 32, 0.2);
  transform: translateY(-0.45rem) scale(0.985);
  transform-origin: top center;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 180ms;
}

.address-editor.is-manual-expanded .address-manual-panel,
.address-search-editor.is-manual-expanded .address-manual-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.address-editor[data-manual-level="1"] .address-details,
.address-search-editor[data-manual-level="1"] .address-details {
  display: none;
}

.address-editor[data-manual-level="2"] [data-location-grid],
.address-search-editor[data-manual-level="2"] [data-location-grid] {
  display: none;
}

.address-location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
}

.address-manual-panel__inner {
  display: grid;
  min-height: 0;
  overflow: visible;
  gap: 0.875rem;
}

.address-manual-panel__intro {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid #edf1f7;
  padding-top: 0.95rem;
}

.address-manual-panel__intro span {
  flex: 0 0 auto;
  color: #425066;
  font-size: 0.7rem;
  font-weight: 900;
}

.address-manual-panel__intro span i {
  margin-right: 0.3rem;
  color: #c88f00;
}

.address-manual-panel__tabs {
  display: inline-flex;
  min-width: 0;
  gap: 0.25rem;
  border: 1px solid #d8e0eb;
  border-radius: 0.85rem;
  background: #f7f9fc;
  padding: 0.22rem;
}

.address-manual-panel__tabs button {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  padding: 0.4rem 0.65rem;
  color: #6f8199;
  cursor: pointer;
  font-size: 0.64rem;
  font-weight: 900;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.address-manual-panel__tabs button.is-active {
  background: #0b1220;
  color: #fff;
  box-shadow: 0 5px 12px rgba(11, 18, 32, 0.18);
}

.address-manual-panel__tabs button.is-active i {
  color: #f7c600;
}

.address-manual-panel__confirm {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 0.9rem;
  background: #0b1220;
  color: #fff;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.address-manual-panel__confirm:hover {
  background: #2b3649;
  box-shadow: 0 8px 20px rgba(11, 18, 32, 0.14);
  transform: translateY(-1px);
}

.address-manual-panel__confirm i {
  color: #f7c600;
}

.address-input-shell,
.geo-combobox__control {
  display: flex;
  position: relative;
  min-width: 0;
  height: 3.35rem;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid #d8e0eb;
  border-radius: 1rem;
  background: #f7f9fc;
  padding: 0 0.85rem;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.address-input-shell:focus-within,
.geo-combobox.is-open .geo-combobox__control,
.geo-combobox__control:focus-within {
  border-color: #f7c600;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(247, 198, 0, 0.11);
}

.address-input-shell > i,
.address-input-shell > .maxi-inline-icon,
.geo-combobox__leading {
  width: 1rem;
  flex: 0 0 auto;
  color: #8fa0b6;
  text-align: center;
}

.geo-combobox__leading.is-value-icon {
  color: #172033;
  font-size: 1rem;
}

.address-editor .address-text-input,
.address-search-editor .address-text-input,
.geo-combobox .geo-combobox__input {
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0b1220;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
}

.address-editor .address-text-input::placeholder,
.address-search-editor .address-text-input::placeholder,
.geo-combobox .geo-combobox__input::placeholder {
  color: #8fa0b6;
  font-weight: 500;
}

.geo-combobox {
  position: relative;
  min-width: 0;
}

.geo-combobox--address .geo-combobox__control {
  min-height: 3.8rem;
  height: auto;
  border-color: #ffe77a;
  background: #fffdf4;
}

.geo-combobox--address .geo-combobox__leading {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.7rem;
  background: #f7c600;
  color: #0b1220;
}

.geo-combobox--address .geo-combobox__input {
  font-size: 0.8rem;
}

.geo-combobox--address .geo-combobox__popup {
  width: min(31rem, calc(200% + 3.75rem));
}

[data-address-selector="unloading"] .geo-combobox--address .geo-combobox__popup {
  right: 0;
  left: auto;
}

.geo-combobox.is-disabled {
  opacity: 0.58;
}

.geo-combobox__toggle,
.geo-combobox__clear {
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: #6f8199;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.geo-combobox__toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  background: transparent;
}

.geo-combobox__clear:not([hidden]) {
  position: absolute;
  top: 50%;
  right: 1.95rem;
  width: 1.6rem;
  height: 1.6rem;
  transform: translateY(-50%);
}

.geo-combobox__control:has(.geo-combobox__clear:not([hidden])) .geo-combobox__input {
  padding-right: 3.2rem;
}

.geo-combobox__toggle:hover,
.geo-combobox__clear:hover {
  background: #fff3bd;
  color: #81510b;
}

.geo-combobox.is-open .geo-combobox__toggle {
  transform: translateY(-50%) rotate(180deg);
}

.geo-combobox__clear[hidden] {
  display: none;
}

.geo-combobox__popup {
  position: absolute;
  z-index: 80;
  top: calc(100% + 0.45rem);
  left: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid #d8e0eb;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 22px 50px rgba(11, 18, 32, 0.18);
  animation: address-popup-in 150ms ease-out;
}

.address-search-popup,
.address-option-popup,
.smart-select-popup,
.cargo-combobox-popup {
  isolation: isolate;
}

.geo-combobox__popup[hidden] {
  display: none;
}

@keyframes address-popup-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.geo-combobox__list {
  max-height: 17.5rem;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.4rem;
  scrollbar-width: thin;
}

.geo-combobox__option {
  display: flex;
  width: 100%;
  min-height: 2.9rem;
  align-items: center;
  gap: 0.7rem;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  padding: 0.55rem 0.7rem;
  color: #2b3649;
  cursor: pointer;
  text-align: left;
}

.geo-combobox__action {
  display: flex;
  width: 100%;
  min-height: 3rem;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid #f0d56a;
  border-radius: 0.8rem;
  background: #fffbea;
  padding: 0.6rem 0.7rem;
  color: #4f3900;
  cursor: pointer;
  text-align: left;
}

.geo-combobox__action:hover {
  border-color: #e5b900;
  background: #fff6c9;
}

.geo-combobox__action > .maxi-inline-icon:last-child {
  color: #b58300;
}

.geo-combobox__option:hover,
.geo-combobox__option.is-active {
  background: #fffbea;
  color: #0b1220;
}

.geo-combobox__option.is-selected {
  background: #0b1220;
  color: #fff;
}

.geo-combobox__option-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.65rem;
  background: #f7f9fc;
  color: #56677e;
  font-size: 0.9rem;
}

.geo-combobox__option.is-selected .geo-combobox__option-icon {
  background: rgba(247, 198, 0, 0.16);
  color: #f7c600;
}

.geo-combobox__option-copy {
  min-width: 0;
  flex: 1;
}

.geo-combobox__option-title,
.geo-combobox__option-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-combobox__option-title {
  font-size: 0.78rem;
  font-weight: 850;
}

.geo-combobox__option-meta {
  margin-top: 0.12rem;
  color: #8fa0b6;
  font-size: 0.63rem;
  font-weight: 650;
}

.geo-combobox__empty,
.geo-combobox__status {
  padding: 1.1rem;
  color: #6f8199;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.geo-combobox__status i,
.geo-combobox__empty i {
  margin-right: 0.35rem;
  color: #c88f00;
}

.geo-combobox__empty span {
  color: #8fa0b6;
  font-size: 0.64rem;
}

.geo-combobox__attribution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-top: 1px solid #edf1f7;
  padding: 0.55rem 0.75rem;
  color: #8fa0b6;
  font-size: 0.56rem;
  font-weight: 700;
}

.geo-combobox__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem;
  color: #65768e;
  font-size: 0.64rem;
  font-weight: 800;
}

.geo-combobox__more.is-error {
  color: #a65d10;
}

.geo-combobox__custom {
  display: flex;
  width: calc(100% - 0.8rem);
  align-items: center;
  gap: 0.6rem;
  margin: 0 0.4rem 0.4rem;
  border: 1px dashed #eab500;
  border-radius: 0.8rem;
  background: #fffbea;
  padding: 0.75rem;
  color: #81510b;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 850;
  text-align: left;
}

.address-details {
  display: grid;
  gap: 0.875rem;
  padding-top: 0.2rem;
}

.address-summary {
  display: none;
  align-items: flex-start;
  gap: 0.7rem;
  border-radius: 1rem;
  background: #0b1220;
  padding: 0.8rem 0.9rem;
  color: #fff;
}

.address-summary.is-visible {
  display: flex;
}

.address-summary > i,
.address-summary > .maxi-inline-icon {
  margin-top: 0.18rem;
  color: #f7c600;
}

.address-summary__copy {
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.45;
}

.address-data-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #8fa0b6;
  font-size: 0.63rem;
  font-weight: 650;
  line-height: 1.45;
}

.address-data-note i {
  margin-top: 0.15rem;
  color: #c88f00;
}

.address-swap {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  justify-self: center;
  align-self: center;
  border: 1px solid #ffe77a;
  border-radius: 999px;
  background: #fff;
  color: #c88f00;
  box-shadow: 0 8px 22px rgba(11, 18, 32, 0.1);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.address-swap:hover {
  transform: rotate(180deg) scale(1.04);
  background: #f7c600;
  color: #0b1220;
}

.address-editor.has-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

@media (min-width: 768px) {
  .address-route-grid {
    grid-template-columns: minmax(0, 1fr) 2.75rem minmax(0, 1fr);
    align-items: start;
  }

  .address-field-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .address-route-errors {
    grid-template-columns: minmax(0, 1fr) 2.75rem minmax(0, 1fr);
  }

  .address-route-errors__spacer {
    display: block;
    grid-column: 2;
  }

  .address-route-errors [data-error-for="loadingLocation"] {
    grid-column: 1;
  }

  .address-route-errors [data-error-for="unloadingLocation"] {
    grid-column: 3;
  }
}

@media (max-width: 767px) {
  main > section > div.flex.flex-1.items-start {
    padding-top: 0.75rem !important;
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
  }

  .step-panel > div {
    border-radius: 1.35rem !important;
    padding: 0.75rem !important;
  }

  .step-panel > div > div:first-child h2 {
    margin-top: 0.75rem !important;
    overflow-wrap: anywhere;
    letter-spacing: 0;
    line-height: 1.2;
  }

  .step-panel > div > div:first-child p {
    margin-top: 0.5rem !important;
  }

  .address-route-grid {
    gap: 0.75rem;
    margin-top: 1.5rem !important;
  }

  .address-editor {
    isolation: isolate;
    border-radius: 1.15rem;
  }

  .address-editor__head {
    gap: 0.65rem;
    padding: 0.8rem;
  }

  .address-editor__marker {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.8rem;
  }

  .address-editor__eyebrow {
    font-size: 0.55rem;
  }

  .address-editor__title {
    margin-top: 0.2rem;
    font-size: 0.9rem;
  }

  .address-editor__tools {
    gap: 0;
  }

  .address-editor__progress {
    gap: 0.2rem;
  }

  .address-editor__progress-dot {
    width: 0.34rem;
    height: 0.34rem;
  }

  .address-editor__progress-dot.is-complete {
    width: 0.75rem;
  }

  .address-editor__details-toggle {
    width: 2.35rem;
    height: 2.35rem;
  }

  .address-editor__body {
    gap: 0.7rem;
    padding: 0.8rem;
  }

  .address-field-grid,
  .address-details,
  .address-manual-panel__inner {
    gap: 0.7rem;
  }

  .address-field-label {
    gap: 0.5rem;
  }

  .address-input-shell,
  .geo-combobox__control {
    height: 3.05rem;
    border-radius: 0.85rem;
  }

  .geo-combobox--address .geo-combobox__control {
    min-height: 3.35rem;
  }

  .address-swap {
    transform: rotate(90deg);
  }

  .address-swap:hover {
    transform: rotate(270deg) scale(1.04);
  }

  .geo-combobox--address .geo-combobox__popup {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .address-editor__progress {
    display: none;
  }

  .address-manual-panel__intro {
    align-items: stretch;
    flex-direction: column;
    gap: 0.65rem;
  }

  .address-manual-panel__tabs,
  .address-manual-panel__tabs button {
    width: 100%;
  }

  .address-manual-panel__tabs button {
    flex: 1;
  }

  .address-location-grid,
  .address-details-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .address-field--full {
    grid-column: auto;
  }

  .address-details-grid .address-field-label {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .address-stage,
  .geo-combobox__popup,
  .address-manual-panel {
    animation: none;
    transition: none;
  }
}
