.onboardingMessageContainer {
  display: grid;
  grid-column-gap: 21px;
  grid-template-columns: auto auto auto;
  padding-left: 30px;
  padding-right: 30px;
  min-height: 500px;

  // at 850px, the cards go from vertical layout to horizontal layout
  @media(max-width: 850px) {
    grid-template-columns: none;
    grid-template-rows: auto auto auto;
    padding-left: 110px;
    padding-right: 110px;
  }
}

.onboardingMessage {
  height: 340px;
  text-align: center;
  padding: 13px;
  font-weight: 200;

  // at 850px, img floats left, content floats right next to it
  @media(max-width: 850px) {
    height: 170px;
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid $grey-30;
    display: flex;
    margin-bottom: 11px;

    &:last-child {
      border: 0;
    }

    .onboardingContent {
      padding-left: 10px;
      height: 100%;

      > span > h3 {
        margin-top: 0;
        margin-bottom: 4px;
        font-weight: 400;
      }

      > span > p {
        margin-top: 0;
        line-height: 22px;
        font-size: 15px;
      }
    }
  }

  @media(max-width: 650px) {
    height: 250px;
  }

  .onboardingContent {
    height: 175px;

    > span > h3 {
      color: $grey-90;
      margin-bottom: 8px;
      font-weight: 400;
    }

    > span > p {
      color: $grey-60;
      margin-top: 0;
      height: 180px;
      margin-bottom: 12px;
      font-size: 15px;
      line-height: 22px;

      @media(max-width: 650px) {
        margin-bottom: 0;
        height: 160px;
      }
    }
  }

  .onboardingButton {
    background-color: $grey-90-10;
    border: 0;
    width: 150px;
    height: 30px;
    margin-bottom: 23px;
    padding: 4px 0 6px;
    font-size: 15px;

    // at 850px, the button shimmies down and to the right
    @media(max-width: 850px) {
      float: right;
      margin-top: -105px;
      margin-inline-end: -10px;
    }

    @media(max-width: 650px) {
      float: none;
    }

    &:focus,
    &.active,
    &:hover {
      box-shadow: 0 0 0 5px $grey-30;
      transition: box-shadow 150ms;
    }
  }


  &::before {
    content: '';
    height: 230px;
    width: 1px;
    position: absolute;
    background-color: $grey-30;
    margin-top: 40px;
    margin-inline-start: 215px;

    // at 850px, the line goes from vertical to horizontal
    @media(max-width: 850px) {
      content: none;
    }
  }

  &:last-child::before {
    content: none;
  }
}

// Also used for Trailhead
.onboardingMessageImage {
  height: 100px;
  width: 120px;
  background-size: 120px;
  background-position: center center;
  background-repeat: no-repeat;
  display: inline-block;
  vertical-align: middle;

  @media(max-width: 850px) {
    height: 75px;
    min-width: 80px;
    background-size: 80px;
  }

  &.addons {
    background-image: url('#{$image-path}illustration-addons@2x.png');
  }

  &.privatebrowsing {
    background-image: url('#{$image-path}illustration-privatebrowsing@2x.png');
  }

  &.screenshots {
    background-image: url('#{$image-path}illustration-screenshots@2x.png');
  }

  &.gift {
    background-image: url('#{$image-path}illustration-gift@2x.png');
  }

  &.sync {
    background-image: url('#{$image-path}illustration-sync@2x.png');
  }

  &.devices {
    background-image: url('#{$image-path}trailhead/card-illo-devices.png');
  }

  &.fbcont {
    background-image: url('#{$image-path}trailhead/card-illo-fbcont.png');
  }

  &.ffmonitor {
    background-image: url('#{$image-path}trailhead/card-illo-ffmonitor.png');
  }

  &.ffsend {
    background-image: url('#{$image-path}trailhead/card-illo-ffsend.png');
  }

  &.lockwise {
    background-image: url('#{$image-path}trailhead/card-illo-lockwise.png');
  }

  &.mobile {
    background-image: url('#{$image-path}trailhead/card-illo-mobile.png');
  }

  &.pledge {
    background-image: url('#{$image-path}trailhead/card-illo-pledge.png');
  }

  &.pocket {
    background-image: url('#{$image-path}trailhead/card-illo-pocket.png');
  }

  &.private {
    background-image: url('#{$image-path}trailhead/card-illo-private.png');
  }

  &.sendtab {
    background-image: url('#{$image-path}trailhead/card-illo-sendtab.png');
  }

  &.tracking {
    background-image: url('#{$image-path}trailhead/card-illo-tracking.png');
  }
}
