/**
 * WooCommerce product launch offer panel.
 *
 * Extracted from the existing product-offer renderer unchanged, except
 * the shipping note's former inline colour is a dedicated CSS selector.
 * Keep the reusable discount design independent of seasonal copy.
 *
 * @package Jedi_Theme
 */

/**
 * WooCommerce product launch offer.
 *
 * Styles are scoped to the single-product launch-offer component.
 */
.single-product .jr-launch-offer {
	box-sizing: border-box;
	width: 100%;
	margin: 18px 0 20px;
	padding: 18px;
	background: linear-gradient(135deg,
			#fffdf7 0%,
			#fff9ed 100%);
	border: 1px solid #f1cf81;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.single-product .jr-launch-offer__badge {
	display: inline-flex;
	align-items: center;
	margin-bottom: 12px;
	padding: 5px 10px;
	color: #ffffff;
	background: #f75f1c;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

body.jr-dark-commerce.single-product .product-details-wrapper .jr-launch-offer__title {
	margin: 0 0 7px;
	color: #111111;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
}

.single-product .jr-launch-offer__title strong,
.single-product .jr-launch-offer__coupon {
	color: #eb6123;
}

.single-product .jr-launch-offer__coupon {
	font-weight: 800;
	white-space: nowrap;
}

body.jr-dark-commerce.single-product .product .product-details-wrapper .jr-launch-offer__price {
	margin: 0 0 16px;
	color: #111111;
	font-size: 22px;
	line-height: 1.4;
}

.single-product .jr-launch-offer__price strong .woocommerce-Price-amount {
	color: #008a20;
	font-size: 18px;
	font-weight: 800;
}

.single-product .jr-launch-offer__price span {
	color: #50575e;
	font-size: 16px;
}

.single-product .jr-launch-offer__details {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 0 14px;
	padding: 14px 0;
	border-top: 1px solid #e5dcc9;
	border-bottom: 1px solid #e5dcc9;
}

.single-product .jr-launch-offer__detail {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 0;
	padding: 0 8px;
	border-right: 1px solid #e5dcc9;
	text-align: left;
}

.single-product .jr-launch-offer__detail:first-child {
	padding-left: 0;
}

.single-product .jr-launch-offer__detail:last-child {
	padding-right: 0;
	border-right: 0;
}

.single-product .jr-launch-offer__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 50px;
	width: 50px;
	height: 50px;
	color: #f75f1c;
	background: #fff0f0;
	border-radius: 50%;
}

.single-product .jr-launch-offer__icon svg,
.single-product .jr-launch-offer__copy-icon svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.single-product .jr-launch-offer__detail-content {
	min-width: 0;
}

.single-product .jr-launch-offer__detail strong {
	display: block;
	margin-bottom: 3px;
	color: #1d2327;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.single-product .jr-launch-offer__detail-content>span {
	display: block;
	color: #646970;
	font-size: 13px;
	line-height: 1.3;
}

.single-product .jr-launch-offer__copy {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 44px;
	padding: 10px 14px;
	color: #ffffff;
	background: #f75f1c;
	border: 1px solid #f75f1c;
	border-radius: 5px;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0.2px;
	text-transform: uppercase;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s ease;
}

.single-product .jr-launch-offer__copy:hover,
.single-product .jr-launch-offer__copy:focus {
	color: #ffffff;
	background: #df4b09;
	border-color: #df4b09;
}

.single-product .jr-launch-offer__copy:active {
	transform: translateY(1px);
}

.single-product .jr-launch-offer__copy-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.single-product .jr-launch-offer__terms {
	margin: 9px 0 0;
	color: #646970;
	font-size: 11px;
	line-height: 1.4;
	text-align: center;
}

@media screen and (max-width: 600px) {
	.single-product .jr-launch-offer {
		padding: 15px;
	}

	.single-product .jr-launch-offer__title {
		font-size: 18px;
	}

	.single-product .jr-launch-offer__price strong {
		font-size: 19px;
	}

	.single-product .jr-launch-offer__details {
		grid-template-columns: 1fr;
		padding: 5px 0;
	}

	.single-product .jr-launch-offer__detail,
	.single-product .jr-launch-offer__detail:first-child,
	.single-product .jr-launch-offer__detail:last-child {
		justify-content: flex-start;
		padding: 11px 0;
		border-right: 0;
		border-bottom: 1px solid #e5dcc9;
	}

	.single-product .jr-launch-offer__detail:last-child {
		border-bottom: 0;
	}

	.single-product .jr-launch-offer__icon {
		flex-basis: 36px;
		width: 36px;
		height: 36px;
	}
}

/** Keep the existing inline note colour after moving styles to assets. */
body.jr-dark-commerce.single-product .jr-launch-offer .jr-launch-offer__shipping-note {
	color: #000;
}
