/* Direct.Parts additions to the Romeo (elite.parts) theme: only what Romeo has no class for. Colours come from Romeo's --primary / --secondary. */

/* navbar: Direct.Parts' logo is taller than the Romeo logos */
.navbar-left {
	height: 56px;
}

.navbar-right a,
.menu-content > div > div a {
	white-space: nowrap;
}

/* hero: live part count under the H1 */
.header .dp-parts-count {
	color: #fff;
	text-align: center;
	font-size: 20px;
	font-weight: 500;
	line-height: normal;
	margin-bottom: 32px;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* popular products fallback: manufacturer letter tiles in the product card layout */
.products-item.dp-letter-tile {
	min-height: 160px;
	justify-content: center;
	align-items: center;
	background: #f7f7fb;
}

.products-item.dp-letter-tile a {
	color: var(--primary);
	font-size: 52px;
	font-weight: 700;
}

/* product cards: Direct.Parts images are square thumbnails */
.products-item > a > img,
.dp-card-image {
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: #fff;
}

/* pagination: links take the Romeo colours; categories.css rotates the first image, which would turn "previous" around */
.pagination a {
	color: inherit;
}

.pagination img.left {
	transform: none !important;
}

/* inner-page search bar: autocomplete suggestions on pages whose Romeo stylesheet has none (about, contact, privacy) */
.search-form .autocomplete-items {
	position: absolute;
	border: 1px solid #d4d4d4;
	border-bottom: none;
	border-top: none;
	z-index: 99;
	top: 100%;
	left: 0;
	right: 0;
}

.search-form .autocomplete-items div {
	padding: 10px;
	cursor: pointer;
	background-color: #f9f8fc;
	border-bottom: 1px solid #d4d4d4;
	font-family: Montserrat;
}

.search-form .autocomplete-items div:hover {
	background-color: #e9e9e9;
}

.search-form .autocomplete-items div.autocomplete-active {
	background-color: DodgerBlue !important;
	color: #ffffff;
}

/* letter bar: current letter */
.tabs-list a.active,
.modal-body a.active {
	color: var(--primary);
	font-weight: 700;
}

.categories:last-of-type {
	padding-bottom: 24px;
}

.dp-empty {
	padding: 24px 0;
	color: #333;
	font-size: 16px;
}

/* product list: small thumbnail beside the description */
.table-item .second-col img {
	width: 48px;
	height: 48px;
	object-fit: contain;
	float: left;
	margin-right: 12px;
	border-radius: 4px;
	background: #fff;
}

.table-item .fourth-col a {
	color: var(--primary);
}

/* product page: image gallery thumbnails, tags and availability check */
#about-product .about-product-content > div.dp-gallery {
	height: auto;
	flex-grow: 0;
	width: auto;
	background: none;
	padding: 0;
	border-radius: 0;
}

.dp-gallery {
	min-width: 300px;
	max-width: 380px;
}

#about-product .buttons button:nth-child(3) {
	color: var(--primary);
	background-color: #fff;
	border: 1px solid var(--primary);
	display: flex;
	justify-content: center;
}

#about-product .dp-gallery img,
#about-product .about-product-content > img {
	width: 100%;
	min-width: 0;
	margin-right: 0;
	border-radius: 8px;
}

.dp-gallery-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

#about-product .dp-gallery-thumbs img {
	width: 64px;
	height: 64px;
	object-fit: contain;
	border: 1px solid #ededed;
	cursor: pointer;
}

#about-product .dp-gallery-thumbs img.active {
	border-color: var(--primary);
}

#about-product .about-product-content > div.dp-details {
	height: auto;
	min-height: 312px;
}

.dp-tags {
	margin-top: 24px;
	gap: 8px;
	flex-wrap: wrap;
}

.dp-tags span.dp-tag {
	border-radius: 16px;
	background: rgba(49, 144, 4, 0.1);
	padding: 6px 12px;
	color: #00773e;
	font-size: 12px;
	font-weight: 500;
	line-height: normal;
	white-space: nowrap;
}

.dp-tags > p {
	color: #333;
	font-size: 16px;
	font-weight: 600;
	margin-right: 8px;
}

#about-product .buttons button.dp-availability {
	color: var(--primary);
	background-color: #fff;
	border: 1px solid var(--primary);
	margin-right: 16px;
}

.dp-notice {
	margin-top: 24px;
	padding: 16px 24px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	line-height: 150%;
	display: none;
}

.dp-notice.dp-notice-success {
	background: rgba(49, 144, 4, 0.1);
	color: #00773e;
}

.dp-notice.dp-notice-muted {
	background: #f7f7fb;
	color: #333;
}

.dp-notice p + p {
	margin-top: 8px;
	font-weight: 400;
}

.dp-no-obligation {
	margin-top: 12px;
	color: #333;
	font-size: 14px;
}

