// Components :: Select :: Styles

@import '../../styles/settings/index';
@import '../../styles/tools/index';

.c-select-wrapper {
  @include flex($direction: column, $justify-content: center);

  position: relative;
}

.c-select {
  @include fabric-font-size(16px);

  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid fabric-color('white');
  border-radius: 0;
  color: inherit;
  font-family: 'FS-Emeric-Regular', sans-serif;
  padding: $fabric-global-spacing-unit-tiny 20px
    $fabric-global-spacing-unit-tiny 0;
  width: 100%;

  background: white;
  font-size: 1rem;
  line-height: 1.5;
  border: 1px solid #e5e5e5;
  color: #6d6d6d;
  font-family: 'FS-Emeric-Regular', sans-serif;
  padding: 12px;
  transition: all 500ms ease-in-out;
  width: 100%;

  &:disabled {
    cursor: not-allowed;
    opacity: 0.5;
  }

  .c-select-wrapper--inline & {
    border: none;
  }

  &:focus {
    outline: none;
  }

  &__arrow {
    @include absolute(right 6px);

    pointer-events: none;

    .c-select-wrapper--inline & {
      bottom: auto;
      top: 50%;
      transform: translateY(-50%);
    }

    &.u-disabled {
      cursor: not-allowed;
      opacity: 0.5;
    }
  }
}
