/************
 ** Global **
 ************/
@media only screen and (max-width:470px){
    h1 {
	font-size: 30px;
    }
}

/*fix popup (subscibe) width on small screens*/
@media only screen and (max-width:990px){
    .popup {
	min-width: 95%;
    }
}

/************
 ** HEADER **
 ************/
/*make top bar text overlap logo section, otherwise it gets covered by the logo background*/
.header__top__widget {
    z-index: 9;
    position: relative;
}
/*fix logo background width on sticky nav - make smaller so it does not cover the nav bar*/
.header__logo:after {
    /*width: 700px;*/
}

/*social media icons*/
.fa-2x {
    font-size: 20px!important;
}

@media only screen and (min-width:991px) and (max-width:1470px){
    .header__menu ul li a {
	font-size: 13px!important;
	margin: 0 5px!important;
    }
}

/************
 ** Footer **
 ************/
.footer__widget p:nth-of-type(1) {
    font-size: 22px;
    color: white;
    font-weight: 900;
}
#footer-num-1, #footer-num-2, #footer-num-3 {
    color: #9caaaf;
}
#footer-num-2{
    margin-left:43px;
}
#footer-num-3{
    margin-left:35px;
}

.footer__widget ul.address li {
    margin-bottom: 30px;
}

.footer__widget ul li a {
    padding-top: 22px;
    padding-bottom: 22px;
}

/*******************
 ** Trade In Page **
 *******************/
/**
   Form
 **/
.gl-form-center {
    text-align: center;
}
#sao-title {
    font-size: 20px;
}
select#type-choice {
    margin-bottom: 30px;
}
.gl-form-select {
    padding: 13px;
    border: 1px solid grey;
    background: white;
}

/**********************************
 **Product Listings (List Pages) **
 **********************************/
.gl-listing-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 10px;
    margin-top: 20px;
}
a.wa-contact {
    background: green;
    padding: 7px 20px;
    border-radius: 5px;
    display: block;
    height: 32px;
    text-align: center;
    line-height: 12px;
}
.wa-contact i {
    color: white;
}
.gl-listing-bottom-grid i.fa.fa-phone-alt {
    transform-origin: center;
    transform: rotate(180deg);
}
.gl-listing-bottom-grid .contact-btn {
    background: #333;
    color: white;
    padding: 4px 20px;
    border-radius: 5px;
    text-align: center;
}
/*compare*/
.compare-btn {
    background: orange;
    padding: 7px 20px;
    border-radius: 5px;
    display: block;
    height: 33px;
    text-align: center;
    line-height: 12px;
    color: white;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}
/*view product*/
a.view-product-btn {
    width: 100%;
    text-align: center;
    display: block;
    background: #333;
    padding: 10px;
    border-radius: 5px;
    color: white;
}
/**popup**/
div#gl-d-product-popup {
    display: block;
    position: fixed;
    background: #00000096;
    min-width: 100vw;
    min-height: 100vh;
    top: 0;
    z-index: 999;
    left: 0;
}
div#gl-d-p-wrapper {
    max-width: 350px;
    margin: auto;
    background: white;
    padding: 20px;
    margin-top: 10%;
}
div#gl-d-p-container {
    position: relative;
}
div#gl-d-p-close {
    position: absolute;
    top: -10px;
    right: -10px;
    cursor: pointer;
}
p#gl-d-p-title {
    text-align: center;
    font-size: 20px;
}
#gl-d-p-form input, #gl-d-p-form textarea {
    border: 1px solid grey;
}
form#gl-d-p-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.gl-listing-bottom-grid .contact-btn {
    background: #333;
    color: white;
    padding: 4px 20px;
    border-radius: 5px;
}
span#dpname {
    font-size: 16px;
    margin-top: 20px;
    display: block;
}
span#dp-info {
    color: red;
    font-size: 14px;
    line-height: 14px;
}

/*hide search button next to text search (its a live/instant search now, so no need for a btn)*/
.search .searchButton {
    display: none;
}
.search input[type="text"] {
    width: 100%;
    height: 50px;
}

