/* Target-only R17 polish for mcgheesusedcarsus.com. */
.iz-mcghee-logo-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

header h2 img.iz-mcghee-logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 260px;
	max-height: 100px;
	object-fit: contain;
}

/*
 * R17's captured header positioned the phone icon, logo, strapline and
 * contact block independently.  That worked with the donor placeholders but
 * lets real content collide.  Keep the existing hero and navigation while
 * giving the identity row one predictable desktop layout.
 */
header.tall .top {
	background: linear-gradient(135deg, #741126 0%, #560b1a 100%);
}

header.tall .header-image {
	box-shadow: inset 0 64px 58px -54px rgba(30, 3, 10, 0.75);
}

@media screen and (min-width: 741px) {
	header.tall {
		height: 440px;
	}

	header.tall .top {
		height: 190px;
	}

	header.tall .top .inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		box-sizing: border-box;
		height: 100%;
		max-width: 1180px;
		gap: 44px;
		padding: 0 32px;
		overflow: visible;
	}

	header.tall h2 {
		position: static;
		display: flex;
		align-items: center;
		min-width: 0;
		gap: 24px;
		margin: 0;
	}

	header.tall h2 .phone-mobile {
		display: none;
	}

	header.tall h2 > a:not(.phone-mobile) {
		flex: 0 0 auto;
	}

	header.tall h2 p {
		float: none !important;
		max-width: 390px;
		margin: 0 !important;
		color: #fff;
		font-size: clamp(18px, 1.65vw, 26px) !important;
		line-height: 1.22;
		text-align: left;
	}

	header.tall h2 img.iz-mcghee-logo {
		max-width: 230px;
		max-height: 92px;
	}

	header.tall .contact {
		position: static;
		display: grid;
		flex: 0 0 auto;
		max-width: 420px;
		gap: 7px;
		text-align: right;
	}

	header.tall .contact p {
		margin: 0;
		color: #f4e9ec;
		font-size: 16px;
		line-height: 1.35;
	}

	header.tall .contact a {
		overflow-wrap: anywhere;
	}

	header.tall nav.inner {
		display: flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		max-width: none;
		min-height: 48px;
		margin: 0;
		padding: 0 24px;
		overflow: visible;
		background: rgba(45, 6, 15, 0.94);
		z-index: 5;
	}

	header.tall nav .sf-menu {
		display: flex;
		align-items: stretch;
		justify-content: center;
		gap: 2px;
		margin: 0;
		padding: 0;
	}

	header.tall nav .sf-menu > li {
		display: block;
		float: none;
		margin: 0;
		background: transparent;
	}

	header.tall nav .sf-menu > li > a {
		display: block;
		box-sizing: border-box;
		min-height: 48px;
		padding: 13px 16px 10px;
		border-bottom: 3px solid transparent;
		background: transparent;
		color: #fff;
		font-size: 15px;
		line-height: 22px;
	}

	header.tall nav .sf-menu > li.current > a,
	header.tall nav .sf-menu > li > a:hover,
	header.tall nav .sf-menu > li > a:focus-visible {
		border-bottom-color: #d8c97f;
		background: rgba(255, 255, 255, 0.08);
		color: #fff;
	}

	/* Inner pages use the same ordered identity row and navigation as the home header. */
	header.small .top .inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		box-sizing: border-box;
		height: 100%;
		max-width: 1180px;
		gap: 36px;
		padding: 0 32px;
		overflow: visible;
	}

	header.small h2 {
		position: static;
		display: flex;
		align-items: center;
		min-width: 0;
		gap: 22px;
		margin: 0;
	}

	header.small h2 .phone-mobile {
		display: none;
	}

	header.small h2 > a:not(.phone-mobile) {
		flex: 0 0 auto;
	}

	header.small h2 p {
		float: none !important;
		max-width: 430px;
		margin: 0 !important;
		color: #fff;
		font-size: clamp(17px, 1.45vw, 22px) !important;
		line-height: 1.2;
		text-align: left;
		white-space: nowrap;
	}

	header.small h2 img.iz-mcghee-logo {
		max-width: 200px;
		max-height: 84px;
	}

	header.small .contact {
		position: static;
		display: grid;
		flex: 0 0 auto;
		max-width: 390px;
		gap: 6px;
		text-align: right !important;
	}

	header.small .contact p {
		margin: 0;
		color: #f4e9ec;
		font-size: 15px;
		line-height: 1.35;
	}

	header.small .contact a {
		overflow-wrap: anywhere;
	}

	header.small nav.inner {
		display: flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
		max-width: none;
		min-height: 48px;
		margin: 0;
		padding: 0 24px;
		overflow: visible;
		background: rgba(45, 6, 15, 0.94);
		z-index: 5;
	}

	header.small nav .sf-menu {
		display: flex;
		align-items: stretch;
		justify-content: center;
		gap: 2px;
		margin: 0;
		padding: 0;
	}

	header.small nav .sf-menu > li {
		display: block;
		float: none;
		margin: 0;
		background: transparent;
	}

	header.small nav .sf-menu > li > a {
		display: block;
		box-sizing: border-box;
		min-height: 48px;
		padding: 13px 16px 10px;
		border-bottom: 3px solid transparent;
		background: transparent;
		color: #fff;
		font-size: 15px;
		line-height: 22px;
	}

	header.small nav .sf-menu > li.current > a,
	header.small nav .sf-menu > li > a:hover,
	header.small nav .sf-menu > li > a:focus-visible {
		border-bottom-color: #d8c97f;
		background: rgba(255, 255, 255, 0.08);
		color: #fff;
	}
}

