/*--------------------------------------------------------
=modifiers
--------------------------------------------------------*/

/* =customer portal hero */
.customer-portal .bg-hero-section-wrapper {
  background-color: #fff;
  background-image: url("../assets/order-portal-hero-bg.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

.customer-portal .hero .standard-section {
  padding: 126px 48px 0px 48px;
}

.customer-portal .hero h1 {
  font-size: 4rem;
  list-style: 4.75rem;
}

.customer-portal .hero h2 {
  max-width: 1100px;
}

.customer-portal .hero h1,
.customer-portal .hero h2 {
  text-align: center;
}

.customer-portal .hero__image {
  display: flex;
  justify-content: center;
  margin-top: 65px;
}

.customer-portal .hero__image img {
  width: 100%;
  max-width: 964px;
}

/* Benefits section */
.benefits-section {
  row-gap: 36px;
}

.benefits-section h2 {
  text-align: left;
}

.benefits-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 24px;
  row-gap: 54px;
}

.benefit-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  flex: 1 0 0;
  padding-right: 24px;
}

.benefit-card__icon {
  width: 60px;
  height: 60px;
}

.benefit-card__content {
  display: grid;
  gap: 16px;
}

.benefit-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 2.25rem;
}

.benefit-card__text {
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 400;
  line-height: 2rem;
}

/* how-it-works section */
.how-it-works-section {
  display: grid;
  gap: 36px;
}

.how-it-works-section h2 {
  text-align: left;
  font-size: 2.375rem;
  font-style: normal;
  font-weight: 600;
  line-height: 3.125rem;
}

.how-it-works-list {
  display: grid;
  gap: 16px;
}

.how-it-works-item {
  width: 100%;
  display: flex;
  padding: 17px 19px;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.how-it-works-number {
  font-size: 0.875rem;
  line-height: 1.3125rem;
  display: flex;
  width: 30px;
  height: 30px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #5e81ff;
  color: white;
}

.how-it-works-text {
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 500;
  line-height: 2.125rem;
}

/* portal-action-section */
.portal-action-section {
  gap: 54px;
}

.portal-action-media {
  display: grid;
}

.portal-action-section-header {
  display: grid;
  row-gap: 36px;
}

.portal-action-video-wrapper {
  grid-column: 1/-1;
  position: relative;
  width: 100%;
  border-radius: 26px;
  overflow: hidden;
}

.portal-action-video {
  width: 100%;
  height: 100%;
  aspect-ratio: 1296 / 730;
  object-fit: cover;
  display: block;
}

.portal-action-play-button {
  width: 240px;
  aspect-ratio: 1 / 1;
  display: flex;
  position: absolute;
  margin: auto;
  border: none;
  border-radius: 50%;
  background-color: rgba(11, 11, 16, 0.6);
  inset: 0;
  cursor: pointer;
  z-index: 2;
  transition: 0.25s;
}

.portal-action-play-button:hover {
  background-color: rgba(11, 11, 16, 0.8);
}

.portal-action-play-button:focus,
.portal-action-play-button:focus-visible {
  background-color: rgba(11, 11, 16, 0.8);
  box-shadow: inset 0 0 0 3px white;
  outline: none;
  border: none;
}

.portal-action-play-button svg {
  margin: auto auto auto 37%;
  width: 31.25%;
  height: auto;
}

.portal-action-section__header {
  display: grid;
  gap: 36px;
}

.portal-action-section__header h2 {
  text-align: left;
}

.portal-action-section__header p {
  text-align: left;
}

/* support-requests-section */
.support-requests-section .padded-component {
  background: none;
}

/* payment-success-section */
.payment-success-section .padded-component {
  background: none;
  padding: 0px;
}

.payment-success-section .padded-component {
  order: 1;
}
.payment-success-section .content-block {
  order: 2;
}

/* relationships carousel section */
.relationships-carousel-section {
  display: grid;
  gap: 80px;
  background-color: #fff;
  background-image: url("../assets/order-portal-relationships-bg.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  padding: 0px 0px 65px 0px;
}

.relationships-carousel-header .content-block {
  row-gap: 36px;
}

.op-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 0 24px;
  --op-carousel-distance: 0px;
  --op-carousel-duration: 60s;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.op-carousel-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: op-carousel-scroll var(--op-carousel-duration) linear infinite;
  animation-play-state: paused;
  will-change: transform;
}

.op-carousel.is-ready .op-carousel-track {
  animation-play-state: running;
}

.op-carousel.is-js .op-carousel-track {
  animation: none;
  transform: translateX(0);
}

.op-carousel.is-dragging {
  cursor: grabbing;
}

.op-carousel-item {
  flex: 0 0 auto;
  width: max-content;
}

.op-carousel-item img {
  display: block;
  width: auto;
  height: 384px;
  max-width: none;
  pointer-events: none;
}

.relationships-carousel-mobile {
  display: none;
  padding: 0 24px;
}

.relationships-carousel-mobile img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes op-carousel-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--op-carousel-distance)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .op-carousel-track {
    animation: none;
    transform: translateX(0);
  }
}

