/*  
brand-clearance-event 

.tao-fullwidth #car-detail .car-info .car-image .car-description .description-text strong {
	padding: 5px 10px 3px 10px;
  color: #E74C3C;
  background-color: #000;
  text-transform: uppercase;
}
*/

.page .car-details #cash-reserve-section #reserve-txt,
.page .car-details #reserve-now-section #reserve-txt {
	font-size: 14px;
  color: #555;
  margin: 10px 0;
  line-height: 1.5;
}
.page .car-details .vehicle-quote-container #reserve-headline {
	font-size: 0.85em;
  color: #000;
  margin: 0 0 5px 0;
  line-height: 1.5;
  margin-bottom: -5px;
}

.page .car-details #reserve-now-section #reserve-strap,
.page .car-details .vehicle-quote-container #reserve-headline #reserve-strap {
	font-size: 20px;
  color: #000;
  margin: 0 0 10px 0;
	font-family: Fabriga Medium,Fabriga regular, Lato, sans-serif;
	font-weight: 400;
}

.page .car-details .vehicle-quote-container #reserve-headline .reserve-txt {

}


.page .car-details .vehicle-quote-container .reserve-payment-methods {
  display: flex;
  justify-content: center;
}


.page .car-details .vehicle-quote-container .reserve-payment-methods .payment-logo + .payment-logo {
  margin-left: 6px;
}

.page .car-details .vehicle-quote-container .reserve-payment-methods .payment-logo {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  height: 24px;
  width: 36px;
}

.page .car-details .vehicle-quote-container .reserve-payment-methods .payment-logo--gp {
  background-image: url(/media/google-pay.svg);
  width: 45px;
}
.page .car-details .vehicle-quote-container .reserve-payment-methods .payment-logo--ap {
  background-image: url(/media/apple-pay.svg);
}
.page .car-details .vehicle-quote-container .reserve-payment-methods .payment-logo--visa {
  background-image: url(/media/visa.svg);
}
.page .car-details .vehicle-quote-container .reserve-payment-methods .payment-logo--mc {
  background-image: url(/media/mastercard.svg);
}
.page .car-details .vehicle-quote-container .reserve-payment-methods .payment-logo--maestro {
  background-image: url(/media/maestro.svg);
}

.page .car-details .vehicle-quote-container .reserve-payment-methods .ch-reader {
	clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.page #car-detail #financeFreeCreditCheck .lightbox-content #lightbox-creditcheck {
	font-size: 14px !important;
	line-height: 1.6 !important;
  font-weight: 400 !important;
  padding-bottom:10px
}

.page #car-detail #financeFreeCreditCheck .lightbox-content h4 {
	  font: 19px/1.6625 Fabriga regular,Humanist777BT-LightB,Lato,sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.6;
}


.lender-text { 
	font-family: Fabriga regular, Lato, sans-serif;
  display: inline-block;
  text-align: center;
  width: 140px;
  line-height: 1.1em !important;
  margin-bottom: 10px;
  font-size: 12px;
  /*white-space: nowrap;*/
  font-weight: 200 !important;
}


/* lightbox-notification.css */
.lightbox-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    width: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    animation: lightbox-notification-slide 0.4s ease-out;
    font-family: inherit;
}

@keyframes lightbox-notification-slide {
    from {
        transform: translateX(-50%) translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.lightbox-notification__content {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lightbox-notification__message {
    font-size: 15px;
    color: #333;
    flex: 1;
}

.lightbox-notification__close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin-top: -60px;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-notification__close:hover {
    color: #333;
    background: #fff;
}

.lightbox-notification--success .lightbox-notification__content {
    border-left: 5px solid #4caf50;
}

.lightbox-notification--error .lightbox-notification__content {
    border-left: 5px solid #f44336;
}

.lightbox-notification--info .lightbox-notification__content {
    border-left: 5px solid #2196f3;
}


#car-detail .car-info .car-details #vehicle-finance-container {
	display:none;
}

#car-detail .car-info .car-details #vehicle-finance-container .buttons button {
	background-color: #007bff;
	text-shadow: none;
}

#car-detail .car-info .car-details #vehicle-finance-container .buttons button:hover {
	background-color: #0056b3;
}




#car-detail .car-info .car-details .vehicle-quote-container button.save-quote .save-icon.hidden {
	display: none !important;
}

#enquiryLightbox.lightbox .lightbox-content.reserve-form .reserve-container .reserve-right form#enquiryForm select#branchSelect,
#testdriveLightbox.lightbox .lightbox-content.reserve-form .reserve-container .reserve-right form#testdriveForm select#branchSelect {
  padding: .70714em 1.35714em;
  border: 1px solid #b2b9c4;
  border-bottom-color: rgb(178, 185, 196);
  border-bottom-color: rgb(178, 185, 196);
  border-bottom-color: #a4acb9;
  border-radius: 3px;
  font-size: .875em;
  color: inherit;
  background: #fff;
}

#car-detail.container .car-header .car-title p#deriv {
	padding-bottom: 0;
  margin-bottom: 0;
}

#car-detail.container .car-header .car-title p#deriv p {
	padding-bottom: 0;
  margin-bottom: 0;
}

#car-detail.container .car-header .car-title p#strl {
	padding-top: 0px;
  color: #007bff;
  font-size: 16px;
  padding-bottom: 0;
  margin-bottom: 0;
}
#car-detail.container .car-header .car-title p#strl.camp-strapline {
	background-color: #A03C28 !important;
	color: #FFFFFF !important;
	padding-top: 5px;
  padding-left: 8px !important;
  padding-bottom: 3px;
  padding-right: 5px !important;
  margin-bottom: 0 !important;
}

#car-detail .car-header .car-title .camp-terms {
	 font-size: 11px;
}





#car-detail.container .car-header .car-title p#strl p {
	
}



#car-detail.container .car-header .car-price h2 p.retailprice {
	margin-top: 4px !important;
}
#car-detail.container .car-header .car-price h2 p.retailprice .priceblue.strike-center {
 font-size: 21px;	
}

#car-detail.container .car-price h2 {
	float: initial;
}
		
.car-header .car-price .retailprice .priceblue.strike-center {
	font-size: 23px;
}


.main-content .car-details .purchase-options #cash-option.purchase-option .cashoption-retail {
	margin-top: 0;
	margin-bottom: 0;
}


.vehicle-quote-container .save-icon {
	display:none;
	margin-top: -3px;
	padding-bottom: 5px;
}


#car-detail .car-info .car-details .vehicle-quote-container p.quote-vehicle #incopt ul li { 
  font-size: 0.95em;
  padding-left: 5px;
  color: #555;
}


#car-detail .car-info .car-image .media-overlay .media-icon.panorama-icon[role~="tooltip"]:hover::after,
#car-detail .car-info .car-image .media-overlay .media-icon.video-icon[role~="tooltip"]:hover::after  {
	text-align: center;
}


#car-detail .car-info .car-details a.view-quote-link .print-quote-icon span[role~="tooltip"]:hover::after {
		line-height: 1.5em;
}

.info-icon-finance {
	float: left;
  margin-top: 3px;
}

#car-detail.container .info-icon-finance {
	display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #b0b0b0;
  color: white !important;
  text-align: center;
  line-height: 20px;
  font-style: normal;
  font-size: 0.657em !important;
  margin-left: 0px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  padding-top:0px;
  padding-right: 0px;
}

#car-detail.container .info-icon-finance:hover {
	  background-color: #007bff;
}


#car-detail .vehicle-colour-txt {
  display: flex;
  align-items: center;
  margin-right: 10px;
  margin-top: 3px;
}

/*
#car-detail .car-info .car-details .vehicle-quote-container button.save-quote.hidden {
	display:none !important;
}
*/

#car-detail .vehicle-colour-txt p{
	margin: 0;
}

#car-detail .car-info aside.car-details .sliders .slider-item .slider-label {
	padding: 2px 5px 0px 5px;
}

#car-detail .car-info aside.car-details .sliders .slider-item .slider-label:hover {
	background-color:#e2e2e2;
}

#termLightbox.lightbox .lightbox-content.term-form .term-container form#termForm .term-input select#termSelect,
#mileageLightbox.lightbox .lightbox-content.mileage-form .mileage-container form#mileageForm .mileage-input select#mileageSelect {
	font: 15px/1.6625 Fabriga regular,Humanist777BT-LightB,Lato,sans-serif !important;
  margin-right: 5px;
  padding-top: 13px;
  padding-bottom: 13px;
  padding-left: 10px;
  padding-right: 10px;
}
#depositLightbox.lightbox,
#termLightbox.lightbox,
#mileageLightbox.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 19px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    transition: opacity 0.3s ease;
}
#depositLightbox.lightbox .lightbox-content,
#termLightbox.lightbox .lightbox-content,
#mileageLightbox.lightbox .lightbox-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 280px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-height: 80vh;
    overflow-y: auto;
}
#depositLightbox.lightbox .close,
#termLightbox.lightbox .close,
#mileageLightbox.lightbox .close {
    color: #333;
    position: absolute;
    right: 10px;
    top: 0px;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}
