/**
 * TrustLens Admin Styles
 *
 * @package TrustLens
 * @since   1.0.0
 */

/* ==========================================================================
   Layout
   ========================================================================== */

.wstl-wrap {
	max-width: 1400px;
}

.wstl-wrap,
.wstl-dashboard-widget {
	/* Plugin brand */
	--wstl-color-primary: #3377EE;

	/* Segment palette (single source of truth) */
	--wstl-segment-vip: #1E7A46;
	--wstl-segment-trusted: #2B6FE8;
	--wstl-segment-normal: #607080;
	--wstl-segment-caution: #B88318;
	--wstl-segment-caution-soft: #F2DFC0;
	--wstl-segment-caution-ink: #4F3A00;
	--wstl-segment-risk: #C4652B;
	--wstl-segment-critical: #B23A48;
}

.wstl-dashboard {
	margin-top: 20px;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.wstl-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	padding: 20px;
	margin-bottom: 20px;
	transition: box-shadow 0.2s ease;
}

.wstl-card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wstl-card h2,
.wstl-card h3 {
	margin-top: 0;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

.wstl-card h2 .wstl-badge {
	vertical-align: middle;
	margin-left: 10px;
}

/* ==========================================================================
   Segments
   ========================================================================== */

.wstl-segments-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 15px;
}

@media (max-width: 1200px) {
	.wstl-segments-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 600px) {
	.wstl-segments-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.wstl-segment-box {
	background: #f9f9f9;
	padding: 15px;
	border-radius: 4px;
}

.wstl-segment-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	padding-left: 10px;
	border-left: 3px solid #ccc;
}

.wstl-segment-label {
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	color: #555;
}

.wstl-segment-count {
	font-size: 24px;
	font-weight: 700;
	color: #23282d;
}

.wstl-segment-bar {
	height: 4px;
	background: #e0e0e0;
	border-radius: 2px;
	overflow: hidden;
	margin-bottom: 5px;
}

.wstl-segment-bar-fill {
	height: 100%;
	border-radius: 2px;
	transition: width 0.3s ease;
}

.wstl-segment-percent {
	font-size: 12px;
	color: #666;
	text-align: right;
}

/* ==========================================================================
   Segment Badges
   ========================================================================== */

.wstl-segment-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	color: #fff;
	margin-right: 5px;
}

.wstl-segment-badge.wstl-segment-vip { background: var(--wstl-segment-vip); }
.wstl-segment-badge.wstl-segment-trusted { background: var(--wstl-segment-trusted); }
.wstl-segment-badge.wstl-segment-normal { background: var(--wstl-segment-normal); }
.wstl-segment-badge.wstl-segment-caution { background: var(--wstl-segment-caution-soft); color: var(--wstl-segment-caution-ink); }
.wstl-segment-badge.wstl-segment-risk { background: var(--wstl-segment-risk); }
.wstl-segment-badge.wstl-segment-critical { background: var(--wstl-segment-critical); }

/* ==========================================================================
   Badges
   ========================================================================== */

.wstl-badge {
	display: inline-block;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
}

.wstl-badge-danger {
	background: #dc3545;
	color: #fff;
}

.wstl-badge-blocked {
	background: #dc3545;
	color: #fff;
}

.wstl-badge-allowlist {
	background: #28a745;
	color: #fff;
}

/* ==========================================================================
   Scores
   ========================================================================== */

.wstl-score {
	display: inline-block;
	font-weight: 700;
	font-size: 16px;
}

.wstl-score.wstl-score-vip { color: var(--wstl-segment-vip); }
.wstl-score.wstl-score-trusted { color: var(--wstl-segment-trusted); }
.wstl-score.wstl-score-normal { color: var(--wstl-segment-normal); }
.wstl-score.wstl-score-caution { color: var(--wstl-segment-caution); }
.wstl-score.wstl-score-risk { color: var(--wstl-segment-risk); }
.wstl-score.wstl-score-critical { color: var(--wstl-segment-critical); }

/* ==========================================================================
   Tables
   ========================================================================== */

.wstl-table {
	width: 100%;
	border-collapse: collapse;
}

