.route-inquiry {
  border-radius: var(--radius-ui);
  container: route-quote / inline-size;
  text-align: start;
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: clamp(1rem, 2.4vw, 2rem);
  border-top: 3px solid var(--accent);
  color-scheme: dark;
  background: var(--ink);
  color: var(--white);
}

.route-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: .75rem;
}

.route-fields {
  border-radius: var(--radius-ui);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "origin swap" "destination swap";
  align-items: center;
  gap: .625rem .5rem;
  min-width: 0;
  padding: .625rem;
  border: 1px solid var(--glass-rule);
  background: #272727;
}

.route-origin {
  grid-area: origin;
}

.route-destination {
  grid-area: destination;
}

.route-field {
  min-width: 0;
}

.route-field label {
  display: block;
  margin-bottom: .325rem;
  font-size: .9375rem;
  font-weight: 700;
}

.route-field select,
.route-combobox input {
  width: 100%;
  height: 2.75rem;
  padding: .375rem .625rem;
  border: 1px solid #a3a3a3;
  border-radius: var(--radius-ui);
  background: #323232;
  color: var(--white);
  font: inherit;
}

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

.route-combobox input {
  display: block;
  padding-inline-end: 2.5rem;
}

.route-combobox input::placeholder {
  color: #e3e3e3;
}

.route-choice-toggle {
  position: absolute;
  inset: 0 0 0 auto;
  display: grid;
  width: 2.75rem;
  align-items: center;
  justify-items: end;
  padding: 0 .9375rem 0 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.route-choice-toggle::before {
  display: block;
  width: .45rem;
  height: .45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translate(-1px, -1px);
}

.route-choice-toggle[aria-expanded="true"]::before {
  transform: rotate(225deg) translate(-1px, -1px);
}

.route-choice-list,
.route-choice-empty {
  border-radius: var(--radius-ui);
  position: absolute;
  z-index: 5;
  inset: calc(100% + .25rem) 0 auto;
  max-height: min(16rem, 45dvh);
  overflow: auto;
  border: 1px solid #888;
  background: #222;
  color: var(--white);
  box-shadow: 0 8px 18px #0008;
}

.route-choice-list:empty {
  display: none;
}

.route-choice-option,
.route-choice-empty {
  padding: .5rem .625rem;
  overflow-wrap: anywhere;
}

.route-choice-option {
  min-height: 2.75rem;
  cursor: pointer;
}

.route-choice-option:hover,
.route-choice-option.is-active {
  background: var(--accent);
  color: var(--ink);
}

.route-swap {
  border-radius: var(--radius-ui);
  grid-area: swap;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
  cursor: pointer;
}

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

.route-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .375rem;
  min-width: 0;
}

.route-actions:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
}

.route-action,
.route-detail {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .375rem;
  font-weight: 700;
}

.route-action {
  border-radius: var(--radius-ui);
  justify-content: center;
  padding: .375rem .5rem;
  border: 1px solid var(--accent);
  font-size: clamp(.8125rem, 2vw, 1rem);
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

.route-action .symbol {
  width: 1.0625rem;
  height: 1.0625rem;
}

.route-phone {
  color: var(--white);
}

.route-phone:hover {
  background: #3a372a;
}

.route-whatsapp {
  background: var(--accent);
  color: var(--ink);
}

.route-whatsapp:hover,
.route-swap:hover {
  background: #ffda4c;
}

.route-selection {
  display: grid;
  justify-items: start;
  gap: .25rem 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--glass-rule);
}

.route-name {
  width: fit-content;
  color: #ffdd49;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.route-scope {
  display: flex;
  flex-wrap: wrap;
  gap: .125rem .5rem;
  margin-top: .35rem;
  color: #e3e3e3;
  font-size: .9375rem;
}

.route-scope strong {
  color: var(--white);
}

.route-detail .symbol {
  width: 1rem;
  height: 1rem;
}

.route-inquiry :focus-visible {
  outline-color: var(--accent);
}

@container route-quote (min-width: 36rem) {
  .route-fields {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "origin swap destination";
    align-items: end;
  }

  .route-swap .symbol {
    transform: none;
  }

  .route-selection {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@container route-quote (min-width: 51rem) {
  .route-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .route-fields {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .route-action {
    height: 2.75rem;
    padding-inline: .85rem;
    white-space: nowrap;
  }
}