#depositLightbox.lightbox .close:hover,
#depositLightbox.lightbox .close:focus,
#termLightbox.lightbox .close:hover,
#mileageLightbox.lightbox .close:focus {
    color: #007bff;
}
#depositLightbox.lightbox .lightbox-content.deposit-form .deposit-container h2,
#termLightbox.lightbox .lightbox-content.term-form .term-container h2,
#mileageLightbox.lightbox .lightbox-content.mileage-form .mileage-container h2 {
	color: #2c3e50;
  margin-bottom: 15px;
  font-size: 20px;
  text-align: center;
}
#depositLightbox.lightbox .lightbox-content.deposit-form .deposin,
#termLightbox.lightbox .lightbox-content.term-form .term-input,
#mileageLightbox.lightbox .lightbox-content.mileage-form .mileage-input {
  text-align: center;
}
#depositLightbox.lightbox .lightbox-content.deposit-form .deposit-container form#depositForm .deposin button.proceed-button,
#termLightbox.lightbox .lightbox-content.term-form .term-container form#termForm .term-input button.proceed-button,
#mileageLightbox.lightbox .lightbox-content.mileage-form .mileage-container form#mileageForm .mileage-input button.proceed-button {
  margin-top: 20px;
  padding: 12px;
  background-color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  color: #fff;
  text-transform: none;
  transition: background-color 0.3s ease;
  text-shadow: none;
}
#depositLightbox.lightbox .lightbox-content.deposit-form .deposit-container form#depositForm .deposin button.proceed-button:hover,
#termLightbox.lightbox .lightbox-content.term-form .term-container form#termForm .term-input button.proceed-button:hover,
#mileageLightbox.lightbox .lightbox-content.mileage-form .mileage-container form#mileageForm .mileage-input button.proceed-button:hover {
background-color: #34495e !important;
}



.disable-hover {
    pointer-events: none; 
}

#car-detail.container .car-info .car-image .gallery.new .image-preview.new .carousel-dots .carousel-dot {
	background: rgba(0, 0, 0, 0.5);
}

#car-detail.container .car-info .car-image .gallery.new .image-preview.new .carousel-dots .carousel-dot.active {
background: rgb(202, 118, 118);
}

#car-detail .car-info .car-image .gallery .image-preview.new .blurred-background {
	opacity: 0;
}

#car-detail .car-info .car-image .gallery.new {
	background: #ffffff;
}


.main-content section#car-detail.container header.header a {
	white-space: nowrap !important;
}


.main-content section#car-detail.container header.header .my-account-notification {
  width: 65%;
  text-align: right;
  margin-right: 10px;
}


#welcomeLightbox.lightbox .lightbox-content .welcome-content .auth-sections #sgparts.vacancy-application #requirednotice p {
	display: inline-block;
}


#car-detail.container #welcomeLightbox.lightbox .auth-sections .my-account-section .result-item {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: #ffffff;
    opacity: 1;
    animation: fadeIn 0.5s forwards;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 5px 0px;
    overflow: hidden;
    border-radius: 16px;
    min-width: 250px;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    /*height: 100%;*/
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

#car-detail.container #welcomeLightbox.lightbox .auth-sections .my-account-section .result-item:hover {
    background-color: #f5f5f5; /* Subtle background change on hover */
}



/* Specific item-detail children styles */
.result-item h3 {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.2em;
}

.item-detail {
  padding-left: 8px;
  padding-right: 8px;
  padding-top: 0;
  padding-bottom: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
}

.item-detail small {
    font-size: 75%;
    color: rgb(102, 102, 102);
    font-weight: 400;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.item-detail .highlight-text {
    display: block;
    margin-top: 4px;
    color: #2c3e50;
    font-size: 0.75em;
    background-color: #eee;
    width: fit-content;
    padding-left: 4px;
    font-weight: bold;
    padding-right: 4px;
    margin-bottom: 5px;
}

.item-detail p {
    margin-top: 8px;
    font-size: 0.9em;
    color: #333;
    font-weight: bold;
}

.item-detail .monthlypayment {
    margin-bottom: 0px;
    margin-top: 0px;
    padding-left: 4px;
}

.item-detail .monthlypayment.top {
    margin-top: 10px;
}

.item-detail .monthlypayment.bottom {
    margin-top: -10px;
}

.item-detail .totalprice {
    padding-left: 4px;
    margin-bottom: 0px;
    margin-top: 0px;
}

.monthlyblue {
    color: #3579f6;
    font-size: 1.25em;
}

.pricered {
    font-size: 1.5em;
    color: #e74c3c;
    font-family: Fabriga Medium;
}

/* Vehicle details */
.vehicle-details {
    width: 100%;
    margin-top: 8px;
}

.vehicle-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 10px;
}

.vehicle-row:last-child {
    margin-bottom: 0;
}

.vehicle-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
    font-size: 14px;
    color: #333;
    flex: 1;
    margin-left: 10px;
}

.detail-icon {
    font-size: 16px;
    color: #666;
    margin-right: 4px;
}

.detail-icon.calendar i,
.detail-icon.gear i,
.detail-icon.odometer i,
.detail-icon.fuel i,
.detail-icon.location i {
    margin-right: 4px;
}

.vehicle-cell.heart {
    justify-content: flex-end;
    margin-right: 25px;
    line-height: initial;
}

.vehicle-cell.heart .detail-icon img {
    cursor: pointer;
}

.vehicle-cell.trans,
.vehicle-cell.fuel {
    justify-content: flex-end;
    margin-right: 25px;
}

/* Responsive adjustments for vehicle details */
@media only screen and (max-width: 599px) {
    .vehicle-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-bottom: 5px;
    }

    .vehicle-row:last-child {
        margin-bottom: 0;
    }

    .vehicle-cell {
        font-size: 12px;
        justify-content: flex-start;
    }
    
    .vehicle-cell.heart {
        justify-content: flex-start; /* On small screens, align left */
        margin-right: 0;
    }

    .vehicle-cell.reserve {
        margin-left: 0; /* Reset margin for consistency */
        width: 100%; /* Full width on small screens */
    }

    .reserve-button {
        width: 100%; /* Full width on small screens */
    }    

    .detail-icon {
        font-size: 14px;
        margin-right: 2px;
    }
}

/* Carousel controls */
.prev-arrow,
.next-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: transparent;
    color: transparent;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.image-preview:hover .prev-arrow,
.image-preview:hover .next-arrow,
.image-container:hover .prev-arrow,
.image-container:hover .next-arrow,
.image-container img:hover ~ .prev-arrow,
.image-container img:hover ~ .next-arrow {
    background: rgba(0, 0, 0, 1);
    color: white;
    opacity: 0.5;
    width: initial;
}

.prev-arrow:hover,
.next-arrow:hover {
    background: rgba(255, 0, 0, 1) !important;
    color: white;
    opacity: 1;
}

.prev-arrow {
    left: 10px;
}

.next-arrow {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 15;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: white;
}

.image-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: white;
    color: black;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
    z-index: 20;
    opacity: 1;
    display: none;
}




































#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .heart-icon,
#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .car-icon,
#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .settings-icon,
#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .logout-icon {
  vertical-align: text-bottom;
  margin-right: 5px;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .sidebar-item:hover {
	background-color:#dee2e6;
	cursor: pointer;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .add-icon {
	margin-right: 3px;
}

/* Style for the account header to align My Account and logged-in text on the same line */
#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Ensure My Account heading retains its original styling and is left-aligned */
#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .account-header h2 {
    font-size: 18px;
    color: #202124;
    margin: 0;
    text-align: left;
}


/* Updated styles for my-account-section to remove inline styles */
#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section {
    display: flex;
    flex-direction: column;
    padding: 0px;
    font-family: Fabriga regular, Lato, sans-serif;
    text-align: left; /* Override existing text-align: center */
    width: 100%;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .logged-in-text {
    font-size: 14px;
    color: #3578f6;
    margin: 0;
    text-align: right !important; 
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .my-account-flex {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .my-account-sidebar {
    width: 170px;
    background-color: #f8f9fa;
    padding-top: 5px;
    padding-bottom: 0;
    padding-right: 0;
    border-right: 1px solid #dee2e6;
    flex-shrink: 0;
    padding-left: 5px;
    flex: 0 0 170px;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .my-account-sidebar h2 {
    font-size: 18px;
    color: #202124;
    margin: 0 0 15px 0;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .my-account-sidebar .sidebar-section {
    font-size: 16px;
    color: #000;
    margin: 10px 0 5px 0;
    font-weight: bold;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .my-account-sidebar .sidebar-item {
    padding: 8px 0;
    color: #333;
    font-size: 14px;
    padding-left: 5px;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .my-account-sidebar .section-separator {
    border: 0;
    height: 1px;
    background-color: #dee2e6;
    margin: 10px 0;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .notifSec {
  color: #007bff;
  font-size: 13px;
}


#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .my-account-content {
	display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two equal-width columns */
  gap: 20px; /* Space between grid items */
  padding: 20px; /* Optional: Add padding for better spacing */
  box-sizing: border-box;
}


#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .my-account-notification {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}


#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-main {
		flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}




.my-account-section {
    /*text-align: center;*/
    padding: 20px;
}
.garage-content {
    margin-top: 15px;
    text-align: left;
}
.garage-content h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}
.garage-content p {
    color: #666;
}



.main-content section#car-detail.container #reserveLightbox.lightbox .lightbox-content.reserve-form .reserve-container .reserve-right form#reserveForm p.terms-note a,
.main-content section#car-detail.container #welcomeLightbox.lightbox .lightbox-content .welcome-section p a {
    color: #007bff;
}


#financeFreeCreditCheck.lightbox .lightbox-content {
    width: 100%;
    height: 100vh;
    max-height: 600px;
}

#financeApplyLightbox .cwfinanceapply-container {
    width: 100%;
    height: 80vh;
    max-height: 600px;
}

#financeApplyLightbox .cwfinanceapply-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}



#panoramaLightbox .panorama-container {
    width: 100%;
    height: 80vh;
    max-height: 600px;
}

#panoramaLightbox .panorama-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.main-content #car-detail.container #testdriveLightbox.lightbox .lightbox-content.reserve-form .reserve-container .reserve-right p,
.main-content #car-detail.container #enquiryLightbox.lightbox .lightbox-content.reserve-form .reserve-container .reserve-right p {
    font-size: 15px;
}

