/**
 * TrustLens Admin Pro Upsell Styles
 *
 * @package TrustLens
 */

.wstl-pro-upsell {
	--wstl-pro-bg: linear-gradient(150deg, #fbfcfe 0%, #f3f7fb 100%);
	--wstl-pro-panel: #ffffff;
	--wstl-pro-border: #d6e3f0;
	--wstl-pro-border-strong: #b4cde7;
	--wstl-pro-text: #152536;
	--wstl-pro-muted: #4f647a;
	--wstl-pro-accent: #1f6fb2;
	--wstl-pro-accent-strong: #175b92;
	--wstl-pro-accent-soft: #e7f2fb;
	--wstl-pro-success: #127a66;
	--wstl-pro-shadow: 0 16px 28px rgba(10, 26, 42, 0.1);
	position: relative;
	overflow: hidden;
	border: 1px solid var(--wstl-pro-border);
	border-left: 4px solid var(--wstl-pro-accent);
	border-radius: 14px;
	background: var(--wstl-pro-bg);
	padding: 26px;
	box-shadow: var(--wstl-pro-shadow);
	animation: wstlProUpsellIn 0.35s ease-out;
}

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

.wstl-pro-kicker {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--wstl-pro-muted);
}

.wstl-badge-pro {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 20px;
	padding: 0 8px;
	border-radius: 999px;
	border: 1px solid var(--wstl-pro-border-strong);
	background: var(--wstl-pro-accent-soft);
	color: var(--wstl-pro-accent-strong);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	vertical-align: middle;
}

.wstl-pro-link {
	text-decoration: none;
}

.wstl-pro-link:hover .wstl-badge-pro {
	background: #d7e8f8;
}

.wstl-pro-upsell-content h2 {
	margin: 0;
	color: var(--wstl-pro-text);
	font-size: 26px;
	line-height: 1.2;
	font-weight: 700;
}

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

.wstl-pro-upsell-features {
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.wstl-pro-upsell-features li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	padding: 10px 12px;
	border: 1px solid var(--wstl-pro-border);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.82);
	font-size: 13px;
	color: #1a3248;
}

.wstl-pro-upsell-features .dashicons-yes-alt {
	color: var(--wstl-pro-success);
	font-size: 16px;
	width: 16px;
	height: 16px;
	margin-top: 1px;
}

.wstl-pro-compare {
	margin-top: 6px;
	border: 1px solid var(--wstl-pro-border);
	border-radius: 10px;
	background: var(--wstl-pro-panel);
	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: 10px 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #587187;
	background: #eef4fa;
}

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

.wstl-pro-compare-row div {
	padding: 10px 12px;
	border-top: 1px solid #e7eef5;
	font-size: 13px;
	line-height: 1.45;
	color: #284258;
}

.wstl-pro-compare-row div:first-child {
	font-weight: 600;
	color: #19344a;
}

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

.wstl-pro-cta-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px;
}

.wstl-pro-upsell-button {
	background: var(--wstl-pro-accent) !important;
	border-color: var(--wstl-pro-accent) !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	padding: 0 20px !important;
	box-shadow: 0 8px 18px rgba(20, 96, 160, 0.22);
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.wstl-pro-upsell-button:hover,
.wstl-pro-upsell-button:focus {
	background: var(--wstl-pro-accent-strong) !important;
	border-color: var(--wstl-pro-accent-strong) !important;
}

.wstl-pro-upsell-secondary {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px !important;
	line-height: 1.2 !important;
	border-color: var(--wstl-pro-border-strong) !important;
	background: #fff !important;
	color: #21415c !important;
	font-weight: 600 !important;
}

.wstl-pro-upsell-secondary:hover,
.wstl-pro-upsell-secondary:focus {
	border-color: var(--wstl-pro-accent) !important;
	color: var(--wstl-pro-accent-strong) !important;
	background: #f6faff !important;
}

.wstl-pro-upsell-trust {
	margin: -2px 0 0;
	font-size: 12px;
	color: #60758b;
}

.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 (max-width: 782px) {
	.wstl-pro-upsell {
		padding: 18px;
	}

	.wstl-pro-upsell-content h2 {
		font-size: 22px;
	}

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