/* TPN Membership Hub — storefront (QAV v1).
 * Neutral, theme-agnostic styling scoped under #tpnhub-storefront so it survives whatever
 * theme thepodcastnetwork.com is running. Tune colours to match the site later. */

#tpnhub-storefront.tpnhub {
	max-width: 640px;
	margin: 1.5rem auto;
	font-size: 16px;
	line-height: 1.4;
	color: inherit;
}

#tpnhub-storefront .tpnhub-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: space-between;
	margin-bottom: 1.25rem;
}

#tpnhub-storefront .tpnhub-seg {
	display: inline-flex;
	border: 1px solid currentColor;
	border-radius: 999px;
	overflow: hidden;
	opacity: 0.95;
}

#tpnhub-storefront .tpnhub-seg-btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: inherit;
	padding: 0.4rem 1rem;
	font: inherit;
	cursor: pointer;
	line-height: 1;
}

#tpnhub-storefront .tpnhub-seg-btn.is-active {
	background: currentColor;
}
#tpnhub-storefront .tpnhub-seg-btn.is-active {
	/* invert text against the filled pill */
	color: #fff;
	mix-blend-mode: normal;
}

#tpnhub-storefront .tpnhub-region {
	border: 1px solid rgba( 128, 128, 128, 0.35 );
	border-radius: 10px;
	padding: 0.75rem 1rem 1rem;
	margin: 0 0 1rem;
}

#tpnhub-storefront .tpnhub-region legend {
	font-weight: 700;
	padding: 0 0.4rem;
	font-size: 1.05rem;
}

#tpnhub-storefront .tpnhub-opt {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.55rem 0.5rem;
	border-radius: 8px;
	cursor: pointer;
}

#tpnhub-storefront .tpnhub-opt:hover {
	background: rgba( 128, 128, 128, 0.1 );
}

#tpnhub-storefront .tpnhub-opt input[type="radio"] {
	margin: 0;
	flex: 0 0 auto;
}

#tpnhub-storefront .tpnhub-opt-name {
	flex: 1 1 auto;
}

#tpnhub-storefront .tpnhub-opt-price {
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
	opacity: 0.85;
}

#tpnhub-storefront .tpnhub-summary {
	border-top: 1px solid rgba( 128, 128, 128, 0.35 );
	margin-top: 0.5rem;
	padding-top: 0.75rem;
}

#tpnhub-storefront .tpnhub-sum-row {
	display: flex;
	justify-content: space-between;
	padding: 0.2rem 0.2rem;
	font-variant-numeric: tabular-nums;
}

#tpnhub-storefront .tpnhub-discount {
	color: #1a7f37;
}

#tpnhub-storefront .tpnhub-total {
	font-weight: 700;
	font-size: 1.15rem;
	border-top: 1px dashed rgba( 128, 128, 128, 0.35 );
	margin-top: 0.3rem;
	padding-top: 0.5rem;
}

#tpnhub-storefront .tpnhub-sum-note {
	text-align: right;
	font-size: 0.85rem;
	opacity: 0.7;
	padding: 0.2rem;
}

#tpnhub-storefront .tpnhub-subscribe {
	display: block;
	width: 100%;
	margin-top: 1rem;
	padding: 0.85rem 1rem;
	font: inherit;
	font-weight: 700;
	border: 0;
	border-radius: 10px;
	background: #2b6cb0;
	color: #fff;
	cursor: pointer;
}

#tpnhub-storefront .tpnhub-subscribe:hover {
	background: #25578c;
}

#tpnhub-storefront .tpnhub-subscribe:disabled {
	opacity: 0.6;
	cursor: default;
}

#tpnhub-storefront .tpnhub-message {
	margin-top: 0.75rem;
	min-height: 1.2em;
	text-align: center;
}

#tpnhub-storefront .tpnhub-message.is-error {
	color: #c0392b;
}

#tpnhub-storefront .tpnhub-message.is-info {
	opacity: 0.8;
}