#numim {
    padding-top: 4px;
    line-height: 1.4em;
}

.save-quote-text {
    line-height: 1.2em;
}

.errortxt.red.finance-error-message {
    color: #df4343;
    font-size: 13px;
}

.errortxt {
    display: none;
    width: 100%;
}

.errortxt.finance-error-message {
    display: block;
}

.tao-fullwidth .page .main-content {
    font-family: Fabriga regular, Lato, sans-serif;
}

/* hide APR */
#car-detail .car-info .car-details .purchase-options #pcp-option.purchase-option p#pcp-apr {
    display: none;
}

#car-detail.container .car-details .view-quote-link,
#car-detail.container .car-details .sliders .pcp-slider,
#car-detail.container .car-details .sliders .hp-slider,
#car-detail.container .car-details .sliders .cs-slider,
#car-detail.container .car-details #pcp-header-payment,
#car-detail.container .car-details #quote-summary-payment,
#car-detail.container .car-details .vehicle-quote-container .save-quote {
    display: none;
}

#car-detail.container .car-details .vehicle-quote-container .save-quote.hidden {
    display: none !important;
}



.content-wrapper .main-content section#car-detail.container section.car-header .car-title h1 {
    font-size: 1.3em;
    font-family: Fabriga Medium, Fabriga regular, Lato, sans-serif;
}

/* Main container styling for page width and padding */
#car-detail.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 20px;
    padding-top: 0;
}

/* Header section styling for navigation links */
#car-detail.container .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

#car-detail.container .header a {
    color: #007bff;
    text-decoration: none;
}

#car-detail.container .header a:hover {
    text-decoration: underline;
}

#car-detail.container .header span {
    color: #000;
    font-size: 16px;
}

/* Car header section for title and price layout */
#car-detail.container .car-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 20px;
}

#car-detail.container .car-title h2,
#car-detail.container .car-price h2 {
    font-size: 1.5rem;
    margin: 0 0 5px 0;
    color: #000;
}

#car-detail.container .car-price h2 {
    text-align: right;
    padding-right: 2px;
    float: initial;
}

#car-detail.container .car-title p,
#car-detail.container .car-price p {
    margin-top: 5px;
    font-size: 14px;
    color: #555;
    line-height: 1.2;
    padding-right: 5px;
}

#car-detail.container .service-highlight {
    background-color: #e0e0e0;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 0;
    vertical-align: top;
    font-size: 14px;
    color: #555;
}

/* Car information section for images and specs */
#car-detail.container .car-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 20px;
    overflow: visible;
}

/* Car image gallery with navigation and overlays */
#car-detail.container .car-image {
    width: 60%;
    order: 1;
    position: relative;
    z-index: 1;
    overflow: visible;
}

#car-detail.container .car-image .temp-gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 580px;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
}

#car-detail.container .car-image .gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 580px;
    overflow: hidden;
    background: #f0f0f0;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

#car-detail.container .car-image .carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

#car-detail.container .car-image .image-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out;
    z-index: 2;
    touch-action: manipulation;
}

#car-detail.container .car-image .blurred-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    filter: blur(10px);
    z-index: -1;
    opacity: 1;
    pointer-events: none;
}

#car-detail.container .car-image .image-container {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease-in-out;
    z-index: 10;
}

#car-detail.container .car-image .image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

#car-detail.container .car-image .prev-arrow,
#car-detail.container .car-image .next-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease;
    border-radius: 5px;
    width: auto;
}

#car-detail.container .car-image .image-preview:hover .prev-arrow,
#car-detail.container .car-image .image-preview:hover .next-arrow,
#car-detail.container .car-image .image-container:hover .prev-arrow,
#car-detail.container .car-image .image-container:hover .next-arrow,
#car-detail.container .car-image .image-container img:hover ~ .prev-arrow,
#car-detail.container .car-image .image-container img:hover ~ .next-arrow {
    opacity: 0.5 !important;
}



.main-content #car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .my-account-content {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.main-content #car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .my-account-content {
  display: initial;
}


@media (max-width: 768px) {
.main-content #car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .my-account-content .result-items-grid {
  grid-template-columns: initial;
}




	

    .content-wrapper .main-content section#car-detail.container section.car-header .car-title h1 {
       /* font-size: 1em;*/
        margin-top: 5px;
    }

    #car-detail.container .car-image .image-preview:active .prev-arrow,
    #car-detail.container .car-image .image-preview:active .next-arrow {
        opacity: 0.7;
    }
}

#car-detail.container .car-image .prev-arrow:hover,
#car-detail.container .car-image .next-arrow:hover {
    background: rgba(255, 0, 0, 1);
    opacity: 1;
}

#car-detail.container .car-image .prev-arrow {
    left: 10px;
}

#car-detail.container .car-image .next-arrow {
    right: 10px;
}

#car-detail.container .car-image .carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 15;
}

#car-detail.container .car-image .carousel-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

#car-detail.container .car-image .carousel-dot.active {
    background: white;
}

#car-detail.container .car-image .media-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 900;
    width: fit-content;
}

#car-detail.container .car-image .media-icon {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

#car-detail.container .car-image .media-icon i {
    margin-right: 5px;
}

#car-detail.container .car-image .media-icon .fas {
    font-size: 16px;
}

#car-detail.container .car-image .save-overlay {
    position: absolute;
    /* Top + left positioned just right of .media-overlay (which sits at
       top:20 left:20 with a width of ~109px). Was top:5 right:20 - that
       put the Save pill in the top-right corner directly over the SG Petch
       watermark now burned into the new used-car photo set. The element is
       a <button> so it inherits margin-top:15.75px from the theme button
       reset; zeroing it here so vertical alignment matches .media-overlay. */
    top: 20px;
    left: 140px;
    margin-top: 0;
    background-color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 900;
    cursor: pointer;
    width: fit-content;
}

#car-detail.container .car-image .save-text {
    color: #000;
    font-size: 14px;
    text-transform: initial;
    margin-top: 4px;
    line-height: 0;
}

#car-detail.container .car-image .save-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
}

#car-detail.container .car-image hr {
    border: 1px solid #ddd;
    margin: 10px 0;
}

#car-detail.container .car-image .temp-gallery-image:not([src="/assets/placeholder.jpg"]) {
    opacity: 0.5;
}

#car-detail.container .car-image .temp-gallery-image[src] {
    opacity: 1;
}

/* Car feature icons (mileage, age, transmission, fuel type) */
#car-detail.container .car-icons {
    display: flex;
    justify-content: center;
    padding-top: 10px;
    gap: 10px;
}

#car-detail.container .car-icons .icon-text-pair {
    display: inline-flex;
    align-items: center;
}

#car-detail.container .car-icons .icon-text-pair .icon-text {
    padding: 5px 10px;
    border-radius: 5px;
    color: #4d4d4d;
    font-weight: normal;
    font-family: Fabriga medium;
    white-space: nowrap;
    background-color: #f3f6fd;
    font-size: 14px;
}

/* Car specifications section */
#car-detail.container .car-specs {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px 10px;
}

#car-detail.container .car-specs .spec-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

#car-detail.container .car-specs .spec-label,
#car-detail.container .car-specs .spec-value {
    flex: 1;
    font-size: 14px;
    color: #000;
}

#car-detail.container .car-specs .spec-label {
    padding-left: 15px;
}

#car-detail.container .car-specs .spec-value {
    text-align: right;
    padding-right: 15px;
}

/* Car description section with expandable text and links */
#car-detail.container .car-description {
    margin-top: 10px;
}

#car-detail.container .car-description h3 {
    font-size: 20px;
    color: #007bff;
    margin: 0;
    padding-top: 0px;
    margin-top: 20px;
    margin-bottom: 10px;
}


#car-detail.container .car-description .full-specification,
#car-detail.container .car-description .optional-extras,
#car-detail.container .car-description .running-costs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 10px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

#car-detail.container .car-description .full-specification h3,
#car-detail.container .car-description .optional-extras h3,
#car-detail.container .car-description .running-costs h3 {
    font-size: 20px;
    color: #007bff;
    margin: 0;
    display: flex;
    align-items: center;
}

#car-detail.container .car-description .spec-icon,
#car-detail.container .car-description .running-costs-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    font-size: 14px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid black;
    border-radius: 50%;
    padding: 2px;
}

#car-detail.container .car-description p.description-text {
    font-size: 14px;
    color: #000;
    margin: 0;
}

#car-detail.container .car-description .hidden-text {
    display: none;
    font-size: 14px;
    color: #000;
    padding-left: 0;
}

#car-detail.container .car-info .car-image .car-description p.description-text p {
    margin-bottom: 0;
}

#car-detail.container .car-description .show-more {
    color: #007bff;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
    font-size: 14px;
}

#car-detail.container .car-description .show-more:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Location and contact information */
#car-detail.container .car-contact {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

#car-detail.container .car-contact h3 {
    font-size: 20px;
    color: #007bff;
    margin-bottom: 10px;
    margin-top: 0;
}

#car-detail.container .car-contact p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0 0 10px;
}

#car-detail.container .car-contact .contact-link {
    color: #007bff;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
}

#car-detail.container .car-contact .contact-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

#car-detail.container .car-contact .google-maps-link {
    color: #007bff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
}

#car-detail.container .car-contact .google-maps-link i {
    margin-right: 5px;
}

#car-detail.container .car-contact .google-maps-link .info-icon {
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 5px;
    font-size: 12px;
}

#car-detail.container .car-contact .google-maps-link:hover {
    text-decoration: underline;
}

#car-detail.container .car-contact .google-maps-link:hover .info-icon {
    background-color: #0056b3;
}

