.teemly-select-shell {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.teemly-select-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.teemly-select-trigger {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 38px 9px 12px;
  border: 1px solid rgba(17, 22, 29, 0.14);
  border-radius: 7px;
  background: #fff;
  color: #11161d;
  font: 500 13px/1.35 'Inter', system-ui, sans-serif;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.teemly-select-trigger:hover {
  border-color: rgba(17, 22, 29, 0.28);
}

.teemly-select-trigger:focus-visible,
.teemly-select-shell.is-open .teemly-select-trigger {
  outline: none;
  border-color: rgba(224, 99, 58, 0.62);
  box-shadow: 0 0 0 3px rgba(224, 99, 58, 0.12);
}

.teemly-select-trigger:disabled {
  cursor: not-allowed;
  color: #8a94a2;
  background: #f5f6f7;
}

.teemly-select-value {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teemly-select-arrow {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  color: #526174;
  transition: transform .15s;
  pointer-events: none;
}

.teemly-select-shell.is-open .teemly-select-arrow {
  transform: translateY(-25%) rotate(225deg);
}

.teemly-select-menu {
  position: fixed;
  z-index: 100000;
  display: none;
  max-height: 260px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid rgba(17, 22, 29, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(17, 22, 29, 0.16);
  box-sizing: border-box;
}

.teemly-select-menu.is-open {
  display: block;
}

.teemly-select-option {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #283341;
  font: 500 13px/1.35 'Inter', system-ui, sans-serif;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.teemly-select-option:hover,
.teemly-select-option.is-active {
  background: #f6f7f8;
  color: #11161d;
}

.teemly-select-option[aria-selected="true"] {
  background: #fbeee7;
  color: #bd4724;
  font-weight: 700;
}

.teemly-select-option:disabled {
  color: #a1a9b3;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .teemly-select-menu {
    max-height: 220px;
  }
}
