/* -------------------------------- 

Primary style

-------------------------------- */
*, *::after, *::before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

html * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-size: 1.6rem;
    font-family: "Open Sans", sans-serif;
    color: #173d50;
}

a {
    color: #e97d68;
    text-decoration: none;
}

/* -------------------------------- 

Main Components 

-------------------------------- */
.cd-header {
    height: 100px;
    line-height: 170px;
    position: relative;
}

.cd-header h1 {
    text-align: center;
    color: #FFFFFF;
    font-size: 2.2rem;
}

.cd-pricing-container {
    width: 90%;
    max-width: 1170px;
    margin: 4em auto;
}

.cd-pricing-container {
    margin: 0;
}

.cd-pricing-container.cd-full-width {
    width: 100%;
    max-width: none;
}

.cd-pricing-list {
    margin: 2em 0 0;
}

.cd-pricing-list > li {
    position: relative;
    margin-bottom: 0;
    background-color: #FFFFFF;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Firefox bug - 3D CSS transform, jagged edges */
    outline: 1px solid transparent;
}

.cd-pricing-list > li::after {
    /* subtle gradient layer on the right - to indicate it's possible to scroll */
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 50px;
    pointer-events: none;
    background: -webkit-linear-gradient(right, #FFFFFF, rgba(255, 255, 255, 0));
    background: linear-gradient(to left, #FFFFFF, rgba(255, 255, 255, 0));
}

.cd-pricing-list > li.is-ended::after {
    /* class added in jQuery - remove the gradient layer when it's no longer possible to scroll */
    display: none;
}

.cd-pricing-list {
    margin: 0;
}

.cd-pricing-list:after {
    content: "";
    display: table;
    clear: both;
}

.cd-pricing-list > li {
    width: 25%;
    float: left;
}

.cd-pricing-list > li::after {
    /* hide gradient layer */
    display: none;
}

.cd-pricing-list > li.cd-popular {
    box-shadow: inset 0 0 0 3px #e97d68;
}

.cd-pricing-list > li.cd-popular::before {
    /* hide table separator for .cd-popular table */
    display: none;
}

.cd-pricing-list > li.cd-popular + li::before {
    /* hide table separator for tables following .cd-popular table */
    display: none;
}

.cd-has-margins .cd-pricing-list > li, .cd-has-margins .cd-pricing-list > li.cd-popular {
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.cd-secondary-theme .cd-pricing-list > li:first-child {
    margin-left: 25%;
}

.cd-secondary-theme .cd-pricing-list > li {
    background: rgba(58, 160, 209, 0.5);
    background: -webkit-linear-gradient(bottom, rgba(58, 160, 209, 0.5), rgba(58, 210, 209, 0.5));
    background: linear-gradient(to top, rgba(58, 160, 209, 0.5), rgba(58, 210, 209, 0.5));
}

.cd-secondary-theme .cd-pricing-list > li:hover {
    background: rgba(58, 160, 209, 0.7);
    background: -webkit-linear-gradient(bottom, rgba(58, 160, 209, 0.5), rgba(58, 210, 209, 0.7));
    background: linear-gradient(to top, rgba(58, 160, 209, 0.5), rgba(58, 210, 209, 0.7));
}

.cd-secondary-theme .cd-pricing-list > li.cd-popular {
    background: rgba(223, 125, 104, 0.5);
    background: -webkit-linear-gradient(bottom, rgba(223, 125, 104, 0.5), rgba(223, 155, 104, 0.5));
    background: linear-gradient(to top, rgba(223, 125, 104, 0.5), rgba(223, 155, 104, 0.5));
    box-shadow: none;
}

.cd-secondary-theme .cd-pricing-list > li.cd-popular:hover {
    background: rgba(223, 125, 104, 0.7);
    background: -webkit-linear-gradient(bottom, rgba(223, 125, 104, 0.5), rgba(223, 155, 104, 0.7));
    background: linear-gradient(to top, rgba(223, 125, 104, 0.5), rgba(223, 155, 104, 0.7));
    box-shadow: none;
}

.cd-pricing-list:nth-of-type(1)::before {
    /* hide table separator for the first table */
    display: none;
}

.cd-has-margins .cd-pricing-list > li {
    width: 32.3333333333%;
    float: left;
    margin-right: 1.5%;
    border-radius: 4px 4px 6px 6px;
}

.cd-has-margins .cd-pricing-list > li:last-of-type {
    margin-right: 0;
}

.cd-has-margins .cd-pricing-list > li::before {
    display: none;
}

    .cd-popular .cd-pricing-wrapper > li::before {
        /* hide table separator for .cd-popular table */
        display: none;
    }

.cd-pricing-header {
    position: relative;
    z-index: 1;
    height: 80px;
    padding: 1em;
    pointer-events: none;
    background-color: #3aa0d1;
    color: #FFFFFF;
}

.cd-pricing-header h2 {
    margin-bottom: 3px;
    font-weight: 700;
    text-transform: uppercase;
}

.cd-popular .cd-pricing-header {
    background-color: #e97d68;
}

    .cd-pricing-header {
        height: auto;
        padding: 1.9em 0.9em 1.6em;
        pointer-events: auto;
        text-align: center;
        color: #173d50;
        background-color: transparent;
    }

    .cd-popular .cd-pricing-header {
        color: #e97d68;
        background-color: transparent;
    }

    .cd-secondary-theme .cd-pricing-header {
        color: #FFFFFF;
    }

    .cd-pricing-header h2 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }


.cd-currency, .cd-value {
    font-size: 3rem;
    font-weight: 300;
}

.cd-duration {
    font-weight: 700;
    font-size: 1.3rem;
    color: #8dc8e4;
    text-transform: uppercase;
}

.cd-popular .cd-duration {
    color: #f3b6ab;
}

.cd-duration::before {
    content: '/';
    margin-right: 2px;
}

    .cd-value {
        font-size: 7rem;
        font-weight: 300;
    }

    .cd-currency {
        display: inline-block;
        margin-top: 10px;
        vertical-align: top;
        font-size: 2rem;
        font-weight: 700;
    }

    .cd-duration {
        font-size: 1.4rem;
    }


.cd-pricing-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    .cd-pricing-body {
        overflow-x: visible;
    }


.cd-pricing-features {
    width: 600px;
}

.cd-pricing-features:after {
    content: "";
    display: table;
    clear: both;
}

.cd-pricing-features li {
    width: 100px;
    float: left;
    padding: 1.6em 1em;
    font-size: 2.4rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cd-pricing-features em {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

    .cd-pricing-features {
        width: auto;
    }

    .cd-pricing-features li {
        float: none;
        width: auto;
        padding: 5px;
    }

    .cd-popular .cd-pricing-features li {
        margin: 0 3px;
    }

    .cd-pricing-features li:nth-of-type(2n+1) {
        background-color: rgba(23, 61, 80, 0.06);
    }

    .cd-pricing-features em {
        display: inline-block;
        margin-bottom: 0;
    }

    .cd-has-margins .cd-popular .cd-pricing-features li, .cd-secondary-theme .cd-popular .cd-pricing-features li {
        margin: 0;
    }

    .cd-secondary-theme .cd-pricing-features li {
        color: #FFFFFF;
    }

    .cd-secondary-theme .cd-pricing-features li:nth-of-type(2n+1) {
        background-color: transparent;
    }


.cd-pricing-footer {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    /* on mobile it covers the .cd-pricing-header */
    height: 80px;
    width: 100%;
}

.cd-pricing-footer::after {
    /* right arrow visible on mobile */
    content: '';
    position: absolute;
    right: 1em;
    top: 50%;
    bottom: auto;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background: url(../img/cd-icon-small-arrow.svg);
}

    .cd-pricing-footer {
        position: relative;
        height: auto;
        padding: 1.8em 0;
        text-align: center;
    }

    .cd-pricing-footer::after {
        /* hide arrow */
        display: none;
    }

    .cd-has-margins .cd-pricing-footer {
        padding-bottom: 0;
    }


.cd-select {
    position: relative;
    z-index: 1;
    display: block;
    height: 100%;
    /* hide button text on mobile */
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    color: transparent;
}

    .cd-select {
        position: static;
        display: inline-block;
        height: auto;
        padding: 1.3em 3em;
        color: #FFFFFF;
        border-radius: 2px;
        background-color: #0c1f28;
        font-size: 1.4rem;
        text-indent: 0;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .no-touch .cd-select:hover {
        background-color: #112e3c;
    }

    .cd-popular .cd-select {
        background-color: #e97d68;
    }

    .no-touch .cd-popular .cd-select:hover {
        background-color: #ec907e;
    }

    .cd-secondary-theme .cd-popular .cd-select {
        background-color: #0c1f28;
    }

    .no-touch .cd-secondary-theme .cd-popular .cd-select:hover {
        background-color: #112e3c;
    }

    .cd-has-margins .cd-select {
        display: block;
        padding: 1.7em 0;
        border-radius: 0 0 4px 4px;
    }

.offers .btn {
    display: block;
    margin: 20px auto;
}

@media screen and (max-width: 1440px) {
    .cd-value {
        font-size: 5rem;
    }

    .cd-pricing-header {
        padding-bottom: 0.4rem;
    }

    .cd-pricing-features li {
        font-size: 1.4rem;
    }

    .cd-select {
        padding: 0.9em 2em;
    }

    .cd-pricing-footer {
        padding-top: 1rem;
    }

    .cd-pricing-list > li {
        width: 33.3333333333%;
    }

    .cd-secondary-theme .cd-pricing-list > li:first-child {
        margin-left: 16.6666666667%;
    }
}

@media screen and (max-height: 768px){
    .cd-value {
        font-size: 5rem;
    }

    .cd-pricing-header {
        padding-bottom: 0.4rem;
    }

    .cd-pricing-features li {
        font-size: 1.4rem;
    }

    .cd-select {
        padding: 0.9em 2em;
    }

    .cd-pricing-footer {
        padding-top: 1rem;
    }

    .cd-pricing-list > li {
        width: 33.3333333333%;
    }

    .cd-secondary-theme .cd-pricing-list > li:first-child {
        margin-left: 16.6666666667%;
    }
}

.dialog__content {
    color: black;
    max-width: none !important;
}

.out-offer-line:before {
    content: " ";
    position: absolute;
    border-bottom: 3px dotted;
    left: 0;
    right: 0;
    bottom: 3px;
}

.out-offer-line {
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.out-offer-line .name {
    float: left;
    background: #ffffff;
    position: relative;
    padding: 0 10px;
}

.out-offer-line .price {
    float: right;
    background: #ffffff;
    position: relative;
    padding: 0 10px;
}

#out-of-offer button {
    margin-top: 20px;
}

@media only screen and (max-width: 767px) {
    .cd-secondary-theme .cd-pricing-list > li:first-child {
        margin: 0;
    }
    .cd-pricing-list > li {
        width: 100%;
    }
}