/* ==========================================================
   HERITAGE MOTORWORKS
   REUSABLE SHOP SEARCH MODULE
   MASTER LAYOUT
========================================================== */

.hm-shop-search {
	position: relative;

	z-index: 10;

	width: calc(100% - 48px) !important;
	max-width: 1040px !important;

	margin: -38px auto 0 !important;

	box-sizing: border-box;
}

.hm-shop-search__inner {
	display: flex;
	flex-direction: column;
	align-items: stretch;

	background: #fff;
	border: 1px solid rgba(23,26,33,.08);
	border-radius: 14px;

	box-shadow:
		0 18px 48px rgba(15,23,42,.09),
		0 4px 14px rgba(15,23,42,.045);

	overflow: hidden;
}

.hm-shop-search__area {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);

	align-items: center;

	column-gap: 22px;

	min-width: 0;

	padding: 22px 28px;
}

.hm-shop-search__label {
	display: flex;
	flex-direction: column;

	gap: 5px;

	margin: 0;
}

.hm-shop-search__eyebrow {
	color: #18A891;

	font-size: 9px;
	font-weight: 700;

	letter-spacing: .18em;

	text-transform: uppercase;
}

.hm-shop-search__label strong {
	color: #171a21;

	font-size: 16px;
	font-weight: 600;

	line-height: 1.2;
}

.hm-shop-search__form {
	display: flex;
	align-items: stretch;

	width: 100%;
	max-width: none;

	height: 48px;

	border: 1px solid rgba(0,0,0,.11);

	border-radius: 8px;

	background: #fff;

	overflow: hidden;

	transition:
		border-color .25s ease,
		box-shadow .25s ease;
}

.hm-shop-search__form:focus-within {
	border-color: rgba(24,168,145,.55);

	box-shadow:
		0 0 0 3px rgba(24,168,145,.08);
}

.hm-shop-search__form input[type="search"] {
	flex: 1 1 auto;

	min-width: 0;

	border: 0;
	outline: 0;

	padding: 0 18px;

	background: transparent;

	color: #171a21;

	font-family: inherit;
	font-size: 14px;
}

.hm-shop-search__form input[type="search"]::placeholder {
	color: rgba(23,26,33,.42);
}

.hm-shop-search__form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	gap: 10px;

	min-width: 115px;

	padding: 0 18px;

	border: 0;
	border-radius: 5px !important;

	background: #171a21;

	color: #fff;

	font-family: inherit;
	font-size: 11px;
	font-weight: 700;

	letter-spacing: .12em;

	text-transform: uppercase;

	cursor: pointer;

	transition:
		background .25s ease;
}

.hm-shop-search__form button:hover {
	background: #18A891;
}

.hm-shop-search__form button span {
	font-size: 16px;

	transition:
		transform .25s ease;
}

.hm-shop-search__form button:hover span {
	transform: translateX(3px);
}

.hm-shop-search__payment {
	display: flex;
	align-items: center;
	justify-content: space-between;

	gap: 30px;

	min-width: 0;

	padding: 16px 28px 17px;

	background: #f5f5f2;

	color: #171a21;

	border-top: 1px solid rgba(23,26,33,.07);
}

.hm-shop-search__payment-content {
	display: flex;
	align-items: baseline;

	flex-wrap: wrap;

	column-gap: 15px;
	row-gap: 2px;

	min-width: 0;
}

.hm-shop-search__payment-eyebrow {
	flex: 0 0 auto;

	margin: 0;

	color: #18A891;

	font-size: 9px;
	font-weight: 700;

	letter-spacing: .18em;
	line-height: 1;

	text-transform: uppercase;
}

.hm-shop-search__payment-content strong {
	display: inline;

	margin: 0;

	color: #171a21;

	font-size: 17px;
	font-weight: 600;

	letter-spacing: -.025em;
	line-height: 1.2;
}

.hm-shop-search__payment-text {
	display: inline;

	max-width: none;
	min-width: 0;

	color: #73777c;

	font-size: 11px;

	line-height: 1.4;
}

.hm-shop-search__payment-link {
	flex: 0 0 auto;

	display: inline-flex;
	align-items: center;

	gap: 9px;

	color: #171a21 !important;

	font-size: 10px;
	font-weight: 700;

	letter-spacing: .14em;
	line-height: 1;

	text-transform: uppercase;
	text-decoration: none !important;

	white-space: nowrap;

	transition: color .25s ease;
}

.hm-shop-search__payment-link span {
	color: #18A891;

	font-size: 17px;
	line-height: 1;

	transition: transform .25s ease;
}

.hm-shop-search__payment-link:hover {
	color: #18A891 !important;
}

.hm-shop-search__payment-link:hover span {
	transform: translateX(4px);
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1100px) and (min-width: 769px) {

	.hm-shop-search {
		width: calc(100% - 40px);
	}

	.hm-shop-search__area {
		grid-template-columns: 175px minmax(0, 1fr);

		column-gap: 20px;

		padding-left: 22px;
		padding-right: 22px;
	}

	.hm-shop-search__payment {
		padding-left: 22px;
		padding-right: 22px;
	}

}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

	.hm-shop-search {
		width: calc(100% - 28px) !important;

		margin-top: -24px !important;
	}

	.hm-shop-search {
		margin-top: -28px !important;
	}

	.hm-shop-search__inner {
		display: block;

		padding: 0;

		border-radius: 12px;
	}

	.hm-shop-search__area {
		display: flex;
		flex-direction: column;
		align-items: stretch;

		gap: 13px;

		padding: 18px;
	}

	.hm-shop-search__label {
		margin: 0;
	}

	.hm-shop-search__form {
		width: 100%;

		height: 46px;

		max-width: none;
	}

	.hm-shop-search__form input[type="search"] {
		padding: 0 13px;

		font-size: 13px;
	}

	.hm-shop-search__form button {
		min-width: 92px;

		padding: 0 12px;

		font-size: 9px;
	}

	.hm-shop-search__payment {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;

		gap: 16px;

		padding: 17px 18px 18px;
	}

	.hm-shop-search__payment-content {
		display: block;

		min-width: 0;
	}

	.hm-shop-search__payment-eyebrow {
		display: block;

		margin-bottom: 6px;
	}

	.hm-shop-search__payment-content strong {
		display: block;

		margin-bottom: 5px;

		font-size: 17px;
	}

	.hm-shop-search__payment-text {
		display: block;

		font-size: 11px;

		line-height: 1.5;
	}

	.hm-shop-search__payment-link {
		margin-top: 2px;

		font-size: 9px;
	}

}