/* Specification and running costs links styling */
#car-detail.container .view-spec-link,
#car-detail.container .view-options-link,
#car-detail.container .view-running-costs-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #007bff;
    font-size: 16px;
}

#car-detail.container .view-spec-link .info-icon,
#car-detail.container .view-options-link .info-icon,
#car-detail.container .view-running-costs-link .info-icon {
	background-color: #b0b0b0;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-right: 5px;
  font-size: 11px;
  padding-right: 1px;
  padding-top: 2px;
  font-weight: normal;  
}


#car-detail.container .car-info .car-image .car-description .optional-extras.hidden {
	display:none;
}

#car-detail.container .view-options-link .info-icon {
	padding-right: 0px;
}


#car-detail.container .car-info .car-details a.view-quote-link .viewlink,
#car-detail.container .car-info .car-details a.view-quote-link .print-quote-icon .dllink {
    display: inline-block;
}

#car-detail.container .car-info .car-details a.view-quote-link .viewlink:hover,
#car-detail.container .car-info .car-details a.view-quote-link .print-quote-icon .dllink:hover {
    color: #dfdfdf;
}

#car-detail.container .info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    text-align: center;
    line-height: 16px;
    font-style: normal;
    font-size: 0.857em;
    font-weight: bold;
    margin-left: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding-top: 1px;
    padding-right: 1px;
}

#car-detail.container .info-icon:hover {
    background-color: #0056b3;
}

/* Car details section with buttons, purchase options, and sliders */
#car-detail.container .car-details {
    width: 35%;
    order: 2;
    background-color: #f0f0f0;
    padding: 10px 20px;
    border-radius: 5px;
    position: relative;
    z-index: 1;
}

#car-detail.container .car-details .buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    gap: 2%;
    flex-wrap: nowrap;
}

#car-detail.container .car-details .buttons button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: block;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s ease;
    text-transform: none;
}

#car-detail.container .car-details .buttons button:hover {
    background-color: #333;
}

#car-detail.container .car-details .purchase-options {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

#car-detail.container .car-details .purchase-options.visible {
    display: grid !important;
    opacity: 1;
    transform: translateY(0);
}

#car-detail.container .car-details .purchase-options[data-loaded="true"] {
    display: grid !important;
    opacity: 1;
    transform: translateY(0);
}

#car-detail.container .car-details .purchase-option {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#car-detail.container .car-details .purchase-option.active {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

#car-detail.container .car-details .purchase-option {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

#car-detail.container .car-details .purchase-options.visible .purchase-option {
    opacity: 1;
    transform: translateY(0);
}

#car-detail.container .car-details .purchase-options.visible #pcp-option {
    transition-delay: 0.1s;
}

#car-detail.container .car-details .purchase-options.visible #hp-option {
    transition-delay: 0.2s;
}

#car-detail.container .car-details .purchase-options.visible #cash-option {
    transition-delay: 0.3s;
}

#car-detail.container .car-details .purchase-options.visible #reserve-option {
    transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
    #car-detail.container .car-details .purchase-options,
    #car-detail.container .car-details .purchase-option {
        transition: none;
        opacity: 1 !important;
        transform: none !important;
    }
    #car-detail.container .car-details .purchase-options.visible {
        opacity: 1;
        transform: none;
    }
}

/* Tile sequence: ordered auto-flow (replaces the old named grid areas) so hidden tiles
   free their slots and the Price tile ALWAYS displays last, whatever mix of finance /
   Contract Hire tiles a vehicle has (#89). */
#car-detail.container .car-details .purchase-options {
    grid-auto-flow: row;
}

#car-detail.container .car-details #pcp-option {
    order: 1;
}

#car-detail.container .car-details #hp-option {
    order: 2;
}

#car-detail.container .car-details #bch-option {
    order: 3;
}

#car-detail.container .car-details #pch-option {
    order: 4;
}

#car-detail.container .car-details #motability-option {
    order: 5;
}

#car-detail.container .car-details #reserve-option {
    order: 6;
}

#car-detail.container .car-details #cash-option {
    order: 7; /* Price always last */
}

@media (max-width: 768px) {
    #car-detail.container .car-details .purchase-options {
        grid-template-columns: 1fr;
    }
    #car-detail.container .car-details .purchase-option {
        flex: 0 0 100%;
    }
}

#car-detail.container .car-details .purchase-option:hover {
    background-color: #333;
    color: white;
}

#car-detail.container .car-details .purchase-option:not(.active):hover {
    background-color: #e0e0e0;
    color: black;
}

#car-detail.container .car-details .purchase-option h3 {
    font-size: 15px;
    color: black;
    margin: 0 0 10px 0;
}

#car-detail.container .car-details .purchase-option p {
    font-size: 14px;
    color: black;
    margin: 5px 0;
}

#car-detail.container .car-details .purchase-option.active h3,
#car-detail.container .car-details .purchase-option.active p,
#car-detail.container .car-details .purchase-option.active p#pcp-apr {
    color: white;
}

#car-detail.container .car-details #pcp-header-payment {
    font-size: 20px;
    color: #000;
    margin: 10px 0;
}

#car-detail.container #testdriveLightbox.lightbox .lightbox-content.reserve-form .reserve-container .reserve-right button.close-button,
#car-detail.container #enquiryLightbox.lightbox .lightbox-content.reserve-form .reserve-container .reserve-right button.close-button {
    text-decoration: none;
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 15px;
    margin: 10px 0;
    text-shadow: none;
    text-transform: initial;
}

#car-detail.container #testdriveLightbox.lightbox .lightbox-content.reserve-form .reserve-container .reserve-right button.close-button:hover,
#car-detail.container #enquiryLightbox.lightbox .lightbox-content.reserve-form .reserve-container .reserve-right button.close-button:hover {
    background-color: #0056b3;
}

#car-detail.container .car-details .view-quote-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 15px;
    margin: 10px 0;
    width: 100%;
    line-height: 2em;
    padding-bottom: 2px;
}

#car-detail.container .car-details .view-quote-link:hover {
    background-color: #0056b3;
}

#car-detail.container .car-details .view-quote-link .info-icon {
    width: 16px;
    height: 16px;
    background-color: white;
    color: #007bff;
    margin-right: 5px;
    margin-top: -3px;
}

/*
#car-detail.container .car-details .view-quote-link:hover .info-icon {
    background-color: #007bff;
    color: white;
}
*/

#car-detail.container .car-details .pcp-details,
#car-detail.container .car-details .cash-description {
    font-size: 14px;
    color: #555;
    margin: 10px 0;
    line-height: 1.5;
    flex-direction: column;
}

#car-detail.container .car-details .learn-more {
    color: #007bff;
    text-decoration: none;
}

#car-detail.container .car-details .learn-more:hover {
    text-decoration: underline;
    color: #0056b3;
}

#car-detail.container .car-details #reserve-now-section,
#car-detail.container .car-details #cash-reserve-section {
    margin: 10px 0;
}

#car-detail.container .car-details #reserve-now-button,
#car-detail.container .car-details #cash-reserve-button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: block;
    width: 100%;
    max-width: 200px;
    text-align: center;
    transition: background-color 0.3s ease;
    text-transform: none;
}

#car-detail.container .car-details #reserve-now-button:hover,
#car-detail.container .car-details #cash-reserve-button:hover {
    background-color: #333;
}

#car-detail.container .car-details .sliders {
    margin-top: 20px;
}

#car-detail.container .car-details .slider-item {
    flex-direction: column;
    margin-bottom: 20px;
}

#car-detail.container .car-details .slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

#car-detail.container .car-details .slider-label span {
    color: #000;
    font-size: 14px;
}

#car-detail.container .car-details .slider-label span:last-child {
    color: #007bff;
}

#car-detail.container .car-details .sliders input[type="range"] {
    width: 100%;
    height: 5px;
    background: #D3D3D3;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
    padding: 0;
    cursor: pointer;
}

#car-detail.container .car-details .sliders input[type="range"]:hover {
    opacity: 1;
    background: #b0b0b0;
}

#car-detail.container .car-details .sliders input[type="range"]::-webkit-slider-thumb,
#car-detail.container .car-details .sliders input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #007bff;
    cursor: pointer;
    border-radius: 50%;
    appearance: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#car-detail.container .car-details .sliders.cash-hidden,
#car-detail.container .car-details .sliders.reserve-hidden {
    display: none;
}

#car-detail.container .car-details label[for="trade_in"] {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 15px;
    display: block;
    color: #000;
}

#car-detail.container .car-details .trade-in-options {
    display: flex;
    gap: 10px;
    margin: 10px 0 20px;
}

#car-detail.container .car-details .trade-in-options label {
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #000;
}

#car-detail.container .car-details .trade-in-options input[type="radio"] {
    opacity: 0;
    position: absolute;
    cursor: pointer;
}

#car-detail.container .car-details .trade-in-options label[for="no"] {
    background-color: black;
    border: none;
    color: white;
}

#car-detail.container .car-details .trade-in-options label[for="yes"] {
    background-color: white;
    border: 1px solid black;
    color: black;
}

#car-detail.container .car-details .trade-in-options label:hover {
    background-color: #333;
    color: white;
}

#car-detail.container .car-details .trade-in-options label:active {
    transform: scale(0.98);
}

#car-detail.container .car-details .trade-in-options label:has(input[type="radio"]:checked) {
    background-color: black;
    color: white;
    border: none;
}

#car-detail.container .car-details .trade-in-options label:has(input[type="radio"]:not(:checked)) {
    background-color: white;
    color: black;
    border: 1px solid black;
}

#car-detail.container .car-details .trade-in-options label.selected-no {
    background-color: white;
    color: black;
    border: 1px solid black;
}

#car-detail.container .car-details .trade-in-options label.selected-yes {
    background-color: black;
    color: white;
    border: none;
}

