/* stylelint-disable selector-class-pattern, no-descending-specificity, color-function-alias-notation, color-function-notation, alpha-value-notation -- These selectors and legacy color forms are shared integration contracts. */

.es-native-select-hidden {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.es-custom-select {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.es-custom-select__trigger {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 16px;
  border: 1px solid rgb(203 213 225);
  background: rgb(255 255 255);
  color: rgb(30 41 59);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease;
}

.es-custom-select__trigger:hover {
  border-color: rgb(148 163 184);
  background: rgb(248 250 252);
}

.es-custom-select.is-open .es-custom-select__trigger,
.es-custom-select__trigger:focus-visible {
  outline: none;
  border-color: rgb(96 165 250);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.16);
}

.es-custom-select.is-disabled .es-custom-select__trigger {
  background: rgb(241 245 249);
  color: rgb(100 116 139);
  cursor: not-allowed;
}

.es-custom-select__label {
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.es-custom-select__chevron {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: rgb(100 116 139);
  transition: transform .16s ease;
}

.es-custom-select__chevron svg,
.es-custom-select__check svg {
  display: block;
  width: 100%;
  height: 100%;
}

.es-custom-select.is-open .es-custom-select__chevron {
  transform: rotate(180deg);
}

.es-custom-select__menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20000;
  max-width: calc(100vw - 24px);
  border-radius: 18px;
  border: 1px solid rgb(226 232 240);
  background: rgb(255 255 255);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.es-custom-select__list {
  max-height: min(360px, 56vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgb(186 197 210) transparent;
  padding: 8px;
}

.es-custom-select__list::-webkit-scrollbar {
  width: 10px;
}

.es-custom-select__list::-webkit-scrollbar-track {
  background: rgba(248, 250, 252, 0.72);
  border-radius: 999px;
}

.es-custom-select__list::-webkit-scrollbar-thumb {
  background: rgb(186 197 210);
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.72);
  background-clip: padding-box;
}

.es-custom-select__list::-webkit-scrollbar-thumb:hover {
  background: rgb(170 184 201);
  background-clip: padding-box;
}

.es-custom-select__list::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.es-custom-select__option {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: rgb(30 41 59);
  padding: 8px 12px;
  border-radius: 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.es-custom-select__option > span:last-child {
  min-width: 0;
}

.es-custom-select__option:hover,
.es-custom-select__option:focus-visible,
.es-custom-select__option.is-highlighted {
  background: rgb(248 250 252);
}

.es-custom-select__option:focus-visible,
.es-custom-select__option.is-highlighted {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(96, 165, 250, 0.28);
}

.es-custom-select__option.is-selected {
  background: rgb(239 246 255);
  color: rgb(29 78 216);
}

.es-custom-select__option.is-placeholder {
  color: rgb(100 116 139);
}

.es-custom-select__check {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: currentcolor;
  visibility: hidden;
}

.es-custom-select__option.is-selected .es-custom-select__check {
  visibility: visible;
}

html.dark .es-custom-select__trigger,
body.dark .es-custom-select__trigger {
  border-color: rgb(71 85 105);
  background: rgb(15 23 42);
  color: rgb(241 245 249);
}

html.dark .es-custom-select__trigger:hover,
body.dark .es-custom-select__trigger:hover {
  border-color: rgb(100 116 139);
  background: rgb(30 41 59);
}

html.dark .es-custom-select.is-disabled .es-custom-select__trigger,
body.dark .es-custom-select.is-disabled .es-custom-select__trigger {
  background: rgb(30 41 59);
  color: rgb(148 163 184);
}

html.dark .es-custom-select__menu,
body.dark .es-custom-select__menu {
  border-color: rgb(51 65 85);
  background: rgb(15 23 42);
  box-shadow: 0 20px 40px rgba(2, 6, 23, 0.52);
}

html.dark .es-custom-select__list,
body.dark .es-custom-select__list {
  scrollbar-color: rgb(113 128 150) transparent;
}

html.dark .es-custom-select__list::-webkit-scrollbar-track,
body.dark .es-custom-select__list::-webkit-scrollbar-track {
  background: rgba(30, 41, 59, 0.7);
}

html.dark .es-custom-select__list::-webkit-scrollbar-thumb,
body.dark .es-custom-select__list::-webkit-scrollbar-thumb {
  background: rgb(113 128 150);
  border: 2px solid rgba(30, 41, 59, 0.7);
  background-clip: padding-box;
}

html.dark .es-custom-select__list::-webkit-scrollbar-thumb:hover,
body.dark .es-custom-select__list::-webkit-scrollbar-thumb:hover {
  background: rgb(129 140 155);
  background-clip: padding-box;
}

html.dark .es-custom-select__option,
body.dark .es-custom-select__option {
  color: rgb(241 245 249);
}

html.dark .es-custom-select__option:hover,
html.dark .es-custom-select__option:focus-visible,
html.dark .es-custom-select__option.is-highlighted,
body.dark .es-custom-select__option:hover,
body.dark .es-custom-select__option:focus-visible,
body.dark .es-custom-select__option.is-highlighted {
  background: rgb(30 41 59);
  color: rgb(248 250 252);
}

html.dark .es-custom-select__option:focus-visible,
html.dark .es-custom-select__option.is-highlighted,
body.dark .es-custom-select__option:focus-visible,
body.dark .es-custom-select__option.is-highlighted {
  box-shadow: inset 0 0 0 2px rgba(96, 165, 250, 0.34);
}

html.dark .es-custom-select__option.is-selected,
body.dark .es-custom-select__option.is-selected {
  background: rgba(15, 118, 110, 0.18);
  color: rgb(191 219 254);
}

html.dark .es-custom-select__option.is-placeholder,
body.dark .es-custom-select__option.is-placeholder {
  color: rgb(148 163 184);
}
