:root{
    --mainDark:blue;
}
body, body *{
    -webkit-box-sizing:border-box;
    -o-box-sizing:border-box;
    -moz-box-sizing:border-box;
    box-sizing:border-box;
    position:relative;
}

#single-car-container{
    display:flex;
    flex-wrap:wrap;
}
#gallery .zoom{
    position:absolute;
    top:10px;
    right:10px;
    width:50px;
    height:50px;
    border-radius: 10px;
    background-color: var(--mainDark);
    color:#fff;
    background-size: 30px 30px;
    background-repeat: no-repeat;
    background-position: center;
}
#gallery{
    flex:0 0 50%;
    background-position: center;
    background-size:cover;
    background-repeat: no-repeat;
}

#car-summary{
    flex:0 0 50%;
    padding:15px;
}
#car-summary iframe{
    width:100%;
    border:none;
    overflow-y: auto;
    overflow-x: hidden;
}
.marathon-row{
    display:flex;
    flex-wrap: wrap;
    width:100%;
}
[class*="marathon-col"]{
    padding:15px;
}
.marathon-form-group label{
    display:block!important;
    width: 100%!important;
}
@media screen and (min-width:799px){
    #gallery, #cart-summary{
        height:100vh;
    }
    #car-summary iframe{
        height:115%;
    }
    
}

@media screen and (max-width:800px){
    [class*="marathon-col"]{
        width:100%;
    }
    .marathon-row{
        display: block!important;
    }
    #car-summary iframe{
        height:500px;
    }
    #single-car-container > *{
		margin-bottom:20px;
	}
    #single-car-container{
        display:block;
    }
    #gallery, #car-summary{
        flex:0 0 100%;
    }
    #gallery{
        height:50vh;
        min-height:400px;
    }

}

.loading{
    position:relative;
}
.loading:after{
    position:absolute;
    left:0;
    top:0;
    z-index: 999;
    background-color: #fff;
    opacity: .5;
    width:100%;
    height: 100%;
    pointer-events: none;
    content:"";
    display: block;
}
.marathon-field{
    padding:5px!important;
    border-radius: 5px!important;
    border-left:none!important;
    border-top:none!important;
    border-right:none!important;
    border-bottom:solid 1px #f0f0f1!important;
    width:100%!important;
    color:#000!important;
    font-size: 16px!important;
    line-height: 24px!important;
    outline:none!important;
    background-color:transparent!important;
}
.marathon-form-group{
    font-size:14px;
    color:#aeaeae;
}
.marathon-thumb img{
    position:absolute;
    top:50%;
    left:50%;
    min-width:100%;
    min-height: 100%;
    width:100%;
    height:auto;
    transform: translate(-50%, -50%);
}
.marathon-thumb{
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width:50px;
    height:50px;
    border:solid 1px #aeaeae;
    border-radius:50%;
    overflow: hidden;
    display:inline-block;
    margin:5px;
}
#order-review table td span{
    display:inline-block;
    vertical-align: middle;
}
.td-flex{
    display:flex;
    align-items: center;
    column-gap: 5px;
    width:100%;
}
#order-review table td, #order-review table th{
    text-align: left;
    font-size:16px;
    padding:5px;
    border-bottom: solid 1px #f0f0f1;
    vertical-align: middle;
}
#place_order{
    padding:5px 8px;
    background-color: var(--mainDark);
    color:#fff;
    display:block;
    width:100%;
    border:none;
    border-radius:20px;
    font-size:16px;
    cursor:pointer;
}

.car-price small{
	color:#aeaeae;
	font-size:14px;
}
.car-price{
	font-size:18px;
	font-weight:900;
	color:#000;
}
#car-details{
	width:100%;
	
}
#car-details tr> *{
	padding:5px;
	border-bottom:solid 1px #f0f0f1;
}
#car-details tr, #car-details{
	border-collapse:collapse;
}

#car-summary h1, #car-summary h2, #car-summary h3{
	font-weight:900;
}
#car-summary>*{
	margin-bottom:20px;
}
#car-thumbnails img{
	width:100%;
	height:auto;
	border-radius:10px;
	margin-bottom:10px;
}
#car-thumbnails{
	overflow-x:hidden;
	overflow-y:auto;
    position: absolute;
    left: 5px;
    width: 50px;
    top: 5px;
}
.car-archive-grid{
	display:grid;
	grid-template-columns:repeat(4, calc((100% - 72px) / 4));
	gap:24px;
}
@media screen and (min-width:768px) and (max-width:991px){
	.car-archive-grid{
		grid-template-columns:repeat(2, calc((100% - 24px) / 2));
	}
}
@media screen and (max-width:767px){
	.car-archive-grid>*{
		margin-bottom:24px;
	}
	.car-archive-grid{
		display:block!important;
	}
}

#primary{
	padding-left:5%;
	padding-right:5%;
}
.nav-links{
	margin-bottom:50px;
}
.page-numbers.btn-primary.current{
	background-color:#2e6da4!important;
	border-color:#2e6da4!important;
	color:#fff!important;
}

#car-checkout{
	padding:5%;
}