/* ************************************************** */

/* GLOBAL */

/* ************************************************** */

h1,
h2,
h3 {
    margin: 0;
    font-weight: normal;
}

p {
    margin: 0;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

svg {
    margin: 0 auto;
}

b {
    display: block;
    font-weight: normal;
}

i {
    font-style: normal;
}

a,
button {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    -o-transition: color .1s linear;
    -moz-transition: color .1s linear;
    -webkit-transition: color .1s linear;
    transition: color .1s linear;
}

/* Adhoc css layout, rather than using Foundation */
.row::before,
.row::after {
    display: table;
    content: " ";
    clear: both;
}

.one,
.one-third,
.two-thirds,
.one-fourth,
.half {
    width: 100%;
}

/* END Adhoc css layout */
.text-capitalize {
    text-transform: capitalize;
}

.wrapper.plans {
    height: 500px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    -webkit-clip-path: inset(100%);
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.unbutton {
    margin: 0;
    padding: 0;
    color: inherit;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0);
    -webkit-box-shadow: none;
    box-shadow: none;
    text-shadow: none;
    outline: 0;
    border: 0;
}

.list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pn-boilerplate__button {
    min-width: 224px;
    padding: 13px 18px 11px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.8rem;
    line-height: 24px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 20px;
}
.pn-boilerplate__button::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 9px;
    margin-left: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    -webkit-transition: all 0.2s linear;
    transition: all 0.2s linear;
    -webkit-transform: translateX(-30px);
    transform: translateX(-30px);
}
.pn-boilerplate__button:hover::after,
.pn-boilerplate__button:focus::after {
    width: 12px;
    margin-left: 13px;
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

.button {
    display: inline-block;
    vertical-align: middle;
    margin: 20px 0;
    padding: .7rem 1.5rem .7rem 1.5rem;
    -webkit-appearance: none;
    border: 1px solid transparent;
    border-radius: 5px;
    transition: background-color .25s ease-out, color .25s ease-out;
    font-size: .9rem;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
} 

.status {
    width: 200px;
    height: 200px;
    position: absolute;
    left: 50%;
    top: 50%;
    background-image: url("https://cdn-1.motorsport.com/static/custom/piano/slick/ajax-loader.gif");
    background-repeat: no-repeat;
    background-position: center;
    margin: -100px 0 0 -100px;
}

.pn-boilerplate__close {
    width: 59px;
    height: 100%;
    border-left: 1px solid rgba(50, 50, 50, 0.08);
    cursor: pointer;
}

.pn-boilerplate__close-icon {
    display: inline-block;
    vertical-align: middle;
    -webkit-transition: fill-opacity 0.1s linear;
    transition: fill-opacity 0.1s linear;
}

.pn-boilerplate__close:hover .pn-boilerplate__close-icon,
.pn-boilerplate__close:focus .pn-boilerplate__close-icon {
    fill-opacity: 0.8;
}



/* ************************************************** */

/* OFFER SPECIFICS */

/* ************************************************** */



.pn-boilerplate {
    width: 100%;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0.01em;
    color: rgba(50, 50, 50, 0.8);
    -webkit-font-smoothing: antialiased;
    text-align: center;
    background-color: transparent;
}

.pn-boilerplate__header {
    position: relative;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    height: 60px;
    border-bottom: 1px solid rgba(50, 50, 50, 0.08);
    z-index: 100;
}

#checkout-container .btn.prime {
    color: #ffffff;
    width: 20%;
    margin: auto auto;
    border-radius: 20px;
    background: #3777bc;
    border-color: #3777bc;
}

.pn-offer-grid__wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-height: 100%;
    padding: 40px 24px 40px;
    -webkit-box-shadow: 0 1px 6px rgba(50, 50, 50, 0.1);
    box-shadow: 0 1px 6px rgba(50, 50, 50, 0.1);
    border-radius: 20px;
}

.pn-offer-grid__body {
    padding: 0;
}

.pn-offer-grid__pic {
    margin: 0 auto 42px;
}

.pn-offer-grid__icon {
    margin: 0 auto;
}

.pn-offer-grid__list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: 49px;
    margin-right: -24px;
    margin: 49px -12px 0;
}

.pn-offer-grid__list::after {
    content: "";
    display: block;
    width: 50%;
    height: 0;
}

.pn-offer-grid__list--single-child {
    justify-content: center;
}

.pn-offer-grid__list--single-child::after {
    display: none;
}

.pn-offer-grid__item {
    width: 50%;
    margin-bottom: 24px;
    padding: 0 12px;
    position: relative;
    text-align: center;
}

.pn-offer-grid__duration {
    position: relative;
    margin-bottom: 30px;
}

.pn-offer-grid__period {
    position: absolute;
    top: 20px;
    right: 0;
    left: 0;
    margin: auto;
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
    z-index: 2;
}

