/* select-transparent */

.select {
  width: 100%;
  display: inline-block;
  position: relative;
}

.select__header {
  display: flex;
  align-items: center;
  gap: 8px;

  background: var(--white);

  padding-block: 13px;
  padding-inline: 18px;
  border-radius: 8px;
  width: 100%;

  cursor: pointer;
  border: 1px solid transparent;
}

.select__header:focus {
  outline: 1px solid var(--primary);
}

.select__header [data-selected-value] {
  font-weight: 600;
  font-family: var(--opensans);
  font-size: var(--fs-16);
  color: hsla(0, 0%, 62%, 1);
}

/* select icon */
.select__header .icon__before {
  font-size: 20px;
  color: #9f9f9f;
}

.select__header .icon-key.icon__before {
  transform: rotate(280deg);
}

.select__header .select__icon {
  margin-left: auto;
}

.select__header .select__icon {
  color: var(--color-primary);
  font-size: 10px;
  transition: all 250ms ease-in-out;
}

/* options */
.select__wrapperOptions {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  box-shadow: 1px 1px 6px 0px rgb(0 0 0 / 25%);
  z-index: 2;
  /* js */
  position: absolute;
  top: 90px;
  opacity: 0;
  visibility: hidden;
  transition: all 500ms ease-in-out;
}

.select__options {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 250px;
  overflow-y: auto;
}

.select__options::-webkit-scrollbar {
  width: 4px;
  border-radius: 4px;
}

.select__options::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.select__options::-webkit-scrollbar-thumb {
  background: rgba(136, 136, 136, 0.568);
  border-radius: 4px;
}

.select__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 8px;
  padding-block: 8px;
  cursor: pointer;
}

.select__option .icon {
  width: 18px;
  color: rgb(224, 224, 224);
}

.select__option:hover,
.select__option:focus {
  outline: 1px solid var(--primary);
  background: var(--color-primary-alpha-500);
}

.select__option span {
  font-style: var(--opensans);
  color: hsla(0, 0%, 44%, 1);
  font-size: var(--fs-16);
  font-weight: 400;
}

/* option actived */
.select__option.active .icon {
  font-weight: bold;
  color: var(--color-primary);
}

.select__option.active span {
  font-weight: 600;
  color: var(--color-primary);
}

/* js */
.show {
  top: 62px;
  opacity: 1;
  visibility: visible;
}

.turn {
  transform: rotate(180deg);
}

.select__header.highlight [data-selected-value] {
  color: var(--color-primary);
}

/* select-default */
.select-default {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--opensans);
  font-size: var(--fs-14);
  position: relative;
  margin-top: 24px;
}

.select-default span {
  font-family: inherit;
}

.select-default select {
  appearance: none;
  background-color: transparent;
  border: none;
  font-weight: inherit;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  padding-right: 20px;
  outline: none;
  cursor: pointer;
}

.select-default .icon-dropdown {
  position: absolute;
  font-size: 8px;
  transform: translateY(-50%);
  top: 50%;
}

.select-label {
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--fs-18);
  font-family: var(--opensans);
  padding-block-end: 8px;
}
/**
 * Select:Blue
 * ---------------------------------------------
 */

.select.select-blue .select__header {
  background-color: var(--color-primary-alpha-500);
}

.select.select-blue .select__header span {
  color: #707070;
}
