.footer_cel {
  --desktop-max-width-col: 44.44%;

  padding-block: var(--spacers-60);

  @media screen and (width >= 1280px) {
    padding-block: var(--spacers-80);
  }
}

.footer_cel__wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--gap-40);

  @media screen and (width >= 1280px) {
    gap: var(--gap-80);
  }
}

.footer_cel__top {
  display: flex;
  flex-direction: column;
  gap: var(--gap-40);

  @media screen and (width >= 1280px) {
    display: grid;
    grid-template-columns: 1fr 25%;
  }

  & .newsletter__headline {
    color: var(--color-indigo);
    margin-block-end: var(--spacer-20);

    @media screen and (width >= 1280px) {
      margin-block-end: var(--spacer-40);
    }
  }

  & .newsletter__form {
    display: flex;
    flex-direction: column;
    gap: var(--gap-20);

    @media screen and (width >= 1280px) {
      max-width: var(--desktop-max-width-col);
    }

    & .newsletter__form__elements {
      display: grid;
      gap: var(--gap-10);
      grid-template-columns: 1fr 54px;

      @media screen and (width >= 1280px) {
        gap: var(--gap-20);
      }

      & input {
        background-color: var(--color-white);
        border-radius: 59px;
      }

      & button {
        background: var(--color-indigo);
        border-radius: 46px;
        height: 50px;
        place-items: center;
        width: 54px;

        & svg {
          margin: 0 auto;
        }
      }
    }

    /* CEL | "Sign up for alerts" trigger is a light CTA on the seafoam
       footer. On hover/focus it inverts to indigo fill + white text (brand
       spec) so it doesn't disappear into the seafoam background. !important
       beats both the inline white background on the button and the
       centralized .button_cel:hover seafoam default. */
    & > .button {
      &:hover:not([disabled]),
      &:focus-visible:not([disabled]) {
        background-color: var(--color-indigo) !important;
        color: var(--color-pure-white) !important;

        & .button__content {
          color: var(--color-pure-white);
        }
      }
    }

    & .newsletter__disclaimer {
      color: var(--color-indigo);
      text-wrap: stable;
    }
  }
}

.footer_cel__middle {
  display: flex;
  flex-direction: column;
  gap: var(--gap-40);

  @media screen and (width >= 1280px) {
    display: grid;
    gap: var(--gap-60);
    grid-template-columns: repeat(2, 1fr);
  }

  .footer_cel__about {
    display: flex;
    flex-direction: column;
    gap: var(--gap-30);

    @media screen and (width >= 1280px) {
      gap: var(--gap-40);
    }

    & .footer_cel__about-title {
      color: var(--color-indigo);
      font-weight: 700;
      text-transform: uppercase;
    }

    & .footer_cel__about-description {
      color: var(--color-indigo);
      text-wrap: stable;

      @media screen and (width >= 1280px) {
        max-width: 66.66%;
      }
    }

    .footer_cel__about-extra {
      display: flex;
      flex-direction: column;
      gap: var(--gap-20);
      justify-content: flex-start;
    }

    .footer_cel__about-button {
      button, a {
        background-color: transparent;
        font-size: var(--font-size-14);

        & .button__content {
          padding: 0;
          text-decoration: underline;
          text-decoration-thickness: var(--border-size);
          text-underline-offset: var(--spacer-4);
        }

        /* CEL | These CTAs sit on the seafoam footer, so they invert to
           indigo fill + white text on hover/focus (brand spec). !important
           beats the centralized .button_cel:hover seafoam default. */
        &:hover,
        &:focus-visible {
          background-color: var(--color-indigo) !important;

          & .button__content {
            color: var(--color-pure-white);
            text-decoration: none;
          }
        }
      }
    }

    & .footer_cel__about-disclaimer {
      color: var(--color-indigo);
      text-wrap: stable;
    }

    & #ot-sdk-btn.footer_cel__about-personal-info-disclaimer {
      align-items: center;
      background: rgb(255 255 255 / 50%);
      border-radius: 58px;
      color: var(--color-indigo);
      display: flex;
      font-size: 0;
      height: 55px;
      justify-content: center;
      padding-inline: var(--spacer-16);
      text-wrap: stable;

      /* CEL | Override OneTrust JS-injected button text via CSS; --ot-btn-label is set inline from the section setting */
      &::before {
        content: var(--ot-btn-label, '');
        font-size: var(--font-size-14);
      }

      @media screen and (width >= 1280px) {
        padding-inline: var(--spacer-40);
        width: fit-content;
      }

      /* CEL | Invert to indigo fill + white text on hover/focus (brand spec).
         The label is drawn via ::before, which inherits this color. */
      &:hover,
      &:focus-visible {
        background: var(--color-indigo);
        color: var(--color-pure-white);
      }
    }
  }

  & .footer_cel__middle__col--menus {
    display: grid;

    @media screen and (width >= 1280px) {
      gap: var(--gap-60) var(--gap-20);
      grid-template-columns: repeat(3, 1fr);
    }

    & .footer_cel__menu-title {
      align-items: center;
      color: var(--color-indigo);
      cursor: pointer;
      display: flex;
      font-weight: var(--font-weight-700);
      justify-content: space-between;
      text-transform: uppercase;

      @media screen and (width >= 1280px) {
        cursor: default;
        padding-bottom: var(--spacer-40);
      }

      .minus {
        display: none;
      }
    }

    & .footer_cel__menu {
      border-bottom: 1px solid var(--color-indigo);
      padding-block: var(--spacer-20);

      @media screen and (width >= 1280px) {
        border: 0 none;
        padding-block: 0;
      }

      &[open] {
        .footer_cel__menu-title {
          .minus {
            display: block;
          }

          .plus {
            display: none;
          }
        }
      }
    }

    ul {
      display: flex;
      flex-direction: column;
      gap: var(--gap-16);
      list-style: none;
      margin: 0;
      padding: 30px 0 0;

      @media screen and (width >= 1280px) {
        padding: 0;
      }

      li {
        padding: 0;

        a {
          color: var(--color-indigo);
          font-weight: var(--font-weight-700);

          /* stylelint-disable-next-line no-descending-specificity */
          &:hover {
            text-decoration: underline;
            text-decoration-thickness: 14%;
            text-underline-offset: 20%;
          }
        }
      }
    }
  }
}

.footer_cel__small {
  display: flex;
  flex-direction: column;
  gap: var(--gap-30);

  @media screen and (width >= 1280px) {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  & .footer_cel__legal-menu {
    ul {
      display: flex;
      flex-wrap: wrap;
      gap: var(--gap-18);
      list-style: none;
      margin: 0;

      & li {
        flex-shrink: 0;
        padding: 0;

        a {
          color: var(--color-indigo);
          text-decoration: underline;
          text-decoration-thickness: 14%;
          text-underline-offset: 20%;
          white-space: nowrap;

          /* stylelint-disable-next-line no-descending-specificity */
          &:hover {
            text-decoration: none;
          }
        }
      }
    }
  }

  & small {
    color: var(--color-indigo);
    font-weight: var(--font-weight-500);
  }
}
