// В этом файле должны быть стили для БЭМ-блока btn, его элементов,
// модификаторов, псевдоселекторов, псевдоэлементов, @media-условий...
// Очередность: http://nicothin.github.io/idiomatic-pre-CSS/#priority

.btn {
  box-sizing: border-box;
  display: inline-block;
  max-width: 100%;
  margin: 0;
  border-radius: $border-radius;
  border: 2px solid transparent;
  padding: 14px 24px;
  vertical-align: middle;
  white-space: nowrap;
  text-overflow: ellipsis;
  user-select: none;
  text-align: center;
  font: 400 13px/100% $font-family-2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background-color: $color-cyan;
  background-image: none;
  cursor: pointer;
  overflow: hidden;
  @include field-focus;
  transition: background-color $transition-time, color $transition-time,
    border-color $transition-time, outline-color $transition-time;

  @media (min-width: $screen-xxl) {
  }

  @media (min-width: $screen-xl) {
    font-size: 16px;
  }

  @media (min-width: $screen-lg) {
  }

  &:focus {
    outline-color: rgba(91, 211, 199, 1);
    text-decoration: none;
    color: #fff;
  }

  &:hover {
    text-decoration: none;
    color: #fff;
    background-color: #38b7aa;
    border-color: #38b7aa;
  }

  &:active {
    background-color: #2ea296;
    border-color: #2ea296;
  }

  &--disabled,
  &:disabled {
    opacity: $opacity;
    cursor: not-allowed;
    color: $text-color;
    background-color: $gray-lightest;
    // border-color: $gray-lighter;

    @at-root a.btn--disabled {
      pointer-events: none;
    }
  }

  &--ico {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    svg {
      margin-right: 8px;
    }
  }

  &--grey {
    border-color: #eef0f6;
    background-color: #f7f8fb;
    color: $color-d-blue;

    &:focus {
      color: $color-d-blue;
    }

    &:hover {
      color: #fff;
    }

    &:active {
      color: #fff;
    }
  }

  &--type-1 {
    padding-left: 16px;
    padding-right: 16px;
    font-size: 11px;
    font-family: $font-family;
    text-transform: none;

    @media (min-width: $screen-xxl) {
    }

    @media (min-width: $screen-xl) {
      font-size: 13px;
    }

    @media (min-width: $screen-lg) {
    }
  }

  &--w-100 {
    width: 100%;
  }

  &--dark {
    background-color: $color-d-blue;
  }

  &--transparent {
    border-color: $color-cyan;
    background-color: transparent;
    color: $color-cyan;

    &:focus {
      color: $color-cyan;
    }

    &:hover {
      color: #fff;
    }

    &:active {
      color: #fff;
    }
  }
}
