/* Plugin tokens and theme-page adjustments */
body.has-battery-matching .entry__header {
	display: none;
}

body.has-battery-matching {
	--finder-accent: #c98959;
	--finder-text: #333333;
	--finder-border: #dddddd;
	--finder-surface: #ffffff;
	--finder-font-body: 'Brown-Light', 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	--finder-font-heading: 'Brown-Bold', 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Finder layout and controls */
body.has-battery-matching .duracell-finder {
	box-sizing: border-box;
	width: min(100% - 2rem, 1280px);
	max-width: 1280px;
	margin: 0 auto;
	padding: 0.625rem 0;
	color: var(--finder-text);
	font-family: var(--finder-font-body);
	font-size: 16px;
	line-height: 1.43;
}

body.has-battery-matching .duracell-finder,
body.has-battery-matching .duracell-finder *,
body.has-battery-matching .duracell-finder *::before,
body.has-battery-matching .duracell-finder *::after {
	box-sizing: border-box;
}

body.has-battery-matching .duracell-finder__header,
body.has-battery-matching .duracell-finder__search h2,
body.has-battery-matching .duracell-finder__fields label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body.has-battery-matching .duracell-finder__tabs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	overflow: visible;
	margin-top: 40px;
	border-bottom: 1px solid var(--finder-border);
}

body.has-battery-matching .duracell-finder__tabs [role="tab"] {
	min-width: 0;
	min-height: 3.5rem;
	padding: 0.9375rem 0.5rem;
	border: 1px solid transparent;
	background: var(--finder-surface);
	color: #bbbbbb;
	font-family: var(--finder-font-body);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.15em;
	line-height: 1.25;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
}

body.has-battery-matching .duracell-finder__tabs [role="tab"][aria-selected="true"] {
	margin-bottom: -1px;
	border-color: var(--finder-accent) var(--finder-border) var(--finder-surface);
	border-style: solid;
	border-width: 4px 1px 1px;
	background: var(--finder-surface);
	color: #555555;
}

body.has-battery-matching .duracell-finder__tabs [role="tab"]:hover {
	color: #888888;
}

body.has-battery-matching .duracell-finder__tabs [role="tab"]:focus-visible {
	outline: 3px solid var(--finder-text);
	outline-offset: 2px;
}

body.has-battery-matching .duracell-finder :is(select, input[type="search"]):focus-visible {
	outline: 0;
	box-shadow: 0 0 3px 1px #68a8e0;
}

body.has-battery-matching .duracell-finder__panel {
	display: grid;
	grid-template-columns: minmax(0, 30%) minmax(0, 70%);
	min-height: 200px;
	border: 1px solid var(--finder-border);
	border-top: 0;
}

body.has-battery-matching .duracell-finder__panel[hidden] {
	display: none;
}

body.has-battery-matching .duracell-finder__intro {
	display: grid;
	grid-column: 2;
	grid-row: 1;
	grid-template-columns: minmax(0, 1fr) minmax(12rem, 50%);
	align-items: start;
	row-gap: 0;
	column-gap: 1.25rem;
	padding: 0.625rem 1.25rem 1.25rem;
}

body.has-battery-matching .duracell-finder__intro h2 {
	width: 90%;
	grid-column: 1 / -1;
	grid-row: 1;
	margin: 25px;
	border-bottom: 4px solid var(--finder-accent);
	color: rgb(51, 51, 51);
	font-family: var(--finder-font-body);
	font-size: 28px;
	font-weight: 600;
	letter-spacing: 7px;
	line-height: 50px;
	text-transform: uppercase;
}

body.has-battery-matching .duracell-finder__intro p {
	max-width: none;
	grid-column: 1;
	grid-row: 2;
	align-self: start;
	margin: 0;
	padding: 0 25px;
	font-family: var(--finder-font-body);
	font-size: 16px;
	line-height: 1.43;
}

body.has-battery-matching .duracell-finder__intro img {
	width: 100%;
	max-width: 400px;
	max-height: 260px;
	grid-column: 2;
	grid-row: 2;
	align-self: center;
	object-fit: contain;
}

body.has-battery-matching .duracell-finder__search {
	grid-column: 1;
	grid-row: 1;
	padding: 1.25rem;
	background: var(--finder-surface);
}

