/**
 * AutoPro motion and mobile usability.
 * - Motion: links, buttons and form fields animate color only. The theme's "transition: all"
 *   rules made sizes, positions and the focus ring animate, which looked like a zoom or jerk on load and click.
 * - Readability: grey #999 text and Montserrat Thin (100) failed contrast on white; use #666 / #555 and weight 400.
 * - Brand icons: Font Awesome 4.7 still draws the old Twitter bird; show the current X logo instead.
 * - Mobile header: one row on Home V2, no duplicate in-page header, visible Home V5 menu button, Home V8 dealer box hidden on phones, spaced off-canvas menu.
 * - Mobile: tap targets of at least 44px, readable text, and no iOS zoom on form focus.
 * Loaded after style.css (and autopro-woo.css) on every page.
 */

/* Motion: animate color, never layout or the focus ring. */
a,
a.active,
a:active,
a:focus,
a:hover,
.ro-btn-bdr-2 {
	transition-property: color, background-color, border-color, text-decoration-color, opacity, box-shadow !important;
	transition-duration: 0.4s !important;
}
input,
textarea,
select,
button,
.btn,
.button {
	transition-property: color, background-color, border-color, box-shadow, opacity;
}
.quantity input.qty {
	transition: none;
}
/* Readability: secondary text at least 4.5:1 on white and the light-grey panels, no hairline weights. */
.car-vehicles li,
.car-vehicles li p,
p.tb-new,
p.tb-year,
p.tb-vehicles,
p.tb-color,
p.tb-mph,
.tb-new p,
.tb-year p,
.tb-vehicles p,
.tb-color p,
.tb-mph p,
.tb-content-bottom .tb-review,
.tb-blog-date-carousel time span,
.tb-item-rating > span,
.tb-info .blog-info,
.tb-info .blog-info a,
.blog-info .author-name a,
.blog-info .catgory-name a,
.single-product .tabs-car .woocommerce-tabs .tabs li a {
	color: #666 !important;
}
.tb-info .blog-info,
.tb-info .blog-info a,
.blog-info .author-name a,
.blog-info .catgory-name a {
	font-weight: 400 !important;
}
.single-product .tabs-car .woocommerce-tabs .tabs li.active a,
.single-product .tabs-car .woocommerce-tabs .tabs li a:hover {
	color: #da2c2d !important;
}
body .single-product .tb-sidebar .tb-woo-car-detail .spec-container .specs .cont-right h5 {
	color: #666 !important;
	font-weight: 400 !important;
}
body .single-product .tabs-car .woocommerce-tabs #tab-specification ul li strong {
	color: #555 !important;
	font-weight: 400 !important;
}
.title-search h3 {
	font-weight: 400 !important;
	letter-spacing: 1px;
}
.woocommerce .tb-product-item-inner .tb-image .onsale,
.woocommerce .tb-product-item-inner .tb-image .onsale span {
	font-weight: 600;
}

/* Brand icons: current X logo for the Twitter icon, drawn in the icon's own color. */
.fa.fa-twitter::before,
.fa.fa-twitter-square::before {
	content: "" !important;
	display: inline-block;
	width: 0.9em;
	height: 0.9em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E") center / contain no-repeat;
	vertical-align: -0.1em;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Mobile header: Home V2 stacks its columns (no xs/sm classes) and the in-page header widget duplicates it. */
@media (max-width: 991px) {
	.widget_header .tb-header-v2-custom {
		display: none !important;
	}
	.tb-header-v2 .tb-header-menu-inner > .container > .row,
	.tb-header-v2 .tb-header-menu-inner > .row {
		display: flex;
		align-items: center;
		flex-wrap: nowrap;
	}
	.tb-header-v2 .tb-header-menu-inner .row > [class*="col-"] {
		float: none;
		width: auto;
		min-width: 0;
		padding-left: 8px;
		padding-right: 8px;
	}
	.tb-header-v2 .tb-header-menu-inner .row > [class*="col-"]:nth-child(1) {
		order: 2;
		flex: 0 0 120px;
		text-align: center;
	}
	.tb-header-v2 .tb-header-menu-inner .row > [class*="col-"]:nth-child(2) {
		order: 3;
		flex: 1 1 0;
		text-align: right;
	}
	.tb-header-v2 .tb-header-menu-inner .row > [class*="col-"]:nth-child(3) {
		order: 1;
		flex: 1 1 0;
	}
	.tb-header-v2 .tb-account1 .groud-heared-right {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
	}
	.tb-header-v2 .tb-account1 .groud-heared-right > [class*="item-hd"] {
		flex: 0 0 auto;
		padding-right: 0;
	}
	.tb-header-v2 .tb-header-menu-inner .tb-account1 .widget_mini_sal {
		margin: 0;
	}
	.tb-header-v2 .tb-menu-control-mobi {
		display: inline-block;
		float: none;
	}
	.tb-header-v2 .tb-menu-control-mobi > a,
	.tb-header-v2 .tb-menu-control-mobi > a i {
		color: #fff;
	}
}

/* Home V5 (left-bar header): the mobile menu button was dark on the slider, under it (z-index 1) and under the admin bar. */
.tb-header-v5 #mobile-bar-v4 {
	top: 12px;
	left: 12px;
	z-index: 9990;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	font-size: 18px;
	line-height: 44px;
	text-align: center;
	transform: none;
	transition: background-color 0.3s ease, opacity 0.2s ease;
}
.tb-header-v5 #mobile-bar-v4:hover,
.tb-header-v5 #mobile-bar-v4:focus {
	background: #da2c2d;
	color: #fff;
}
.admin-bar .tb-header-v5 #mobile-bar-v4 {
	top: 58px;
}
.tb-header-v5:has(.mobile-leftbar.open) #mobile-bar-v4 {
	opacity: 0;
	pointer-events: none;
}
.tb-header-v5 .mobile-leftbar .br-button {
	top: 8px;
	right: 8px;
	left: auto;
	z-index: 2;
	width: 44px;
	height: 44px;
	color: #fff;
	font-size: 20px;
	line-height: 44px;
	text-align: center;
}
.admin-bar .tb-header-v5 .mobile-leftbar .br-button {
	top: 54px;
}

