// Pricing table
// ==============
// List of the pricing plans available

$b: '.price';

$price-warning: #FF6A19;
$price-danger: #DE1D10;



.price-summary {

  h2, h3 {

    font-weight: bold;

  }

  h3 {

    padding-top: 40px;
    font-size: 2em;

  }

  figure {

    height: 320px;

  }

  ul {

    padding-left: 20px;

    li {

      padding: 0 0 1em 0;

    }

  }

  .separator {

    border-top: 1px solid $oa-white;
    margin: 20px 0 40px;
    width: 100px;

  }

  .sub {

    padding: 0 0 20px 0;
    font-size: 1.4em;

  }

}

.pricing {

  ul, ul:hover {
    list-style: none;
    padding: 0;

    li {

      color: $oa-black;

    }

  }

  .price-canvas {

    display: inline-block;
    vertical-align: top;

  }

  small {

    font-size: 0.95em;

  }

  > ul {

    display: table;
    margin: 4em auto 0;
    text-align: center;

  }

  .without-border {
    border: none !important;
  }

  .unit {

    position: relative;
    display: inline-block;
    vertical-align: top;
    min-width: 360px;
    text-align: center;
    border-radius: 4px;

    &.thin {

      min-width: 260px;

    }
    
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;

    &.active {
      top: 5px;
      z-index: 1;
      margin-right: -36px;
      margin-left: -36px;
      -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, .6);
      -moz-box-shadow: 0 0 8px rgba(0, 0, 0, .6);
      box-shadow: 0 0 8px rgba(0, 0, 0, .6);

      .price-title h3 {
        font-size: 40px;
      }
    }

  }

  @media screen and (max-width: $screen-sm) {
    .unit {
      margin-bottom: 20px;
      width: 250px;
      margin-left: auto;
      margin-right: auto;
      display: block;

      &.active {
        top: 0;
        margin-right: 0;
        margin-left: 0;
      }

      &.active .price-title h3 {
        font-size: 30px;
      }

      .price-body {
        min-height: 0;
      }
    }
  }
  
  .price-title {

    display: flex;
    flex-direction: column;
    min-height: 145px;
    padding: 20px 20px 15px;
    color: $oa-white;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    -webkit-border-top-left-radius: 4px;
    -moz-border-radius-topleft: 4px;
    -webkit-border-top-right-radius: 4px;
    -moz-border-radius-topright: 4px;

    h3 {

      font-size: 2em;

    }

    small {

      color: $oa-white;

    }

    &.title-only {

      padding-bottom: 82px;

    }

  }

  .price-title h3, .pricing .price-title h3 > p {
    margin: auto;
  }

  .price-body {
    
    min-height: 340px;

    h4 {

      margin: 0;
    
    }

    ul {

      min-height: 0;

      li {

        padding: 15px 20px;
      
      }
    
    }

    .price-body-head {

      min-height: 100px;
      display: flex;
      flex-direction: column;
      justify-content: center;

    }

  }

  .price-foot {
    padding: 20px;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
    -webkit-border-bottom-left-radius: 4px;
    -moz-border-radius-bottomleft: 4px;
    -webkit-border-bottom-right-radius: 4px;
    -moz-border-radius-bottomright: 4px;
    margin: 0 20px;
  }

  .price-underfoot {

    padding: 2em 0;

  }

  .price-primary, .price-success {

    a {

      text-decoration: none;

    }

    .price-body {

      color: $oa-black;

    }

  }

  .price-primary {

    background-color: $oa-white;

    &:hover {

      background-color: darken( #d7f1fa, 2 );

    }

    .price-title {

      background-color: #4fc1e9;

      h2, h3 {

        display: block;
        font-weight: 500;

      }

      .price-subtitle {

        display: block;

      }
    
    }

  }

  .price-primary .price-body li, 
  .pricing .price-primary .price-foot {
    border-top: 1px solid #aae1f4;
  }

  .price-success {

    background-color: #ebf6df;

    &:hover {

      background-color: darken( #ebf6df, 2 );

    }

    .price-title {

      background-color: #a0d468;
    
    }

    .price-body ul, 
    .price-foot {
      border-top: 1px solid #d2ebb7;
    }

  }
    


  .price-warning .price-title {
    background-color: lighten($price-warning, 10);
  }

  .price-warning {
    background-color: lighten($price-warning, 40);
  }

  .price-warning .price-body ul, .pricing .price-warning .price-foot {
    border-top: 1px solid lighten($price-warning, 35);
  }

  .price-danger .price-title {
    background-color: lighten($price-danger, 10);
  }

  .price-danger {
    background-color: lighten($price-danger, 40);
  }

  .price-danger .price-body ul, .pricing .price-danger .price-foot {
    border-top: 1px solid lighten($price-danger, 35);
  }

}