body.has-battery-matching .duracell-finder__fields {
	display: grid;
	gap: 0;
}

body.has-battery-matching .duracell-finder input[type="search"] {
	width: 100%;
	height: 32px;
	min-height: 0;
	padding: 0 9px;
	border: 1px solid #c2c2c2;
	border-radius: 1px;
	background: var(--finder-surface);
	background-clip: padding-box;
	color: #000;
	display: inline-block;
	font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 20px;
}

body.has-battery-matching .duracell-finder select {
	appearance: none;
	width: 100%;
	height: 45px;
	min-height: 0;
	padding: 5px 32px 4px 10px;
	border: 1px solid #c2c2c2;
	border-radius: 1px;
	background: var(--finder-surface);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-clip: padding-box;
	color: #000;
	display: inline-block;
	font-family: "Brown-Light", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 14px;
}

body.has-battery-matching .duracell-finder__fields select {
	margin: 6px 0;
}

body.has-battery-matching .duracell-finder .button {
	min-height: 45px;
	padding: 0.625rem 1.25rem;
	border: 1px solid var(--finder-accent);
	background: var(--finder-accent);
	color: var(--finder-surface);
	font-family: var(--finder-font-heading);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.075em;
	line-height: 16px;
	text-transform: uppercase;
	cursor: pointer;
}

body.has-battery-matching .duracell-finder__fields .button.button-full {
	width: 100%;
	margin-top: 0.5rem;
	text-transform: none;
}

body.has-battery-matching .duracell-finder__fields .button.button-full:hover,
body.has-battery-matching .duracell-finder__number-grid .duracell-finder__search-row .button:hover {
	border-color: rgb(226, 226, 226);
	background: rgb(226, 226, 226);
	color: #000000;
}

body.has-battery-matching .duracell-finder .button:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

body.has-battery-matching .duracell-finder__number-searches {
	margin-bottom: 3.125rem;
	padding: 1.25rem;
	border: 1px solid var(--finder-border);
	background: var(--finder-surface);
	color: var(--finder-text);
}

body.has-battery-matching .duracell-finder__number-searches>h2 {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body.has-battery-matching .duracell-finder__number-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

body.has-battery-matching .duracell-finder__number-grid form>label {
	display: block;
	margin: 0 0 10px;
	font-family: var(--finder-font-body);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 1.6px;
	line-height: 1.43;
	text-align: center;
	text-transform: uppercase;
}

body.has-battery-matching .duracell-finder__search-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0;
	margin-top: 0.5rem;
}

body.has-battery-matching .duracell-finder__search-row input[type="search"],
body.has-battery-matching .duracell-finder__search-row .button {
	height: 32px;
	min-height: 32px;
	box-sizing: border-box;
}

body.has-battery-matching .duracell-finder__search-row input[type="search"] {
	padding: 0 9px;
	line-height: 20px;
}

body.has-battery-matching .duracell-finder__number-searches input[type="search"]::placeholder {
	color: #c2c2c2;
	opacity: 1;
}

body.has-battery-matching .duracell-finder__search-row .button {
	padding: 4px 1.25rem;
	line-height: 16px;
}

body.has-battery-matching .duracell-finder__number-grid .button {
	text-transform: none;
}

body.has-battery-matching .duracell-finder__message {
	padding: 1rem;
	border-left: 4px solid #b42318;
	background: #fff1f0;
}

/* Shared results and product page containers */
body.has-battery-matching .duracell-search-results,
body.has-battery-matching .duracell-product-detail {
	width: min(100% - 2rem, 1280px);
	margin-inline: auto;
	padding-block: 2rem 3rem;
	color: var(--finder-text);
}

body.has-battery-matching .duracell-product-detail {
	padding-top: 1.5rem;
}

body.has-battery-matching .duracell-search-results>h1 {
	margin: 0 0 1.25rem;
	font-size: 2rem;
	text-transform: uppercase;
}

body.has-battery-matching .duracell-search-results .searchedVehicle {
	font-weight: 700;
}

body.has-battery-matching .duracell-search-results .products-grid .product-items {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	padding: 0;
	list-style: none;
}

body.has-battery-matching .duracell-search-results .product-item {
	min-width: 0;
}

