/* Global */

h1, .as-h1 {
    font-weight: var(--font-weight-bold);
}

h1.page-title {
    font-size: var(--text-h2-size);
}

a.store-switcher {
    color: #000;
}

div#switcher-language-nav {
    display: none;
}

ul {
    padding-left: var(--spacing__vertical--2);
}

.page-bottom .content {
    display: flex;
    flex-direction: column;
}

.product-info-main .box-tocart .field.qty, .product-options-bottom .box-tocart .field.qty {
    /*display: none;*/
}

.box-shadow {
    -webkit-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
    padding: 2rem 1rem 1rem;
}

button.action.tocart.primary {
    padding: 2rem 3rem;
}

a.action.tocompare {
    display: none !important;
}

/* CMS pages */

.cms-page-view a, 
.cms-page-view .alink, 
.cms-page-view a:visited, 
.cms-page-view .alink:visited, 
.cms-page-view a:active, 
.cms-page-view .alink:active {
    text-decoration: underline;
}

/* Header */

span.action.nav-toggle {
    display: none;
}

.header.content .logo {
    padding-left: 0;
}

.page-header {
    -webkit-box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.15);
}

.top-ribbon-wrapper {
    background: unset;
}

.top-ribbon-content {
    padding: 1rem 2rem 0;
}

.header.content {
    padding: 2rem;
}

.top-ribbon-content .right {
    display: block;
}

/* Top ribbon */

.top-ribbon-content {
    max-width: calc(var(--width-content-max) - 4rem);
    gap: 0rem;
    padding: 0;
}

.top-ribbon-content .right {
    display: block;
    text-align: right;
    width: 100%;
}

/*Home page */

.hp-section {
    margin-top: 4rem;
}

.hp-section h2 {
    font-weight: var(--font-weight-normal);
    position: relative;
    margin-right: 2rem;
}

.hp-section h2 span {
    background: #fff;
    z-index: 999;
    position: relative;
    padding-right: 2rem;
    color: var(--color-branding-secondary);
}

.hp-section h2:after {
    content: '';
    width: 100%;
    border-top: 1px solid var(--color-mid-gray);
    display: inline;
    position: absolute;
    top: 50%;
    left: 0;
}




@media only screen and (min-width: 768px) {

    .category-lanes .card-set .card {
        width: 30%;
    }

}

@media only screen and (min-width: 1024px) {

    .category-lanes .card-set .card {
        width: 18%;
    }

    .page-products .products-grid .product-item, 
    .page-layout-1column .products-grid .product-item, 
    .page-layout-3columns .products-grid .product-item, 
    .page-products.page-layout-1column .products-grid .product-item, 
    .page-products.page-layout-3columns .products-grid .product-item {
        width: calc((100% - 8rem) / 3);
    }

}


/* Top banner */

.welcome-index-index header.page-header {
    border: unset;
    margin-bottom: 0;
    -webkit-box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.15);
}

.gate-wrapper, .page-wrapper > .top-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    color: #000;
    max-width: var(--width-content-max);
}

.card.hp-top-banner.inline-img {
    padding: 2rem 0;
    background: unset;
}

.hp-top-banner h1 {
    font-weight: var(--font-weight-bold);
    color: var(--color-branding-primary);
    margin-bottom: .5em;
}

.page-wrapper > .top-container {
    margin-top: -2rem;
}

.gate-wrapper > .left {
    padding-top: 0;
}

.card.hp-top-banner.inline-img {
    padding: 0;
    background: unset;
    width: 100%;
    max-width: fit-content;
}

p.eyebrow {
    font-weight: var(--font-weight-bold);
    margin-bottom: 0;
}

.catalog-category-view .page-wrapper > .top-container {
    max-width: 100%;
}

@media only screen and (min-width: 768px) {

    .catalog-category-view .card.hp-top-banner {
        margin: 2rem auto;
        max-width: var(--width-content-max);
    }    

    .card.hp-top-banner {
        margin: 0 auto;
        width: 124rem;
        max-width: var(--width-content-max-calc);
    }

    .card.hp-top-banner .copy {
        padding: 3rem;
    }


}

/* Category top banners */

.card.category-top-banner {
    background: unset;
    margin-bottom: 2rem;
}

.card.category-top-banner h1 {
    color: var(--color-branding-primary);
    margin-bottom: 2rem;
}

@media only screen and (min-width: 768px) {

    .catalog-category-view .trust-signal-wrapper {
        background: #fff;
        -webkit-box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.3);
        -moz-box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.3);
        box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.15);
    }

}


/* Trust signals */

.trust-signal-inner {
    border-top: unset;
    border-bottom: unset;
}


/* Ribbon */

a.ribbon {
    width: 124rem;
    max-width: calc(100% - 4rem);
    box-sizing: border-box;
}

@media only screen and (min-width: 1024px) {

}

/* Footer */

.footer-content-wrapper {
    background: #fff;
    padding: 4rem 0;
}

.card.inline-img.full-width-ad {
    width: var(--width-content-max-calc);
    max-width: var(--width-content-max);
}

.page-bottom .full-width-ad .copy {
    color: var(--color-text);
}

.page-wrapper > .page-bottom .full-width-ad a.cta.alt {;
    border-radius: 2rem;
    color: var(--color-branding-secondary);
}

.page-wrapper > .page-bottom .full-width-ad a.cta.alt:hover {
    color: #fff;
}

.footer .copyright, .footer .bugs {
    display: block;
    margin: 0px 0 2rem;
}

.footer.content {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
}

.footer-links a, .footer-links a:visited, .footer-links  a:active {
    color: var(--color-footer-link);
}

/* Category page */