/* New trade-in container styling */
#car-detail.container .car-details .trade-in-container {
    margin-top: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#car-detail.container .car-details .vehicle-quote-container {
    margin-top: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#car-detail.container .car-details .vehicle-quote-container .quote-header {
    font-size: 20px;
    color: #000;
    margin: 0 0 10px 0;
}


#car-detail.container .car-details .vehicle-quote-container .quote-vehicle,
#car-detail.container .car-details .vehicle-quote-container #quote-summary-payment {
   /* font-size: 16px;*/
    font-size: 0.85em;
    color: #000;
    margin: 0 0 5px 0;
    line-height: 1.5;
}

#car-detail.container .car-details .vehicle-quote-container .save-quote {
    background: none;
    border: none;
    padding: 0;
    margin: 5px 0;
    cursor: pointer;
    /*font-size: 16px;*/
    font-size: 0.90em;
    color: #000;
    text-decoration: none;
    width: auto;
    line-height: 1.5;
    font-family: Arial, sans-serif;
    text-transform: none;
    gap: 8px;
    display: flex !important;
    line-height: 1em;
    text-shadow: none;
}

#car-detail.container .car-details .vehicle-quote-container .save-quote:hover {
    color: #333;
    text-decoration: none;
}

#car-detail.container .car-details .vehicle-quote-container .save-quote:empty {
    display: none;
}

#car-detail.container .car-details .vehicle-quote-container .save-heart-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    margin: 0;
    padding: 0;
    line-height: 20px;
}

#car-detail.container .car-details .vehicle-quote-container img.quote-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

#car-detail.container .car-details .vehicle-quote-container .reserve-button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: block;
    width: 100%;
    max-width: 200px;
    text-align: center;
    transition: background-color 0.3s ease;
    text-transform: none;
}

#car-detail.container .car-details .vehicle-quote-container .reserve-button:hover {
    background-color: #333;
}

/* Specification panel for detailed car features and specs */

#car-detail.container .spec-panel,
#car-detail.container .optionalExtra-panel {
    display: none;
    position: fixed;
    right: 0;
    top: 0;
    width: 400px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    z-index: 1001;
    padding: 20px;
    overflow-y: auto;
}

#car-detail.container .spec-panel-header,
#car-detail.container .optionalExtra-panel-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#car-detail.container .spec-panel-header span,
#car-detail.container .optionalExtra-panel-header span {
    cursor: pointer;
    color: #007bff;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: normal;
}

#car-detail.container .spec-panel-header h2,
#car-detail.container .optionalExtra-panel-header h2 {
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
    font-weight: normal;
}

#car-detail.container .spec-categories {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

#car-detail.container .spec-category h4 {
    font-size: 22px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: normal;
    padding-top: 0;
}

#car-detail.container .spec-subcategory {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 16px;
    color: #2c3e50;
    position: relative;
    outline: none;
    tabindex: 0;
}

#car-detail.container .spec-subcategory .header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

#car-detail.container .spec-subcategory span {
    margin: 0;
}

#car-detail.container .spec-subcategory .toggle-icon {
    position: relative;
    width: 10px;
    height: 10px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    margin-left: 10px;
}

#car-detail.container .spec-subcategory .toggle-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    border: solid #2c3e50;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

#car-detail.container .spec-subcategory.active .toggle-icon::before {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
}

#car-detail.container .spec-subcategory.active {
    flex-direction: column;
    align-items: flex-start;
}

#car-detail.container .spec-subcategory > span:first-child {
    order: 1;
    flex-grow: 1;
}

#car-detail.container .spec-details {
    width: 100%;
    margin-top: 10px;
    display: none;
    order: 3;
}

#car-detail.container .spec-details p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
    font-weight: normal;
}

#car-detail.container .spec-details ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#car-detail.container .spec-details li {
    padding: 10px 0 10px 20px;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #eee;
}

#car-detail.container .spec-subcategory.active .spec-details {
    display: block;
}

#car-detail.container .spec-subcategory:focus {
    /*outline: 2px solid #007bff;*/
    /*outline-offset: 2px;*/
}

#car-detail.container .spec-header ~ .spec-subcategory .spec-details ul li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

#car-detail.container .spec-header ~ .spec-subcategory .spec-details ul li .spec-label {
    color: #333;
    font-weight: normal;
    padding-right: 10px;
}

#car-detail.container .spec-header ~ .spec-subcategory .spec-details ul li .spec-value {
    color: #555;
    text-align: right;
    flex: 1 1 auto;
}

#car-detail.container .spec-count {
    background-color: #f0f0f0;
    padding: 3px 6px;
    border-radius: 3px;
    color: #555;
    font-size: 12px;
    margin-left: 10px;
}


#car-detail.container .spec-disclaimer,
#car-detail.container .optionalExtra-disclaimer {
    font-size: 12px;
    color: #555;
    margin-top: 20px;
}

#car-detail.container .spec-disclaimer p {
    margin: 5px 0;
}

/* Running costs content styling */
#car-detail.container .running-costs-content {
    margin-top: 20px;
}

#car-detail.container .running-costs-content h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 10px;
}

#car-detail.container .running-costs-content p {
    font-size: 14px;
    color: #555;
    margin: 5px 0 15px 0;
    line-height: 1.5;
}

#car-detail.container .running-costs-content p strong {
    font-weight: bold;
    color: #000;
}

#car-detail.container .running-costs-content .info-box {
    background-color: #e0f7fa;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #b2ebf2;
}

#car-detail.container .running-costs-content .info-box .info-icon {
background-color: #007bff;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-right: 5px;
  font-weight: normal;
  font-size: 11px;
  padding-right: 0px;
  padding-top: 2px;
}

#car-detail.container .running-costs-content .disclaimer,
#car-detail.container .running-costs-content .note {
    font-size: 12px;
    color: #555;
    margin-top: 10px;
}

#car-detail.container #runningCostsPanel .info-box {
    background-color: #f6f8fd;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #b2ebf2;
}

/* Trade-in lightbox for trade-in options */
#car-detail.container .trade-in-lightbox {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    transition: opacity 0.3s ease;
}

.main-content section#car-detail.container #videoLightbox.lightbox .lightbox-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: row;
    gap: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

.main-content section#car-detail.container #financeApplyLightbox.lightbox .lightbox-content .close-lightbox,
.main-content section#car-detail.container #panoramaLightbox.lightbox .lightbox-content .close-lightbox,
.main-content section#car-detail.container #videoLightbox.lightbox .lightbox-content .close-lightbox {
    position: absolute;
    top: 0px;
    right: 10px;
    font-size: 24px;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

#car-detail.container #enquiryLightbox.lightbox .lightbox-content.reserve-form .reserve-container .reserve-right form#enquiryForm input,
#car-detail.container #enquiryLightbox.lightbox .lightbox-content.reserve-form .reserve-container .reserve-right form#enquiryForm textarea,
#car-detail.container #testdriveLightbox.lightbox .lightbox-content.reserve-form .reserve-container .reserve-right form#testdriveForm input,
#car-detail.container #testdriveLightbox.lightbox .lightbox-content.reserve-form .reserve-container .reserve-right form#testdriveForm textarea,
#car-detail.container #reserveLightbox.lightbox .lightbox-content.reserve-form .reserve-container .reserve-right form#reserveForm input {
	width: 100%;
}


.main-content section#car-detail.container .service-highlight.istock {
	background-color: #3498db;
	color: #FFF;
	font-size: 1em;
	padding-bottom: 3px;
}

.main-content section#car-detail.container .service-highlight {
    color: #000;
    background-color: #ffe300;
    font-size: 1.1em;
    border: 1px solid #b9a40026;
    font-family: Fabriga Medium, Fabriga regular, Lato, sans-serif;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    cursor: text;
    padding-top: 5px;
    padding-bottom: 1px;
    padding-left: 10px;
    padding-right: 10px;
    letter-spacing: 0.50px;
    display: none;
    white-space: nowrap;
}

.main-content section#car-detail.container .service-highlight::selection {
    background: #ffe300;
    color: #FFFFFF;
}

.fas.fa-circle-notch:hover,
.fas.fa-video:hover {
    color: #dfdfdf;
}

.fas.fa-print {
    margin-right: 6px;
    margin-left: 5px;
}

.disclimer-logo {
    max-width: 145px;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
}

#car-detail.container .trade-in-lightbox-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: row;
    gap: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

#car-detail.container .trade-in-close {
    color: #333;
    position: absolute;
    right: 10px;
    top: 0px;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

#car-detail.container .trade-in-close:hover,
#car-detail.container .trade-in-close:focus {
    color: #007bff;
}

#car-detail.container .trade-in-left {
    flex: 1;
    padding: 10px;
    background-color: #f9f9f9;
}

#car-detail.container .trade-in-right {
    flex: 1;
    padding: 10px;
    border-left: 1px solid #ddd;
    background-color: #f9f9f9;
}

#car-detail.container .trade-in-right form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#car-detail.container .trade-in-right form label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-bottom: 0;
    margin-top: 0.5em;
}

#car-detail.container .trade-in-right form input[type="text"],
#car-detail.container .trade-in-right form input[type="number"] {
    margin-top: 5px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#car-detail.container .trade-in-right form input[type="text"]:focus,
#car-detail.container .trade-in-right form input[type="number"]:focus {
    border-color: #007bff;
    outline: none;
}

#car-detail.container .trade-in-right form input[type="checkbox"] {
    margin-right: 10px;
    vertical-align: middle;
    margin-top: 0;
    margin-bottom: 3px;
    width: 21px !important;
    height: 21px !important;
    cursor: pointer;
}

#car-detail.container .reserve-right form input[type="checkbox"] {
    width: 21px !important;
    height: 21px !important;
    cursor: pointer;
}

