.custom-select-wrapper {
  --selectbox-back-color: #fff;
  --selectbox-border-color: #5c5fc0;
  --selectbox-disabled-back-color: #f5f5f5;
  --selectbox-hover-back-color: #f3f3fa;
  --selectbox-hover-color: #4c4c4c;
  --selectbox-selected-back-color: #d5d6ef;
  --selectbox-divider-back-color: #f1f2f7;
}

.ss-container .custom-option-box {
  --ss-scroll-right-bottom: 3px;
}

.custom-select-wrapper * {
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.original-select-hidden {
  display: none;
}

.custom-select-wrapper {
  position: relative;
  width: 200px;
  height: 35px;
}

.custom-select-wrapper .custom-select-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 10px;
  border: 1px solid var(--selectbox-border-color);
  background-color: var(--selectbox-back-color);
  cursor: pointer;
  border-radius: 7px;
}

.custom-select-wrapper.open .custom-select-box {
  border-radius: 7px 7px 0 0;
}

.custom-select-wrapper.open .custom-option-box {
  display: block;
}

.custom-select-wrapper.open .material-icons {
  transform: rotate(180deg);
}

.custom-select-wrapper.open-up .custom-select-box {
  border-radius: 0 0 7px 7px;
}

.custom-select-wrapper.open-up .custom-option-box {
  border-radius: 7px 7px 0 0;
  border: 1px solid var(--selectbox-border-color);
  border-bottom: none;
  bottom: 100%;
  top: auto;
}

.custom-select-wrapper .custom-option-box {
  display: none;
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid var(--selectbox-border-color);
  border-top: none;
  border-radius: 0 0 7px 7px;
  z-index: 1000;
  background-clip: padding-box;
  overflow: hidden;
  max-height: none;
  background-color: var(--selectbox-back-color);
  /* transform: translateY(0); */
}

.custom-select-wrapper .custom-option-box::-webkit-scrollbar {
  display: none;
}

.custom-select-wrapper .custom-option {
  width: 100%;
  padding: 5px 10px;
  background-color: var(--selectbox-back-color);
}

.custom-select-wrapper .custom-option:hover:not(.selected) {
  background-color: var(--selectbox-hover-back-color);
  color: var(--selectbox-hover-color);
}

.custom-option.selected {
  background-color: var(--selectbox-selected-back-color);
  color: var(--selectbox-selected-color);
}

.custom-select-wrapper .custom-option:last-child,
.custom-select-wrapper .custom-option:last-child:hover,
.custom-select-wrapper .custom-option.selected:last-child {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.custom-select-wrapper .custom-option-divider {
  display: flex;
  justify-content: center;
}

.custom-option-divider > .divider-line {
  width: 90%;
  height: 1px;
  background-color: var(--selectbox-divider-back-color);
}
.custom-select-wrapper .custom-selected:focus {
  outline: none;
}

.custom-select-box.read-only {
  background-color: var(--selectbox-disabled-back-color);
  pointer-events: none;
  cursor: default;
  border: 1px solid var(--selectbox-hover-color);
  color: var(--selectbox-hover-color);
}

.custom-select-box.ddisabled {
  background-color: var(--selectbox-disabled-back-color);
  pointer-events: none;
  cursor: default;
  border: 1px solid var(--selectbox-hover-color);
  color: var(--selectbox-hover-color);
}

.mobile-custom-tooltip {
  position: fixed;
  background-color: #5c5fc0;
  color: #fff;
  padding: 5px;
  font-size: var(--sm-font);
  z-index: 9999;
  pointer-events: none;
  white-space: normal;
  max-width: 80%;
  word-break: break-all;
  top: -9999px;
  left: -9999px;
  opacity: 0;
  transition: opacity 0.2s;
}

.mobile-custom-tooltip.show {
  opacity: 1;
}
