
.form-select {
  width: 100%;
}

///// Select native /////

.form-select-native .select-wrapper {
  position: relative;
}

.form-select-native .select-wrapper::after {
  content: "";
  position: absolute;
  right: $spacing-md;
  display: inline-block;
  background-color: $white;
  -webkit-mask-image: url("@images/caret-down.svg");
  mask-image: url("@images/caret-down.svg");
  width: 9px;
  height: 20px;
  z-index: 1;
  top: 50%;
  right: $spacing-sm;
  margin-top: -10px;
}

.form-select-native select {
  appearance: none;
  position: relative;
  display: flex !important;
  flex-direction: row;
  width: 100%;
  overflow: hidden;
  justify-items: start;
  align-items: stretch;
  min-height: $btn-height;
  padding: $spacing-xs $spacing-sm;
  font-size: $font-size-base;
  color: $white;
  border-radius: $border-radius;
  border: none;
  background-color: $primary;
  outline: none;
  cursor: pointer;
}

.form-select-native select:disabled {
  background-image: url("@images/pattern-striped-bright.png");
  background-repeat: repeat;
  background-color: transparent;
  border: $border-width solid $disabled;
  color: $disabled;
  cursor: not-allowed;
  &:hover{
    color: $disabled;
  }
  &::before {
    background-color: transparent;
  }
  &::after {
    background-color: $disabled;
  }
  & input::placeholder {
    color: $disabled;
  }
}

.form-select-native select::placeholder {
  color: $placeholder-color;
  font-style: italic;
  font-size: $font-size-base;
}

.form-select-native option {
  appearance: none;
  padding-top: $spacing-xxs;
  padding-bottom: $spacing-xxs;
  &:hover, &:focus {
    background-color: $link-hover-color;
  }
}