#car-detail.container .trade-in-right form label[for="findMyVehicle"] {
    display: flex;
    align-items: center;
    margin-top: 15px;
    font-size: 13px;
    color: #333;
    line-height: 1.2em;
}

#car-detail.container .trade-in-right form button {
    margin-top: 20px;
    padding: 12px;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    text-transform: none;
    transition: background-color 0.3s ease;
    text-shadow: none;
}

#car-detail.container .trade-in-right form button:hover {
    background-color: #0056b3;
}

#car-detail.container .trade-in-right form button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#car-detail.container .trade-in-right form label.checkbox-label.nostar::after,
#car-detail.container .reserve-right form label.checkbox-label.nostar::after {
    content: " *";
    color: white;
    font-size: 14px;
}

#car-detail.container .reserve-right form label::after,
#car-detail.container .trade-in-right form label::after {
    content: " *";
    color: red;
    font-size: 14px;
}

#car-detail.container .trade-in-right p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

#car-detail.container .trade-in-left h2,
#car-detail.container .trade-in-left h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

#car-detail.container .trade-in-left p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

#car-detail.container .trade-in-left a {
    color: #007bff;
    text-decoration: none;
}

#car-detail.container .trade-in-left a:hover {
    text-decoration: underline;
}

#car-detail.container .trade-in-right {
    margin-top: .75em;
}

#car-detail.container .trade-in-right .partex-result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#car-detail.container .trade-in-right .partex-result-table td {
    padding: 8px;
    font-size: 14px;
    color: #333;
}

#car-detail.container .trade-in-right .partex-result-table .partex-item-key {
    font-weight: bold;
    width: 40%;
}

#car-detail.container .trade-in-right .partex-result-table .partex-item-value {
    width: 60%;
}

#car-detail.container .trade-in-right #partex-confirm,
#car-detail.container .trade-in-right #partex-confirm-button,
#car-detail.container .trade-in-right .partex-confirm-button {
    margin-top: 20px;
    padding: 12px;
    background-color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    text-transform: none;
    transition: background-color 0.3s ease;
    text-shadow: none;
}

#car-detail.container .trade-in-right #partex-confirm:hover,
#car-detail.container .trade-in-right #partex-confirm-button:hover,
#car-detail.container .trade-in-right .partex-confirm-button:hover {
    /* background-color: #0056b3; */
    background-color: #34495e;
    text-shadow: none;
}

#car-detail.container #partexjsonresult .resultheader {
    margin-bottom: 0px;
    font-size: 16px;
    color: #007bff;
    line-height: 1.5;
}

#car-detail.container #partexjsonresult .partex-item-key {
	font-weight: bold;
}

#car-detail.container .trade-in-right #partexjsonresult .partexresult tbody tr {
    font-size: 15px;
}

#car-detail.container .trade-in-right .subheader {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
}

#car-detail.container .trade-in-right .subheader p {
    margin: 0;
}

#car-detail.container .trade-in-right .resultvaluation {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

#car-detail.container .trade-in-right .resultvalidon {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

#car-detail.container .trade-in-right .resulttxt {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

#car-detail.container .trade-in-right .resulttxt.bolden {
    font-weight: bold;
}

#car-detail.container .trade-in-right .subtxt {
    font-size: 14px;
    color: #2c3e50;
    margin-top: 5px;
}

#car-detail.container .trade-in-right .subtxt span {
    cursor: pointer;
    color: #007bff;
}

#car-detail.container .trade-in-right .subtxt span:hover {
    text-decoration: underline;
}

/* Lightbox styling for various popups */
#car-detail.container .lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    transition: opacity 0.3s ease;
    
		/* IE6/7 Fix: Use _height with expression */
    _height: expression(document.documentElement.clientHeight + "px");
    
}

#car-detail.container .lightbox-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-height: 80vh;
    overflow-y: auto;
}

#car-detail.container .close {
    color: #333;
    position: absolute;
    right: 10px;
    top: 0px;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

#car-detail.container .close:hover,
#car-detail.container .close:focus {
    color: #007bff;
}

/* Quote table styling */
#car-detail.container .quote-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#car-detail.container #cs-quote-table td,
#car-detail.container #hp-quote-table td,
#car-detail.container .quote-table th,
#car-detail.container .quote-table td,
#car-detail.container #cs-quote-table th,
#car-detail.container #hp-quote-table th  {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    font-size: 14px;
}

#car-detail.container .lightbox-content p {
    font-size: 14px;
}

#car-detail.container .quote-table th,
#car-detail.container #cs-quote-table th,
#car-detail.container #hp-quote-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Reserve lightbox styling */
#car-detail.container .reserve-lightbox-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-height: 80vh;
    overflow-y: auto;
}

#car-detail.container .reserve-lightbox-content h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

#car-detail.container .reserve-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}

#car-detail.container .trade-in-container .trade-in-details {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: #000;
    width: 100%;
}

#car-detail.container .trade-in-container .trade-in-details h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #2c3e50;
}

#car-detail.container .trade-in-container .trade-in-details .trade-in-table {
    display: flex;
    flex-direction: column;
}

#car-detail.container .trade-in-container .trade-in-details .trade-in-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}

#car-detail.container .trade-in-container .trade-in-details .trade-in-label {
    flex: 1;
    font-weight: bold;
    text-align: left;
}

#car-detail.container .trade-in-container .trade-in-details .trade-in-value {
    flex: 1;
    text-align: right;
    white-space: nowrap;
}

#car-detail.container .reserve-container h3 {
    font-weight: normal;
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    font: 16px/1.6625 Fabriga regular,Humanist777BT-LightB,Lato,sans-serif !important;
}

#car-detail.container .reserve-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}

#car-detail.container .reserve-left {
    width: 40%;
    padding: 10px;
    background-color: #f9f9f9;
}

#car-detail.container .reserve-right {
    width: 60%;
    padding: 10px;
    border-left: 1px solid #ddd;
    background-color: #f9f9f9;
}

#car-detail.container .reserve-left h2,
#car-detail.container .reserve-right h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 23px;
}

#car-detail.container .reserve-right .terms-note,
#car-detail.container .reserve-container .terms-note {
    font-size: 12px;
    color: #555;
    margin-top: 10px;
    line-height: 1.5;
}

#car-detail.container .reserve-left p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

#car-detail.container .reserve-left a {
    color: #007bff;
    text-decoration: none;
}

#car-detail.container .reserve-left a:hover {
    text-decoration: underline;
}

#car-detail.container .reserve-right p {
    font-size: 18px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

#car-detail.container .reserve-right form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#car-detail.container .reserve-right form label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-bottom: 0;
    margin-top: 0.5em;
}

#car-detail.container #welcomeLightbox.lightbox .lightbox-content .welcome-content .welcome-section label,
#car-detail.container #welcomeLightbox.lightbox .lightbox-content .welcome-content .guest-section label,
#car-detail.container #testdriveLightbox.lightbox .lightbox-content.reserve-form .reserve-container .reserve-right form#testdriveForm label.checkbox-label,
#car-detail.container #enquiryLightbox.lightbox .lightbox-content.reserve-form .reserve-container .reserve-right form#enquiryForm label.checkbox-label,
#car-detail.container #reserveLightbox.lightbox .lightbox-content.reserve-form .reserve-container .reserve-right form#reserveForm label.checkbox-label {
    font-size: 13px;
}

#car-detail.container .reserve-right form input[type="text"],
#car-detail.container .reserve-right form input[type="number"] {
    margin-top: 5px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#car-detail.container .reserve-right form input[type="text"]:focus,
#car-detail.container .reserve-right form input[type="number"]:focus {
    border-color: #007bff;
    outline: none;
}

#car-detail.container .reserve-right form input[type="checkbox"] {
    margin-right: 5px;
    vertical-align: middle;
    margin-top: 0;
    margin-bottom: 3px;
    width: 24px;
    height: 24px;
    transform: scale(1.2);
}

#car-detail.container .reserve-right form label[for="findMyVehicle"] {
    display: flex;
    align-items: center;
    margin-top: 15px;
    font-size: 16px;
    color: #333;
    line-height: 1.4em;
}

#car-detail.container .reserve-right form button {
    margin-top: 20px;
    padding: 12px;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    text-transform: none;
    transition: background-color 0.3s ease;
    text-shadow: none;
}

#car-detail.container .reserve-right form button:hover {
    background-color: #0056b3;
}

#car-detail.container .reserve-right form button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    #car-detail.container .car-info {
        flex-direction: column;
        align-items: stretch;
    }
    #car-detail.container .car-image {
        width: 100%;
        order: 1;
    }
		
    #car-detail.container .car-details {
        width: 100%;
        order: 2;
    }
    .car-icons .icon-text-pair.highlight-0 {
        display: none !important;
    }
    #car-detail.container .car-details .purchase-options {
        display: grid !important;
        grid-template-columns: 1fr;
    }
    #car-detail.container .car-details .purchase-option {
        flex: 0 0 100%;
    }
    #car-detail.container .trade-in-lightbox-content {
        flex-direction: column;
        width: 90%;
        max-width: 100%;
    }
    #car-detail.container .trade-in-lightbox-content h2 {
        font-size: 1.2em;
    }
    #car-detail.container .trade-in-left,
    #car-detail.container .trade-in-right {
        width: 100%;
        padding: 10px;
        border-left: none;
    }
    #car-detail.container .trade-in-right {
        border-top: 1px solid #ddd;
    }
    #car-detail.container .trade-in-right form input[type="checkbox"] {
        width: 20px;
        height: 20px;
        transform: scale(1.1);
    }
    #car-detail.container .trade-in-right form label[for="findMyVehicle"] {
        font-size: 14px;
        line-height: 1.3em;
    }
    #car-detail.container .reserve-lightbox-content {
        flex-direction: column;
        width: 90%;
        max-width: 100%;
    }
    #car-detail.container .reserve-container {
        flex-direction: column;
    }
    #car-detail.container .reserve-left,
    #car-detail.container .reserve-right {
        width: 100%;
        padding: 10px;
        border-left: none;
    }
    #car-detail.container .reserve-right {
        border-top: 1px solid #ddd;
    }
    #car-detail.container .reserve-right form input[type="checkbox"] {
        width: 20px;
        height: 20px;
        transform: scale(1.1);
    }
    #car-detail.container .reserve-right form label[for="findMyVehicle"] {
        font-size: 14px;
        line-height: 1.3em;
    }
    #car-detail.container .reserve-container h2 {
        font-size: 1.1em;
    }
}