@media (max-width: 430px) {

	.hm-shop-search__payment {
		flex-direction: column;

		gap: 11px;
	}

	.hm-shop-search__payment-link {
		margin-top: 0;
	}

}


/* ==========================================================
   SHOP START PAGE — PROMOTION STRIP
   The existing search field remains unchanged.
   The promotion replaces the former Vorkasse strip on the
   shop start page only.
========================================================== */

.hm-shop-search__promo {
	display: grid;
	grid-template-columns: minmax(0, 2fr) 1px minmax(0, 3fr);
	align-items: start;
	min-width: 0;

	background: #171A21;
	color: #fff;

	padding: 18px 28px 19px;
}

.hm-shop-search__promo-item {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	align-items: start;
	column-gap: 14px;
	min-width: 0;
}

.hm-shop-search__promo-item--opening {
	position: relative;

	padding-left: 28px;
}

.hm-shop-search__promo-icon {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 30px;
	height: 30px;

	color: #18A891;
}

.hm-shop-search__promo-icon svg {
	display: block;
	width: 22px;
	height: 22px;
}

.hm-shop-search__promo-content {
	min-width: 0;
}

.hm-shop-search__promo-eyebrow {
	display: block;
	margin: 0 0 5px;

	color: #18A891;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: .18em;
	line-height: 1.1;
	text-transform: uppercase;
}

.hm-shop-search__promo-title {
	display: block;
	margin: 0;

	color: #fff;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -.025em;
	line-height: 1.2;
}

.hm-shop-search__promo-deadline {
	position: absolute;
	top: 0;
	right: 0;

	display: inline-flex;
	align-items: center;

	padding: 4px 7px;

	border: 1px solid rgba(24,168,145,.45);
	border-radius: 999px;

	background: rgba(24,168,145,.05);

	color: #18A891;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
}

.hm-shop-search__promo-text {
	display: block;
	margin: 4px 0 0;

	max-width: none;
	white-space: nowrap;

	color: rgba(255,255,255,.62);
	font-size: 10px;
	font-weight: 400;
	line-height: 1.45;
}

.hm-shop-search__promo-text strong {
	color: rgba(255,255,255,.86);
	font-weight: 600;
}

.hm-shop-search__promo-divider {
	width: 1px;
	height: 54px;
	background: rgba(255,255,255,.14);
}

.hm-shop-search__promo-code-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin-top: 8px;
}

.hm-shop-search__promo-code {
	display: inline-flex;
	align-items: center;

	min-height: 25px;
	padding: 0 9px;

	border: 1px solid rgba(24,168,145,.48);
	border-radius: 5px;

	background: rgba(24,168,145,.05);

	color: #fff;
	font-family: inherit;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1;
	white-space: nowrap;
}

.hm-shop-search__promo-copy {
	display: inline-flex;
	align-items: center;
	gap: 5px;

	margin: 0;
	padding: 0;

	border: 0;
	background: transparent;

	color: #18A891;
	font-family: inherit;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1;

	cursor: pointer;
}

.hm-shop-search__promo-copy svg {
	width: 13px;
	height: 13px;
}

.hm-shop-search__promo-copy:hover,
.hm-shop-search__promo-copy:focus-visible {
	color: #fff;
}

.hm-shop-search__promo-copy.is-copied {
	color: #fff;
}

@media (max-width: 1100px) and (min-width: 769px) {

	.hm-shop-search__promo {
		padding-left: 22px;
		padding-right: 22px;
	}

	.hm-shop-search__promo-item--opening {
		padding-left: 22px;
	}

	.hm-shop-search__promo-title {
		font-size: 15px;
	}

	.hm-shop-search__promo-deadline {
		position: static;

		margin-top: 7px;
	}

	.hm-shop-search__promo-text {
		font-size: 9px;
	}

}

@media (max-width: 768px) {

	.hm-shop-search__promo {
		grid-template-columns: 1fr;
		gap: 0;

		padding: 17px 18px 18px;
	}

	.hm-shop-search__promo-item {
		grid-template-columns: 28px minmax(0, 1fr);
		column-gap: 12px;
	}

	.hm-shop-search__promo-item--opening {
		padding: 15px 0 0;
	}

	.hm-shop-search__promo-divider {
		width: 100%;
		height: 1px;
		margin: 14px 0 0;
	}

	.hm-shop-search__promo-icon {
		width: 28px;
		height: 28px;
	}

	.hm-shop-search__promo-icon svg {
		width: 21px;
		height: 21px;
	}

	.hm-shop-search__promo-title {
		font-size: 15px;
	}

	.hm-shop-search__promo-text {
		max-width: none;
		white-space: normal;
		font-size: 10px;
	}

}