body.has-battery-matching .duracell-search-results-layout {
	display: grid;
	grid-template-columns: minmax(13rem, 20%) minmax(0, 1fr);
	align-items: start;
	column-gap: 3rem;
	row-gap: 1.25rem;
	width: min(100% - 2rem, 1280px);
	max-width: 1280px;
	margin: 0 auto;
	padding-block: 1.5rem 3rem;
}

body.has-battery-matching .duracell-search-results-layout>.duracell-results-sidebar.duracell-finder {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

body.has-battery-matching .duracell-results-sidebar__title {
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 4px solid var(--finder-accent);
	color: var(--finder-text);
	font-family: var(--finder-font-body);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 2.2px;
	line-height: 28px;
	text-transform: uppercase;
}

body.has-battery-matching .duracell-results-sidebar__numbers.duracell-finder__number-searches {
	margin: 1.25rem 0 0;
	padding: 1rem 0 0;
	border: 0;
}

body.has-battery-matching .duracell-results-sidebar__numbers .duracell-finder__number-grid {
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
}

body.has-battery-matching .duracell-results-sidebar__numbers .duracell-finder__search-row {
	grid-template-columns: minmax(0, 1fr);
	gap: 0.5rem;
}

body.has-battery-matching .duracell-results-sidebar__numbers .duracell-finder__search-row input[type="search"],
body.has-battery-matching .duracell-results-sidebar__numbers .duracell-finder__search-row .button {
	width: 100%;
}

body.has-battery-matching .duracell-results-sidebar__numbers .duracell-finder__search-row input[type="search"] {
	height: 32px;
	min-height: 32px;
	padding: 0 9px;
	line-height: 20px;
}

body.has-battery-matching .duracell-results-sidebar__numbers .duracell-finder__search-row>.button.button-search {
	height: 32px;
	min-height: 32px;
	box-sizing: border-box;
	padding: 4px 0.75rem;
	line-height: 16px;
}

body.has-battery-matching .duracell-results-sidebar__numbers .duracell-finder__number-grid form>label {
	text-align: left;
}

body.has-battery-matching .duracell-search-results-layout>.duracell-search-results {
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 0;
}

body.has-battery-matching .duracell-search-results>h1 {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body.has-battery-matching .duracell-search-results .searchedVehicle {
	margin: 0 0 1rem;
	font-size: 16px;
	font-weight: 600;
}

body.has-battery-matching .duracell-cross-reference-table-wrap {
	max-width: 100%;
	margin-top: 0.625rem;
	overflow-x: auto;
}

body.has-battery-matching .duracell-cross-reference-table {
	width: 100%;
	border-collapse: collapse;
	color: var(--finder-text);
	font-family: var(--finder-font-body);
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
}

body.has-battery-matching .duracell-cross-reference-table th,
body.has-battery-matching .duracell-cross-reference-table td {
	padding: 0.5rem 0.75rem;
	vertical-align: top;
}

body.has-battery-matching .duracell-cross-reference-table th {
	border-bottom: 1px solid var(--finder-font-body);
	font-family: var(--finder-font-heading);
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

body.has-battery-matching .duracell-cross-reference-table a {
	color: #1979c3;
	text-decoration: none;
}

body.has-battery-matching .duracell-cross-reference-table a:hover {
	text-decoration: underline;
}

body.has-battery-matching .duracell-search-results .products-grid .product-items {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.has-battery-matching .duracell-search-results .product-item-photo {
	display: block;
	width: 100%;
	margin: 0 0 0.75rem;
}

body.has-battery-matching .duracell-search-results .product-image-photo {
	width: 100%;
	height: 120px;
	object-fit: contain;
	object-position: left center;
}

body.has-battery-matching .duracell-search-results .product.name.product-item-name {
	display: block;
	margin: 0 0 0.5rem;
	font-family: var(--finder-font-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

body.has-battery-matching .duracell-search-results .product-item-link {
	color: var(--finder-text);
	text-decoration: none;
	font-size: 18px;
	line-height: 1.4;
	font-weight: 600;
}

body.has-battery-matching .duracell-search-results .product-item-link:hover {
	text-decoration: underline;
}

body.has-battery-matching .duracell-search-results .partNumber,
body.has-battery-matching .duracell-search-results .partNumber p {
	margin-bottom: 10px;
	color: var(--finder-accent) !important;
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	text-transform: uppercase;
}

body.has-battery-matching .duracell-search-results .partQty p,
body.has-battery-matching .duracell-search-results .partComments,
body.has-battery-matching .duracell-search-results .product-item-description {
	margin: 0 0 0.5rem;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.43;
}

body.has-battery-matching .duracell-search-results .product-item-inner {
	margin-top: 0.75rem;
}

body.has-battery-matching .duracell-search-results .product-item-inner>a.action.more {
	display: inline;
	height: auto;
	min-height: 0;
	padding: 8px 16px;
	border: 0;
	background-color: #c98959;
	box-shadow: none;
	color: #ffffff;
	font-family: var(--finder-font-body);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 1.125px;
	line-height: 50px;
	text-decoration: none;
	text-transform: uppercase;
}

body.has-battery-matching .duracell-search-results .product-item-inner>a.action.more:hover {
	text-decoration: underline;
}

/* Product detail and image lightbox */
body.has-battery-matching .duracell-product-detail .column.main {
	display: grid;
	grid-template-columns: minmax(12rem, 1.1fr) minmax(0, 0.9fr);
	align-items: start;
	column-gap: 2rem;
	row-gap: 0.75rem;
}

body.has-battery-matching .duracell-product-detail .column.main > .page-title {
	grid-column: 1 / -1;
	width: 100%;
	margin: 10px 0 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--finder-accent);
	color: var(--finder-text);
	font-family: var(--finder-font-body);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

body.has-battery-matching .duracell-product-detail .product.media a {
	display: block;
	cursor: zoom-in;
}

body.has-battery-matching .duracell-product-lightbox {
	box-sizing: border-box;
	max-width: calc(100vw - 2rem);
	max-height: calc(100vh - 2rem);
	padding: 3.5rem 1rem 1rem;
	border: 0;
	background: #111111;
	color: #ffffff;
}

body.has-battery-matching .duracell-product-lightbox::backdrop {
	background: rgb(0 0 0 / 85%);
}

body.has-battery-matching .duracell-product-lightbox > img {
	display: block;
	max-width: calc(100vw - 4rem);
	max-height: calc(100vh - 7rem);
	width: auto;
	height: auto;
	object-fit: contain;
}

body.has-battery-matching .duracell-product-lightbox .duracell-product-lightbox__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	min-height: 0;
	padding: 0.375rem 0.625rem;
	border: 1px solid #ffffff;
	background: transparent;
	color: #ffffff;
	cursor: pointer;
}

body.has-battery-matching .duracell-product-detail .product.media .product-image-photo {
	width: 100%;
	height: auto;
	object-fit: contain;
}

body.has-battery-matching .duracell-product-detail .product-info-main h2 {
	font-family: var(--finder-font-body);
	font-size: 26px;
	font-weight: 300;
}

body.has-battery-matching .duracell-product-detail .product-info-main .product.attribute.sku {
	margin: 0 0 10px;
	color: var(--finder-accent);
	font-family: var(--finder-font-body);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: none;
}

body.has-battery-matching .duracell-product-detail .product-info-main .product.attribute.sku .type {
	color: var(--finder-text);
}

body.has-battery-matching .duracell-product-tabs {
	margin-top: 2rem;
	color: var(--finder-text);
	font-family: var(--finder-font-body);
	font-size: 14px;
	line-height: 20px;
}

body.has-battery-matching .duracell-product-tabs__list {
	display: flex;
	align-items: end;
	gap: 4px;
	border-bottom: 1px solid #d1d1d1;
}

body.has-battery-matching .duracell-product-tabs__list [role="tab"] {
	min-height: 30px;
	margin: 0 0 -1px;
	padding: 5px 20px;
	border: 1px solid #d1d1d1;
	border-radius: 0;
	background: #f0f0f0;
	color: #7d7d7d;
	font-family: var(--finder-font-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	text-transform: uppercase;
	cursor: pointer;
}

body.has-battery-matching .duracell-product-tabs__list [role="tab"][aria-selected="true"] {
	border-bottom-color: var(--finder-surface);
	background: var(--finder-surface);
	color: var(--finder-text);
}

body.has-battery-matching .duracell-product-tabs__list [role="tab"]:focus-visible,
body.has-battery-matching .duracell-product-tabs [role="tabpanel"]:focus-visible {
	outline: 2px solid var(--finder-text);
	outline-offset: 2px;
}

body.has-battery-matching .duracell-product-tabs [role="tabpanel"] {
	padding: 20px;
}

body.has-battery-matching .duracell-product-tabs .product.attribute.description {
	padding-top: 10px;
}

body.has-battery-matching .duracell-product-tabs [role="tabpanel"][hidden] {
	display: none;
}

body.has-battery-matching .duracell-product-tabs .product.attribute.description p {
	margin: 0;
	font-size: 14px;
}

body.has-battery-matching .duracell-product-tabs .productFeatures {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.has-battery-matching .duracell-product-tabs .productFeatures li {
	margin: 0;
	padding: 10px 0 0;
	font-size: 14px;
}

body.has-battery-matching .duracell-product-tabs .partComments p:last-child {
	margin-bottom: 0;
}

body.has-battery-matching .duracell-product-tabs .partComments {
	color: #555555;
	font-size: 14px;
	line-height: 22.4px;
}

body.has-battery-matching .duracell-product-tabs .partComments p {
	margin: 0 0 22.4px;
	font-size: 14px;
	line-height: 22.4px;
}

/* Responsive overrides */
@media (min-width: 640px) {
	body.has-battery-matching .duracell-search-results .products-grid .product-items {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	body.has-battery-matching .duracell-finder__panel {
		grid-template-columns: minmax(0, 30%) minmax(0, 70%);
	}

	body.has-battery-matching .duracell-search-results-layout > .duracell-search-results .products-grid {
		margin-top: 88px;
	}
}

@media (min-width: 1024px) {
	body.has-battery-matching .duracell-search-results .products-grid .product-items {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	body.has-battery-matching .duracell-finder {
		width: min(100% - 1.5rem, 1280px);
		padding: 10px 0;
	}

	body.has-battery-matching .duracell-finder__tabs {
		grid-template-columns: 1fr;
		margin-top: 0;
	}

	body.has-battery-matching .duracell-finder__tabs [role="tab"] {
		width: 99%;
		min-height: 0;
		padding: 15px 0;
		border: 0;
		line-height: normal;
		letter-spacing: 0.15em;
	}

	body.has-battery-matching .duracell-finder__tabs [role="tab"][aria-selected="true"] {
		margin-bottom: 0;
		border: 0;
		background: var(--finder-accent);
		color: var(--finder-surface);
	}

	body.has-battery-matching .duracell-finder__panel {
		grid-template-columns: minmax(0, 1fr);
		border: 0;
	}

	body.has-battery-matching .duracell-finder__intro {
		grid-column: 1;
		grid-row: 1;
		grid-template-columns: minmax(0, 1fr);
		row-gap: 0;
		padding: 0;
	}

	body.has-battery-matching .duracell-finder__intro h2 {
		width: 90%;
		grid-column: 1;
		grid-row: 1;
		margin: 25px;
		font-size: 28px;
		letter-spacing: 0.25em;
		line-height: 50px;
	}

	body.has-battery-matching .duracell-finder__intro img {
		width: 100%;
		grid-column: 1;
		grid-row: 2;
		justify-self: center;
	}

	body.has-battery-matching .duracell-finder__intro p {
		grid-column: 1;
		grid-row: 3;
		padding: 0 25px;
		font-size: 16px;
		line-height: 1.43;
	}

	body.has-battery-matching .duracell-finder__search {
		grid-column: 1;
		grid-row: 2;
		padding: 20px;
	}

	body.has-battery-matching .duracell-finder__number-grid,
	body.has-battery-matching .duracell-product-detail .column.main {
		grid-template-columns: minmax(0, 1fr);
	}

	body.has-battery-matching .duracell-finder__number-searches {
		padding: 1.25rem;
	}

	body.has-battery-matching .duracell-search-results-layout {
		display: flex;
		flex-direction: column;
	}

	body.has-battery-matching .duracell-search-results-layout > .duracell-search-results {
		order: -1;
	}

	body.has-battery-matching .duracell-search-results .partComments {
		font-size: 14px;
	}
}

@media (max-width: 650px) {
	body.has-battery-matching .duracell-finder__tabs [role="tab"] {
		font-size: 14px;
	}
}