/* Home V8: the dealer quick-actions box is a desktop overlay; on phones it covered the slider, so hide it there. */
@media (max-width: 767px) {
	.tb-header-v8 .search-car-dealer #tb-mega-searchform {
		display: none;
	}
}

/* Off-canvas menu: room at the top so the first item does not touch the screen edge or the admin bar. */
@media (max-width: 991px) {
	.tb-menu-list.active {
		padding-top: 24px;
		box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
	.admin-bar .tb-menu-list.active {
		padding-top: 70px;
	}
	.tb-header-v2 .tb-menu-list.active {
		background-color: #000;
	}
	.tb-header-v2 .tb-menu-list > ul > li > a {
		color: #fff;
		font-size: 14px;
		line-height: 24px !important;
		height: auto;
	}
	.tb-menu-list > ul > li > a {
		padding-left: 20px !important;
		padding-right: 44px !important;
	}
	.tb-menu-list .sub-menu > li > a {
		padding-left: 28px !important;
	}
}

@media (max-width: 767px) {

	/* Header icons: search, My Account, language, menu toggle. */
	.widget_mini_sal .widget_searchform a.icon_search,
	.widget_mini_sal .dropdown > .dropdown-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
	}
	.widget_mini_sal .dropdown > .dropdown-toggle {
		padding: 0 6px;
	}
	.tb-menu-control-mobi > a {
		display: inline-block;
		min-width: 44px;
		min-height: 44px;
		text-align: center;
	}
	.widget_mini_sal .dropdown-menu > li > a {
		display: block;
		padding-top: 10px;
		padding-bottom: 10px;
	}

	/* Off-canvas menu rows. */
	.tb-menu-list > ul > li > a,
	.tb-menu-list .sub-menu > li > a {
		min-height: 44px;
		line-height: 24px;
		padding-top: 10px;
		padding-bottom: 10px;
	}
	.tb-menu-list > ul > li {
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	/* Footer menus and widget links. */
	.jws_theme_footer ul li {
		margin-bottom: 0;
	}
	.jws_theme_footer ul li a {
		display: inline-block;
		padding-top: 9px;
		padding-bottom: 9px;
	}

	/* Breadcrumb and inline action links. */
	.tb-breadcrumb a,
	.woocommerce-checkout .woocommerce-form-coupon-toggle a.showcoupon {
		display: inline-block;
		padding-top: 8px;
		padding-bottom: 8px;
	}

	/* Vehicle spec line on product cards. */
	ul.car-vehicles li {
		font-size: 12px;
	}

	/* Shop toolbar: grid/list icons and pagination. */
	.tb-view-as a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 40px;
		min-height: 40px;
	}
	.woocommerce nav.woocommerce-pagination ul li .page-numbers,
	.tb-shop-pagination .page-numbers {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 40px;
		min-height: 40px;
	}

	/* Cart remove link. */
	.woocommerce-cart table.shop_table.cart a.remove {
		width: 40px;
		height: 40px;
		font-size: 24px;
		line-height: 38px;
	}
	.woocommerce-cart table.shop_table_responsive.cart tr td.product-remove {
		padding: 4px 8px !important;
		border-bottom: 0;
		text-align: right !important;
	}
	.woocommerce-cart table.shop_table_responsive.cart tr td.product-quantity::before {
		line-height: 44px;
	}

	/* Back to top: smaller and tucked into the corner so it does not cover form fields. */
	#jws_theme_back_to_top {
		right: 12px;
		width: 36px;
		height: 36px;
		line-height: 36px;
	}
	#jws_theme_back_to_top.active {
		bottom: 16px !important;
	}

	/* Product gallery thumbnails and expand icon. */
	.yith_magnifier_gallery li a,
	a.yith_expand {
		min-width: 44px;
		min-height: 44px;
	}

	/* Form fields: 16px text stops iOS Safari from zooming on focus. */
	.woocommerce input.input-text,
	.woocommerce textarea,
	.woocommerce select,
	.woocommerce .select2-container .select2-selection__rendered,
	.search-filter-container input,
	.search-filter-container select,
	.wpcf7 input,
	.wpcf7 textarea,
	.wpcf7 select,
	.woocommerce-cart .woocommerce input.input-text,
	.woocommerce-checkout .woocommerce input.input-text,
	.woocommerce-checkout .woocommerce textarea.input-text,
	.woocommerce-checkout .woocommerce select,
	.woocommerce-account .woocommerce input.input-text,
	.widget-area-shop .widget_search .search-filter-container form ul.search-fields > li > select,
	.widget-area-shop .widget_search .search-filter-container form ul.search-fields > li > input[type="search"],
	.widget-area-shop .widget_search .search-filter-container form ul.search-fields > li > input[type="text"] {
		font-size: 16px;
	}
	.quantity.autopro-qty input.qty,
	.woocommerce-cart table.shop_table.cart .quantity.autopro-qty .qty,
	.tb-woo-car-detail .tb-car-add-to-cart .quantity.autopro-qty .qty {
		font-size: 16px;
	}
	.quantity.autopro-qty .autopro-qty-btn {
		width: 44px;
	}
}