.wstl-table th,
.wstl-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #eee;
}

.wstl-table th {
	font-weight: 600;
	background: #f9f9f9;
}

.wstl-table tbody tr:hover {
	background: #f9f9f9;
}

.wstl-table-footer {
	margin-top: 15px;
	text-align: right;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.wstl-empty-state {
	text-align: center;
	padding: 40px 20px;
	color: #666;
}

.wstl-empty-state .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #28a745;
	margin-bottom: 10px;
}

.wstl-empty-state p {
	margin: 0;
	font-size: 14px;
}

/* ==========================================================================
   Stats
   ========================================================================== */

.wstl-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.wstl-stat {
	text-align: center;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 4px;
}

.wstl-stat-value {
	font-size: 36px;
	font-weight: 700;
	color: #23282d;
	line-height: 1.2;
}

.wstl-stat-label {
	font-size: 12px;
	color: #666;
	text-transform: uppercase;
}

.wstl-stat-positive { color: #28a745; }
.wstl-stat-warning { color: #ffc107; }
.wstl-stat-danger { color: #dc3545; }

/* ==========================================================================
   Filters
   ========================================================================== */

.wstl-filters {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 20px 0;
}

.wstl-filters .subsubsub {
	margin: 0;
}

.wstl-filters .search-box {
	display: flex;
	gap: 5px;
}

/* ==========================================================================
   Customers Table
   ========================================================================== */

.wstl-customers-table .column-score,
.wstl-customers-table .column-orders,
.wstl-customers-table .column-returns,
.wstl-customers-table .column-rate,
.wstl-customers-table .column-value {
	width: 10%;
}

.wstl-customers-table .column-actions {
	width: 100px;
}

.wstl-customer-type {
	font-size: 11px;
	color: #666;
}

/* ==========================================================================
   Dashboard Widget
   ========================================================================== */

.wstl-dashboard-widget .wstl-widget-alert {
	background: #fff3cd;
	border-left: 4px solid #ffc107;
	padding: 10px 15px;
	margin: -12px -12px 15px;
	font-weight: 600;
}

.wstl-dashboard-widget .wstl-widget-ok {
	background: #d4edda;
	border-left: 4px solid #28a745;
	padding: 10px 15px;
	margin: -12px -12px 15px;
}

.wstl-dashboard-widget .wstl-widget-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wstl-dashboard-widget .wstl-widget-list li {
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}

.wstl-dashboard-widget .wstl-widget-list li:last-child {
	border-bottom: none;
}

.wstl-dashboard-widget .wstl-widget-footer {
	margin: 15px 0 0;
	text-align: right;
}

/* ==========================================================================
   Historical Sync
   ========================================================================== */

.wstl-sync-card {
	grid-column: span 1;
}

.wstl-sync-intro p {
	margin: 0 0 10px;
}

.wstl-sync-progress {
	text-align: center;
}

.wstl-progress-bar {
	height: 20px;
	background: #e0e0e0;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 15px;
}

.wstl-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #2271b1, #135e96);
	border-radius: 10px;
	transition: width 0.5s ease;
}

.wstl-sync-stats {
	font-size: 14px;
	color: #50575e;
	margin: 0 0 5px;
}

.wstl-sync-customers {
	margin: 0 0 15px;
	color: #666;
}

.wstl-sync-complete {
	text-align: center;
	padding: 20px;
}

.wstl-sync-complete p {
	margin: 10px 0;
}

.wstl-sync-idle p {
	margin: 0 0 15px;
}

/* ==========================================================================
   ROI Calculator
   ========================================================================== */

.wstl-roi-card {
	min-height: 250px;
}

.wstl-roi-card h2 .dashicons {
	margin-right: 8px;
	vertical-align: middle;
}

.wstl-roi-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
}

@media (min-width: 1400px) {
	.wstl-roi-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.wstl-roi-stat {
	background: #f9f9f9;
	padding: 15px;
	border-radius: 6px;
	text-align: center;
}

.wstl-roi-stat-positive {
	background: rgba(40, 167, 69, 0.1);
	border: 1px solid rgba(40, 167, 69, 0.2);
}

.wstl-roi-stat-positive .wstl-roi-value {
	color: #28a745;
}

.wstl-roi-stat-warning {
	background: rgba(255, 193, 7, 0.1);
	border: 1px solid rgba(255, 193, 7, 0.3);
}

.wstl-roi-stat-warning .wstl-roi-value {
	color: #856404;
}

.wstl-roi-stat-danger {
	background: rgba(220, 53, 69, 0.1);
	border: 1px solid rgba(220, 53, 69, 0.2);
}

.wstl-roi-stat-danger .wstl-roi-value {
	color: #dc3545;
}

.wstl-roi-stat-total {
	background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
	color: #fff;
}

.wstl-roi-stat-total .wstl-roi-value,
.wstl-roi-stat-total .wstl-roi-label {
	color: #fff;
}

.wstl-roi-stat-danger-total {
	background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.wstl-roi-stat-percentage {
	background: linear-gradient(135deg, #0073aa 0%, #00a0d2 100%);
	color: #fff;
}

.wstl-roi-stat-percentage .wstl-roi-value,
.wstl-roi-stat-percentage .wstl-roi-label {
	color: #fff;
}

.wstl-roi-value {
	display: block;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 5px;
}

.wstl-roi-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	color: #666;
}

.wstl-roi-count {
	display: block;
	font-size: 11px;
	color: #888;
	margin-top: 3px;
}

/* ==========================================================================
   Detection Stats
   ========================================================================== */

.wstl-detection-card h2 .dashicons {
	margin-right: 8px;
	vertical-align: middle;
	color: #666;
}

.wstl-detection-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
}

@media (min-width: 1200px) {
	.wstl-detection-stats {
		grid-template-columns: repeat(4, 1fr);
	}
}

.wstl-detection-stat {
	background: #f9f9f9;
	padding: 15px;
	border-radius: 6px;
	text-align: center;
}

.wstl-detection-stat-success {
	background: rgba(40, 167, 69, 0.1);
}

.wstl-detection-stat-success .wstl-detection-value {
	color: #28a745;
}

.wstl-detection-stat-warning {
	background: rgba(255, 193, 7, 0.1);
}

.wstl-detection-stat-warning .wstl-detection-value {
	color: #856404;
}

.wstl-detection-stat-danger {
	background: rgba(220, 53, 69, 0.1);
}

.wstl-detection-stat-danger .wstl-detection-value {
	color: #dc3545;
}

.wstl-detection-value {
	display: block;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 5px;
	color: #333;
}

.wstl-detection-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	color: #666;
}

/* ==========================================================================
   Dashboard Layout
   ========================================================================== */

.wstl-dashboard-section {
	margin-bottom: 24px;
}

.wstl-dashboard-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

@media (max-width: 1200px) {
	.wstl-dashboard-grid-2 {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Dashboard Header Bar
   ========================================================================== */

.wstl-header-bar {
	display: flex;
	align-items: center;
	gap: 30px;
	padding: 24px 28px;
	background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.wstl-header-health {
	flex-shrink: 0;
	text-align: center;
}

.wstl-health-ring {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 4px solid #ccc;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wstl-health-ring-vip,
.wstl-health-ring-trusted { border-color: #28a745; }
.wstl-health-ring-normal { border-color: #6c757d; }
.wstl-health-ring-caution { border-color: #ffc107; }
.wstl-health-ring-risk { border-color: #fd7e14; }
.wstl-health-ring-critical { border-color: #dc3545; }

.wstl-health-value {
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	color: #23282d;
}

.wstl-health-label {
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #666;
	margin-top: 2px;
}

.wstl-header-info {
	flex: 1;
}

.wstl-header-greeting {
	font-size: 20px;
	font-weight: 600;
	color: #1d2327;
	margin: 0 0 4px;
}

.wstl-header-subtitle {
	font-size: 13px;
	color: #50575e;
	margin: 0 0 8px;
}

.wstl-header-health-msg {
	font-size: 13px;
	font-weight: 600;
	margin: 0;
}

.wstl-header-health-msg.is-good { color: #28a745; }
.wstl-header-health-msg.is-caution { color: #856404; }
.wstl-header-health-msg.is-danger { color: #dc3545; }
.wstl-header-health-msg.is-setup { color: #0073aa; }

.wstl-header-actions {
	flex-shrink: 0;
	display: flex;
	gap: 10px;
}

@media (max-width: 768px) {
	.wstl-header-bar {
		flex-direction: column;
		text-align: center;
		gap: 15px;
		padding: 20px;
	}

	.wstl-header-actions {
		justify-content: center;
	}
}

/* ==========================================================================
   KPI Cards Grid
   ========================================================================== */

.wstl-kpi-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
}

@media (max-width: 1200px) {
	.wstl-kpi-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.wstl-kpi-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.wstl-kpi-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 18px 16px;
	border-left: 3px solid #e0e0e0;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wstl-kpi-card:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wstl-kpi-card-green { border-left-color: #28a745; }
.wstl-kpi-card-red { border-left-color: #dc3545; }
.wstl-kpi-card-amber { border-left-color: #ffc107; }
.wstl-kpi-card-blue { border-left-color: #0073aa; }
.wstl-kpi-card-purple { border-left-color: #667eea; }

.wstl-kpi-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.wstl-kpi-icon {
	color: #999;
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.wstl-kpi-card-green .wstl-kpi-icon { color: #28a745; }
.wstl-kpi-card-red .wstl-kpi-icon { color: #dc3545; }
.wstl-kpi-card-amber .wstl-kpi-icon { color: #856404; }
.wstl-kpi-card-blue .wstl-kpi-icon { color: #0073aa; }
.wstl-kpi-card-purple .wstl-kpi-icon { color: #667eea; }

.wstl-kpi-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: #666;
}

.wstl-kpi-value {
	font-size: 32px;
	font-weight: 700;
	color: #1d2327;
	line-height: 1.1;
}

.wstl-kpi-card-green .wstl-kpi-value { color: #28a745; }
.wstl-kpi-card-red .wstl-kpi-value { color: #dc3545; }

/* ==========================================================================
   ROI Scorecard
   ========================================================================== */

.wstl-roi-scorecard {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	padding: 24px;
}

.wstl-roi-scorecard h2 {
	margin-top: 0;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid #eee;
	font-size: 15px;
}

.wstl-roi-scorecard-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 20px;
}

@media (max-width: 1200px) {
	.wstl-roi-scorecard-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.wstl-roi-scorecard-grid {
		grid-template-columns: 1fr;
	}
}

.wstl-roi-scorecard-stat {
	padding: 20px;
	border-radius: 8px;
	text-align: center;
	color: #fff;
}

.wstl-roi-scorecard-stat-protected {
	background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.wstl-roi-scorecard-stat-risk {
	background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.wstl-roi-scorecard-stat-rate {
	background: linear-gradient(135deg, #0073aa 0%, #00a0d2 100%);
}

.wstl-roi-scorecard-stat-actions {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.wstl-roi-scorecard-value {
	display: block;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 4px;
}

.wstl-roi-scorecard-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	opacity: 0.9;
}

.wstl-roi-detail-row {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	padding-top: 16px;
	border-top: 1px solid #eee;
}

.wstl-roi-detail {
	font-size: 13px;
	color: #50575e;
}

.wstl-roi-detail strong {
	color: #1d2327;
}

/* ==========================================================================
   Compact Table
   ========================================================================== */

.wstl-compact-table {
	width: 100%;
	border-collapse: collapse;
}

.wstl-compact-table th,
.wstl-compact-table td {
	padding: 8px 10px;
	text-align: left;
	border-bottom: 1px solid #f0f0f0;
	font-size: 13px;
}

.wstl-compact-table th {
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: #666;
	background: #fafafa;
}

.wstl-compact-table tbody tr:hover {
	background: #f9f9ff;
}

.wstl-compact-table .wstl-email-truncated {
	max-width: 180px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: inline-block;
	vertical-align: middle;
}

/* ==========================================================================
   Pulse Dot Indicator
   ========================================================================== */

.wstl-pulse-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #dc3545;
	margin-left: 8px;
	vertical-align: middle;
	animation: wstl-pulse 2s ease-in-out infinite;
}

@keyframes wstl-pulse {
	0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
	50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); }
}

/* ==========================================================================
   Collapsible Section
   ========================================================================== */

.wstl-collapsible {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.wstl-collapsible summary {
	padding: 16px 20px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	color: #1d2327;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 10px;
}

.wstl-collapsible summary::-webkit-details-marker {
	display: none;
}

.wstl-collapsible summary::before {
	content: '\f345';
	font-family: dashicons;
	font-size: 20px;
	color: #999;
	transition: transform 0.2s ease;
}

.wstl-collapsible[open] summary::before {
	transform: rotate(90deg);
}

.wstl-collapsible-content {
	padding: 0 20px 20px;
}

.wstl-collapsible-status {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-left: 8px;
}

.wstl-collapsible-status-synced { background: #28a745; }
.wstl-collapsible-status-pending { background: #ffc107; }
.wstl-collapsible-status-running { background: #0073aa; }

/* ==========================================================================
   Attention Card
   ========================================================================== */

.wstl-attention-card {
	border-left: 4px solid #dc3545;
}

.wstl-attention-card h2 {
	display: flex;
	align-items: center;
}

.wstl-attention-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 8px;
	border-radius: 12px;
	background: #dc3545;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	margin-left: 10px;
}

/* ==========================================================================
   Chart Enhancements
   ========================================================================== */

.wstl-chart-card {
	min-height: 350px;
}

.wstl-chart-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid #eee;
}

.wstl-chart-header h2 {
	margin: 0;
	padding: 0;
	border: none;
	font-size: 15px;
}

.wstl-chart-period {
	font-size: 12px;
	color: #999;
	font-weight: 400;
}

.wstl-chart-container {
	position: relative;
	padding: 10px;
}

/* ==========================================================================
   ROI Upsell Strip
   ========================================================================== */

.wstl-roi-upsell-strip {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
	padding: 14px 18px;
	background: linear-gradient(135deg, #f8f5fc 0%, #f0ebf5 100%);
	border: 1px solid #e3d8ee;
	border-radius: 6px;
}

.wstl-roi-upsell-strip .dashicons-superhero-alt {
	font-size: 22px;
	width: 22px;
	height: 22px;
	color: #8e44ad;
	flex-shrink: 0;
}

.wstl-roi-upsell-strip-text {
	font-size: 13px;
	color: #444;
	line-height: 1.5;
}

.wstl-roi-upsell-strip-text strong {
	color: #1d2327;
	margin-right: 4px;
}

.wstl-roi-upsell-strip-link {
	display: inline-block;
	margin-left: 8px;
	color: #8e44ad;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.wstl-roi-upsell-strip-link:hover {
	color: #7d3c98;
	text-decoration: underline;
}

@media (max-width: 600px) {
	.wstl-roi-upsell-strip {
		flex-direction: column;
		text-align: center;
	}

	.wstl-roi-upsell-strip-link {
		display: block;
		margin-left: 0;
		margin-top: 8px;
	}
}

/* ==========================================================================
   Onboarding Card (Empty State)
   ========================================================================== */

.wstl-onboarding-card {
	background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	padding: 32px;
	text-align: center;
}

.wstl-onboarding-icon .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #667eea;
	margin-bottom: 12px;
}

.wstl-onboarding-card h2 {
	margin: 0 0 8px;
	font-size: 20px;
	border: none;
	padding: 0;
}

.wstl-onboarding-desc {
	color: #666;
	margin: 0 0 28px;
	font-size: 14px;
}

.wstl-onboarding-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	text-align: left;
	max-width: 900px;
	margin: 0 auto;
}

@media (max-width: 900px) {
	.wstl-onboarding-steps {
		grid-template-columns: 1fr;
	}
}

.wstl-onboarding-step {
	background: #fff;
	border: 1px solid #e2e4e9;
	border-radius: 10px;
	padding: 22px 20px 20px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wstl-onboarding-step:hover {
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.12);
	transform: translateY(-2px);
}

.wstl-step-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.wstl-onboarding-step-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: linear-gradient(135deg, #667eea 0%, #5a67d8 100%);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	flex-shrink: 0;
}

.wstl-step-icon {
	color: #667eea;
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.wstl-onboarding-step h3 {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
	border: none;
	padding: 0;
}

.wstl-onboarding-step p {
	margin: 0;
	font-size: 13px;
	color: #646970;
	line-height: 1.6;
}

/* Sync success message */
.wstl-sync-success {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 20px;
	padding: 16px 24px;
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	border: 1px solid #bbf7d0;
	border-radius: 10px;
	animation: wstl-fade-in 0.4s ease;
}

.wstl-sync-success .dashicons {
	color: #16a34a;
	font-size: 28px;
	width: 28px;
	height: 28px;
}

.wstl-sync-success strong {
	display: block;
	font-size: 15px;
	color: #15803d;
}

.wstl-sync-success p {
	margin: 2px 0 0;
	font-size: 13px;
	color: #166534;
}

@keyframes wstl-fade-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Sync area inside onboarding card */
.wstl-onboarding-sync {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid #eee;
}

.wstl-onboarding-sync .button-hero {
	font-size: 15px;
	padding: 8px 32px;
	height: auto;
	line-height: 1.6;
}

.wstl-onboarding-sync .wstl-progress-bar {
	max-width: 400px;
	margin: 0 auto 12px;
}

.wstl-onboarding-sync .wstl-sync-stats {
	font-size: 13px;
	color: #50575e;
	margin: 0 0 12px;
}

.wstl-onboarding-sync-note {
	font-size: 12px;
	color: #999;
	margin: 12px 0 0;
}

.wstl-onboarding-pro-teaser {
	font-size: 13px;
	color: #50575e;
	margin: 16px 0 0;
	padding-top: 16px;
	border-top: 1px solid #e0e0e0;
}

.wstl-onboarding-pro-teaser a {
	color: #8e44ad;
	text-decoration: none;
}

.wstl-onboarding-pro-teaser a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Customers list (bulk result)
   ========================================================================== */

.wstl-bulk-pro-notice {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #666;
	font-size: 13px;
	padding: 2px 0;
}

.wstl-bulk-result {
	display: inline-block;
	margin-left: 10px;
	padding: 5px 10px;
	border-radius: 3px;
}

.wstl-bulk-result.success {
	background: #d4edda;
	color: #155724;
}

.wstl-bulk-result.error {
	background: #f8d7da;
	color: #721c24;
}

/* ==========================================================================
   Utility classes (used instead of inline styles for WP enqueue compliance)
   ========================================================================== */

.wstl-mt-20 { margin-top: 20px; }
.wstl-mt-15 { margin-top: 15px; }
.wstl-mt-10 { margin-top: 10px; }
.wstl-mb-15 { margin-bottom: 15px; }
.wstl-mb-20 { margin-bottom: 20px; }
.wstl-spinner-inline { float: none; margin-top: 0; }
.wstl-text-center { text-align: center; }
.wstl-max-w-500 { max-width: 500px; }
.wstl-list-disc { list-style: disc; margin-left: 20px; color: #666; }
.wstl-description-mb { margin-bottom: 15px; }
.wstl-icon-success { color: #46b450; }
.wstl-icon-info { color: #0073aa; }
.wstl-icon-muted { color: #999; }
.wstl-icon-lock { color: #666; font-size: 14px; }
.wstl-icon-32 { font-size: 32px; }
.wstl-label-block { display: block; margin-bottom: 8px; }
.wstl-col-40 { width: 40px; }
.wstl-col-150 { width: 150px; }
.wstl-col-100 { width: 100px; }
.wstl-col-28 { width: 28%; }
.wstl-score-suffix { font-size: 16px; color: #999; }
.wstl-modal-hidden { display: none; }
.wstl-link-small { font-size: 12px; }
.wstl-badge-pro-small { font-size: 10px; vertical-align: middle; }