@media screen and (max-width: 740px) {
	header.tall h2 .phone-mobile,
	header.tall h2 p,
	header.small h2 .phone-mobile,
	header.small h2 p {
		display: none;
	}
}

.rkt-vdp-brand,
.rkt-inventory-brand {
	display: inline-flex;
	align-items: center;
}

.rkt-vdp-brand img.iz-mcghee-logo,
.rkt-inventory-brand img.iz-mcghee-logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 220px;
	max-height: 64px;
	object-fit: contain;
}

#main.cars .inner {
	max-width: 1120px;
	padding-right: 24px;
	padding-left: 24px;
}

#main.cars .filter_selects {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin: 28px 0 8px;
	padding: 20px;
	border: 1px solid #eadfe1;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(62, 17, 28, 0.07);
}

#main.cars .filter_selects .pair,
#main.cars .filter_selects label,
#main.cars .filter_selects select {
	width: 100%;
}

#main.cars .filter_selects label {
	display: block;
	margin-bottom: 7px;
	color: #3b1a22;
	font-weight: 700;
}

#main.cars .filter_selects select {
	height: 46px;
	padding: 0 14px;
	border: 1px solid #d7c9cc;
	border-radius: 8px;
	background: #fff;
	color: #241b1d;
	font-size: 16px;
}

#main.cars #grid_wrap.carlist {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	margin: 28px 0 56px !important;
	padding: 0;
	overflow: visible;
}

#main.cars #grid_wrap.carlist li {
	display: block;
	min-width: 0;
	margin: 0 !important;
}

#main.cars #grid_wrap.carlist li[hidden] {
	display: none !important;
}

#main.cars .iz-inventory-count {
	margin: 26px 0 -12px;
	color: #6d5d60;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

#main.cars #grid_wrap.carlist li > a {
	display: flex;
	height: 100%;
	min-height: 100%;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #eadfe1;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(62, 17, 28, 0.09);
	filter: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#main.cars #grid_wrap.carlist li > a:hover,
#main.cars #grid_wrap.carlist li > a:focus-visible {
	border-color: #7b1026;
	box-shadow: 0 14px 34px rgba(62, 17, 28, 0.16);
	filter: none;
	transform: translateY(-3px);
}

#main.cars #grid_wrap.carlist .car-image {
	display: block;
	float: none;
	width: 100%;
	height: 215px;
	object-fit: cover;
}

#main.cars #grid_wrap.carlist .caption {
	position: static;
	display: flex;
	width: auto;
	min-height: 130px;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 17px 18px 19px;
	background: #fff;
	color: #2b2022;
	text-align: left;
}

#main.cars #grid_wrap.carlist .iz-car-title {
	display: block;
	color: #651126;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 19px;
	line-height: 1.25;
}

#main.cars #grid_wrap.carlist .iz-car-meta {
	display: block;
	color: #665b5d;
	font-size: 14px;
	line-height: 1.5;
}

#main.cars #grid_wrap.carlist .sold-badge {
	top: 14px;
	right: 14px;
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.cd-description-body {
	max-width: 76ch;
	color: #403638;
	font-size: 16px;
	line-height: 1.75;
}

.cd-spec-item,
.cd-form-inner {
	border-radius: 8px;
}

/* R17's legacy form rules force every financing control to 90px. Restore a usable form grid. */
.contact-form-wrapper .contact-form form.iz-leads-financing {
	display: block;
	width: 100%;
	max-width: none;
	color: #30272a;
	font-size: 14px;
}

.contact-form-wrapper form.iz-leads-financing .iz-leads-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 24px;
	width: 100%;
}

.contact-form-wrapper form.iz-leads-financing .iz-leads-grid label {
	display: grid;
	grid-template-columns: max-content 1fr;
	width: auto !important;
	min-width: 0;
	max-width: none !important;
	align-items: baseline;
	column-gap: 4px;
	row-gap: 8px;
	margin: 0 !important;
	padding: 0 !important;
	color: #3f3336;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	text-align: left;
}