/* Lightbox styling for Welcome */
#car-detail.container #welcomeLightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    transition: opacity 0.3s ease;
}

#car-detail.container #welcomeLightbox .lightbox-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px !important;
    border: 1px solid #888;
    width: 80% !important;
    max-width: 800px !important;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-height: 80vh;
    overflow-y: auto;
    min-height: 300px;
    box-sizing: border-box;
}

#car-detail.container #welcomeLightbox .lightbox-content .welcome-content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

#car-detail.container #welcomeLightbox .lightbox-content .close {
    color: #333;
    position: absolute;
    right: 10px;
    top: 0px;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

#car-detail.container #welcomeLightbox .lightbox-content .close:hover,
#car-detail.container #welcomeLightbox .lightbox-content .close:focus {
    color: #007bff;
}

#car-detail.container #welcomeLightbox .lightbox-content .welcome-section,
#car-detail.container #welcomeLightbox .lightbox-content .guest-section {
    flex: 1 1 50%;
    min-width: 0;
    padding: 10px;
    box-sizing: border-box;
    background-color: #f9f9f9;
}

#car-detail.container #welcomeLightbox .lightbox-content .guest-section {
    border-left: 1px solid #ddd;
}

#car-detail.container #welcomeLightbox .lightbox-content h2 {
    color: #2c3e50;
    font-size: 23px;
    margin-bottom: 15px;
}

#car-detail.container #welcomeLightbox .lightbox-content h3 {
    margin-bottom: 15px;
    font-size: 17px;
    color: #555;
    line-height: 1.5;
    font: 17px/1.6625 Fabriga regular,Humanist777BT-LightB,Lato,sans-serif !important;
    font-weight: bold !important;
}

#car-detail.container #welcomeLightbox .lightbox-content p {
    display: grid;
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

#car-detail.container #welcomeLightbox .lightbox-content label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

#car-detail.container #welcomeLightbox .lightbox-content input[type="email"] {
    margin-top: 5px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#car-detail.container #welcomeLightbox .lightbox-content input[type="email"]:focus {
    border-color: #007bff;
    outline: none;
}

#car-detail.container #welcomeLightbox .lightbox-content input[type="checkbox"] {
    margin-right: 10px;
    vertical-align: middle;
    margin-top: 0;
    margin-bottom: 3px;
    width: 24px !important;
    height: 24px !important;
    /*transform: scale(1.2);*/
    cursor: pointer;
}

#car-detail.container #welcomeLightbox .lightbox-content .continue-btn,
#car-detail.container #welcomeLightbox .lightbox-content .continue-guest-btn {
    margin-top: 20px;
    padding: 12px;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    text-transform: none;
    transition: background-color 0.3s ease;
    text-shadow: none;
    width: 100%;
    min-height: 48px;
}

#car-detail.container #welcomeLightbox .lightbox-content .continue-btn:hover,
#car-detail.container #welcomeLightbox .lightbox-content .continue-guest-btn:hover {
    background-color: #0056b3;
}

#car-detail.container #welcomeLightbox .lightbox-content .continue-btn:disabled,
#car-detail.container #welcomeLightbox .lightbox-content .continue-guest-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#car-detail.container #welcomeLightbox .lightbox-content a.data-use {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
}

#car-detail.container #welcomeLightbox .lightbox-content a.data-use:hover {
    text-decoration: underline;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections {
    display: none;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    align-items: flex-start;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application {
    flex: 1 1 50%;
    min-width: 0;
    padding: 15px;
    box-sizing: border-box;
    border: 0;
    background-color: #f9f9f9;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections #sgparts {
    border-left: 1px solid #ddd;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections #loginsec.vacancy-application h4,
#car-detail.container #welcomeLightbox .lightbox-content .auth-sections #sgparts.vacancy-application h4 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: -19px;
    padding-top: 10px;
    font-weight: normal;
    text-transform: none;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections #loginsec.vacancy-application h5,
#car-detail.container #welcomeLightbox .lightbox-content .auth-sections #sgparts.vacancy-application h5 {
    padding-top: 20px;
    color: #2c3e50;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application label {
    font-weight: bold;
    font-size: 0.8em;
    color: #333;
    margin-bottom: 0;
    margin-top: 0.5em;
		padding-top: 5px;
  	padding-bottom: 5px;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application input[type="text"],
#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application input[type="password"],
#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application select {
    margin-top: 5px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    font-size: 15px;
    transition: border-color 0.3s ease;
    font-family: Fabriga regular,Lato,sans-serif;
    max-width: 300px;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application input[type="text"]:focus,
#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application input[type="password"]:focus,
#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application select:focus {
    border-color: #007bff;
    outline: none;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application .submit {
    margin-top: 20px;
    padding: 14px;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 17px;
    color: #fff;
    text-transform: none;
    transition: background-color 0.3s ease;
    text-shadow: none;
    width: 100%;
    min-height: 48px;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application .submit:hover {
    background-color: #0056b3 !important;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application .submit:disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application .error {
    font-size: 14px;
    color: #df4343;
    margin-bottom: 10px;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application a {
    color: #007bff;
    text-decoration: none;
    font-size: 13px;
    vertical-align: bottom;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application a:hover {
    text-decoration: underline;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application .smalltxt,
#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application .reqRed {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application .red {
    color: red;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application .privAgreechec input[type="checkbox"] {
    margin-right: 5px;
    vertical-align: middle;
    margin-top: 0;
    margin-bottom: 3px;
    width: 24px !important;
    height: 24px !important;
    /*transform: scale(1.2);*/
    cursor: pointer;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections #sgparts.vacancy-application form#regForm .privAgreechec label.reqRed.checkLabel {
	display: inline;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  font-size: 12px !important;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application .vacancy-application-headline.left {
    margin-bottom: 15px;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections #loginsec.vacancy-application form#loginForm div#vacancy-application-submit input.submit {
    float: left;
}

#car-detail.container #welcomeLightbox .lightbox-content .auth-sections #loginsec.vacancy-application form#loginForm #login-error.error {
    font-weight: normal;
    padding-top: 10px;
    color: #df4343;
    font-size: 13px;
}

/* Tablet-specific breakpoint for iPad landscape (769px–1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    #car-detail.container #welcomeLightbox .lightbox-content {
        width: 90%;
        max-width: 900px;
    }

    #car-detail.container #welcomeLightbox .lightbox-content .welcome-content {
        flex-direction: row;
        gap: 30px;
    }

    #car-detail.container #welcomeLightbox .lightbox-content .auth-sections {
        flex-direction: row;
        gap: 30px;
    }

    #car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application {
        padding: 20px;
    }

    #car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application h4 {
        font-size: 20px;
    }

    #car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application label {
        font-size: 15px;
    }

    #car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application .error {
        font-size: 14px;
        margin-bottom: 15px;
    }
}

/* Mobile breakpoint (including iPad portrait, max-width: 768px) */
@media (max-width: 768px) {
    #car-detail.container #welcomeLightbox .lightbox-content {
        width: 95%;
        padding: 20px;
    }

    #car-detail.container #welcomeLightbox .lightbox-content .welcome-content {
        flex-direction: column;
    }

    #car-detail.container #welcomeLightbox .lightbox-content .welcome-section,
    #car-detail.container #welcomeLightbox .lightbox-content .guest-section {
        flex: 1 1 100%;
        width: 100%;
        background-color: #f9f9f9;
    }

    #car-detail.container #welcomeLightbox .lightbox-content .guest-section {
        border-left: none;
        border-top: 1px solid #ddd;
    }

    #car-detail.container #welcomeLightbox .lightbox-content .auth-sections {
        flex-direction: column;
        gap: 20px;
    }

    #car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application {
        flex: 1 1 100%;
        width: 100%;
        padding: 15px;
    }

    #car-detail.container #welcomeLightbox .lightbox-content .auth-sections #sgparts {
        border-top: 1px solid #ddd;
        margin-top: 10px;
        border-left: none;
    }


		#car-detail.container #welcomeLightbox.lightbox .lightbox-content .welcome-content .auth-sections #sgparts.vacancy-application #regForm #vacancy-application-title select,
    #car-detail.container #welcomeLightbox .lightbox-content .auth-sections #loginsec.vacancy-application #loginForm input,
    #car-detail.container #welcomeLightbox .lightbox-content .auth-sections #sgparts.vacancy-application #regForm input {
        max-width: initial;
        margin-right: 10px;
    }

    #car-detail.container #welcomeLightbox .lightbox-content h2 {
        font-size: 1.2em;
    }

    #car-detail.container #welcomeLightbox .lightbox-content h3 {
        font-size: 14px;
    }

    #car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application h4 {
        font-size: 18px;
    }

    #car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application label {
        font-size: 14px;
        line-height: 1.4em;
        padding-top: 5px;
    		padding-bottom: 5px;
    }

    #car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application .submit {
        max-width: 100%;
        min-height: 48px;
    }

    #car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application .privAgreechec input[type="checkbox"] {
        width: 24px !important;
        height: 24px !important;
        transform: scale(1.2);
    }

    #car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application form > div {
        margin-bottom: 12px;
    }
}

