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

/* Pro badge — single source of truth for the "PRO" marker everywhere. A soft,
   refined purple tag (not a heavy gradient), with on-dark and on-light variants
   sharing one color family. */
:root {
	--wstl-pro-fg: #4f46e5;
	--wstl-pro-bg: #eef0fe;
	--wstl-pro-ring: rgba(79, 70, 229, 0.22);
}

/* Card-Testing page Pro tags were unstyled — give them the canonical look. */
.ct-pro-tag {
	display: inline-flex;
	align-items: 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;
	vertical-align: middle;
}

/* ==========================================================================
   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: 16px;
	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 States — one calm, centered pattern used everywhere
   ========================================================================== */

/* Shared icon: a soft outline "inbox" rendered via mask so it tints to
   currentColor. Override --wstl-empty-icon on a container for a custom glyph. */
.wstl-empty,
.wstl-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 10px;
	padding: 40px 24px;
	min-height: 132px;
	color: #6b7a8d;
	font-size: 13.5px;
	line-height: 1.55;
}

.wstl-empty::before,
.wstl-empty-state::before {
	content: "";
	width: 34px;
	height: 34px;
	flex: none;
	background: #aab6c6;
	-webkit-mask: var(--wstl-empty-icon) center / contain no-repeat;
	mask: var(--wstl-empty-icon) center / contain no-repeat;
}

:root,
.wstl-wrap,
.wstl-dashboard-widget {
	--wstl-empty-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E");
}

/* Legacy dashicon variant keeps its icon but inherits the calm layout. */
.wstl-empty-state .dashicons {
	font-size: 36px;
	width: 36px;
	height: 36px;
	color: #aab6c6;
	margin: 0;
}
.wstl-empty-state::before { display: none; }

.wstl-empty p,
.wstl-empty-state p {
	margin: 0;
	font-size: 13px;
	color: #7a8aa0;
}

.wstl-empty-title {
	font-size: 15px;
	font-weight: 600;
	color: #1a2433;
}

/* ==========================================================================
   Domain-coloured action buttons — block = red, allowlist = blue
   ========================================================================== */

.wstl-action-block.button,
.wstl-action-block.button-primary {
	background: #B23A48;
	border-color: #9c3340;
	color: #fff;
	box-shadow: none;
	text-shadow: none;
}
.wstl-action-block.button:hover,
.wstl-action-block.button-primary:hover,
.wstl-action-block.button:focus,
.wstl-action-block.button-primary:focus {
	background: #9c3340;
	border-color: #872c38;
	color: #fff;
	box-shadow: none;
}
.wstl-action-unblock.button,
.wstl-action-unblock.button-primary {
	background: #fff;
	border-color: #e0b6bb;
	color: #B23A48;
	box-shadow: none;
	text-shadow: none;
}
.wstl-action-unblock.button:hover,
.wstl-action-unblock.button-primary:hover,
.wstl-action-unblock.button:focus,
.wstl-action-unblock.button-primary:focus {
	background: #fbe9eb;
	border-color: #d39aa1;
	color: #8f2e3a;
	box-shadow: none;
}
.wstl-action-allowlist.button {
	background: #3377EE;
	border-color: #2b6fe0;
	color: #fff;
	box-shadow: none;
}
.wstl-action-allowlist.button:hover,
.wstl-action-allowlist.button:focus {
	background: #2b6fe0;
	border-color: #245fc4;
	color: #fff;
	box-shadow: none;
}
.wstl-action-remove-allowlist.button {
	background: #fff;
	border-color: #bcd3f5;
	color: #2360c9;
	box-shadow: none;
}
.wstl-action-remove-allowlist.button:hover,
.wstl-action-remove-allowlist.button:focus {
	background: #eaf1fc;
	border-color: #9fc0f0;
	color: #1f55b0;
	box-shadow: none;
}

