/**
 * Prepay Promo — the plain-English explainer shown under the coupon field.
 *
 * Deliberately quiet: it sits inside someone's checkout, so it reads as
 * reassurance, not as an advert.
 */

.sky-prepay-slot:empty {
	display: none;
}

.sky-prepay-note {
	--sky-pp-accent: #1f9d55;
	--sky-pp-ink: #1c2b24;
	--sky-pp-muted: #4a5a52;

	box-sizing: border-box;
	margin: 14px 0 18px;
	padding: 16px 18px;
	border: 1px solid rgba(31, 157, 85, 0.28);
	border-left: 4px solid var(--sky-pp-accent);
	border-radius: 8px;
	background: rgba(31, 157, 85, 0.06);
	color: var(--sky-pp-ink);
	font-size: 15px;
	line-height: 1.55;
}

.sky-prepay-note * {
	box-sizing: border-box;
}

.sky-prepay-note__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 15px;
	color: var(--sky-pp-accent);
}

.sky-prepay-note__tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--sky-pp-accent);
	color: #fff;
	font-size: 12px;
	line-height: 1;
}

.sky-prepay-note__lead {
	margin: 0 0 10px;
}

.sky-prepay-note__total {
	font-weight: 700;
	white-space: nowrap;
}

.sky-prepay-note__lines {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

.sky-prepay-note__lines li {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0 0 4px;
	padding: 0;
	color: var(--sky-pp-muted);
}

.sky-prepay-note__lines li::before {
	content: none;
}

.sky-prepay-note__amt {
	flex: 0 0 auto;
	min-width: 72px;
	font-weight: 700;
	color: var(--sky-pp-ink);
	white-space: nowrap;
}

.sky-prepay-note__foot {
	margin: 0;
	font-size: 14px;
	color: var(--sky-pp-muted);
}

/* Informational variant: the coupon is applied but this customer isn't eligible. */
.sky-prepay-note--info {
	--sky-pp-accent: #6b6663;
	--sky-pp-ink: #2b2b2b;
	--sky-pp-muted: #55514f;

	border-color: rgba(107, 102, 99, 0.3);
	background: rgba(107, 102, 99, 0.06);
}

.sky-prepay-note--info .sky-prepay-note__tick {
	font-style: italic;
	font-weight: 700;
}

/* Shown when someone tried to submit before reading the note. */
.sky-prepay-note__review {
	margin: 12px 0 0;
	padding-top: 12px;
	border-top: 1px solid rgba(31, 157, 85, 0.25);
	font-size: 14px;
	font-weight: 600;
	color: var(--sky-pp-accent);
	outline: none;
}

.sky-prepay-note--attention {
	animation: sky-prepay-pulse 1.1s ease-out 1;
}

@keyframes sky-prepay-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(31, 157, 85, 0.38);
	}

	100% {
		box-shadow: 0 0 0 14px rgba(31, 157, 85, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.sky-prepay-note--attention {
		animation: none;
		box-shadow: 0 0 0 3px rgba(31, 157, 85, 0.3);
	}
}

@media (max-width: 480px) {
	.sky-prepay-note {
		padding: 14px;
		font-size: 14px;
	}

	.sky-prepay-note__amt {
		min-width: 64px;
	}
}
