/* VT360 dropdowns for all native select fields in the expanded search menu. */
.vtpopup-menu__select-control {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.vtpopup-menu__select-control--mini {
  flex: 1 1 0;
  min-width: 0;
}

.vtpopup-menu__select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.vtpopup-menu__select-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--vtpopup-menu-border);
  border-radius: var(--vtpopup-menu-radius);
  background: #fff;
  color: var(--vtpopup-menu-text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.vtpopup-menu__select-trigger:hover {
  border-color: var(--vtpopup-menu-accent);
}

.vtpopup-menu__select-trigger:focus-visible,
.vtpopup-menu__select-control.is-open .vtpopup-menu__select-trigger {
  outline: none;
  border-color: var(--vtpopup-menu-accent);
  box-shadow: 0 0 0 3px var(--vtpopup-menu-accent-soft);
}

.vtpopup-menu__select-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vtpopup-menu__select-caret {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-left: 10px;
  margin-top: -4px;
  border-right: 1.6px solid var(--vtpopup-menu-muted);
  border-bottom: 1.6px solid var(--vtpopup-menu-muted);
  transform: rotate(45deg);
}

.vtpopup-menu__select-control.is-open .vtpopup-menu__select-caret {
  margin-top: 4px;
  transform: rotate(225deg);
}

.vtpopup-menu__select-options {
  display: none;
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--vtpopup-menu-border);
  border-radius: var(--vtpopup-menu-radius);
  background: #fff;
  box-shadow: var(--vtpopup-menu-shadow-popover);
}

.vtpopup-menu__select-control.is-open .vtpopup-menu__select-options {
  display: block;
}

.vtpopup-menu__select-control--up .vtpopup-menu__select-options {
  top: auto;
  bottom: calc(100% + 6px);
}

.vtpopup-menu__select-option {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--vtpopup-menu-text);
  cursor: pointer;
  font: inherit;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.vtpopup-menu__select-option:hover,
.vtpopup-menu__select-option:focus-visible {
  outline: none;
  background: var(--vtpopup-menu-surface-hover);
}

.vtpopup-menu__select-option.is-selected {
  background: var(--vtpopup-menu-accent-soft);
  color: var(--vtpopup-menu-accent-text);
  font-weight: 600;
}

.vtpopup-menu__select-options::-webkit-scrollbar {
  width: 8px;
}

.vtpopup-menu__select-options::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: var(--vtpopup-menu-scrollbar);
}
