.beam-search {
  position: relative;
  z-index: 2;
  margin: 0 0 20px;
}

.beam-search:focus-within {
  z-index: 6;
}

.beam-search-field {
  position: relative;
  display: flex;
  height: 50px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid rgba(24, 26, 28, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.beam-search-field::after {
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, #ffea00 35%, #fff 50%, #ffea00 65%, transparent 100%);
  background-size: 220% 100%;
  box-shadow: 0 0 10px rgba(255, 234, 0, .8);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.beam-search-field:focus-within {
  border-color: rgba(181, 164, 0, .46);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 234, 0, .14);
}

.beam-search-field:focus-within::after {
  animation: sani-search-beam 1.45s linear infinite;
  opacity: 1;
}

.beam-search-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: #818488;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.beam-search-input {
  min-width: 0;
  height: 100% !important;
  flex: 1;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #17191b;
  font: inherit;
  font-size: 14px;
}

.beam-search-input::-webkit-search-cancel-button {
  display: none;
}

.beam-search-input::placeholder {
  color: #999da0;
}

.beam-search-clear {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #898d90;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}

.beam-search-clear:hover {
  background: rgba(0, 0, 0, .055);
  color: #1b1d1e;
}

.beam-search-clear svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.beam-search-clear[hidden],
.beam-search-results[hidden] {
  display: none !important;
}

.beam-search-results {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  max-height: 270px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid rgba(26, 28, 29, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 14px 32px rgba(18, 20, 20, .14);
  backdrop-filter: blur(14px);
}

.beam-search-option {
  display: flex;
  width: 100%;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1a1c1d;
  cursor: pointer;
  text-align: left;
  transition: background .15s ease;
}

.beam-search-option:hover,
.beam-search-option:focus-visible {
  outline: none;
  background: #fff9c6;
}

.beam-search-option-make {
  color: #777c80;
  font-size: 11px;
}

.beam-search-option-model {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.beam-search-empty {
  padding: 12px;
  color: #777c80;
  font-size: 12px;
}

.beam-search-help {
  margin: 8px 2px 0;
  color: #85898c;
  font-size: 10px;
  line-height: 1.5;
}

.vehicle-picker { position: relative; min-width: 0; }
.tariff-fields { position: relative; z-index: 4; }
.vehicle-picker.is-open { z-index: 20; }
.vehicle-picker-native { display: none !important; }
.vehicle-picker-trigger {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid rgba(24, 26, 28, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  color: #202224;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.vehicle-picker-trigger:hover,
.vehicle-picker.is-open .vehicle-picker-trigger,
.vehicle-picker-trigger:focus-visible {
  outline: none;
  border-color: rgba(181, 164, 0, .55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 234, 0, .14);
}
.vehicle-picker-trigger:disabled { cursor: not-allowed; opacity: .55; }
.vehicle-picker-trigger svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: #777b7e; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; transition: transform .18s ease; }
.vehicle-picker.is-open .vehicle-picker-trigger svg { transform: rotate(180deg); }
.vehicle-picker-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vehicle-picker-value.is-placeholder { color: #999da0; }
.vehicle-picker-panel {
  position: absolute;
  z-index: 12;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  padding: 8px;
  border: 1px solid rgba(26, 28, 29, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 14px 32px rgba(18, 20, 20, .15);
  backdrop-filter: blur(14px);
}
.vehicle-picker-panel[hidden] { display: none !important; }
.vehicle-picker-search {
  width: 100%;
  min-height: 40px;
  margin: 0 0 7px;
  padding: 0 11px;
  border: 1px solid rgba(24, 26, 28, .12);
  border-radius: 8px;
  background: #fafaf8;
  color: #17191b;
  font: inherit;
  font-size: 13px;
}
.vehicle-picker-search:focus { outline: none; border-color: #c6b800; box-shadow: 0 0 0 3px rgba(255, 234, 0, .15); }
.vehicle-picker-options { max-height: 228px; overflow-y: auto; overscroll-behavior: contain; }
.vehicle-picker-option { display: block; width: 100%; min-height: 39px; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: #202224; cursor: pointer; font: inherit; font-size: 13px; text-align: left; }
.vehicle-picker-option:hover,
.vehicle-picker-option:focus-visible,
.vehicle-picker-option[aria-selected="true"] { outline: none; background: #fff8bd; }
.vehicle-picker-message { margin: 0; padding: 11px 10px; color: #777b7e; font-size: 12px; line-height: 1.5; }

/* Let the page background show through the tariff panels while keeping their text legible. */
.tariff-check-card.blob-card,
.tariff-check-card .tariff-result.blob-card,
.commission-card.blob-card {
  background: rgba(255, 255, 255, .38) !important;
  border-color: rgba(255, 255, 255, .58) !important;
  box-shadow: 0 16px 38px rgba(30, 35, 34, .055);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.daily-fee.blob-card {
  background: rgba(255, 234, 0, .22) !important;
  border-color: rgba(255, 246, 158, .68) !important;
  box-shadow: 0 16px 38px rgba(78, 68, 0, .07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

@keyframes sani-search-beam {
  from { background-position: 100% 0; }
  to { background-position: -120% 0; }
}

@media (max-width: 700px) {
  .beam-search {
    margin-bottom: 17px;
  }

  .beam-search-field {
    height: 48px;
  }

  .tariff-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .beam-search-field,
  .beam-search-clear,
  .beam-search-option {
    transition: none;
  }

  .beam-search-field:focus-within::after {
    animation: none;
    background-position: center;
  }
}