.pn-offer-grid__period-number {
    display: block;
    margin-bottom: 4px;
    font-size: 24px;
    line-height: 28px;
    letter-spacing: -0.14em;
}

.pn-offer-grid__period-name {
    display: block;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 10px;
    line-height: 14px;
    letter-spacing: 0.14em;
}

.pn-offer-grid__subscribe {
    width: 10%;
    margin-top: auto;
    margin: auto auto;
}

.btn.prime {
    color: #ffffff;
    width: 20%;
    margin: auto auto;
    border-radius: 20px;
    background: #3777bc;
    border-color: #3777bc;
}

.pn-boilerplate__header-controls {
    padding-left: 20px;
    height: 18px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    max-width: 90px;
}

.pn-boilerplate__language-selector .language-label {
    height: auto;
    font-size: 14px;
    line-height: 17px;
    color: #323232;
}

.pn-boilerplate__account+.pn-boilerplate__close {
    margin-left: 0;
}

.pn-boilerplate__account {
    max-width: 250px;
    display: inline-block;
    margin-left: auto;
}

.pn-boilerplate-account__action {
    max-width: 60px;
}

.pn-boilerplate-account__btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 60px;
    height: 60px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(50, 50, 50, 0.08);
    outline: none;
}

.pn-boilerplate-account__btn svg {
    -webkit-transition: fill-opacity 0.1s linear;
    transition: fill-opacity 0.1s linear;
}

.pn-boilerplate-account__btn:hover svg,
.pn-boilerplate-account__btn:focus svg {
    fill-opacity: 0.8;
}

.pn-boilerplate-account__btn.logout {
    padding-right: 5px;
}

.height-holding-div {
    min-height: 40px;
    padding-top: 6px;
}

#newsplug {
    display: table;
    margin: 0 -10px;
    font-size: 16px;
    line-height: 22px;
    color: #fafbfc;
    background-size: cover;
    background-position: left center;
    background-image: url("https://cdn-1.motorsport.com/static/custom/piano/slick/default.jpg");
}

#newspluginner {
    padding: 40px;
    padding-top: 25px;
    height: 100%;
}

#newsplug.feature {
    background-image: none;
    margin-top: 40px;
    padding-bottom: 0;
    z-index: 1;
    position: relative;
}

.newsplug-top-container a {
    text-decoration: none;
}

#newsplug .cta .newsplug-bottom-container {
    padding-top: 0;
}

#newsplug .cta {
    font-size: 13px;
    line-height: 17px;
    padding-bottom: 20px;
    padding-right: 0;
}

#newsplug .cta p {
    line-height: 17px;
    margin-top: 6px;
}

.newsplug-middle-container-right {
    padding: 0 40px;
    padding-left: 0;
}

.ribbon-wrapper {
    width: 120px;
    height: 120px;
    overflow: hidden;
    position: absolute;
    top: 0;
    right: 12px;
}
.ribbon {
    text-align: center;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    position: relative;
    padding: 7px 0;
    left: -5px;
    top: 26px;
    width: 163px;
    font-size: 14px;
    letter-spacing: .5px;
    font-weight: 700;
    text-transform: uppercase;
    -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, .1);
    -moz-box-shadow: 0 0 3px rgba(0, 0, 0, .1);
    box-shadow: 0 0 3px rgba(0, 0, 0, .1);
}



/* ************************************************** */

/* GLOBAL QUERIES */

/* ************************************************** */



@media only screen and (min-width: 520px) {
    .one {
        width: 100%;
    }

    .half {
        width: calc(100% / 2);
    }

    .one-third {
        width: calc(100% / 3);
    }

    .one-fourth {
        width: calc(100% / 4);
    }

    .two-thirds {
        width: calc(100% / 3 * 2);
    }

    .column {
        float: left;
    }

    .newsplug-middle-container-right {
        padding: 45px 40px;
    }
}

@media (max-width: 480px) {
    .pn-boilerplate__button {
        width: 100%;
    }
}

@media (max-width: 564px) {
    .pn-boilerplate {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .pn-offer-grid__item {
        width: 100%;
    }

    .pn-offer-grid__subscribe {
        max-width: 340px;
        margin: auto auto 0;
    }
}

@media (min-width: 760px) {
    .wrapper.plans {
        margin-top: -140px;
    }
}

@media screen and (min-width:960px) {
    .ribbon-wrapper {
        width: 180px;
        height: 180px;
    }

    .ribbon {
        text-align: center;
        left: 24px;
        top: 33px;
        width: 200px;
        font-size: 14px;
    }
}

@media screen and (max-width:769px) and (min-width:320px) {
   .pn-offer-grid__list {
        margin: 0;
        margin-top: 50px;
        width: 100%;
    } 
    .pn-offer-grid__item {
        width: 100%;
    }
}