.exitIntentOverlay,
.exitIntentOverlay2 {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 501;
  background: rgba(33, 33, 33, 0.8);
  transform: scale(0);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;

  &.visible {
    transform: scale(1);
    opacity: 1;
  }

  .exitIntentOverlay-contents {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #fff;
    padding: 40px;
    width: calc(100% - 40px);
    max-width: 800px;
    border-radius: 8px;
    box-sizing: border-box;

    @media (min-width: 32.5625em) {
      & {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
    }
  }

  .exitIntentOverlay-close {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
    height: 20px;
    width: 20px;
    border: none;
    cursor: pointer;
    background: transparent
      url(https://cdn.oreillystatic.com/oreilly/images/icon_close_16x16.svg) 0 0
      no-repeat;
    background-size: cover;
    text-indent: -9999px;
    overflow: hidden;
    opacity: 0.5;

    &:hover {
      opacity: 0.75;
    }
  }

  .exitIntentOverlay-text {
    text-align: center;

    &.hidden {
      display: none;
    }

    h2 {
      margin: 0 0 0.5rem;
      font-family: "gilroy", Arial, sans-serif;
      font-weight: 400;
      font-size: 2.25rem;
      line-height: 1.1em;
      color: #3d3b49;
      text-wrap: balance;
    }
    h3 {
      margin: 0 0 1rem;
      font-family: "gilroy", Arial, sans-serif;
      font-weight: 600;
      font-size: 1.5rem;
      line-height: 1.3em;
      color: #3d3b49;
      text-wrap: pretty;
    }
    p {
      margin-bottom: 20px;
      font-size: 1.25rem;
      line-height: 1.5em;
      max-width: 720px;
      color: #3d3b49;
      text-wrap: pretty;
    }
    ul {
      margin-bottom: 20px;
      padding-left: 1rem;
      font-size: 1rem;
      line-height: 1.5em;
      max-width: 720px;
      color: #3d3b49;

      li {
        text-wrap: pretty;
      }

      &.checks {
        list-style-type: none;
        padding-left: 0;

        li {
          position: relative;
          margin-bottom: 12px;
          padding-left: 24px;

          &:last-child {
            margin-bottom: 0;
          }

          &:before {
            content: '';
            position: absolute;
            left: 0;
            top: 4px;
            width: 16px;
            height: 16px;
            background: url('https://cdn.oreillystatic.com/images/icons/icon_check_simple.svg') no-repeat;
            background-size: contain;
            background-position: center center;
          }
        }
      }
    }

    .exitIntentOverlay-columns & {
      text-align: left;

      @media (min-width: 32.5625em) {
        & {
          width: calc(50% - 20px);
        }
      }
    }
  }

  .exitIntentOverlay-columns {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: center;

    @media (min-width: 32.5625em) {
      & {
        flex-direction: row;
        align-items: unset;
      }
    }

    .exitIntentOverlay-figure {
      display: none;
      overflow: hidden;

      @media (min-width: 32.5625em) {
        & {
          display: block;
          width: calc(50% + 40px);
          margin: 0 -40px;
        }

        &.animalBackground.wallcreeper {
          display: block;
          width: calc(50% + 40px);
          margin: -40px -40px -40px 0;
          background-image: url(https://cdn.oreillystatic.com/oreilly/images/exit_intent_birds_wallcreeper_20250813.jpg);
          background-size: 430px;
          background-position: 0 center;
          background-repeat: no-repeat;
        }

        img {
          display: block;
          margin: 0;
          width: auto;
          height: 319px;
        }
      }
    }
  }

  a.exitIntentOverlay-cta {
    position: relative;
    display: block;
    max-width: max-content;
    vertical-align: top;
    margin: 0 5px 20px 0;
    padding: 13px 20px;
    border-radius: 2px;
    background-color: #0071eb;
    font-size: 18px;
    font-size: 1.125rem;
    line-height: 1em;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    
    &:last-child {
      margin-bottom: 0;
    }
    &:hover,
    &:active {
      text-decoration: none;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
      color: #fff;
    }
    &:after {
      content: "";
      display: inline-block;
      margin: -10px -2px -6px 6px;
      width: 9px;
      height: 14px;
      vertical-align: middle;
      background: transparent
        url(https://cdn.oreillystatic.com/images/icons/icon_right_arrow_white.svg)
        center center no-repeat;
      background-size: contain;
    }
  }

  .exitIntentOverlay-cta-group {
    display: flex;
    flex-direction: column;
    gap: 8px;

    a.exitIntentOverlay-cta {
      margin: 0;
    }
  }
}