/*make product card the same width (full width) as the filter section above it, on small screens only*/
@media only screen and (max-width: 573px){
    .product-list-item {
	max-width: unset!important;
    }
}

/*fix price overlap issue on smaller screens*/
@media only screen and (max-width: 991px){
    #injected .list-container-flexrow .price-container{
	margin-top:unset!important;
    }
}



/********************
 ** Product Single **
 ********************/
/*contact buttons section*/
div#product-page-contact-buttons-wrapper {
    background: #eee;
    padding: 15px;
}
.ppcb-inner-wrapper{
    background:#eee;
}
.ppcb-inner-wrapper h2 {
    font-size: 20px;
    margin-bottom: 10px;
}
.ppcb-grid {
    display: grid;
    grid-template-columns: 75px 75px 75px;
    grid-gap: 20px;
    margin-bottom: 30px;
}
.ppcb-btn {
    text-align: center;
    width: 75px;
    height: 40px;
    border-radius: 5px;
    line-height: 40px;
    background: #333;
    color: white!important;
}
a#ppcb-quote {
    cursor: pointer;
}
#ppcb-wa-support, #ppcb-wa-share {
    background: green;
}

@media only screen and (max-width:470px){
    /*fix breadcrum area height*/
    .breadcrumb-option {
	max-height: 175px!important;
    }

    /*fix layout for currency calc (force stacked)*/
    .HSmainContainer td {
	width: 100%;
	padding: 20px;
    }
}

/*
   Product List
 */
.compare-inner {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media only screen and (min-width:470px){
    #compare-btn-wrapper {
	grid-row: 2;
	grid-column: 1 / 5;
	margin-bottom: 9px;
    }
    div#wa-contact-wrapper {
	grid-column: 3/5;
    }
}

/***************
 ** home page **
 ***************/
/*Dynamic featured and latest stock*/
/*@media only screen and (max-width: 470px){*/
    #dynamic-latest-stock h2, #dynamic-featured-stock h2 {
	text-decoration: underline;
    }
/*}*/

/**/
.dfs-item-image {
    aspect-ratio: 16/12;
    overflow: hidden;
    margin-bottom: 30px;
}
@media only screen and (max-width:470px){
    .dfs-item-image {
	aspect-ratio: unset!important;
    }
}

.dfs-item-content, .dfs-item-content * {
    color: black!important;
}
.dfs-item-content {
    padding: 10px 20px;
    border: 1px solid;
    max-width: 99%;
    margin-left: 0.5%;
}

/*owl carousel*/
#home-featured, #home-latest {
    position: relative;
}
#home-featured .owl-nav, #home-latest .owl-nav {
    position: absolute;
    top: 40%;
    min-width: 100%;
}
#home-featured button.owl-prev, #home-latest button.owl-prev {
    left: -50px;
    position: absolute;
    transform-origin: center;
    transform: scale(3);
}
#home-featured button.owl-next, #home-latest button.owl-next {
    right: -50px;
    position: absolute;
    transform-origin: center;
    transform: scale(3);
}

/*
#dynamic-latest-stock .item, #dynamic-featured-stock .item {
    background: #dfdfdf;
    min-height: 390px;
}
*/

@media only screen and (max-width:470px){
    .home-page-identifier h1 {
	font-size: 30px;
    }
}

/*fix/add arrows for carousels on mobile*/
@media only screen and (max-width:470px){
    .home-page-identifier .owl-nav {
	top: 30%!important;
    }
    #home-featured button.owl-prev, #home-latest button.owl-prev {
	left: 0!important;
    }
    #home-featured button.owl-next, #home-latest button.owl-next {
	right: 0!important;
    }
    #home-featured button.owl-next, #home-latest button.owl-next, #home-featured button.owl-prev, #home-latest button.owl-prev {
	background: grey;
    }
}

/******
   Product Compare
 ******/
