/**
 * @file
 * Next Page Button — self-contained (matches envivent-patient .btn.next).
 */

.next-page-button {
  box-sizing: border-box;
  width: 100%;
  padding: 40px 16px 32px;
  text-align: center;
}

.next-page-button .next-button-container {
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
}

.next-page-button .next-button-container p {
  width: 100%;
  max-width: 680px;
  margin: 0;
}

/* Full .btn + .btn.next rules scoped to this component only. */
.next-page-button a.btn.next {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-height: unset;
  border-radius: 21px;
  background: linear-gradient(180deg, #4f08b0 0.68%, #21034a 50%, #4f08b0 100%);
  background-size: 100% 200%;
  color: #ffffff;
  font-size: 18px;
  line-height: 30px;
  font-weight: 400;
  text-align: left;
  text-decoration: none;
  padding: 17.5px 36px;
  transition: all 0.3s ease-in-out;
}

.next-page-button a.btn.next::before {
  content: 'Next';
  flex: none;
  height: 22px;
  line-height: 24px;
  font-weight: 700;
  display: block;
  padding-right: 18px;
  border-right: 2px solid #ffffff;
  margin-right: 18px;
}

.next-page-button a.btn.next::after {
  content: '';
  flex: none;
  display: block;
  width: 14px;
  height: 22px;
  background: url('../../images/yellow-arrow.svg') no-repeat center/cover;
  transition: background-image 0.3s ease-in-out;
}

.next-page-button a.btn.next span {
  min-width: 0;
  text-align: left;
  line-height: 130%;
}

.next-page-button a.btn.next span .btn,
.next-page-button a.btn.next span a {
  display: none;
}

@media (min-width: 768px) {
  .next-page-button {
    padding-left: 24px;
    padding-right: 24px;
  }

  .next-page-button a.btn.next {
    min-width: var(--next-page-button-min-width, unset);
  }
}

@media (min-width: 992px) {
  .next-page-button a.btn.next:hover {
    background-position: 0 100%;
    color: #ffffff;
  }
}

@media (min-width: 1025px) {
  .next-page-button {
    padding: 51px 24px 45px;
  }

  .next-page-button a.btn.next:hover::after {
    background-image: url('../../images/white-arrow.svg');
  }
}

@media (max-width: 767px) {
  .next-page-button {
    padding: 40px 16px 32px;
  }

  .next-page-button .next-button-container p {
    max-width: 96%;
  }

  .next-page-button a.btn.next {
    font-size: 14px;
    line-height: 18px;
    padding: 16px 24px;
  }

  .next-page-button a.btn.next span {
    text-align: left;
  }
}