/* ==========================================================================
   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 18px;
	font-size: 14px;
}

.wstl-onboarding-active {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 auto 28px;
	padding: 9px 16px;
	background: rgba(16, 185, 129, 0.08);
	border: 1px solid rgba(16, 185, 129, 0.25);
	border-radius: 100px;
	font-size: 13px;
	color: #065f46;
}

.wstl-onboarding-active-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
	flex-shrink: 0;
}

.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-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; }

/* TrustLens action toasts — inline feedback for customer actions. */
.wstl-toast-wrap {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	gap: 8px;
	pointer-events: none;
}
.wstl-toast {
	min-width: 220px;
	max-width: 360px;
	padding: 12px 16px;
	border-radius: 8px;
	color: #fff;
	font-size: 13px;
	line-height: 1.4;
	box-shadow: 0 6px 24px rgba( 0, 0, 0, 0.18 );
	opacity: 0;
	transform: translateY( 12px );
	transition: opacity 0.22s ease, transform 0.22s ease;
	pointer-events: auto;
}
.wstl-toast.is-visible {
	opacity: 1;
	transform: translateY( 0 );
}
.wstl-toast-success { background: #1E7A46; }
.wstl-toast-error { background: #B23A48; }
@media ( prefers-reduced-motion: reduce ) {
	.wstl-toast { transition: opacity 0.22s ease; transform: none; }
	.wstl-toast.is-visible { transform: none; }
}

/* TrustLens block-reason picker. */
/* =========================================================
   JS dialogs — block-reason picker, confirm prompts, API-key
   reveal. Matches the admin modal design and is global so it
   works on any page (Customers, Settings, etc.).
   ========================================================= */
.wstl-dialog-overlay {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(20, 40, 62, 0.45);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	animation: wstl-dialog-fade 0.16s ease-out;
}
.wstl-dialog {
	position: relative;
	width: 100%;
	max-width: 460px;
	background: #fff;
	border: 1px solid #e7ecf3;
	border-radius: 12px;
	box-shadow: 0 14px 34px rgba(16, 42, 67, 0.14), 0 8px 20px rgba(16, 42, 67, 0.08);
	overflow: hidden;
	box-sizing: border-box;
	animation: wstl-dialog-pop 0.18s ease-out;
}
.wstl-dialog::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(135deg, #635bff, #3377EE);
}
.wstl-dialog-danger::before { background: linear-gradient(135deg, #d65668, #B23A48); }

.wstl-dialog-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 17px 22px;
	border-bottom: 1px solid #eef2f7;
}
.wstl-dialog-header h2 {
	margin: 0;
	padding: 0;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: #1a2433;
}
.wstl-dialog-close {
	flex: none;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(20, 40, 62, 0.06);
	border: 0;
	border-radius: 9px;
	font-size: 20px;
	line-height: 1;
	color: #5b6d80;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
.wstl-dialog-close:hover { background: rgba(20, 40, 62, 0.12); color: #14283e; }

.wstl-dialog-body {
	padding: 20px 22px;
	color: #46586b;
	font-size: 13px;
	line-height: 1.55;
}
.wstl-dialog-body p { margin: 0 0 12px; }
.wstl-dialog-body p:last-child { margin-bottom: 0; }
.wstl-dialog-note { color: #6b7a8d; font-size: 12.5px; }

.wstl-dialog-field { display: block; margin-bottom: 16px; }
.wstl-dialog-field:last-child { margin-bottom: 0; }
.wstl-dialog-field > label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #1a2433;
}
.wstl-dialog-field-optional {
	margin-left: 5px;
	font-weight: 500;
	font-size: 11px;
	color: #9aa7b6;
}
.wstl-dialog-field select,
.wstl-dialog-field textarea,
.wstl-dialog-field input[type="text"] {
	display: block;
	width: 100%;
	margin-top: 7px;
	box-sizing: border-box;
	border: 1px solid #dbe3ec;
	border-radius: 8px;
	background: #fff;
	font-size: 13px;
	font-weight: 400;
	box-shadow: none;
}
.wstl-dialog-field textarea,
.wstl-dialog-field input[type="text"] { padding: 9px 12px; }
.wstl-dialog-field textarea { resize: vertical; min-height: 72px; line-height: 1.5; }
.wstl-dialog-field select:focus,
.wstl-dialog-field textarea:focus,
.wstl-dialog-field input[type="text"]:focus {
	border-color: #3377EE;
	box-shadow: 0 0 0 3px rgba(51, 119, 238, 0.12);
	outline: none;
}

.wstl-dialog-key { display: flex; gap: 8px; align-items: stretch; }
.wstl-dialog-key code {
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	white-space: nowrap;
	padding: 9px 12px;
	background: #f6f9fc;
	border: 1px solid #e2eaf2;
	border-radius: 8px;
	font-size: 12.5px;
	color: #1a2433;
	display: flex;
	align-items: center;
}

.wstl-dialog-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 22px 18px;
	border-top: 1px solid #eef2f7;
	background: #f8fafc;
}
.wstl-dialog-footer .button { min-height: 36px; border-radius: 8px; }
.wstl-dialog-confirm.button {
	background: #3377EE;
	border-color: #2b6fe0;
	color: #fff;
	box-shadow: none;
}
.wstl-dialog-confirm.button:hover,
.wstl-dialog-confirm.button:focus {
	background: #2b6fe0;
	border-color: #245fc4;
	color: #fff;
}
.wstl-dialog-confirm.is-danger {
	background: #B23A48;
	border-color: #9c3340;
}
.wstl-dialog-confirm.is-danger:hover,
.wstl-dialog-confirm.is-danger:focus {
	background: #9c3340;
	border-color: #872c38;
}

@keyframes wstl-dialog-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wstl-dialog-pop {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
	.wstl-dialog-overlay, .wstl-dialog { animation: none; }
}

/* TrustLens inline help tooltips. */
.wstl-help {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	margin-left: 5px;
	border-radius: 50%;
	background: #c3c4c7;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	cursor: help;
	position: relative;
	vertical-align: middle;
}
.wstl-help:hover,
.wstl-help:focus { background: #3377EE; outline: none; }
.wstl-help::after {
	content: attr( data-wstl-tip );
	position: absolute;
	bottom: calc( 100% + 8px );
	left: 50%;
	transform: translateX( -50% );
	width: max-content;
	max-width: 260px;
	background: #1d2327;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
	padding: 8px 10px;
	border-radius: 6px;
	white-space: normal;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease;
	z-index: 100002;
	pointer-events: none;
}
.wstl-help:hover::after,
.wstl-help:focus::after { opacity: 1; visibility: visible; }

/* TrustLens segment legend — contained collapsible card. */
.wstl-legend {
	margin: 0 0 16px;
	font-size: 13px;
	background: #fff;
	border: 1px solid #e7ecf3;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(20, 40, 67, 0.04);
	overflow: hidden;
}
.wstl-legend-summary {
	cursor: pointer;
	color: #1a2433;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 16px;
	list-style: none;
	user-select: none;
	transition: color 0.14s ease, background 0.14s ease;
}
.wstl-legend-summary::-webkit-details-marker { display: none; }
.wstl-legend-summary::before {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2px solid #8aa0b6;
	border-bottom: 2px solid #8aa0b6;
	transform: rotate(-45deg);
	transition: transform 0.18s ease;
	flex: none;
}
.wstl-legend-summary:hover { color: #3377EE; background: #f8fafc; }
.wstl-legend[open] .wstl-legend-summary {
	border-bottom: 1px solid #eef2f7;
}
.wstl-legend[open] .wstl-legend-summary::before { transform: rotate(45deg); }
.wstl-legend-list {
	list-style: none;
	margin: 0;
	padding: 6px 16px 12px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	max-width: none;
}
.wstl-legend-item {
	display: grid;
	grid-template-columns: 100px 64px 1fr;
	align-items: center;
	gap: 14px;
	padding: 9px 0;
	border-bottom: 1px solid #f1f4f8;
}
.wstl-legend-item:last-child { border-bottom: 0; }
.wstl-legend-range { color: #8493a3; font-variant-numeric: tabular-nums; font-size: 12px; }
.wstl-legend-desc { color: #46586b; }
@media ( min-width: 1100px ) {
	.wstl-legend-list { grid-template-columns: 1fr 1fr; column-gap: 36px; padding-bottom: 14px; }
	.wstl-legend-item:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}

/* TrustLens next-action prompts. */
.wstl-attention-guidance {
	margin: 0 0 14px;
	color: #555;
	font-size: 13px;
	max-width: 760px;
}
.ct-hero-action {
	margin: 10px 0 0;
	padding: 8px 12px;
	background: rgba( 51, 119, 238, 0.07 );
	border-left: 3px solid #3377EE;
	border-radius: 4px;
	color: #14283e;
	font-size: 13px;
	max-width: 460px;
}

/* TrustLens score legibility — driver summary + focusable signal rows. */
.wstl-cd-signal-summary {
	margin: 0 0 12px;
	padding: 8px 10px;
	background: #f6f7f7;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.5;
	color: #3c434a;
}
.wstl-cd-signal:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
	border-radius: 4px;
}

/* TrustLens Quick Start setup card. */
.wstl-quickstart {
	background: #fff;
	border: 1px solid #dcdcde;
	border-left: 4px solid #3377EE;
	border-radius: 8px;
	padding: 18px 20px;
}
.wstl-quickstart-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
}
.wstl-quickstart-title { margin: 0 0 4px; font-size: 16px; }
.wstl-quickstart-sub { margin: 0; color: #555; font-size: 13px; max-width: 640px; }
.wstl-quickstart-dismiss { color: #777; text-decoration: none; flex: none; }
.wstl-quickstart-steps {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: grid;
	gap: 12px;
}
.wstl-quickstart-toggle { display: flex; gap: 10px; align-items: flex-start; }
.wstl-quickstart-toggle input[type="checkbox"] { margin-top: 3px; }
.wstl-quickstart-text { display: flex; flex-direction: column; }
.wstl-quickstart-text strong { font-size: 13px; }
.wstl-quickstart-desc { color: #666; font-size: 12px; line-height: 1.5; }
.wstl-quickstart-check { color: #3377EE; font-size: 20px; width: 20px; height: 20px; flex: none; }
@media ( min-width: 1100px ) {
	.wstl-quickstart-steps { grid-template-columns: 1fr 1fr 1fr; }
}

/* TrustLens module status pill (Modules settings tab). */
.wstl-module-status {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 600;
}
.wstl-module-status.is-on { background: rgba(16,185,129,.12); color: #047857; }
.wstl-module-status.is-off { background: #f0f2f5; color: #7a8aa0; }

/* Shared brand toggle switch — used on Notifications and Modules. */
.wstl-toggle {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 24px;
	flex: none;
}
.wstl-toggle input { opacity: 0; width: 0; height: 0; }
.wstl-toggle-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background-color: #cfd8e3;
	border-radius: 999px;
	transition: background-color 0.2s ease;
}
.wstl-toggle-slider::before {
	content: "";
	position: absolute;
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: #fff;
	border-radius: 50%;
	transition: transform 0.2s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.wstl-toggle input:checked + .wstl-toggle-slider { background-color: #3377EE; }
.wstl-toggle input:checked + .wstl-toggle-slider::before { transform: translateX(18px); }
.wstl-toggle input:focus-visible + .wstl-toggle-slider { outline: 2px solid #3377EE; outline-offset: 2px; }
