/*
 * STX Promotions storefront polish (0.6.29): the owner's UI checklist applied to the plugin's own pieces.
 * Loads after the theme's polish.css so these win. Contrast targets WCAG AA (4.5:1 for body text).
 */

/* Bundle detail page: its section is dark, but the light storefront turned these lines near-black (1.14:1). */
.stx-promo-single .stx-bundle .stx-bundle__title,
.stx-promo-single .stx-bundle .stx-bundle-included h2 {
	color: #f8fafc !important;
}
.stx-promo-single .stx-bundle .stx-bundle-pricing__save,
.stx-promo-single .stx-bundle .stx-bundle-included__lede {
	color: #cbd5e1 !important;
}
/* The FFL notice must be readable: light text on the amber-tinted box. */
.stx-promo-single .stx-bundle .stx-bundle__compliance,
.stx-promo-single .stx-bundle .stx-bundle__compliance strong {
	color: #f8fafc !important;
}
/* "Add Bundle to Cart": white on the orange button (was #111 at 3.65:1). */
.stx-bundle .stx-bundle__atc {
	color: #fff !important;
}
/* "Included with this bundle" sits on white item cards: amber #fbbf24 was 1.67:1; #b45309 is 5:1. */
.stx-bundle .stx-bundle-item__included,
.stx-bundle .stx-bundle-item__included strong {
	color: #b45309 !important;
}

/* Bundle cards: price labels and the contents line were 10-11px. */
.stx-bundle-card .stx-bundle-card__price-label {
	font-size: 0.75rem !important;
}
.stx-bundle-card .stx-bundle-card__contents-label,
.stx-bundle-card .stx-bundle-card__contents {
	font-size: max(0.75rem, 1em) !important;
}

/* Busy state: a pressed bundle or sign-up button shows a spinner and ignores a second press. */
.stx-fb__add.is-busy,
.stx-signup button.is-busy {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}
.stx-fb__add.is-busy::after,
.stx-signup button.is-busy::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 1em;
	height: 1em;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: stx-promo-busy 0.7s linear infinite;
}
@keyframes stx-promo-busy {
	to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
	.stx-fb__add.is-busy::after,
	.stx-signup button.is-busy::after {
		animation: none;
		border-top-color: rgba(255, 255, 255, 0.45);
	}
}

/* Press: 0.97 at once while held, eased back on release (the theme covers .stx-btn; these are the plugin's own buttons). */
.stx-spin__open,
.stx-spin__go,
.stx-spin__close,
.stx-signup button,
.stx-bundle .stx-bundle__atc {
	transition: transform var(--stx-exit, 160ms) var(--stx-ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}
.stx-spin__open:active,
.stx-spin__go:active,
.stx-spin__close:active,
.stx-signup button:active,
.stx-bundle .stx-bundle__atc:active {
	transform: scale(0.97);
	transition-duration: 0s;
}
@media (prefers-reduced-motion: reduce) {
	.stx-spin__open:active,
	.stx-spin__go:active,
	.stx-spin__close:active,
	.stx-signup button:active,
	.stx-bundle .stx-bundle__atc:active {
		transform: none;
	}
}

/* Footer sign-up button was 11.8px. */
.stx-signup button {
	font-size: 0.8125rem;
}