/*popup for list pages*/
#gl-compare-notification-wrapper {
    z-index: 999;
    position: fixed;
    top: 30%;
    height: auto;
    background: #f60100;
    width: 300px;
    left: calc((100vw / 2) - (300px / 2));
    border-radius: 25px;
    padding-top: 10px;
}
#gl-compare-notification-container > p {
    color: white;
    padding: 20px;
    text-align: center;
}
#compare-notification-close {
    text-align: center;
    font-weight: 900;
    color: white;
    cursor: pointer;
}
/*no products msg*/
#no-products-to-compare {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 60px;
}

/*grid and items*/
.compare-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 30px;
    margin-top: 30px;
}
@media only screen and (max-width:470px){
    .compare-products-grid {
	grid-template-columns: 100%;
	grid-row-gap: 30px;
    }
}
.compare-product-item {
    border: 1px solid #000;
    padding-top: 20px;
    position: relative;
}
.compare-inner-wrapper {
    margin-top: 30px;
    margin-bottom: 30px;
}
/*
.compare-inner-wrapper h2{
    text-align:center;
    margin-bottom:30px;
}
*/
.cpi-description h1, .cpi-description h2, .cpi-description h3, .cpi-description h4, .cpi-description h5, .cpi-description h6 {
    text-align:center;
    font-size: 20px;
    text-align: center;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 10px;
}
.cpi-title {
    text-align: center;
    font-size: 16px;
    font-weight: 900;
    color: black;
    /*fix title spacing*/
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
}
.cpi-stats {
    position: absolute;
    bottom: 60px;
    padding: 0 10px;
}
.cpi-model {
    margin-top: 20px;
}
.cpi-text-wrapper {
    padding: 10px;
    margin-bottom: 200px;
}
.cpi-button-grid {
    display: grid;
    grid-template-columns: 85% 1fr;
}
.remove-from-compare-btn-wrapper {
    cursor: pointer;
}
.remove-from-compare-btn-wrapper i {
    background: red;
    width: 100%;
    height: 100%;
    border-radius: 7px;
    text-align: center;
    line-height: 45px;
    color: white;
}
.cpi-button-grid {
    display: grid;
    grid-template-columns: 85% 1fr;
    grid-column-gap: 10px;
    position: absolute;
    bottom: 15px;
    width: 90%;
    margin-left: 5%;
}

/****
   Contact Us Page
 ****/
/*fix height of breadcrumb header area on mobile*/
@media only screen and (max-width:470px){
    .contact-page-identifier .breadcrumb-option {
	max-height: 175px!important;
    }
}

/*fix phone number alignment*/
@media only screen and (max-width:470px){
    #ct > tbody > tr:nth-child(2) > td:nth-child(2) {
	margin-left: 49px;
    }
    #ct > tbody > tr:nth-child(3) > td:nth-child(2) {
	margin-left: 40px;
    }
}


/****
   Blog Page
 ****/
/**
   List View
 **/
.blog-thumbnails-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    padding: 60px 0;
}
@media only screen and (max-width:470px){
    .blog-thumbnails-grid {
	grid-template-columns: 100%!important;
    }
}
.blog-list-view-item-title-wrapper {
    padding: 20px 0;
}
.blog-list-line-clamp{
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
}
.blog-read-more {
    margin-top: 30px;
    text-decoration: underline;
    color: black;
}
section#blog-list-view-pagination {
    padding: 30px 0;
}
.pagination {
    gap: 15px;
}
/**
   Page view
 **/
div#blog-page-view-title-wrapper {
    text-align: center;
    padding: 30px 0;
}
div#blog-page-view-featured-image-wrapper {
    text-align: center;
}
img#blog-page-view-featured-image {
    max-width: 500px;
}
section#blog-page-view-featured-image-section {
    margin-bottom: 30px;
}
section#blog-page-view-body-section {
    margin-bottom: 30px;
}
div#blog-page-view-video {
    aspect-ratio: 16/9;
    text-align: center;
    margin: auto;
    margin-bottom: 30px;
}