.contact-form-wrapper form.iz-leads-financing .iz-leads-grid label > span[aria-hidden='true'] {
	grid-column: 2;
	justify-self: start;
}

.contact-form-wrapper form.iz-leads-financing .iz-leads-grid label > :is(input, select, textarea, .iz-field) {
	grid-column: 1 / -1;
}

.contact-form-wrapper form.iz-leads-financing :is(input, select, textarea) {
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	min-height: 50px;
	margin: 0 !important;
	padding: 12px 14px;
	border: 1px solid #d9cdd0;
	border-radius: 8px;
	background: #fff;
	color: #30272a;
	font-size: 16px;
	line-height: 1.4;
}

.contact-form-wrapper form.iz-leads-financing :is(input, select, textarea):focus {
	border-color: #751129;
	box-shadow: 0 0 0 3px rgba(117, 17, 41, 0.12);
	outline: 0;
}

.contact-form-wrapper form.iz-leads-financing textarea {
	min-height: 130px;
	resize: vertical;
}

.contact-form-wrapper form.iz-leads-financing button[type='submit'] {
	display: block;
	width: min(260px, 100%);
	min-height: 50px;
	margin: 28px auto 0;
	padding: 13px 24px;
	border: 0;
	border-radius: 999px;
	background: #701126;
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.contact-form-wrapper form.iz-leads-financing button[type='submit']:hover,
.contact-form-wrapper form.iz-leads-financing button[type='submit']:focus-visible {
	background: #4b0917;
}

/* The visible Fleet prefix owns +1; the input begins after it without overlap. */
#contact-form .iz-field[data-iz-field='phone'] {
	position: relative;
	display: block;
	width: 100%;
}

#contact-form .iz-field[data-iz-field='phone'] .iz-phone-cc {
	left: 1px;
	top: 1px;
	bottom: 1px;
	width: 50px;
	border: 0;
	border-right: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 18px 0 0 18px;
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
}

#contact-form .iz-field[data-iz-field='phone'] input[type='tel'] {
	width: 100%;
	padding-left: 66px !important;
}

.iz-thank-you {
	padding: 52px 20px;
	background: linear-gradient(135deg, #641025 0%, #350913 100%);
	color: #fff;
	text-align: center;
}

.iz-thank-you__inner {
	max-width: 720px;
	margin: 0 auto;
}

.iz-thank-you__eyebrow {
	margin: 0 0 8px;
	color: #d9ca83;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.iz-thank-you h1 {
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(36px, 6vw, 58px);
}

.iz-thank-you p:not(.iz-thank-you__eyebrow) {
	margin: 0 auto 24px;
	color: #fff;
	font-size: 18px;
	line-height: 1.6;
	text-align: center;
}

.iz-thank-you a {
	display: inline-block;
	padding: 12px 20px;
	border: 1px solid #d9ca83;
	border-radius: 999px;
	background: #d9ca83;
	color: #351019;
	font-weight: 800;
}

.iz-thank-you a:hover,
.iz-thank-you a:focus-visible {
	background: #fff;
	color: #351019;
	text-decoration: none;
}

/* Shared R17 footer: the same contract is used by captured pages and VDPs. */
/* The captured service-icon sprite URL is invalid; live icons are supplied by the Fleet layer. */
ul.services-options li span {
	background-image: none !important;
}

.bx-wrapper .bx-controls-direction .bx-prev,
.bx-wrapper .bx-controls-direction .bx-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-image: none !important;
	font-size: 0;
	text-indent: 0;
}

.bx-wrapper .bx-controls-direction .bx-prev::before,
.bx-wrapper .bx-controls-direction .bx-next::before {
	color: currentColor;
	font: 700 30px/1 Arial, sans-serif;
}

.bx-wrapper .bx-controls-direction .bx-prev::before {
	content: '\2039';
}

.bx-wrapper .bx-controls-direction .bx-next::before {
	content: '\203a';
}

