/* TPN Membership Hub — storefront (QAV v1).
 * Self-contained white card with EXPLICIT colours so it reads on any theme background
 * (the QAV AU site is dark navy — inheriting theme colours made text invisible). */

#tpnhub-storefront.tpnhub {
	max-width: 560px;
	margin: 1.5rem auto;
	padding: 1.5rem 1.5rem 1.75rem;
	background: #ffffff;
	color: #1a2332;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba( 0, 0, 0, 0.25 );
	font-size: 16px;
	line-height: 1.4;
	box-sizing: border-box;
}

#tpnhub-storefront.tpnhub * {
	box-sizing: border-box;
}

/* Stop the host theme from recolouring bold text inside the card (ID beats theme classes). */
#tpnhub-storefront strong,
#tpnhub-storefront b {
	color: inherit;
}

#tpnhub-storefront .tpnhub-member-intro {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: #1a2332;
}

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

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

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

#tpnhub-storefront .tpnhub-seg-btn.is-active {
	background: #2b6cb0;
	color: #ffffff;
}

#tpnhub-storefront .tpnhub-region {
	border: 1px solid #e1e4ea;
	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;
	color: #1a2332;
}

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

#tpnhub-storefront .tpnhub-opt:hover {
	background: #f3f5f9;
}

#tpnhub-storefront .tpnhub-opt input[type="radio"] {
	margin: 0;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	accent-color: #2b6cb0;
}

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

#tpnhub-storefront .tpnhub-opt-price {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
	color: #5b6472;
}

#tpnhub-storefront .tpnhub-regular {
	text-decoration: line-through;
	color: #9aa1ad;
	font-size: 0.85rem;
}

#tpnhub-storefront .tpnhub-member {
	font-weight: 700;
	color: #1a2332;
}

/* Copy block above the picker. */
#tpnhub-storefront .tpnhub-copy {
	margin-bottom: 1.25rem;
}

#tpnhub-storefront .tpnhub-current {
	margin: 0 0 0.6rem;
	color: #1a2332;
}

/* Own class (not <strong>) so the host theme can't recolour it; forced for certainty. */
#tpnhub-storefront .tpnhub-current-plan {
	font-weight: 700;
	color: #1a2332 !important;
}

#tpnhub-storefront .tpnhub-pitch {
	margin: 0 0 0.6rem;
	font-size: 1.05rem;
	color: #1a2332;
}

#tpnhub-storefront .tpnhub-unlock {
	margin: 0;
	font-weight: 700;
	color: #1a7f37;
}

#tpnhub-storefront .tpnhub-summary {
	border-top: 1px solid #e1e4ea;
	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;
	color: #3a4250;
}

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

#tpnhub-storefront .tpnhub-total {
	font-weight: 700;
	font-size: 1.2rem;
	color: #1a2332;
	border-top: 1px dashed #d4d8e0;
	margin-top: 0.3rem;
	padding-top: 0.5rem;
}

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

#tpnhub-storefront .tpnhub-subscribe {
	display: block;
	width: 100%;
	margin-top: 1rem;
	padding: 0.9rem 1rem;
	font: inherit;
	font-weight: 700;
	font-size: 1.05rem;
	text-align: center;
	text-decoration: none;
	border: 0;
	border-radius: 10px;
	background: #2b6cb0;
	color: #ffffff;
	cursor: pointer;
}

/* Login-gate variant is an <a> styled as the button; keep it visually identical. */
#tpnhub-storefront a.tpnhub-subscribe.tpnhub-login,
#tpnhub-storefront a.tpnhub-subscribe.tpnhub-login:visited {
	color: #ffffff;
	text-decoration: none;
}

#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;
	color: #3a4250;
}

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

#tpnhub-storefront .tpnhub-message.is-info {
	color: #5b6472;
}
