/*
|--------------------------------------------------------------------------
| HERITAGE MOTORWORKS
| REUSABLE SHOP PROMOTION MODULE
|--------------------------------------------------------------------------
|
| Das allgemeine Shop-Promotion-Modul verwendet dieselbe Layout- und
| Typografiestruktur wie das Produkt-Promotion-Modul.
*/

.hm-shop-promotion {
	width: 100%;
	margin: 34px 0 0;
	box-sizing: border-box;
}

.hm-shop-promotion__surface {
	display: grid;
	grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
	align-items: start;

	min-height: 174px;

	box-sizing: border-box;

	border: 1px solid rgba(23,26,33,.08);
	border-radius: 16px;

	background: #f7f7f5;
	color: #171a21;
}


/* ==========================================================
   INTRO
========================================================== */

.hm-shop-promotion__intro {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;

	padding: 28px 42px 28px 32px;
}

.hm-shop-promotion__eyebrow,
.hm-shop-promotion__label,
.hm-shop-promotion__deadline {
	display: block;

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

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

	text-transform: uppercase;
}

.hm-shop-promotion__eyebrow,
.hm-shop-promotion__label {
	color: #18A891;
}

.hm-shop-promotion__intro h2 {
	margin: 8px 0 0;

	color: #171a21;

	font-size: clamp(30px, 2.5vw, 38px);
	font-weight: 600;

	letter-spacing: -.055em;
	line-height: .98;
}

.hm-shop-promotion__intro p {
	max-width: 270px;

	margin: 13px 0 0;

	color: rgba(23,26,33,.54);

	font-size: 12px;

	line-height: 1.55;
}


/* ==========================================================
   OFFERS
========================================================== */

.hm-shop-promotion__offers {
	display: grid;
	grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);

	min-width: 0;
}

.hm-shop-promotion__offer {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr);
	align-items: start;

	min-width: 0;

	padding: 28px 30px 28px 34px;
}

.hm-shop-promotion__offer--prepayment {
	border-left: 1px solid rgba(23,26,33,.10);
}

.hm-shop-promotion__offer--opening {
	border-left: 1px solid rgba(23,26,33,.10);
}


/* ==========================================================
   VALUE
========================================================== */

.hm-shop-promotion__value {
	display: flex;
	align-items: flex-start;

	color: #171a21;

	line-height: .8;
}

.hm-shop-promotion__value strong {
	font-size: 50px;
	font-weight: 600;
	letter-spacing: -.075em;
}

.hm-shop-promotion__value span {
	margin: 4px 0 0 2px;

	color: #18A891;

	font-size: 18px;
	font-weight: 700;
}


/* ==========================================================
   CONTENT
========================================================== */

.hm-shop-promotion__content {
	min-width: 0;
}

.hm-shop-promotion__content > strong {
	display: block;

	margin-top: 8px;

	color: #171a21;

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

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

.hm-shop-promotion__content p {
	max-width: 280px;

	margin: 8px 0 0;

	color: rgba(23,26,33,.62);

	font-size: 12px;

	line-height: 1.5;
}


/* ==========================================================
   OPENING
========================================================== */

.hm-shop-promotion__offer-head {
	display: flex;
	align-items: center;
	justify-content: flex-start;

	min-height: 27px;

	gap: 8px;
}

.hm-shop-promotion__deadline {
	flex: 0 0 auto;

	padding: 6px 10px;

	border: 1px solid #18A891;
	border-radius: 999px;

	background: rgba(24,168,145,.12);
	color: #18A891;

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

	letter-spacing: .12em;
	white-space: nowrap;

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

.hm-shop-promotion__code-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;

	gap: 8px;

	margin-top: 11px;
}

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

	min-height: 30px;

	padding: 0 11px;

	border: 1px solid rgba(23,26,33,.12);
	border-radius: 6px;

	background: #fff;
	color: #171a21;

	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
	font-size: 10px;
	font-weight: 700;

	letter-spacing: .07em;
	line-height: 1;
}

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

	min-height: 30px;

	padding: 0 12px;

	border: 1px solid #171a21;
	border-radius: 999px;

	background: #171a21;
	color: #fff;

	font-family: inherit;
	font-size: 9px;
	font-weight: 800;

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

	text-transform: uppercase;

	cursor: pointer;

	transition:
		background .25s ease,
		border-color .25s ease,
		transform .25s ease;
}

.hm-shop-promotion__copy:hover,
.hm-shop-promotion__copy:focus-visible {
	border-color: #18A891;
	background: #18A891;
	color: #fff;

	outline: none;

	transform: translateY(-1px);
}

.hm-shop-promotion__copy-success {
	display: none;
}

.hm-shop-promotion__copy.is-copied .hm-shop-promotion__copy-default {
	display: none;
}

.hm-shop-promotion__copy.is-copied .hm-shop-promotion__copy-success {
	display: inline;
}


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

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

	.hm-shop-promotion__surface {
		min-height: 160px;
	}

	.hm-shop-promotion__intro {
		padding: 24px 26px 24px 22px;
	}

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

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

	.hm-shop-promotion__value strong {
		font-size: 44px;
	}

	.hm-shop-promotion__content > strong {
		font-size: 14px;
	}

}


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

@media (max-width: 768px) {

	.hm-shop-promotion {
		margin-top: 28px;
	}

	.hm-shop-promotion__surface {
		display: block;

		min-height: 0;

		border-radius: 14px;
	}

	.hm-shop-promotion__intro {
		display: block;

		padding: 22px 18px 19px;

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

	.hm-shop-promotion__intro h2 {
		font-size: 29px;
	}

	.hm-shop-promotion__intro p {
		max-width: 360px;

		margin-top: 9px;

		font-size: 12px;
	}

	.hm-shop-promotion__offers {
		display: block;
	}

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

		padding: 20px 18px;

		border-left: 0;
	}

	.hm-shop-promotion__offer + .hm-shop-promotion__offer {
		border-top: 1px solid rgba(23,26,33,.09);
	}

	.hm-shop-promotion__value strong {
		font-size: 38px;
	}

	.hm-shop-promotion__value span {
		font-size: 15px;
	}

	.hm-shop-promotion__content > strong {
		font-size: 15px;
	}

	.hm-shop-promotion__content p {
		font-size: 12px;
	}

}

@media (max-width: 430px) {

	.hm-shop-promotion__offer-head {
		display: block;
	}

	.hm-shop-promotion__deadline {
		display: inline-flex;
		margin-top: 7px;
	}

	.hm-shop-promotion__code-row {
		align-items: stretch;
		flex-direction: column;
	}

	.hm-shop-promotion__copy {
		width: max-content;
	}

}
