/**
 * Passport Marketing — Referrals
 *
 * Styles the [pm_referral] shortcode output. Kept theme-friendly so
 * it sits in any page context without fighting the surrounding design.
 */

.pm-ref-link {
	display: flex;
	gap: 8px;
	align-items: stretch;
	max-width: 560px;
	margin: 12px 0;
	box-sizing: border-box;
}

.pm-ref-link__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	background: #fafafa;
	color: #1a1a1a;
	font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
	font-size: 13px;
	line-height: 1.4;
	outline: none;
	box-shadow: none;
	transition: border-color 0.15s, background 0.15s;
}

.pm-ref-link__input:focus {
	border-color: #2D6A8A;
	background: #fff;
}

.pm-ref-link__btn {
	flex: 0 0 auto;
	padding: 10px 18px;
	border: 0;
	border-radius: 6px;
	background: #2D6A8A;
	color: #fff;
	font-family: inherit;
	font-weight: 600;
	font-size: 13px;
	line-height: 1.4;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s, transform 0.1s;
}

.pm-ref-link__btn:hover  { background: #245571; }
.pm-ref-link__btn:active { background: #1c4459; transform: translateY(1px); }
.pm-ref-link__btn:focus-visible {
	outline: 2px solid #2D6A8A;
	outline-offset: 2px;
}
.pm-ref-link__btn.is-copied {
	background: #3D7A45;
}

@media (max-width: 540px) {
	.pm-ref-link { flex-direction: column; }
	.pm-ref-link__btn { width: 100%; }
}

/* ──────────────────────────────────────────────────────────────────────────
 * [pm_referral_stats] — frontend stats card for logged-in users
 * ────────────────────────────────────────────────────────────────────────── */

.pm-ref-stats {
	margin: 16px 0;
	padding: 18px 20px;
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	background: #fff;
	box-sizing: border-box;
}

.pm-ref-stats--empty {
	background: #fafafa;
}

.pm-ref-stats__empty {
	margin: 0;
	color: #666;
	font-size: 14px;
}

.pm-ref-stats__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 16px;
}

.pm-ref-stats__cell {
	text-align: center;
}

.pm-ref-stats__label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #888;
	margin-bottom: 4px;
}

.pm-ref-stats__value {
	font-size: 24px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.2;
}

.pm-ref-stats__value .woocommerce-Price-amount {
	font-size: inherit;
}
