/* 自定义 Select 样式 */
.custom-select-wrapper {
  position: relative;
  display: inline-block;
}

.custom-select-wrapper select {
  display: none; /* 隐藏原生 */
}

.custom-select {
  position: relative;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 3px 3px 8px 1px rgba(255, 117, 0, 0.04);
  border-radius: 10px 10px 10px 10px;
  cursor: pointer;
  user-select: none;
}

.custom-select-header {
  font-weight: 400;
  font-size: 12px;
  /* color: #000000; */
  padding: 9px 12px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* 默认：未选择时灰色 */
.custom-select-header span {
  color: #aca6a2; /* 灰色 */
  transition: color 0.2s;
}
.country_code .custom-select-header {
  padding: 9px 12px !important;
}

.form-group .custom-select-header {
  padding: .5625rem .875rem .5625rem 1.5rem;
}
/* 已选择：黑色 */
.custom-select.has-value .custom-select-header span {
  color: #000000; /* 黑色 */
}
.custom-select-header span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-white: nowrap;
}

.custom-select-arrow {
  width: 8px;
  height: 4px;
  background: url('../../img/m/aluindex/register/select-icon.svg') no-repeat;
  background-size: 8px 4px;
  margin-left: 8px;
  transition: transform 0.2s;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-options {
  padding: 14px 20px 17px 8px;
  box-sizing: border-box;
  margin-top: 4px;
  position: absolute;
  top: 100%;
  /* left: 0; */
  right: 0;
  background: #ffffff;
  box-shadow: 3px 3px 20px 1px rgba(0, 0, 0, 0.16);
  border-radius: 5px 5px 5px 5px;
  border-top: none;
  z-index: 1000;
  max-height: 230px;
  overflow-y: auto;
  display: none;
  scrollbar-width: thin;
  scrollbar-color: #9d9d9d #f1f1f1;
}

/* 自定义滚动条样式 - WebKit浏览器 */
.custom-select-options::-webkit-scrollbar {
  width: 6px;
}

/* 滚动条轨道 */
.custom-select-options::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

/* 滚动条滑块 */
.custom-select-options::-webkit-scrollbar-thumb {
  background: #9d9d9d;
  border-radius: 3px;
  min-height: 16px;
}

/* 滚动条滑块悬停效果 */
.custom-select-options::-webkit-scrollbar-thumb:hover {
  background: #888888;
}
.country_code .custom-select-options {
  left: 0;
}
.custom-select.open .custom-select-options {
  display: block;
}

.custom-select-option {
  font-weight: 400;
  font-size: 14px;
  color: #000000;
  padding: 8px 12px;
  cursor: pointer;
}

.custom-select-option:hover,
.custom-select-option.selected {
  background: rgba(255, 107, 2, 0.11);
  border-radius: 5px 5px 5px 5px;
  color: rgba(255, 107, 2, 1);
}