/* quote / contact forms */
.dp-form-intro {
	color: #333;
	font-size: 14px;
	margin-top: 10px;
	/* its own line above the fields, never overlapping the first label */
	display: block;
	clear: both;
	position: relative;
	width: 100%;
	line-height: 1.4;
	margin-bottom: 12px;
}

.dp-form-intro em span {
	color: #d60026;
	font-weight: 600;
}

.form-item .dp-radio-group {
	display: flex;
	gap: 24px;
	padding-top: 12px;
}

.form-item .dp-radio-group label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 16px;
	color: #0c0c24;
	cursor: pointer;
}

.form-item .dp-radio-group input[type="radio"] {
	width: auto;
	padding: 0;
	accent-color: var(--primary);
	transform: scale(1.3);
}

.dp-form-alert {
	display: none;
	margin: 16px 0 0;
	padding: 12px 16px;
	border-radius: 8px;
	background: rgba(214, 0, 38, 0.08);
	color: #d60026;
	font-size: 14px;
}

.dp-more-info {
	margin-top: 16px;
	padding: 16px 24px;
	border-radius: 8px;
	background: rgba(7, 4, 144, 0.03);
	gap: 16px;
}

.dp-more-info p {
	color: #333;
	font-size: 14px;
	line-height: 150%;
	margin: 0 !important;
	font-weight: 400 !important;
}

.dp-more-info button,
.dp-button {
	padding: 12px 20px;
	border-radius: 8px;
	background: var(--primary);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	white-space: nowrap;
}

#additionalInformationDiv {
	display: none;
}

#request-quote .modal-content {
	cursor: default;
}

.dp-success {
	margin-top: 20px;
	padding: 16px 24px;
	border-radius: 8px;
	background: rgba(49, 144, 4, 0.1);
	color: #00773e;
	font-size: 18px;
	font-weight: 600;
	display: none;
	align-items: center;
	gap: 8px;
}

.dp-success img {
	width: 24px;
}

/* about / contact / privacy: the banner title is the page's H1 (Romeo uses a <p>) */
.content-header h1 {
	position: absolute;
	left: 60px;
	top: 50%;
	transform: translateY(-50%);
	color: #fff;
	font-size: 52px;
	font-weight: 700;
	line-height: normal;
	margin: 0;
}

.content-body > p a {
	color: var(--primary);
	font-weight: 600;
}

/* contact page */
.content-address.dp-content-address {
	justify-content: center;
}

.content-address-item div p a {
	color: var(--primary);
}

/* error page */
.dp-error {
	max-width: 760px;
	margin: 60px auto;
	padding: 0 16px;
	text-align: center;
}

.dp-error h1 {
	color: #0c0c24;
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 16px;
}

.dp-error p {
	color: #333;
	font-size: 16px;
	line-height: 150%;
	margin-bottom: 24px;
}

.dp-error p a {
	color: var(--primary);
	font-weight: 600;
}

.dp-error .search-form {
	display: inline-block;
	margin-bottom: 24px;
}

.dp-error .search-form input {
	background-color: #f7f7fb;
	border: 1px solid #ededed;
	max-width: 100%;
}

.dp-error pre {
	text-align: left;
	font-size: 12px;
	overflow: auto;
}

/* privacy page */
.content.dp-text h2 {
	color: #0c0c24;
	font-size: 24px;
	font-weight: 600;
	margin: 32px 0 12px;
}

.content.dp-text p,
.content.dp-text li {
	color: #333;
	font-size: 16px;
	line-height: 150%;
	margin-bottom: 12px;
}

.content.dp-text a {
	color: var(--primary);
	font-weight: 600;
}

/* footer */
.footer-content .dp-footer-logo {
	display: inline-block;
	background: #fff;
	border-radius: 8px;
	padding: 8px 12px;
}

.footer-content > div:nth-child(1) .dp-footer-logo img {
	width: auto;
	height: 56px;
	display: block;
}

.dp-footer-parent p + p {
	margin-top: 6px;
}

.footer-end .dp-footer-parent a {
	text-decoration: underline;
}

.footer-end p.dp-footer-generated {
	opacity: 0.7;
	font-size: 12px;
}

@media only screen and (max-width: 768px) {
	.navbar-left {
		height: 44px;
	}

	.header .dp-parts-count {
		font-size: 16px;
		margin-bottom: 20px;
	}

	.about-product-content {
		flex-direction: column;
	}

	.dp-gallery,
	#about-product .about-product-content > div.dp-gallery {
		max-width: 100%;
		min-width: 0;
		width: 100%;
	}

	#about-product .about-product-content > div.dp-details {
		width: 100%;
	}

	.dp-more-info {
		flex-direction: column;
		align-items: flex-start;
	}

	.dp-footer-parent p {
		text-align: center;
	}

	.content-header h1 {
		font-size: 36px;
		width: 100%;
		text-align: center;
		left: 0;
	}
}
