.pricing-subheadline {
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0;
    .subheadline,
    #pricing-toggle {
        margin-bottom: 4%;
    }
}

.page-template-pricing-page {
    .page-title {
        overflow: hidden;
    }
}

.pricing-grid {
    text-align: center;
    margin: 0 -1em;
    padding-left: 15px;
    padding-right: 15px;
    .col,
    [class*="col-"] {
        padding: 0 1rem 1rem;
    }
}

#pricing-toggle {
    display: inline-block;
    position: relative;
    margin-left: 20px;
    background: #ddd;
    @media screen and (max-width: 450px) {
        margin-left: -15px;
        margin-right: -15px;
    }
    #toggle-row {
        display: flex;
        align-items: stretch;
        .toggle-button {
            font-weight: bold;
            font-family: ProximaNova-Black;
            display: inline-block;
            padding: 15px 20px;
            margin-bottom: -2px;
            line-height: 15px;
            font-size: 15px;
            vertical-align: middle;
            margin-top: -3px;
            position: relative;
            cursor: pointer;
            border: 1px solid transparent;
            font-weight: 500;
            -webkit-user-select: none;
            /* Chrome all / Safari all */
            -moz-user-select: none;
            /* Firefox all */
            -ms-user-select: none;
            /* IE 10+ */
            user-select: none;
            /* Likely future */
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            @include transition(color 0.35s ease);
            /*&:first-child {
        margin-right: -10px;
      }
      &:last-child {
        margin-left: -10px;
      }*/
            &.active {
                background-color: white;
                position: relative;
                margin-top: -6px;
                margin-bottom: -5px;
                padding-top: 17px;
                padding-bottom: 17px;
                @include box-shadow(0 4px 14px rgba(0, 0, 0, 0.05));
                border: 3px solid;
                border-radius: 5px;
                &#annual-select span,
                &#two-year-select span {
                    color: $green-pricing;
                }
            }
        }
    }
}

.pricing-box {
    color: $primary-gray-font;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    span {
        display: block;
        &#month,
        &#annual,
        &#year {
            display: inline-block;
            font-size: 62px;
            font-family: ProximaNova-Black;
        }
        &#month,
        &#year {
            display: none;
        }
        &#annual {
            display: inline-block;
        }
    }
    .price-label {
        padding: 20px;
        margin-bottom: 0;
        color: #fff;
        font-weight: bold;
        font-family: ProximaNova-Black;
        background: #333;
        font-size: 36px;
        margin-top: 0;
    }
    .price-content {
        margin-top: -1px;
        border-top: 0;
        padding: 25px;
        min-height: 235px;
        display: flex;
        flex-direction: column;
        @include transition(box-shadow 0.35s ease);
        &.no-price {
            padding: 10px;
            button.button.outline {
                margin-left: 15px;
                margin-right: 15px;
                margin-bottom: 25px;
                margin-top: 0;
                width: auto;
            }
        }
    }
    .price {
        position: relative;
        font-size: 90px;
        font-weight: 500;
        display: inline-block;
        white-space: nowrap;
        .dollar {
            font-size: 36px;
            top: -34px;
            position: relative;
            display: inline;
        }
        .amount {
            display: inline-block;
            font-size: 62px;
            font-family: ProximaNova-Black;
        }
        .per {
            font-size: 26px;
            display: inline-block;
            font-family: ProximaNova-Black;
        }
    }
    .details {
        font-size: 18px;
        line-height: 1.8em;
        color: #333;
        padding: 20px 0;
        margin-bottom: 10px;
        flex-grow: 1;
    }
    .no-price .details {
        font-size: 18px;
        line-height: 20px;
        color: $primary-gray-font;
    }
    .button {
        display: block;
        width: 100%;
        position: relative;
        border-radius: 5px;
        border: 3px #333 solid;
        span {
            display: inline-block;
        }
        &.outline:hover {
            color: #fff;
            background: #333;
            border: 3px solid #333;
            .button-text {
                color: #ffffff;
            }
        }
    }
}

.button.outline:after {
    display: none;
}

.button-text {
    font-size: 18px;
}

.plan-details {
    text-align: left;
    flex-grow: 1;
    p.lead {
        font-weight: 700;
        margin-bottom: 20px;
        padding-bottom: 10px;
        font-size: 24px;
    }
}

.pricing-grid .col {
    max-width: 25%;
    a.pricing-box {
        text-decoration: none;
        border: 3px solid #333;
    }
    @media screen and (max-width: 875px) {
        max-width: 50%;
    }
    @media screen and (max-width: 525px) {
        max-width: 100%;
    }
    @media #{$gl-md} {
        .pricing-grid .col {
            display: flex;
            max-width: none;
            .pricing-box {
                width: 33%;
                margin-right: 5%;
            }
        }
    }
    @media #{$gl-sm} {
        .pricing-grid .col {
            flex-wrap: wrap;
            .pricing-box {
                width: 100%;
                margin-right: auto;
            }
        }
        .pricing-subheadline {
            padding-top: 0;
            .subheadline,
            #pricing-toggle {
                margin-bottom: 1.1em;
            }
            #pricing-toggle {
                margin-left: -999999px;
                padding-left: 999999px;
                margin-right: -999999px;
                padding-right: 999999px;
                #toggle-row {
                    align-items: stretch;
                }
                .toggle-button {
                    width: 33%;
                }
            }
        }
    }
}

.row-image {
    position: absolute;
    left: -5%;
    top: 22%;
}

.pricing-header {
    position: relative;
}

.text-blue {
    color: #217EF7 !important;
}

