/* Pricing Tables */
.pricing-table {
    margin: 10px 0;
    text-align: center;

    ul {
        list-style: none;
        margin: 20px 0 0 0;
        padding: 0;
    }
    li {
        padding: 10px 0;
    }
    h3 {
        font-size: 1.3em;
        font-weight: normal;
        margin: -20px -20px 50px -20px;
        padding: 20px;
        letter-spacing: normal;
        strong {
            font-weight: inherit;
        }
        .desc {
            font-size: 0.7em;
            line-height: 24px;
            margin-bottom: 0;
            padding-bottom: 0;
            font-style: normal;
            text-transform: none;
            display: block;
        }
    }
    .plan-price {
        border-radius: 100px;
        display: block;
        height: 100px;
        margin: 20px auto -65px;
        width: 100px;
        display: -ms-flexbox; display: flex;
        -ms-flex-pack: center;
        justify-content: center;
        -ms-flex-align: center;
        align-items: center;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .price {
        font: bold 25px / 25px Georgia, Serif;
        line-height: 1;
        display: -ms-flexbox; display: flex;
        -ms-flex-pack: center;
        justify-content: center;
    }
    .most-popular {
        box-shadow: 11px 0 10px -10px rgba(0, 0, 0, 0.1), -11px 0 10px -10px rgba(0, 0, 0, 0.1);
        padding: 30px 20px;
        top: -10px;
        z-index: 2;
        @media #{$screen-medium} {
            top: 0;
        }
        h3 {
            padding-top: 30px;
        }
    }
    .plan-ribbon-wrapper {
        height: 88px;
        overflow: hidden;
        position: absolute;
        #{$right}: -3px;
        top: -5px;
        width: 85px;
    }

    .plan-ribbon {
        @include if-ltr {
            transform: rotate(45deg);
        }
        @include if-rtl {
            transform: rotate(-45deg);
        }
        background-image: linear-gradient(top, #bfdc7a, #8ebf45);
        box-shadow: 0px 0px 3px rgba(0, 0, 0, .3);
        color: #333;
        font-size: 14px;
        #{$left}: -5px;
        padding: 7px 0;
        position: relative;
        text-align: center;
        text-shadow: rgba(255, 255, 255, 0.5) 0px 1px 0px;
        top: 15px;
        width: 120px;
        &:before {
            #{$left}: 0;
            border-#{$left}: 3px solid transparent;
            border-#{$right}: 3px solid transparent;
            bottom: -3px;
            content: "";
            position: absolute;
        }
        &:after {
            border-#{$left}: 3px solid transparent;
            border-#{$right}: 3px solid transparent;
            bottom: -3px;
            content: "";
            position: absolute;
            #{$right}: 0;
        }
    }
    [class*="col-lg-"] {
        padding-#{$left}: 0;
        padding-#{$right}: 0;
    }
    .plan {
        margin-bottom: 35px;
        margin-#{$right}: 0;
        padding: 20px;
        position: relative;
    }
    .btn {
        margin-top: 5px;
    }
    .price-unit {
        font-size: 50%;
        line-height: 1.4;
    }
    .price-label {
        display: block;
        text-transform: uppercase;
        color: #777;
        font-size: 0.7rem;
        margin-bottom: 0;
    }
}

.pricing-table-sm {
    h3 {
        .desc {
            font-size: 0.7em;
        }
    }
    .plan-price {
        height: 70px;
        margin: 10px auto -65px;
        width: 70px;
    }
    .price {
        font: bold 19px/19px Georgia,serif;
        line-height: 1;
    }
    .most-popular {
        padding-bottom: 30px;
    }
}

.pricing-table-flat {
    .plan {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 15px;
        margin: -1px;
        h3 {
            padding-left: 0;
            padding-right: 0;
            margin: -20px 0 0;
            padding-top: 30px;
            text-shadow: 0 1px #555;
        }
        ul {
            margin-top: 0;
            margin-bottom: -15px;
            li {
                padding: 8px 0;
            }
        }
        &.most-popular {
            ul {
                li {
                    padding: 10px 0;
                }
            }
        }
    }
}
.pricing-table.pricing-table-flat {
    .plan-price {
        border-radius: 0;
        border: 0;
        box-shadow: none;
        width: 100%;
        font-size: 1.5em;
        height: auto;
        line-height: 38px;
        margin: 0;
    }

    .btn-top {
        margin-top: 13px;
        margin-bottom: 13px;
    }
    .btn-bottom {
        margin-top: 30px;
    }
}

.pricing-table {
    &.spaced {
        [class*="col-lg-"] {
            padding-#{$left}: 2px;
            padding-#{$right}: 2px;
        }
    }

    &.no-borders {
        .plan {
            border: 0 !important;
        }
    }
}

.pricing-table-classic {
    .plan {
        padding: 0 0 2.5rem 0;
        margin: -1px;
        h3 {
            margin: 0;
            padding: 0;
            line-height: 1;
            font-size: 0.8rem;
            strong {
                display: block;
                padding: 1.5rem 1rem;
                background: #fff;
                margin: -1px -1px 0;
            }
            .desc {
                display: none;
            }
        }
        ul {
            margin-top: 0;
            padding: 0.8rem 0.8rem 1.4rem;
            font-size: .9em;
            li {
                padding: 8px 0;
                border-top: none;
                border-bottom: 1px solid #ededed;
                &:last-child {
                    border-bottom: none;
                }
            }
        }
        &.most-popular {
            ul {
                font-size: .8rem;
                li {
                    padding: 10px 0;
                }
            }
        }
    }
    .most-popular {
        box-shadow: 0px 0px 40px rgba(200, 200, 200, 0.3);
        transform: scale(1.15);
        top: auto;
        @media #{$screen-medium} {
            transform: none;
        }
    }
    .plan-price {
        border-radius: 0;
        width: 100%;
        margin: 0;
        padding: 2rem 0.8rem;
        height: auto;
        line-height: 1;
    }
    .price {
        font-size: 2.7rem;
        font-weight: 600;
        font-family: inherit;
    }

    &.pricing-table-sm .plan {
        h3 {
            strong {
                padding: 0.95rem 1rem;
            }
        }
    }
}
.pricing-table.pricing-table-classic {
    .plan {
        border-color: #ededed;
        border-radius: 0;
        text-shadow: none;
        h3 {
            background: none;
        }
    }
    .most-popular h3 {
        text-shadow: none;
    }
    .plan-price {
        box-shadow: none;
        background: #f7f7f7;
        border: 0;
    }
}

/* Responsive */
@media #{$screen-medium} {

    /* Pricing Tables */
    .pricing-table {
        margin-#{$left}: 0px;
        .plan {
            margin-#{$right}: 0;
        }
    }
}