.sign-up-subscription {
  padding: 16px 0;
  background: $blue-dark;
  font-size: 1.125rem;
  display: flex;
  flex-direction: column;
  align-items: center;

  &__form {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-direction: column;
    position: relative;
    width: 100%;

    .notification_error {
      display: none;

      svg {
        position: relative;
        top: 2px;
      }
    }

    .notification_error {
      width: 100%;
      margin-bottom: 0;
      margin-top: 5px;
      border: 2px solid $red;
      background-color: $red-bg;
    }
  }

  &__input {
    width: 100%;
    position: relative;
  }

  &__email {
    @include inputfield;
    text-overflow: ellipsis;
    height: 50px;
    border-radius: 25px;
    font-size: .75rem;

    .touch-device & {
      font-size: .75rem;
      line-height: 1rem;
    }
  }

  &__submit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translate(0, -50%);
    color: $blue-dark;
    font-size: 1.5rem;
    background: transparent;
    padding: 0;
    line-height: 0;
  }
}

.sign-up {
  &_invalid {
    .sign-up-subscription__email {
      border-color: $rose-pink;
    }

    .input-message__error {
      display: block;
    }
  }

  &_valid {
    .input-message__error {
      display: none;
    }

    .input-message__success {
      display: block;
    }
  }
}

@include media-breakpoint-up(sm) {
  .sign-up-subscription__email {
    font-size: .875rem;
  }
}

@include media-breakpoint-up(md) {
  .sign-up-subscription {
    &__msg {
      font-size: 1.125rem;

      &-container {
        .fa-check {
          top: 3px;
        }
      }
    }
  }
}

@include media-breakpoint-only(lg) {
  .sign-up-subscription {
    &__form {
      max-width: 720px;
    }
  }
}
