@charset "UTF-8";

/*
 * Lightweight custom dropdown for the three booking selects (model/province/city).
 * The native <select> stays in the DOM and remains the value/change source; this
 * file only styles the progressive-enhancement trigger and panel.
 */

/* Native selects keep the original spacing when JS is unavailable. */
.drive .form .form-item .form-field .form-region + .form-region {
  margin-left: 0.12rem;
}

.drive .form .form-item .form-field .td-picker {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.drive .form .form-item .form-field .td-picker ~ .td-picker {
  margin-left: 0.12rem;
}

.drive .form .form-item .form-field .td-native-select {
  display: none !important;
}

.drive .form .form-item .form-field .td-picker-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.08rem;
  width: 100%;
  min-width: 0;
  padding: 0 0.02rem;
  background: transparent;
  color: #333;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.drive .form .form-item .form-field .td-picker-btn:hover {
  color: #2b6e83;
}

.drive .form .form-item .form-field .td-picker-btn:focus {
  outline: 2px solid var(--color, #2d97b9);
  outline-offset: 2px;
  border-radius: 0.04rem;
}

.drive .form .form-item .form-field .td-picker-btn:focus:not(:focus-visible) {
  outline: none;
}

.drive .form .form-item .form-field .td-picker-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.drive .form .form-item .form-field .td-picker-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive .form .form-item .form-field .td-picker-arrow {
  width: 0.09rem;
  height: 0.09rem;
  flex: none;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-0.02rem);
  transition: transform 0.2s ease;
}

.drive .form .form-item .form-field .td-picker-btn[aria-expanded="true"] .td-picker-arrow {
  transform: rotate(-135deg) translateY(-0.02rem);
}

.drive .form .form-item .form-field .td-picker-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 0.06rem);
  z-index: 30;
  width: max-content;
  min-width: 100%;
  max-width: calc(100vw - 0.5rem);
  max-height: 3.2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.06rem;
  background: #fff;
  border-radius: 0.08rem;
  box-shadow: 0 0.08rem 0.3rem rgba(0, 0, 0, 0.14);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}

.drive .form .form-item .form-field .td-picker-panel[hidden] {
  display: none;
}

.drive .form .form-item .form-field .td-picker-panel--up {
  top: auto;
  bottom: calc(100% + 0.06rem);
}

/* Province/city panels are wider than the half-row trigger and stay inside the viewport. */
.drive .form .form-item .form-field .td-picker--region .td-picker-panel {
  min-width: min(190px, calc(100vw - 0.5rem));
}

.drive .form .form-item .form-field .td-picker--end .td-picker-panel {
  left: auto;
  right: 0;
}

.drive .form .form-item .form-field .td-picker-panel::-webkit-scrollbar {
  width: 4px;
}

.drive .form .form-item .form-field .td-picker-panel::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 2px;
}

.drive .form .form-item .form-field .td-picker-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.1rem;
  padding: 0.09rem 0.1rem;
  border-radius: 0.05rem;
  color: #333;
  line-height: 1.4;
  cursor: pointer;
}

.drive .form .form-item .form-field .td-picker-option-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive .form .form-item .form-field .td-picker--region .td-picker-option-label {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: break-word;
}

/* Hover / keyboard highlight stays lighter than the selected row below. */
.drive .form .form-item .form-field .td-picker-option.is-active {
  background: #f1f5f7;
}

.drive .form .form-item .form-field .td-picker-option[aria-selected="true"] {
  color: #2b6e83;
  background: #eaf3f6;
  font-weight: 600;
}

.drive .form .form-item .form-field .td-picker-check {
  display: none;
  width: 0.12rem;
  height: 0.07rem;
  flex: none;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg) translateY(-0.02rem);
}

.drive .form .form-item .form-field .td-picker-option[aria-selected="true"] .td-picker-check {
  display: block;
}

/*
 * Text hierarchy: entered values read darker than hints, and hints stay subtle.
 * Selectors keep the vendor specificity (5 classes) and load last, so they win
 * without !important. Shared by cn/en/tc drive.html.
 */
.drive .form .form-item .form-field .form-input,
.drive .form .form-item .form-field .form-select,
.drive .form .form-item .form-field .td-picker-btn {
  color: #333;
}

.drive .form .form-item .form-field .form-input::placeholder {
  color: #8a8f94;
  opacity: 1;
}

.drive .form .form-item .form-field .form-input::-webkit-input-placeholder {
  color: #8a8f94;
  opacity: 1;
}

.drive .form .form-item .form-field .form-input::-moz-placeholder {
  color: #8a8f94;
  opacity: 1;
}

@media screen and (max-width: 767px) {
  .drive .form .form-item .form-field .td-picker-arrow {
    width: 0.16rem;
    height: 0.16rem;
  }

  .drive .form .form-item .form-field .td-picker-option {
    padding: 0.22rem 0.16rem;
  }
}