.products .product-items .product-item {
    text-align: center;
}

.sale-price-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Product page */

.long-description-wrapper {
    display: flex;
    flex-direction: column;
}

button#product-addtocart-button {
    margin-top: 5px;
}

.product-info-main ul {
    margin-left: 1.5rem;
}

.long-description-item a {
    word-wrap: break-word;
}

@media only screen and (min-width: 1024px) {

    .long-description-wrapper {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .long-description-item {
        width: calc((100% - 16rem) /3);
        background: var(--color-product-page-description-background);
        padding: 2rem;
    }

}

/* Success page */

.checkout-onepage-success .card {
    background: unset;
}

.checkout-onepage-success .top-container {
    background: unset;
    margin-top: 0;
    margin-bottom: 2rem;
    padding-top: 2rem;
    color: #000;
    border-bottom: 1px solid var(--color-mid-gray);
}

.checkout-onepage-success .card {
    background: unset;
    border-bottom: 1px solid var(--color-light-gray);
    padding-bottom: 2rem;
}

.checkout-onepage-success a.action.primary.continue {
    display: none;
}

.checkout-onepage-success .copy {
    text-align: center;
}

/* Gate */

.welcome-index-index main#maincontent {
    max-width: 100%;
    padding: 0;
}

.welcome-index-index .column.main {
    padding-bottom: 0;
}

.gate-wrapper > .right {
    display: flex;
    flex-direction: column;
}

.gate .card .copy {
    padding: 2rem 2rem 0 2rem;
}

.trust-signal-wrapper {
    background: var(--color-trust-signal-background);
    margin-top: 0;
}

.gate {
    width: calc(100% - 4rem);
    max-width: 80rem;
    margin: 0 auto;
    height: auto;
}

.gate .copy {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gate .form .fieldset {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    margin-top: 0;
}

.gate .fieldset > * {
    width: 100%;
}

.gate h2 {
    margin: 0;
}

.gate h3 {
    color: var(--color-branding-primary);
    text-align: center;
    margin-bottom: 4rem;
}

.gate form input,
.gate form select {
    height: 6rem;
    border: unset;
    background: var(--color-light-gray);
    text-align: center;
}

.gate form input.submit {
    border: unset;
    background: var(--color-branding-secondary);
    color: #fff;
    height: 6rem;
    display: block;
}

.gate form input.submit:hover {
    border: unset;
    background: var(--color-branding-primary);
    color: #fff;
    transition: all .25s ease-in-out;
}

.gate ::placeholder {
    color: #000 !important;
    opacity: 1; /* Firefox */
}

.gate input:focus::placeholder {
    color: transparent !important;
  }

.gate form select {
    border-right: solid  1rem var(--color-light-gray);
}

.gate .copy > * {
    width: 100%;
}

.gate-wrapper .left span {
    color: var(--color-branding-primary);
}

.welcome-index-index.myspanish .column.main {
    min-height: auto;
}

.myspanish .gate-wrapper {
    margin-top: 0;
    margin-bottom: 5rem;
}



@media only screen and (min-width: 768px) {

    .gate-wrapper {
        padding: 0 2rem;
        margin: 5rem auto;
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .gate-wrapper .hp-top-banner .img img {
        max-height: 100%;
        object-fit: contain;
    }

    .gate h2 {
        margin-top: 0;
    }

    .gate .copy {
        display: flex;
        flex-direction: column;
        height: fit-content;
        justify-content: center;
        margin: 0;
    }

    .gate .form .fieldset {
        display: flex;
        gap: 1rem;
        flex-direction: row;
        width: 100%;
    }

    div#fueltype-error,
    div#code-error {
        position: absolute;
        bottom: 0;
    }

    .welcome-index-index form#form-validate {
        position: relative;
    }

    div#fueltype-error, div#code-error {
        position: absolute;
        bottom: -3rem;
    }

    .gate-wrapper {
        padding: 0 2rem;
        margin-top: 5rem;
    }

    .gate form fieldset > input.submit {
        width: 25%;
    }

    .gate form fieldset > input#zip {
        width: 75%;
    }
    

}

/* Cart page */

.crosssell .product-item-info {
    max-width: 100%;
    width: fit-content;
}

.crosssell li.item.product.product-item {
    border: 1px solid var(--color-mid-gray);
    width: calc((100% - 4rem) / 2);
    padding: 2rem;
}

.crosssell .product-item-actions .actions-secondary > .action {
    display: none;
}

.crosssell ol.products.list.items.product-items {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
}

.cart.main.actions {
    margin-bottom: 4rem;
}

strong#block-crosssell-heading {
    color: var(--color-branding-primary);
}

@media only screen and (min-width: 768px) {
    .block.crosssell {
        width: 73%;
    } 

    .crosssell li.item.product.product-item {
        width: calc((100% - 8rem) / 3);
    }

    .cart.table-wrapper .col.price, 
    .order-items.table-wrapper .col.price, 
    .cart.table-wrapper .col.qty, 
    .order-items.table-wrapper .col.qty, 
    .cart.table-wrapper .col.subtotal, 
    .order-items.table-wrapper .col.subtotal, 
    .cart.table-wrapper .col.msrp, 
    .order-items.table-wrapper .col.msrp,
    .cart.table-wrapper .product-item-details {
        vertical-align: middle;
    }
}


/* Checkout page */

select,

input[type="text"], input[type="password"], 
input[type="url"], input[type="tel"], 
input[type="search"], input[type="number"], 
input[type*="date"], input[type="email"] {
    height: 4.5rem;
}

.opc-progress-bar-item._active:before, .opc-progress-bar-item._active > span:before {
    background: var(--color-branding-primary);
}

