/* Installation enquiries: homepage (1), selected products and archives (2). */
.ef-installation {
	clear: both;
	background: #fff7f0;
	border-bottom: 1px solid #f0dfd0;
}

/* Opt-in badge below the purchase area on individual product pages. */
.ef-product-installation {
	clear: both;
	margin: 16px 0 20px;
}

.ef-product-installation .ef-product-installation__link {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 64px;
	padding: 12px 16px;
	border: 1px solid #f0dfd0;
	border-left: 3px solid #f48120;
	border-radius: 4px;
	background: #fff7f0;
	color: #202020;
	text-decoration: none;
}

.ef-product-installation__icon {
	display: block;
	flex: 0 0 24px;
	color: #a94b00;
}

.ef-product-installation__copy {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	flex: 1;
	min-width: 0;
}

.ef-product-installation__title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
}

.ef-product-installation__cta {
	color: #994000;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ef-product-installation__link:hover {
	border-color: #f48120;
	background: #ffeddd;
}

.ef-product-installation .ef-product-installation__link:focus {
	outline: 3px solid #202020 !important;
	outline-offset: 3px;
}

/* Compact indicator beneath the price in OceanWP shop/category cards. */
.woocommerce ul.products li.product .woo-entry-inner > li.ef-installation-archive {
	margin: 6px 0 8px;
	padding: 0;
}

.ef-installation-archive__badge {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 5px 8px;
	border-radius: 3px;
	background: #fff7f0;
	color: #7a3b0a;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
}

.ef-installation-archive__badge svg {
	display: block;
	flex: 0 0 16px;
}

.ef-installation-archive__badge > span {
	min-width: 0;
}

.ef-installation .ef-installation__link {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 16px 24px;
	color: #202020;
	text-decoration: none;
}

.ef-installation__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid #f2d5bb;
	border-radius: 50%;
	background: #fff;
	color: #a94b00;
}

.ef-installation__copy {
	display: grid;
	gap: 3px;
}

.ef-installation__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ef-installation__description {
	color: #505050;
	font-size: 14px;
	line-height: 1.5;
}

.ef-installation__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 10px 20px;
	border-radius: 4px;
	background: #f48120;
	color: #171717;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

.ef-installation__link svg {
	display: block;
	flex-shrink: 0;
}

.ef-installation__link:hover .ef-installation__cta,
.ef-installation__link:focus .ef-installation__cta {
	background: #202020;
	color: #fff;
}

/* Override the older theme's global a:focus outline reset. */
.ef-installation .ef-installation__link:focus {
	outline: 3px solid #202020 !important;
	outline-offset: -4px;
}

@media (max-width: 600px) {
	.ef-installation .ef-installation__link {
		grid-template-columns: 40px minmax(0, 1fr);
		gap: 10px 12px;
		padding: 14px 16px;
	}

	.ef-installation__icon {
		align-self: start;
		width: 40px;
		height: 40px;
	}

	.ef-installation__title {
		font-size: 15px;
	}

	.ef-installation__cta {
		grid-column: 2;
		justify-self: start;
		padding: 8px 16px;
	}
}
