/**
 * TrustLens — Pro upsell. Refined, minimal, on-brand.
 *
 * One flat hairline card (no banner gradient, no left rail), a single faint
 * brand glow for atmosphere, and the premium blue→purple gradient reserved for
 * just two moments: the "Pro" micro-badge and the primary CTA. Everything else
 * is calm neutral type and whitespace.
 *
 * @package TrustLens
 */

.wstl-pro-upsell {
	--pro-accent:      #4f46e5;
	--pro-accent-2:    #6d5cf5;
	--pro-grad:        linear-gradient(135deg, #4f46e5 0%, #6d5cf5 100%);
	--pro-ink:         #1a2433;
	--pro-muted:       #6b7a8d;
	--pro-line:        #e7ecf3;
	--pro-line-soft:   #f1f4f8;
	--pro-accent-soft: #eef0fe;
	position: relative;
	overflow: hidden;
	border: 1px solid var(--pro-line);
	border-radius: 12px;
	background: #fff;
	padding: 28px 30px;
	box-shadow: 0 1px 2px rgba(20, 40, 67, 0.04);
	animation: wstlProUpsellIn 0.35s ease-out;
}

/* Standalone upsell pages (Automation, Chargeback Monitor) render the card
   directly in the page wrap with no pagebar above it — give it top breathing
   room so it doesn't sit flush against the plugin header. (Settings-tab upsells
   are nested in .wstl-settings, so this scoped rule doesn't touch them.) */
.wstl-wrap > .wstl-pro-upsell { margin-top: 16px; }

/* A single soft brand glow in the corner — premium atmosphere, zero clutter. */
.wstl-pro-upsell::before {
	content: "";
	position: absolute;
	top: -60px;
	right: -50px;
	width: 220px;
	height: 220px;
	background: radial-gradient(circle, rgba(109, 92, 245, 0.10) 0%, rgba(79, 70, 229, 0.06) 35%, transparent 70%);
	pointer-events: none;
}

.wstl-pro-upsell-content {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	color: var(--pro-ink);
}

/* Eyebrow + gradient micro-badge */
.wstl-pro-kicker {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--pro-accent);
}

.wstl-badge-pro {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px 7px;
	border-radius: 5px;
	background: var(--wstl-pro-bg, #eef0fe);
	color: var(--wstl-pro-fg, #4f46e5);
	box-shadow: inset 0 0 0 1px var(--wstl-pro-ring, rgba(79, 70, 229, 0.22));
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.6;
}

.wstl-pro-link { text-decoration: none; }
.wstl-pro-link:hover .wstl-badge-pro { filter: brightness(1.05); }

.wstl-pro-upsell-content h2 {
	margin: 0;
	color: var(--pro-ink);
	font-size: 22px;
	line-height: 1.25;
	font-weight: 600;
	letter-spacing: -0.015em;
}

.wstl-pro-upsell-description {
	margin: 0;
	max-width: 64ch;
	color: var(--pro-muted);
	font-size: 13.5px;
	line-height: 1.6;
}

/* Feature list — minimal rows, custom accent check, no boxes */
.wstl-pro-upsell-features {
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 11px;
}

.wstl-pro-upsell-features li {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	font-size: 13.5px;
	line-height: 1.45;
	color: #46586b;
}

.wstl-pro-upsell-features .dashicons-yes-alt {
	color: var(--pro-accent);
	font-size: 17px;
	width: 17px;
	height: 17px;
	margin-top: 0;
	flex: none;
}

/* Comparison — minimal hairline grid, Pro column gets a faint brand wash */
.wstl-pro-compare {
	margin-top: 4px;
	border: 1px solid var(--pro-line);
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}

.wstl-pro-compare-head,
.wstl-pro-compare-row {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
}

.wstl-pro-compare-head div {
	padding: 9px 14px;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--pro-muted);
}

.wstl-pro-compare-head div:last-child {
	color: var(--pro-accent);
	background: var(--pro-accent-soft);
}

.wstl-pro-compare-row div {
	padding: 10px 14px;
	border-top: 1px solid var(--pro-line-soft);
	font-size: 13px;
	line-height: 1.45;
	color: #5b6d80;
}

.wstl-pro-compare-row div:first-child {
	font-weight: 600;
	color: var(--pro-ink);
}

.wstl-pro-compare-row div:last-child {
	font-weight: 600;
	color: var(--pro-accent);
	background: var(--pro-accent-soft);
}

/* CTAs — one gradient primary, one quiet ghost link */
.wstl-pro-cta-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 6px;
}

.wstl-pro-upsell-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	background: var(--pro-grad) !important;
	border: 0 !important;
	border-radius: 9px !important;
	color: #fff !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	padding: 0 22px !important;
	text-shadow: none !important;
	box-shadow: 0 6px 16px rgba(79, 70, 229, 0.24) !important;
	transition: filter 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.wstl-pro-upsell-button:hover,
.wstl-pro-upsell-button:focus {
	filter: brightness(1.04);
	box-shadow: 0 8px 22px rgba(79, 70, 229, 0.30) !important;
	transform: translateY(-1px);
	color: #fff !important;
}

.wstl-pro-upsell-secondary {
	display: inline-flex !important;
	align-items: center;
	gap: 5px;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--pro-accent) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
}

.wstl-pro-upsell-secondary::after {
	content: "\2192";
	transition: transform 0.16s ease;
}

.wstl-pro-upsell-secondary:hover,
.wstl-pro-upsell-secondary:focus {
	background: transparent !important;
	color: var(--pro-accent-2) !important;
	text-decoration: underline;
}

.wstl-pro-upsell-secondary:hover::after { transform: translateX(3px); }

.wstl-pro-upsell-trust {
	margin: 0;
	font-size: 12px;
	color: #97a4b4;
}

/* Lite teaser CTA (e.g. Chargebacks tab) — shares the gradient upgrade identity. */
.wstl-pro-teaser .button-primary {
	background: linear-gradient(135deg, #4f46e5, #6d5cf5) !important;
	border: 0 !important;
	border-radius: 9px !important;
	color: #fff !important;
	text-shadow: none !important;
	box-shadow: 0 6px 16px rgba(79, 70, 229, 0.22) !important;
	transition: filter 0.16s ease, box-shadow 0.16s ease;
}

.wstl-pro-teaser .button-primary:hover,
.wstl-pro-teaser .button-primary:focus {
	filter: brightness(1.04);
	color: #fff !important;
	box-shadow: 0 8px 22px rgba(79, 70, 229, 0.30) !important;
}

/* Disabled overlay state (kept) */
.wstl-pro-disabled {
	opacity: 0.6;
	pointer-events: none;
	position: relative;
}

.wstl-pro-disabled::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.55);
}

@keyframes wstlProUpsellIn {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.wstl-pro-upsell { animation: none; }
	.wstl-pro-upsell-button:hover { transform: none; }
}

@media (max-width: 782px) {
	.wstl-pro-upsell { padding: 20px; }
	.wstl-pro-upsell-content h2 { font-size: 20px; }
	.wstl-pro-compare-head,
	.wstl-pro-compare-row { grid-template-columns: 1.2fr 1fr 1fr; }
}