/* Enhance for iPad Pro (large screens, min-width: 1025px) */
@media (min-width: 1025px) {
    #car-detail.container #welcomeLightbox .lightbox-content {
        max-width: 1000px;
    }

    #car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application h4 {
        font-size: 22px;
    }

    #car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application label {
        font-size: 14px;
        padding-bottom: 0;
    }

    #car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application input[type="text"],
    #car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application input[type="password"],
    #car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application select {
			font-size: 16px;
   		width: 100%;
    	max-width: initial;
    }

    #car-detail.container #welcomeLightbox .lightbox-content .auth-sections .vacancy-application .submit {
        font-size: 16px;
        padding: 10px;
    }
}

/* Lightbox styling for Save Confirmation */
#saveConfirmationLightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    transition: opacity 0.3s ease;
}

#saveConfirmationLightbox .lightbox-content.save-confirmation {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#saveConfirmationLightbox .close {
    color: #333;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

#saveConfirmationLightbox .close:hover,
#saveConfirmationLightbox .close:focus {
    color: #007bff;
}

#saveConfirmationLightbox .lightbox-content.save-confirmation h2 {
    color: #2c3e50;
    font-size: 23px;
    margin-bottom: 0px;
    text-align: center;
}

#saveConfirmationLightbox .save-confirm-button.primary,
#saveConfirmationLightbox .save-confirm-button.secondary {
    margin-top: 0px;
    padding: 12px;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    text-transform: none;
    transition: background-color 0.3s ease;
    text-shadow: none;
    width: 100%;
    max-width: 300px;
}

#saveConfirmationLightbox .save-confirm-button.primary:hover,
#saveConfirmationLightbox .save-confirm-button.secondary:hover {
    background-color: #0056b3;
}

#saveConfirmationLightbox .save-confirm-button.primary:disabled,
#saveConfirmationLightbox .save-confirm-button.secondary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#saveConfirmationLightbox .save-confirm-button.secondary {
    background-color: #6c757d;
}

#saveConfirmationLightbox .save-confirm-button.secondary:hover {
    background-color: #5a6268;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    #saveConfirmationLightbox .lightbox-content.save-confirmation {
        width: 90%;
        max-width: 100%;
    }

    #saveConfirmationLightbox .lightbox-content.save-confirmation h2 {
        font-size: 1.2em;
    }

    #saveConfirmationLightbox .save-confirm-button.primary,
    #saveConfirmationLightbox .save-confirm-button.secondary {
        max-width: 100%;
    }
}



/* Mobile: Single-column layout */
@media (max-width: 767px) {
  #welcomeLightbox.lightbox .auth-sections .my-account-section .my-account-content {
    grid-template-columns: 1fr; /* Single column */
    gap: 15px; /* Slightly smaller gap for mobile */
    padding: 10px; /* Adjust padding for mobile */
  }
  
  #car-detail.container .car-header .car-title p#strl { font-size: 11px; width: fit-content; }
  
}


/* Mobile-specific adjustments */
@media (max-width: 767px) {
  #welcomeLightbox.lightbox .auth-sections .my-account-section .result-item {
    margin-bottom: 0; /* Ensure no extra margin on mobile */
  }
}


#welcomeLightbox.lightbox .auth-sections .my-account-section .my-account-flex {
  display: flex;
  flex-direction: row;
  width: 100%;
  box-sizing: border-box;
}

#welcomeLightbox.lightbox .auth-sections .my-account-section .my-account-main {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

/* Mobile: Adjust flex layout if needed */
@media (max-width: 767px) {
  #welcomeLightbox.lightbox .auth-sections .my-account-section .my-account-flex {
    flex-direction: column; /* Stack sidebar and main content on mobile */
  }
}



#welcomeLightbox.lightbox .auth-sections .my-account-section .my-account-content {
  min-width: 500px; /* Adjust as needed */
}
@media (max-width: 767px) {
  #welcomeLightbox.lightbox .auth-sections .my-account-section .my-account-content {
    min-width: 100%; /* Full width on mobile */
  }
}




/* Remove grid from .my-account-content */
#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .my-account-content {
  padding: 3px;
  box-sizing: border-box;
  min-width: 0; /* Allow shrinking */
}

/* Apply grid to the new wrapper */
#car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .my-account-content .result-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two columns */
  gap: 20px;
}

/* Mobile: Single-column layout */
@media (max-width: 767px) {
  #car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .my-account-content .result-items-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 15px;
  }

  #car-detail.container #welcomeLightbox .lightbox-content .auth-sections .my-account-section .my-account-content {
    padding: 10px;
    min-width: 100%;
  }
  
}





#car-detail.container #welcomeLightbox.lightbox .lightbox-content .welcome-content .auth-sections .my-account-section .my-account-flex .my-account-main .lbcontentheader h3 {
	margin-bottom: 0;
  font-size: 16px !important;
  color: black;
  margin-top: 15px;
  margin-left: 5px;
}


#car-detail.container #welcomeLightbox.lightbox .lightbox-content .welcome-content .auth-sections  p.monthlypayment.top {
	margin-bottom: 0;
}


#car-detail.container #welcomeLightbox.lightbox .lightbox-content .welcome-content .auth-sections .item-detail .monthlypayment.bottom {
  margin-top: -5px;
}


@supports (-webkit-overflow-scrolling: touch) {
  .main-content #car-detail .car-header .car-price p.service-highlight,
  .main-content #car-detail .car-info aside.car-details a.view-quote-link
  {
  	padding-bottom: 7px !important; 
  }
}


@media only screen and (min-width: 150px) and (max-width: 480px) and (orientation: portrait) {
	.main-content .car-details .purchase-option #pcp-monthly-payment .vat-rfl, 
	.main-content .car-details .purchase-option #hp-monthly-payment .vat-rfl, 
	.main-content.car-details .purchase-option #cs-monthly-payment .vat-rfl {
	  font-size: 0.8em;
	  float: initial;
	}
	.main-content #car-detail .car-header .car-price h2 .retailprice,
	.main-content #car-detail .car-header .car-price h2 .vat-rfl {
	  float: right;
	}
	
	.main-content #car-detail .car-header .car-title p#deriv {
		min-width: 245px;
	}


	
}

/* ----------------------------------------------------------------------------
   AT Connect reservation handling — Option (b): detail page Reserved state.
   utility.js renderCarData toggles .reserved-banner display:block, swaps the
   price block for .reserved-pill markup, and hides .purchase-options /
   .vehicle-quote-container / finance lightboxes. See feedback_apis.md for the
   reservationStatus payload field.
   ---------------------------------------------------------------------------- */

.reserved-banner {
    margin: 0 0 14px;
    padding: 12px 18px;
    background-color: #fdecea;
    border: 1px solid #d9534f;
    border-left-width: 5px;
    color: #7d1f1c;
    border-radius: 4px;
    font-size: 0.95em;
    line-height: 1.4;
}

.reserved-banner strong {
    color: #d9534f;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.car-header .car-price .reserved-pill {
    display: inline-block;
    padding: 8px 18px;
    background-color: #d9534f;
    color: #fff;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
}

/* Belt-and-braces: hide finance / reserve sections via attribute selector in
   case the JS hide path is bypassed (e.g. cached older utility.js). */
body[data-reservation-status="Reserved"] .purchase-options,
body[data-reservation-status="Reserved"] .view-quote-link,
body[data-reservation-status="Reserved"] .pcp-details,
body[data-reservation-status="Reserved"] .sliders,
body[data-reservation-status="Reserved"] .vehicle-quote-container,
body[data-reservation-status="Reserved"] #reserve-now-section,
body[data-reservation-status="Reserved"] #cash-reserve-section,
body[data-reservation-status="Reserved"] #vehicle-finance-container,
body[data-reservation-status="Reserved"] #pcp-header-payment,
body[data-reservation-status="Reserved"] #quote-summary-payment,
body[data-reservation-status="Reserved"] .reserve-button {
    display: none !important;
}


/* ============================================================================
   Contract Hire purchase-option tiles + static figures panel (#89 phase 5).
   The tiles are auto-placed by the grid (deliberately NOT added to the named
   grid-template-areas: a lone CH tile must flow to row 3 col 1, not strand
   itself in a named slot). Selecting a CH tile never calls Codeweavers.
   ========================================================================= */

.purchase-options.visible #bch-option { transition-delay: 0.5s; }
.purchase-options.visible #pch-option { transition-delay: 0.6s; }

#ch-figures-panel, #motability-figures-panel {
    margin: 15px 0;
}

#ch-figures-panel .ch-figures, #motability-figures-panel .ch-figures {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

#ch-figures-panel .ch-row, #motability-figures-panel .ch-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

#ch-figures-panel .ch-row:last-child, #motability-figures-panel .ch-row:last-child {
    border-bottom: none;
}

#ch-figures-panel .ch-row:nth-child(odd), #motability-figures-panel .ch-row:nth-child(odd) {
    background-color: #f9f9f9;
}

#ch-figures-panel .ch-row span:first-child, #motability-figures-panel .ch-row span:first-child {
    color: #555;
}

#ch-figures-panel .ch-row span:last-child, #motability-figures-panel .ch-row span:last-child {
    font-weight: bold;
    color: #2c3e50;
}

#ch-figures-panel .ch-terms {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}

#motability-figures-panel .mot-logo {
    display: block;
    box-sizing: border-box;
    width: 200px;
    max-width: 100%;
    height: auto;
    background: #0052bd;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 0 0 12px;
}

#motability-figures-panel .mot-terms {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}