/* easy-documents-section */
.easy-documents-section .padded-component {
  background: none;
  padding: 0px;
}

/* order-portal-cta-section */
.black-banner {
  display: flex;
  padding: 46px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 46px;
  align-self: stretch;
  border-radius: 26px;
  background: #212124;
}

.black-banner-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  align-self: stretch;
}

.black-banner-content h2 {
  font-size: 2.375rem;
  font-weight: 600;
  line-height: 3.125rem;
}
.black-banner-content p {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 2rem;
}

.black-banner-content > * {
  color: white;
}

.black-banner .btn {
  max-width: 370px;
  width: 100%;
}

.black-banner .cta-text-desktop {
  display: inline;
}

.black-banner .cta-text-mobile {
  display: none;
}
/*--------------------------------------------------------
----------------------------------------------------------
    =MEDIA QUERIES
----------------------------------------------------------
-------------------------------------------------------- */

/*--------------------------------------------------------
    =1366px 
--------------------------------------------------------*/
@media screen and (max-width: 1366px) {
  /* benefits section */
  .benefit-card {
    padding-right: 0px;
  }
}

/*--------------------------------------------------------
    =1100px 
--------------------------------------------------------*/
@media screen and (max-width: 1100px) {
  /* benefits section */
  .payment-success-section .padded-component {
    order: 2;
  }
  .payment-success-section .content-block {
    order: 1;
  }
}

/*--------------------------------------------------------
    =992px 
--------------------------------------------------------*/
@media screen and (max-width: 992px) {
  /* benefits section */
  .benefits-section__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/*--------------------------------------------------------
    =768px 
--------------------------------------------------------*/
@media screen and (max-width: 768px) {
  /* Hero */
  .customer-portal .bg-hero-section-wrapper {
    background-image: url("../assets/order-portal-hero-bg-mobile.svg");
  }

  .customer-portal .hero .standard-section {
    padding: 80px 20px 0px 20px;
  }

  .customer-portal .hero h1 {
    font-size: 2.875rem;
    list-style: 3.625rem;
  }

  .customer-portal h1,
  .customer-portal h2 {
    text-align: left;
  }

  .customer-portal .hero__image {
    margin-top: 16px;
  }

  .benefit-card {
    padding-right: 24px;
  }

  /* benefits section */
  .benefits-section {
    padding: 0px 20px;
  }

  .benefits-section h2 {
    font-size: 2.375rem;
    line-height: 3.125rem;
  }

  .benefits-section__grid {
    grid-template-columns: 1fr;
  }

  .benefit-card__title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 2.25rem;
  }

  /* how-it-works section */
  .how-it-works-section {
    padding: 0px 20px;
  }

  .how-it-works-item {
    align-items: flex-start;
    padding: 17px 9px;
  }

  .how-it-works-number {
    margin-top: 2px;
  }

  .how-it-works-text {
    font-size: 1.25rem;
    line-height: 2.125rem;
  }

  /* how-it-works section */
  .portal-action-section {
    padding: 0 20px;
  }

  .portal-action-section-header h2 {
    font-size: 2.375rem;
    line-height: 3.125rem;
  }

  .portal-action-video-wrapper {
    border-radius: 6.42px;
  }
  .portal-action-play-button {
    width: 80px;
  }

  /* support-requests-section */
  .support-requests-section {
    padding: 0px 20px;
  }

  .support-requests-section .padded-component {
    padding: 0px;
  }

  .support-requests-section .content-block h2 {
    font-size: 2.375rem;
    line-height: 3.125rem;
  }

  /* payment-success-section */
  .payment-success-section {
    padding: 0px 20px;
  }

  .payment-success-section .content-block h2 {
    font-size: 2.375rem;
    line-height: 3.125rem;
  }

  /* relationships carousel section */
  .relationships-carousel-section {
    padding: 0px 20px 65px 20px;
    background-image: url("../assets/order-portal-relationships-bg-mobile.svg");
    background-position: center top;
    background-size: cover;
  }

  .op-carousel {
    padding: 0 20px;
  }

  .op-carousel-item img {
    width: auto;
    height: 384px;
  }

  .op-carousel {
    display: none;
  }

  .relationships-carousel-mobile {
    display: block;
    padding: 0px;
  }

  .relationships-carousel-header {
    padding: 0px;
  }

  .relationships-carousel-header h2 {
    font-size: 2.375rem;
    line-height: 3.125rem;
  }

  .relationships-carousel-header p {
    font-size: 1.25rem;
    line-height: 2rem;
  }

  /* easy-documents-section */
  .easy-documents-section {
    padding: 0px 20px;
  }
  .easy-documents-section .content-block h2 {
    font-size: 2.375rem;
    line-height: 3.125rem;
  }

  /* order-portal-cta-section */
  .order-portal-cta-section {
    padding: 0px 20px;
  }

  .black-banner {
    padding: 46px 18px;
  }
}

/*--------------------------------------------------------
    =540px
--------------------------------------------------------*/
@media screen and (max-width: 540px) {
  .black-banner .cta-text-desktop {
    display: none;
  }

  .black-banner .cta-text-mobile {
    display: inline;
  }
}
