.binx-wrapper {
  width: 100%;
  position: relative;
  max-width: 700px;
  margin: 20px auto 0;
}

.binx-body,
.binx-pstscpt {
  padding: 2 * $vertical-height;
}

.binx-header {
  background-color: $gray-darker;
}
.binx-header {
  width: 100%;
  background-color: $gray-darker;
  border: 0;
  border-spacing: 0;
  border-collapse: collapse;
  tr,
  td {
    padding: 0;
    border-spacing: 0;
  }
  td {
    height: $header-height;
    background-color: $gray-darker;
  }

  img {
    display: block;
    margin: (0.3 * $vertical-height) (1.5 * $vertical-height)
      (0.2 * $vertical-height) 0;
    float: right;
    height: $header-height - $vertical-height;

    // This is also manually set in HTML attrs because of outlook
    max-height: $header-height - $vertical-height;
    width: auto;
  }

  // Manually set the bike index logo header height if a partner is present, because futziness
  .partner-header {
    height: 84px;
    .bike-index-logo {
      margin-top: 6px;
      margin-bottom: 0;
    }
  }

  .partner-logo-wrapper {
    display: block;
    float: left;
    background-color: #ffffff;
    height: 84px;

    .partner-header-logo {
      float: left;
      margin-top: 21px;
      // Margin calculated above is 6px
      margin-right: 0;
      height: 45px;
      // This is also manually set in HTML attrs because of outlook
    }
  }
}

.binx-pstscpt {
  h4 {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2em;
  }

  span {
    font-family: Verdana, sans-serif;
    font-size: 30px;

    &:nth-of-type(1) {
      color: #f46767;
    }

    &:nth-of-type(2) {
      color: #ffed40;
    }

    &:nth-of-type(3) {
      color: #c7e775;
    }

    &:nth-of-type(4) {
      color: #3498db;
    }

    &:nth-of-type(5) {
      color: #cea9f7;
    }
  }
}

$foot-padding: 0.5 * ($header-height - $font-size);

.binx-footer {
  background-color: $gray-darker;
  padding: $foot-padding;

  h5,
  p {
    color: $less-strong-font-color;
    font-size: $font-size;
    text-align: center;
    line-height: 1.2em;
    width: 100%;
  }

  h5 {
    font-weight: 600;
  }

  p {
    margin: 1.5rem 0 0;
    font-style: italic;
    a {
      color: #3a78a8; // equivalent to 0.7 opacity
    }
  }
}