.logos-container {
    img {
        -webkit-filter: grayscale(100%);
        /* Chrome, Safari, Opera */
        filter: grayscale(100%);
        padding: 20px;
        width: 100%;
    }
}

.container-fluid {
    >.container {
        padding-left: 0;
        padding-right: 0;
    }
}

@media screen and(max-width: 975px) {
    .row-image {
        display: none;
    }
}

.pricing-header {
    margin-bottom: 50px !important;
    h1.pricing-title {
        font-family: ProximaNova-Bold;
        font-size: 62px;
        color: #333333;
        line-height: normal;
        padding: 0;
        margin: 0;
        margin-top: 45px;
    }
    .pricing-subheadline {
        text-align: center;
    }
}

.plan-details {
  >.row{
    @media screen and (max-width: 640px){
     margin-left: 0;
     margin-right: 0;
    }
  }
  .cta-column{
    p.cta-title{
      font-size: 18px;
      font-family: ProximaNova-Bold;
      margin: 60px 0 11px;
      text-align: center;
    }
  }
    .plans {
        padding: 0;
    }
    h2.plan-title {
        line-height: normal;
        cursor: pointer;
        text-align: center;
        font-family: ProximaNova-Bold;
        font-size: 20px;
        padding: 15px;
        margin-bottom: 0;
        background-color: #fff;
        color: #333;
        &.active {
            background-color: #333;
            color: #fff;
        }
    }
    #drift-businesses,
    #drift-enterprise {
        &.hide {
            display: none;
        }
        border: 3px solid #333;
        .details {
            text-align: center;
            margin: 50px auto;
            @media screen and (max-width: 640px){
              width: 100%;
            }
            &:first-of-type:not(:last-of-type) {
                border-right: 3px solid #333;
                @media screen and (max-width: 640px){
                  border: none;
                  margin-bottom: 0;
                  padding-bottom: 50px;
                  border-bottom: 3px solid;
                }
            }
        }
    }
    h3.details-title {
        font-family: ProximaNova-Bold;
        text-transform: uppercase;
        line-height: normal;
        font-size: 26px;
        margin-top: 15px;
    }
    .details-price {
        p.starts-at {
            text-transform: uppercase;
            font-size: 20px;
            margin-bottom: 10px;
            text-align: center;
        }
        .price {
            margin-bottom: 0;
            span {
                font-family: ProximaNova-Bold;
                font-size: 56px;
                line-height: normal;
            }
        }
        &+.details-button {
            margin-top: 42px;
        }
    }
    .details-subheading {
        margin-bottom: 15px;
    }
    .details-button {
        margin-bottom: 25px;
        a.drift-button {
            cursor: pointer;
            padding: 25px 35px 20px;
            display: inline-block;
            text-transform: uppercase;
            font-family: ProximaNova-Regular;
            font-weight: 600;
            line-height: 0;
            border: 3px solid #333;
            border-radius: 5px;
            @media screen and (max-width: 425px){
              width: 100%;
              padding: 23px 0 20px;
            }
            &:hover,
            &:focus {
                text-decoration: none;
                background-color: #333;
                opacity: 1;
            }
        }
    }
    .details-content {
      &+.details-button{
        margin-top: 30px;
        margin-bottom: 0;
      }
        text-align: center;
        p {
            font-size: 17px;
            margin-bottom: 0;
        }
        ul {
            display: inline-block;
            text-align: left;
            margin-bottom: 0;
            li {
                padding-left: 0;
                margin-bottom: 5px;
                &.learn-more-list {
                    list-style: none;
                    cursor: pointer;
                    color: #0176FF;
                    display: inline-block;
                }
            }
        }
        span.close-learn-more{
            position: fixed;
            right: 0;
            font-size: 34px;
            top: -38px;
            cursor: pointer;
            @media screen and (max-width: 640px){
                right: 15px;
                top: 10px;
                z-index: 999;
            }
        }
        .learn-more-container {
            display: none;
            position: fixed;
            margin: 0 auto;
            padding: 0;
            top: 0;
            max-width: none;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 999;
            background-color: rgba(256, 256, 256, 0.9);
            text-align: center;
            padding: 10% 30%;
            @media screen and (max-width: 640px){
              padding: 18% 5%;
              padding-bottom: 0;
            }
            padding-bottom: 0;
            &.display {
                display: block;
            }
            .learn-more-column {
                border: 3px solid #333;
                padding: 0;
                background-color: #fff;
                @media screen and (max-width: 640px){
                    overflow: auto;
                    height: calc(100vh - 54px);
                }
                .details-button{
                    @media screen and (max-width: 640px){
                        margin-right: 15px;
                        margin-left: 15px;
                    }
                }
            }
            
            ul.learn-more-advatages{
                margin-bottom: 40px;
                @media screen and (max-width: 640px){
                    margin-right: 30px;
                    margin-left: 30px;
                }
            }
            .learn-more-price{
                font-size: 54px;
                font-family: ProximaNova-Bold;
                line-height: normal;
                padding-bottom: 25px;
                margin: 25px 30px;
                border-bottom: 3px solid;
                .month{
                  font-family: ProximaNova-Bold;
                }
            }
            .learn-more-title{
                background-color: #333;
                color: #fff;
                text-transform: uppercase;
                font-size: 26px;
                padding: 10px;
                font-family: ProximaNova-Bold;
            }
        }
    }
    .details-upgrades-availables{
      text-transform: uppercase;
      font-family: ProximaNova-Bold;
      color: #999;
      font-size: 14px;
      margin-top: 20px;
    }
}
