/* Global */

.action.primary, .action-primary {
    border-radius: .5rem;
}

h1, .as-h1 {
    font-weight: var(--font-weight-bold);
}

input.submit {
    background: var(--color-branding-primary);
    border: 1px solid var(--color-branding-primary);
    border-radius: 5px;
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    padding: 0 2rem;
}

input.submit:hover {
    background: var(--color-branding-primary);
    border: 1px solid var(--color-branding-primary);

}

/* Header */

span.action.nav-toggle {
    display: none;
}

.header.content .logo {
    padding-left: 0;
}

.page-header {
    border-bottom: unset;
    -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 */

.top-ribbon-content {
    max-width: calc(var(--width-content-max) - 4rem);
}

/*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;
}

.category-lanes .card .copy {
    text-align: center;
    width: calc(100% - 2rem);
}

.category-lanes .card {
    background: unset;
}

.category-lanes .card-set {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
}

.category-lanes .card-set .card {
    width: 33%;
}



@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% - 12rem) / 4);
    }

}

/* Home page top banner */

.card.hp-top-banner {
    background: var(--color-light-gray);
    margin-top: -2rem;
}

.hp-top-banner h1 {
    margin-bottom: var(--spacing__vertical--2);
    font-weight: var(--font-weight-bold);
    color: var(--color-branding-primary);
}

@media only screen and (min-width: 768px) {

    .card.hp-top-banner {
        margin: 0 auto;
        width: 124rem;
        max-width: 100%;
        border-radius: .5rem;
    }

    .card.hp-top-banner .copy {
        padding: 2rem;
    }

    .catalog-category-view .card.hp-top-banner {
        background: unset;
    }

}

/* 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;
}


/* Trust signals */

.trust-signal-wrapper {
    background: unset;
    margin-top: 2rem;
}

.catalog-category-view .trust-signal-inner {
    border-top: 1px solid var(--color-mid-gray);
    border-bottom: 1px solid var(--color-mid-gray);
}

.trust-signal-inner > * {
    width: 100%;
}

@media only screen and (min-width: 768px) {

    .trust-signal-inner > * {
        width: auto;
    }

}


/* 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;
}

p.footer-note {
    padding: 0 2rem 2rem;
}

.page-bottom .content {
    display: flex;
    flex-direction: column;
}

/* Category page */

.products .product-items .product-item {
    text-align: center;
}

.sale-price-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.widget-product-grid.product-items, ol.products.list.items.product-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
}

/* Product page */

button#product-addtocart-button {
    margin-top: 3px;
}

.qty button {
    height: 4.2rem;
    position: relative;
}

.product-info-main .box-tocart .input-text.qty, .product-options-bottom .box-tocart .input-text.qty {
    height: 42px;
    text-align: center;
    width: 42px;
}


.product-info-main .box-tocart .action.tocart {
    line-height: 0;
    padding: auto;
    font-size: 1.8rem;
    height: 4.2rem;
    position: relative;
    top: 1px;
}

.description h3 {
    color: var(--color-branding-primary);
    margin-top: 0;
}

@media only screen and (min-width: 768px) {

    .long-description-item {
        width: calc(33% - 5rem);
        background: var(--color-product-page-description-background);
        padding: 2rem;
    }

    .long-description-wrapper {
        display: flex;
        flex-wrap: wrap;
    }

}

/* Success page */

.checkout-success {
    margin-top: 2rem;
}

.checkout-onepage-success .card {
    background: unset;
}

.checkout-onepage-success .top-container {
    background: unset;
}

.checkout-onepage-success .card {
    background: unset;
    border-bottom: 1px solid var(--color-light-gray);
    padding-bottom: 2rem;
}

.checkout-onepage-success .card .copy {
    padding: 2rem 2rem 0;
}

.checkout-onepage-success .card .copy h1 {
    margin-bottom: 0;
}



@media only screen and (min-width: 768px) {

    .checkout-success {
        margin-top: 5rem;
    }

    .checkout-onepage-success .top-container {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .checkout-onepage-success img {
        border-radius: .5rem;
    }

    .checkout-onepage-success .card .copy {
        padding: 2rem;
    }


}

/* Gate - closed */

.gate h2 {
    text-align: center;
    margin-bottom: 0;
}

.gate h3 {
    color: var(--color-branding-secondary);
    margin-bottom: 1rem;
}

.gate .trust-signal-inner h3 {
    color: #683603;
}

.gate .copy {
    gap: 0;
}

.welcome-index-index header.page-header {
    -webkit-box-shadow: unset;
    -moz-box-shadow: unset;
    box-shadow: unset;
    border-bottom: .5rem solid var(--color-branding-primary);
}

.gate input, .gate select {
    height: 4.5rem;
    width: 100%;
    border-radius: .5rem;
}

.gate-wrapper > .left {
    background: unset;
    padding-top: unset;
}

.welcome-index-index .trust-signal-wrapper {
    margin-top: .2rem;
}

.gate input.submit {
    background: var(--color-branding-secondary);
    border: 1px solid var(--color-branding-secondary);
    transition: color 0.2s ease-in-out; 
}

.gate input.submit:hover {
    background: var(--color-branding-primary);
    border: 1px solid var(--color-branding-primary);
}

.gate form fieldset > * {
    text-align: center;
}

.gate .trust-signal-inner > * {
    width: 100%;
}

@media only screen and (min-width: 768px) {

    .gate-wrapper {
        display: flex;
        flex-direction: row;
        width: var(--width-content-max);
        max-width: var(--width-content-max-calc);
        margin: auto;
        gap: 5rem;
    }

    .gate-wrapper .hp-top-banner .img img {
        border-radius: .5rem .5rem 0 0;
        max-height: unset;
    }

}

/* Cross sell */

.crosssell .product-item-info {
    max-width: 45rem;
    width: auto;
    display: flex;
    align-items: center;
    border: 1px solid var(--color-mid-gray);
    padding-right: 2rem;
}

.crosssell .product.details.product-item-details {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    width: auto;
}

.crosssell .products .product-items .product-item {
    text-align: left;
    width: 100%;
}

.product-item-actions .actions-secondary > a.action.tocompare {
    display: none;
}

.block.crosssell {
    margin-top: 0;
}

/* Installation page */

.installation-index-index legend.legend {
    margin: 0;
}

.installation-index-index div#gate_wrapper form {
    max-width: 60rem;
}

.installation-index-index div#gate_wrapper {
    padding: 0;
}

/* CMS */

.cms-page-view .column.main ul {
    margin-left: 1rem;
}