.iz-r17-footer {
	clear: both;
	box-sizing: border-box;
	width: 100%;
	padding: 0;
	border-top: 4px solid #d3bf67;
	background: linear-gradient(135deg, #651126 0%, #4a0a18 100%);
	color: #f7eef0;
	font-family: Arial, Helvetica, sans-serif;
}

.iz-r17-footer *,
.iz-r17-footer *::before,
.iz-r17-footer *::after {
	box-sizing: border-box;
}

.iz-r17-footer__main {
	display: grid;
	grid-template-columns: 1.2fr 0.72fr 1fr 1.35fr;
	gap: clamp(28px, 4vw, 58px);
	width: min(1220px, calc(100% - 48px));
	margin: 0 auto;
	padding: 58px 0 50px;
}

.iz-r17-footer section {
	min-width: 0;
}

.iz-r17-footer h2 {
	margin: 0 0 18px;
	color: #e1d17f;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 18px;
	line-height: 1.2;
}

.iz-r17-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.iz-r17-footer li {
	margin: 0 0 10px;
	font-size: 15px;
	line-height: 1.5;
}

.iz-r17-footer a {
	color: #f7eef0 !important;
	text-decoration: none;
	text-underline-offset: 4px;
}

.iz-r17-footer a:hover,
.iz-r17-footer a:focus-visible {
	color: #f0df8c !important;
	text-decoration: underline;
}

.iz-r17-footer__brand > a {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	margin-bottom: 20px;
	line-height: 0;
}

.iz-r17-footer__brand img.iz-mcghee-logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 220px;
	max-height: 88px;
	object-fit: contain;
}

.iz-r17-footer__brand-text {
	color: #fff;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.15;
}

.iz-r17-footer__brand p {
	max-width: 34ch;
	margin: 0 !important;
	padding: 0 !important;
	color: #e5d7da !important;
	font-size: 14px !important;
	line-height: 1.65 !important;
	text-align: left !important;
}

.iz-r17-footer__hours-title {
	margin-top: 26px !important;
}

.iz-r17-footer__hours li {
	display: grid;
	gap: 2px;
}

.iz-r17-footer__hours strong {
	color: #fff;
	font-size: 13px;
}

.iz-r17-footer__hours span {
	color: #d9cacc;
	font-size: 14px;
}

.iz-r17-footer__map {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 12px;
	background: #efe9e3;
	box-shadow: 0 14px 34px rgba(24, 2, 8, 0.28);
}

.iz-r17-footer__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.iz-r17-footer__directions {
	display: inline-block;
	margin-top: 14px;
	border-bottom: 1px solid rgba(240, 223, 140, 0.55);
	color: #f0df8c !important;
	font-size: 14px;
	font-weight: 700;
}

.iz-r17-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: min(1220px, calc(100% - 48px));
	margin: 0 auto;
	padding: 22px 0 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	color: #d9cacc;
	font-size: 13px;
	line-height: 1.5;
}

.iz-r17-footer__bottom > span:last-child {
	display: flex;
	align-items: center;
	gap: 12px;
}

.iz-r17-footer__bottom i {
	display: block;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: #d3bf67;
}

@media screen and (max-width: 960px) {
	.iz-r17-footer__main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 800px) {
	.cd-hero-inner,
	.cd-form-inner {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.cd-hero-inner > *,
	.cd-form-inner > * {
		min-width: 0;
		max-width: 100%;
	}
}

@media screen and (max-width: 840px) {
	#main.cars #grid_wrap.carlist {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 700px) {
	.contact-form-wrapper form.iz-leads-financing .iz-leads-grid {
		grid-template-columns: 1fr;
	}

	.contact-form-wrapper form.iz-leads-financing .iz-leads-span-2 {
		grid-column: auto;
	}
}

@media screen and (max-width: 580px) {
	.iz-r17-footer__main {
		grid-template-columns: 1fr;
		width: min(100% - 32px, 620px);
		gap: 34px;
		padding: 44px 0 38px;
	}

	.iz-r17-footer__bottom {
		align-items: flex-start;
		width: min(100% - 32px, 620px);
		flex-direction: column;
		gap: 12px;
	}

	.iz-r17-footer__bottom > span:last-child {
		flex-wrap: wrap;
	}

	header h2 img.iz-mcghee-logo {
		max-width: 190px;
		max-height: 72px;
	}

	.rkt-vdp-brand img.iz-mcghee-logo,
	.rkt-inventory-brand img.iz-mcghee-logo {
		max-width: 180px;
		max-height: 54px;
	}

	#main.cars .inner {
		padding-right: 16px;
		padding-left: 16px;
	}

	#main.cars .filter_selects {
		grid-template-columns: 1fr;
		gap: 14px;
		margin-top: 20px;
		padding: 16px;
	}

	#main.cars #grid_wrap.carlist {
		grid-template-columns: 1fr;
		gap: 18px;
		margin-top: 22px !important;
	}

	#main.cars #grid_wrap.carlist .car-image {
		height: auto;
		aspect-ratio: 4 / 3;
	}

	#main.cars #grid_wrap.carlist .caption {
		min-height: 0;
		padding: 16px;
	}

	#main.cars #grid_wrap.carlist .iz-car-title {
		font-size: 20px;
	}

	.cd-description-body {
		font-size: 15px;
		line-height: 1.7;
	}
}
