[data-custom-select] {
  position: relative;
  width: 100%;
}

[data-custom-select] select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

[data-role="select-trigger"] {
  width: 100%;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: justify;
  justify-content: space-between;
  background: inherit;
  color: inherit;
  cursor: pointer;
  font-size: inherit;
  text-align: left;
  gap: 10px;
}

[data-role="select-value"] {
  -ms-flex: 1;
  flex: 1;
}

[data-role="select-icon"] {
  width: 24px;
  height: 24px;
  position: relative;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

[data-role="select-icon"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  -webkit-transform: translate(-50%, -70%) rotate(45deg);
  transform: translate(-50%, -70%) rotate(45deg);
}

[data-custom-select][data-open="true"] [data-role="select-icon"]::before {
  -webkit-transform: translate(-50%, -30%) rotate(-135deg);
  transform: translate(-50%, -30%) rotate(-135deg);
}

[data-role="select-menu"] {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  background: inherit;
  padding: 5px;
  display: none;
  max-height: 260px;
  min-width: -webkit-max-content;
  min-width: max-content;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 20;
}

[data-custom-select][data-open="true"] [data-role="select-menu"] {
  display: -ms-grid;
  display: grid;
  gap: 6px;
}

[data-role="select-option"] {
  font-size: inherit;
  padding: 5px;
  gap: 10px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: justify;
  justify-content: space-between;
  text-align: left;
}

[data-role="select-option"]::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  opacity: 0;
}

[data-role="select-option"]:hover {
  background: rgba(255, 255, 255, 0.05);
}

[data-role="select-option"][data-selected="true"] {
  background: rgba(255, 255, 255, 0.2);
}

[data-role="select-option"][data-selected="true"]::after {
  opacity: 1;
  border-color: #fff;
  background: #fff;
}

[data-role="select-option"][data-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}