/**
 * Geo Pricing Manager — front-end styles.
 *
 * Deliberately minimal: prices must inherit the theme's typography so the
 * plugin looks native in Astra, Hello Elementor, Divi and every other theme.
 * Nothing here sets a colour, font or size.
 *
 * @package Geo_Pricing_Manager
 * @since   1.0.0
 */

/* Shortcode output. Keeps a range from breaking across two lines. */
.gpm-price {
	white-space: nowrap;
}

/* Ranges are allowed to wrap on narrow viewports rather than overflow. */
@media (max-width: 480px) {
	.gpm-price {
		white-space: normal;
	}
}

/* Shown to logged-in editors when a shortcode references an unknown plan. */
.gpm-price--error {
	color: #b32d2e;
	font-style: italic;
	white-space: normal;
}

/* Detected country output from [geo_country]. */
.gpm-country {
	white-space: nowrap;
}

/*
 * Anti-flicker support. The matching rules are printed inline in <head> by the
 * asset loader; this file only supplies the transition used once the class is
 * removed, so a revealed price does not pop.
 */
.gpm-price--updated {
	transition: opacity 120ms ease-in;
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
	.gpm-price--updated {
		transition: none;
	}
}
