.btn {
  position: relative;
  height: 48px;
  border-radius: 24px;
  color: $white;
  background: $blue;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid $blue;
  padding: 0 30px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1.9rem;
  transition: all 0.2s ease-out;

  &:hover {
    background: $hover-blue;
    border: 2px solid $hover-blue;
  }

  @include lg {
    height: 56px;
    font-size: 1.8rem;
    line-height: 2.1rem;
    padding: 0 70px;
  }

  &.btn-header {
    white-space: nowrap;
    font-size: 1.6rem;
    line-height: 1.9rem;
    height: 48px;
    padding-left: 46px;
    padding-right: 20px;
    border-radius: 24px;

    @include md {
      min-width: 140px;
    }
  }

  @include sm {
    height: 56px;
    font-size: 1.8rem;
    line-height: 2.1rem;
    border-radius: 29px;
  }

  svg {
    position: absolute;
    left: 6px;
    top: 6px;
  }

  path {
    fill: #ffffff;
  }

  &.has-icon {
    padding-left: 40px;
  }

  &.white {
    background: $white;
    color: $blue;

    path {
      fill: $blue;
      transition: all 0.2s ease-out;
    }

    &:hover {
      path {
        fill: $hover-blue;
      }
    }
  }

  &.link {
    height: auto;
    background: transparent;
    border: none;
    color: $blue;

    &:hover {
      color: $hover-blue;
    }

    &::after {
      content: " ";
      display: inline-block;
      width: 0;
      height: 0;
      border-top: 4px solid transparent;
      border-bottom: 4px solid transparent;
      border-left: 5px solid $blue;
      margin-left: 9px;
    }

    &.white {
      color: #ffffff;

      &:hover {
        opacity: 0.8;
      }

      &::after {
        border-left-color: #ffffff;
      }
    }
  }
}

.back-link {
  color: $light-grey;
  transition: opacity 0.3s ease-out;

  g {
    fill: $light-grey;
  }

  &:hover {
    opacity: 0.8;
  }
}

.close-btn {
  border: none;
  background: transparent;
  height: 22px;
  width: 22px;
  padding: 0;
  position: absolute;
  cursor: pointer;

  &:focus {
    outline: none;
  }

  &::before, &::after {
    content: ' ';
    position: absolute;
    display: block;
    height: 2px;
    width: 22px;
    transform: rotate(45deg);
    background-color: $almost-black;
  }

  &::after {
    transform: rotate(-45deg);
  }
}