/**
 * @file
 * Side Effects Gradient Hero component styles.
 *
 * Single gradient on the full banner; copy + image share one background.
 */

.layout-container {
  .side-effects-gradient-hero {
    position: relative;
    width: 100%;
    background: linear-gradient(
      52deg,
      rgba(61, 0, 155, 1) 22%,
      rgba(184, 132, 211, 1) 79%,
      rgba(243, 205, 165, 1) 100%
    );
  }

  .side-effects-gradient-hero__grid {
    height: 162px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    max-width: 1230px;
    margin: 0 auto;
  }

  .side-effects-gradient-hero,
  .side-effects-gradient-hero__grid,
  .side-effects-gradient-hero__media {
    overflow: visible;
  }

  /* ==========================================================================
     Copy column
     ========================================================================== */

  .side-effects-gradient-hero__copy {
    flex: 0 0 50%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }

  .side-effects-gradient-hero__heading p {
    font-family: Poppins, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 32px;
    font-weight: 500;
    line-height: 1;
    color: #ffffff;
    text-align: center;
  }

  /* Disclaimer in copy column — mobile only */
  .side-effects-gradient-hero__disclaimer--copy {
    display: none;
    margin: 0;
    padding-top: 20px;
    font-family: Poppins, sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.3;
    color: #ffffff;
  }

  /* ==========================================================================
     Media column — photo + corner gradient
     ========================================================================== */

  .side-effects-gradient-hero__media {
    position: relative;
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
    box-sizing: border-box;
    height: 100%;
  }

  .side-effects-gradient-hero__photo {
    height: calc(100% + 62px);
    bottom: 0px;
    max-width: unset;
    width: auto;
    position: relative;
    right: -8%;
  }

  .side-effects-gradient-hero > .side-effects-gradient-hero__corner-gradient {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 6;
    pointer-events: none;
  }

  .side-effects-gradient-hero
    > .side-effects-gradient-hero__corner-gradient--desktop {
    display: block;
    width: auto;
    height: 84%;
    max-height: 162px;
  }

  .side-effects-gradient-hero
    > .side-effects-gradient-hero__corner-gradient--mobile {
    display: none;
    width: 110px;
    height: auto;
    overflow: hidden;
  }

  /* Disclaimer on image — desktop only */
  .side-effects-gradient-hero__disclaimer--media {
    position: absolute;
    top: 12px;
    z-index: 3;
    margin: 0;
    font-family: Poppins, sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.3;
    color: #000000;
    right: 2%;
  }

  @media (max-width: 991px) {
    .side-effects-gradient-hero__photo {
      left: -30px;
    }
  }

  /* ==========================================================================
     Mobile — stack copy above image
     ========================================================================== */

  @media (max-width: 767px) {
    .side-effects-gradient-hero__grid {
      height: 149px;
    }

    .side-effects-gradient-hero__copy {
      padding-left: 24px;
      width: 100%;
      flex: 1 1 40%;
    }

    .side-effects-gradient-hero__heading p {
      font-size: 20px;
      line-height: 1.2;
      text-align: left;
    }

    /* Mobile: pin disclaimer to bottom-left of full banner. */
    .side-effects-gradient-hero__disclaimer--copy {
      display: block;
      position: absolute;
      bottom: 10px;
      left: 24px;
      z-index: 8;
      margin: 0;
      padding-top: 0;
    }

    .side-effects-gradient-hero__disclaimer--media {
      display: none;
    }

    .side-effects-gradient-hero__media {
      flex: 1 1 60%;
    }

    .side-effects-gradient-hero__photo {
      right: -38px;
      left: unset;
      height: calc(100% + 35px);
    }

    .side-effects-gradient-hero
      > .side-effects-gradient-hero__corner-gradient--desktop {
      display: none;
    }

    .side-effects-gradient-hero
      > .side-effects-gradient-hero__corner-gradient--mobile {
      display: block;
    }
  }
}
