@import "tailwindcss/utilities";

/* =========================================================
   StockBeacon — Admin Dashboard Styles
   ========================================================= */

/* Root wrapper */
.stockbeacon-admin-root {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* ── Header / Navbar ─────────────────────────────────────── */
.stockbeacon-header {
	background: #fff;
	border-bottom: 1px solid #dcdcde;
	box-shadow: 0 1px 4px rgba(15,23,42,.06);
	position: sticky;
	top: 32px;
	z-index: 100;
	margin: 0 -20px 0 -20px;
	padding: 0 20px;
}

.stockbeacon-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	height: 58px;
	box-sizing: border-box;
}

.stockbeacon-header__logo {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 17px;
	font-weight: 800;
	color: #1d2327;
	letter-spacing: -.02em;
	flex-shrink: 0;
	text-decoration: none;
}

.stockbeacon-header__logo-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(79,70,229,.3);
	flex-shrink: 0;
}

.stockbeacon-header__logo-icon svg {
	color: #fff;
}

.stockbeacon-header__nav {
	display: flex;
	align-items: center;
	gap: 2px;
	flex: 1;
	padding: 0 12px;
	overflow-x: auto;
}

.stockbeacon-tab-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px !important;
	border-radius: 8px !important;
	border: 1px solid transparent !important;
	background: transparent !important;
	color: #50575e !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: background .12s ease, color .12s ease;
	white-space: nowrap;
	box-shadow: none !important;
	text-shadow: none !important;
}

.stockbeacon-tab-btn svg {
	flex-shrink: 0;
}

.stockbeacon-tab-btn:hover {
	background: #f0f0f1 !important;
	color: #1d2327 !important;
}

.stockbeacon-tab-btn.is-active {
	background: #eef2ff !important;
	color: #4f46e5 !important;
	border-color: #c7d2fe !important;
}

/* ── Content Area ────────────────────────────────────────── */
.stockbeacon-content {
	/* Use full width of the WordPress .wrap (stats + tables align with full content column) */
	max-width: none;
	width: 100%;
	margin: 0;
	/* Tight under sticky header; pro banner uses its own bottom margin for rhythm */
	padding: 10px 0 48px;
}

/* ── Notices ─────────────────────────────────────────────── */
.stockbeacon-admin-notices {
	display: grid;
	gap: 10px;
	margin: 0;
}

/* ── Stats Grid ──────────────────────────────────────────── */
.stockbeacon-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 14px;
	margin-bottom: 20px;
}

@media (max-width: 900px) {
	.stockbeacon-stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.stockbeacon-stats-grid {
		grid-template-columns: 1fr;
	}
}

.stockbeacon-stat-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 12px;
	padding: 18px 20px 16px;
	box-shadow: 0 1px 3px rgba(15,23,42,.05);
	transition: box-shadow .15s ease;
}

.stockbeacon-stat-card:hover {
	box-shadow: 0 3px 10px rgba(15,23,42,.08);
}

.stockbeacon-stat-card__label {
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: #646970;
	margin-bottom: 10px;
}

.stockbeacon-stat-card__value {
	font-size: 32px;
	font-weight: 800;
	color: #1d2327;
	letter-spacing: -.03em;
	line-height: 1;
}

.stockbeacon-stat-card__help {
	font-size: 11px;
	color: #787c82;
	margin-top: 6px;
	line-height: 1.4;
}

/* ── Section cards ───────────────────────────────────────── */
.stockbeacon-card,.stockbeacon-section {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 10px;
}

.stockbeacon-card {
	padding: 14px 16px;
}

.stockbeacon-card strong {
	display: block;
	color: #50575e;
	font-size: 12px;
	text-transform: uppercase;
}

.stockbeacon-card p {
	margin: 8px 0 0;
	font-size: 22px;
	font-weight: 650;
	color: #1d2327;
}

.stockbeacon-section {
	padding: 18px 20px;
	margin-top: 16px;
}

.stockbeacon-section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.stockbeacon-section-header strong {
	font-size: 14px;
	color: #1d2327;
}

.stockbeacon-section-header p {
	margin: 4px 0 0;
	color: #646970;
	font-size: 13px;
}

.stockbeacon-export-row {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0;
}

.stockbeacon-export-row select {
	min-width: 280px;
	max-width: 100%;
}

.stockbeacon-clear-data-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px;
	margin: 0 0 10px;
}

.stockbeacon-clear-data-row label {
	margin: 0;
}

.stockbeacon-clear-data-row select {
	min-width: 280px;
}

.stockbeacon-subscriber-filters {
	display: grid;
	grid-template-columns: minmax(180px, 240px) minmax(150px, 190px) minmax(150px, 190px) auto;
	gap: 10px;
	align-items: end;
	margin: 0 0 14px;
}

.stockbeacon-subscriber-filters label {
	display: grid;
	gap: 4px;
	margin: 0;
	color: #50575e;
	font-size: 12px;
	font-weight: 600;
}

.stockbeacon-subscriber-filters input,
.stockbeacon-subscriber-filters select {
	width: 100%;
	max-width: 100%;
}

.stockbeacon-admin-root input[type=text],
.stockbeacon-admin-root input[type=email],
.stockbeacon-admin-root input[type=url],
.stockbeacon-admin-root input[type=password],
.stockbeacon-admin-root input[type=number],
.stockbeacon-admin-root input[type=search],
.stockbeacon-admin-root input[type=date],
.stockbeacon-admin-root input[type=time],
.stockbeacon-admin-root textarea,
.stockbeacon-admin-root select {
	min-height: 42px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background-color: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
	color: #1d2327;
	font-size: 13px;
	line-height: 1.45;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.stockbeacon-admin-root textarea {
	padding: 10px 12px;
}

.stockbeacon-admin-root input[type=text]:focus,
.stockbeacon-admin-root input[type=email]:focus,
.stockbeacon-admin-root input[type=url]:focus,
.stockbeacon-admin-root input[type=password]:focus,
.stockbeacon-admin-root input[type=number]:focus,
.stockbeacon-admin-root input[type=search]:focus,
.stockbeacon-admin-root input[type=date]:focus,
.stockbeacon-admin-root input[type=time]:focus,
.stockbeacon-admin-root textarea:focus,
.stockbeacon-admin-root select:focus {
	border-color: #3858e9;
	box-shadow: 0 0 0 3px rgba(56, 88, 233, .14);
	outline: none;
}

.stockbeacon-admin-root input:disabled,
.stockbeacon-admin-root textarea:disabled,
.stockbeacon-admin-root select:disabled {
	background-color: #f8fafc;
	color: #8c8f94;
	cursor: not-allowed;
	opacity: 1;
}

.stockbeacon-danger-help {
	color: #646970;
	font-size: 12px;
	margin: -4px 0 10px;
	line-height: 1.45;
}

.stockbeacon-search {
	display: block;
	min-width: 260px;
}

.stockbeacon-search span {
	display: block;
	margin-bottom: 4px;
	color: #50575e;
	font-size: 12px;
	font-weight: 600;
}

.stockbeacon-search input {
	width: 100%;
	max-width: 340px;
}

.stockbeacon-table-wrap {
	overflow-x: auto;
	border: 1px solid #dcdcde;
	border-radius: 8px;
}

.stockbeacon-table-wrap--steady {
	position: relative;
	min-height: 382px;
	background: #fff;
}

.stockbeacon-table-wrap--steady.is-refreshing .stockbeacon-signups-table {
	opacity: 0.72;
}

.stockbeacon-table-loading-overlay {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.stockbeacon-table-loading-overlay .spinner {
	float: none;
	margin: 0;
}

.stockbeacon-signups-table {
	border: 0 !important;
	table-layout: fixed;
	min-width: 980px;
}

.stockbeacon-signups-table th,.stockbeacon-signups-table td {
	vertical-align: middle;
	padding: 11px 12px;
	height: 52px;
}

.stockbeacon-signups-table th:nth-child(1),
.stockbeacon-signups-table td:nth-child(1) {
	width: 25%;
}

.stockbeacon-signups-table th:nth-child(2),
.stockbeacon-signups-table td:nth-child(2) {
	width: 22%;
}

.stockbeacon-signups-table th:nth-child(3),
.stockbeacon-signups-table td:nth-child(3),
.stockbeacon-signups-table th:nth-child(6),
.stockbeacon-signups-table td:nth-child(6) {
	width: 14%;
}

.stockbeacon-signups-table th:nth-child(4),
.stockbeacon-signups-table td:nth-child(4),
.stockbeacon-signups-table th:nth-child(5),
.stockbeacon-signups-table td:nth-child(5) {
	width: 11%;
}

.stockbeacon-signups-table td {
	overflow-wrap: anywhere;
}

.stockbeacon-signups-table .column-action {
	width: 56px;
	text-align: right;
}

.stockbeacon-activity-table {
	min-width: 900px;
}

.stockbeacon-activity-table th,
.stockbeacon-activity-table td {
	height: 42px;
	padding: 7px 10px;
	font-size: 13px;
	line-height: 1.3;
}

.stockbeacon-activity-table th:nth-child(1),
.stockbeacon-activity-table td:nth-child(1) {
	width: 22%;
}

.stockbeacon-activity-table th:nth-child(2),
.stockbeacon-activity-table td:nth-child(2) {
	width: 24%;
}

.stockbeacon-activity-table th:nth-child(3),
.stockbeacon-activity-table td:nth-child(3) {
	width: 20%;
}

.stockbeacon-activity-table th:nth-child(4),
.stockbeacon-activity-table td:nth-child(4) {
	width: 18%;
}

.stockbeacon-activity-table th:nth-child(5),
.stockbeacon-activity-table td:nth-child(5) {
	width: 16%;
	white-space: nowrap;
}

.stockbeacon-products-table-wrap {
	background: #fff;
}

.stockbeacon-products-table {
	border: 0 !important;
	table-layout: auto;
	min-width: 1080px;
}

.stockbeacon-products-table th,
.stockbeacon-products-table td {
	height: auto;
	padding: 13px 14px;
	vertical-align: middle;
	white-space: nowrap;
}

.stockbeacon-products-table th:first-child,
.stockbeacon-products-table td:first-child {
	min-width: 260px;
	white-space: normal;
}

.stockbeacon-table-switch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	color: #50575e;
	white-space: nowrap;
}

.stockbeacon-table-switch .stockbeacon-switch {
	margin: 0;
}

.stockbeacon-muted-count {
	color: #8c8f94;
	font-size: 12px;
	font-weight: 500;
}

.stockbeacon-product-link {
	font-weight: 600;
	text-decoration: none;
}

.stockbeacon-status-pill {
	display: inline-block;
	border-radius: 999px;
	padding: 2px 9px;
	font-size: 12px;
	line-height: 1.6;
	font-weight: 700;
}

.stockbeacon-status-pill.is-waiting {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.stockbeacon-status-pill.is-notified {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.stockbeacon-delete-subscriber {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0 !important;
	color: #b32d2e !important;
	border-color: #dcdcde !important;
}

.stockbeacon-delete-subscriber .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.stockbeacon-table-status {
	min-height: 18px;
	color: #646970;
	font-size: 13px;
	margin: -4px 0 10px;
}

.stockbeacon-activity-controls {
	display: grid;
	grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px) minmax(180px, 240px);
	gap: 14px;
	align-items: end;
	margin: 0 0 16px;
}

.stockbeacon-activity-controls label {
	display: grid;
	gap: 6px;
	margin: 0;
	color: #1d2327;
	font-size: 13px;
	font-weight: 700;
}

.stockbeacon-activity-controls input,
.stockbeacon-activity-controls select {
	width: 100%;
	min-height: 42px;
	margin: 0;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background-color: #fff;
	color: #1d2327;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.stockbeacon-activity-detail {
	display: block;
	margin-top: 3px;
	color: #646970;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.stockbeacon-table-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 12px;
	color: #646970;
	font-size: 13px;
}

.stockbeacon-table-pagination > div {
	display: flex;
	gap: 8px;
}

.stockbeacon-empty-row td {
	padding: 20px !important;
	color: #646970;
}

.stockbeacon-skeleton {
	display: block;
	width: 100%;
	height: 14px;
	border-radius: 999px;
	background: linear-gradient(90deg, #f0f2f4 0%, #e5e7eb 48%, #f0f2f4 100%);
	background-size: 220% 100%;
	animation: stockbeacon-skeleton-pulse 1.2s ease-in-out infinite;
}

.stockbeacon-skeleton--email {
	max-width: 220px;
}

.stockbeacon-skeleton--product {
	max-width: 190px;
}

.stockbeacon-skeleton--date {
	max-width: 98px;
}

.stockbeacon-skeleton--badge {
	max-width: 112px;
	height: 24px;
}

.stockbeacon-skeleton--icon {
	width: 32px;
	height: 32px;
	margin-left: auto;
}

@keyframes stockbeacon-skeleton-pulse {
	0% {
		background-position: 120% 0;
	}
	100% {
		background-position: -120% 0;
	}
}

/* ── Pro badge ───────────────────────────────────────────── */
.stockbeacon-pro-badge {
	display: inline-block;
	background: #6b21a8;
	color: #fff;
	border-radius: 999px;
	padding: 1px 7px;
	font-size: 10px;
	line-height: 1.5;
	font-weight: 700;
}

/* ── Locked editor / CTA ─────────────────────────────────── */
.stockbeacon-editor-lock {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 12px;
	overflow: hidden;
	margin-top: 16px;
}

.stockbeacon-editor-lock--upsell {
	border-color: #c7d2fe;
	box-shadow: 0 1px 3px rgba(79, 70, 229, 0.06);
	background: linear-gradient(180deg, #fafbff 0%, #fff 48%);
}

.stockbeacon-editor-lock--upsell::before {
	content: "";
	display: block;
	height: 4px;
	background: linear-gradient(90deg, #4f46e5, #7c3aed, #4f46e5);
	background-size: 200% 100%;
}

.stockbeacon-cta-block {
	padding: 40px 32px;
	text-align: center;
}

.stockbeacon-cta-block__badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	color: #92400e;
	border-radius: 999px;
	padding: 5px 14px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-bottom: 18px;
}

.stockbeacon-cta-block__title {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 800;
	color: #1d2327;
	letter-spacing: -.02em;
}

.stockbeacon-cta-block__desc {
	margin: 0 0 24px;
	color: #50575e;
	font-size: 14px;
	line-height: 1.65;
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
}

.stockbeacon-cta-block__features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 10px 20px;
	max-width: 640px;
	margin: 0 auto 28px;
	padding: 0;
	list-style: none;
	text-align: left;
}

.stockbeacon-cta-block__feature {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	color: #2c3338;
	line-height: 1.45;
}

.stockbeacon-cta-block__feature-icon {
	flex-shrink: 0;
	color: #16a34a;
	margin-top: 1px;
}

.stockbeacon-cta-block__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.stockbeacon-btn-cta-primary {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 11px 22px;
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	color: #fff !important;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(79,70,229,.35);
	transition: opacity .15s ease, box-shadow .15s ease;
}

.stockbeacon-btn-cta-primary:hover {
	opacity: .9;
	color: #fff !important;
	box-shadow: 0 6px 20px rgba(79,70,229,.45);
}

.stockbeacon-btn-cta-secondary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	background: #f0f0f1;
	color: #1d2327 !important;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid #dcdcde;
}

.stockbeacon-btn-cta-secondary:hover {
	background: #e4e4e5;
	color: #1d2327 !important;
}

/* ── Editor ──────────────────────────────────────────────── */
.stockbeacon-editor {
	margin-top: 16px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	overflow: hidden;
	min-height: 720px;
}

.stockbeacon-editor-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 16px;
	border-bottom: 1px solid #dcdcde;
	background: #f6f7f7;
}

.stockbeacon-editor-tabs {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.stockbeacon-editor-tab {
	border: 0;
	background: transparent;
	color: #50575e;
	border-radius: 6px;
	padding: 8px 12px;
	font-weight: 600;
	cursor: pointer;
}

.stockbeacon-editor-tab.is-active {
	background: #4f46e5;
	color: #fff;
	box-shadow: 0 1px 2px rgba(15,23,42,.12);
}

.stockbeacon-editor-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.stockbeacon-editor-test-bar {
	display: grid;
	grid-template-columns: auto minmax(180px, 320px) auto;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border-bottom: 1px solid #dcdcde;
	background: #fbfbfc;
}

.stockbeacon-editor-test-bar .stockbeacon-settings-label {
	margin: 0;
	white-space: nowrap;
}

.stockbeacon-editor-test-bar input[type=email] {
	width: 100%;
	max-width: none;
	margin: 0;
}

.stockbeacon-device-toggle {
	display: inline-flex;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 3px;
	gap: 3px;
}

.stockbeacon-device-toggle button {
	border: 0;
	background: transparent;
	border-radius: 6px;
	padding: 5px 10px;
	cursor: pointer;
	color: #646970;
}

.stockbeacon-device-toggle button.is-active {
	background: #f0f0f1;
	color: #1d2327;
	box-shadow: 0 1px 2px rgba(15,23,42,.08);
}

.stockbeacon-editor-body {
	display: grid;
	grid-template-columns: 380px minmax(0, 1fr);
	min-height: 650px;
	align-items: stretch;
}

.stockbeacon-editor-sidebar {
	border-right: 1px solid #dcdcde;
	background: #fbfbfc;
	overflow: auto;
	max-height: none;
	align-self: stretch;
}

.stockbeacon-editor-panel {
	display: none;
	padding: 16px 16px 24px;
}

.stockbeacon-editor-panel.is-active {
	display: block;
}

.stockbeacon-email-type-panel {
	display: none;
}

.stockbeacon-email-type-panel.is-active {
	display: block;
}

.stockbeacon-control-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	margin: 0 0 14px;
	overflow: hidden;
}

.stockbeacon-control-card__title {
	margin: 0;
	padding: 13px 16px;
	border-bottom: 1px solid #dcdcde;
	color: #50575e;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.stockbeacon-control-card__body {
	padding: 14px 16px;
}

.stockbeacon-field {
	display: block;
	margin: 0 0 14px;
}

.stockbeacon-field:last-child {
	margin-bottom: 0;
}

.stockbeacon-field-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
	color: #1d2327;
	font-size: 13px;
	font-weight: 600;
}

.stockbeacon-field-help {
	display: block;
	margin-top: 4px;
	color: #787c82;
	font-size: 12px;
	line-height: 1.4;
	font-weight: 400;
}

.stockbeacon-field input[type=text],.stockbeacon-field textarea,.stockbeacon-field select,.stockbeacon-field input[type=url],.stockbeacon-field input[type=email],.stockbeacon-field input[type=password] {
	width: 100%;
	max-width: none;
	border-radius: 6px;
}

.stockbeacon-field textarea {
	min-height: 84px;
	resize: vertical;
}

.stockbeacon-editor--email .stockbeacon-editor-panel.is-active {
	display: grid;
	gap: 14px;
	padding: 14px;
}

.stockbeacon-editor--email .stockbeacon-editor-sidebar {
	display: flex;
	flex-direction: column;
}

.stockbeacon-editor--email .stockbeacon-control-card {
	margin: 0;
}

.stockbeacon-editor--email .stockbeacon-control-card__body {
	padding: 16px;
}

.stockbeacon-editor--email .stockbeacon-field {
	margin: 0 0 14px;
	min-width: 0;
}

.stockbeacon-editor--email .stockbeacon-field:last-child {
	margin-bottom: 0;
}

.stockbeacon-editor--email .stockbeacon-field-label {
	margin-bottom: 7px;
}

.stockbeacon-editor--email .stockbeacon-field-help {
	margin-top: 6px;
}

.stockbeacon-field--switch .stockbeacon-field-label {
	align-items: center;
}

.stockbeacon-email-style-grid {
	display: grid;
	gap: 14px;
}

.stockbeacon-switch {
	position: relative;
	display: inline-flex;
	width: 42px;
	height: 24px;
	flex: 0 0 auto;
}

.stockbeacon-switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.stockbeacon-switch span {
	position: absolute;
	inset: 0;
	background: #c3c4c7;
	border-radius: 999px;
	transition: background .15s ease;
}

.stockbeacon-switch span:before {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	left: 3px;
	top: 3px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0,0,0,.18);
	transition: transform .15s ease;
}

.stockbeacon-switch input:checked + span {
	background: #4f46e5;
}

.stockbeacon-switch input:checked + span:before {
	transform: translateX(18px);
}

.stockbeacon-segmented {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
	background: #f0f0f1;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 4px;
}

.stockbeacon-segmented button {
	border: 0;
	border-radius: 6px;
	background: transparent;
	padding: 8px 6px;
	cursor: pointer;
	font-weight: 600;
	color: #50575e;
}

.stockbeacon-segmented button.is-active {
	background: #fff;
	color: #1d2327;
	box-shadow: 0 1px 2px rgba(15,23,42,.08);
}

.stockbeacon-segmented--two {
	grid-template-columns: repeat(2, 1fr);
}

.stockbeacon-color-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 52px;
	gap: 10px;
	align-items: center;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.stockbeacon-color-row__hex,
.stockbeacon-field .stockbeacon-color-row__hex,
.stockbeacon-settings-field .stockbeacon-color-row__hex {
	width: 100% !important;
	max-width: none !important;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
	color: #1d2327;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
	font-size: 13px;
	font-weight: 650;
	line-height: 1;
	letter-spacing: 0;
	text-transform: lowercase;
}

.stockbeacon-color-row__hex:focus {
	border-color: #3858e9;
	box-shadow: 0 0 0 2px rgba(56, 88, 233, .18);
	outline: none;
}

.stockbeacon-color-row__picker {
	position: relative;
	display: block;
	width: 52px;
	height: 44px;
	padding: 5px;
	border: 1px solid #c3c4c7;
	border-radius: 10px;
	background:
		linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
		linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
		linear-gradient(-45deg, transparent 75%, #e5e7eb 75%),
		#fff;
	background-position: 0 0, 0 8px, 8px -8px, -8px 0;
	background-size: 16px 16px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
	cursor: pointer;
	overflow: hidden;
}

.stockbeacon-color-row__picker::before {
	content: "";
	position: absolute;
	inset: 5px;
	border-radius: 6px;
	background: var(--stockbeacon-picker-color, #2563eb);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
	pointer-events: none;
}

.stockbeacon-color-row__picker:focus-within {
	border-color: #3858e9;
	box-shadow: 0 0 0 2px rgba(56, 88, 233, .18);
}

.stockbeacon-color-row__picker input[type=color] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	cursor: pointer;
}

.stockbeacon-color-row__hex:disabled,
.stockbeacon-color-row__picker:has(input:disabled) {
	opacity: .58;
	cursor: not-allowed;
}

.stockbeacon-slider-row {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.stockbeacon-slider-row input {
	flex: 1;
	min-width: 0;
}

.stockbeacon-slider-row input[type=number] {
	flex: 0 0 74px;
	width: 74px;
	min-height: 38px;
	text-align: right;
}

.stockbeacon-slider-value {
	min-width: 40px;
	text-align: right;
	font-weight: 700;
	color: #1d2327;
}

.stockbeacon-editor--email .stockbeacon-slider-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 68px;
}

.stockbeacon-editor--email .stockbeacon-slider-row input[type=number] {
	width: 68px;
	min-width: 0;
}

.stockbeacon-editor-preview {
	background: #fff;
	min-width: 0;
	padding: 24px;
}

.stockbeacon-preview-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 18px;
}

.stockbeacon-preview-title {
	margin: 0;
	color: #1d2327;
	font-size: 15px;
	font-weight: 700;
}

.stockbeacon-preview-device-label {
	color: #646970;
	font-size: 12px;
}

.stockbeacon-preview-stage {
	position: relative;
	min-height: 560px;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	border: 1px solid #c3c4c7;
}

.stockbeacon-preview-stage--dark {
	background: #070b13;
	border-color: #1f2937;
}

.stockbeacon-preview-stage--dark .stockbeacon-preview-modal-wrap {
	background:
		radial-gradient(circle at top, rgba(37, 99, 235, .18), transparent 34%),
		#070b13;
}

.stockbeacon-preview-store {
	display: none;
}

.stockbeacon-preview-store__nav {
	height: 38px;
	border-radius: 7px;
	background: #e2e8f0;
	margin-bottom: 22px;
}

.stockbeacon-preview-store__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.stockbeacon-preview-store__card {
	height: 170px;
	border-radius: 8px;
	background: #e2e8f0;
}

.stockbeacon-preview-overlay {
	display: none;
}

.stockbeacon-preview-modal-wrap {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
	min-width: 0;
	box-sizing: border-box;
	overflow: auto;
}

.stockbeacon-preview-modal-wrap .stockbeacon-form-wrapper {
	width: min(520px, 100%);
	margin: 0;
}

.stockbeacon-preview-stage.is-mobile {
	max-width: 430px;
	margin: 0 auto;
	min-height: 640px;
}

.stockbeacon-preview-stage.is-mobile .stockbeacon-preview-store__grid {
	grid-template-columns: 1fr;
}

.stockbeacon-email-preview-card {
	width: 100%;
	max-width: min(560px, 100%);
	box-sizing: border-box;
	background: #fff;
	border-radius: 10px;
	padding: 24px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 12px 40px rgba(15,23,42,.1);
	overflow-wrap: anywhere;
	word-break: break-word;
}

.stockbeacon-email-preview-card h3 {
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 1.25;
	color: #1d2327;
}

.stockbeacon-email-preview-card p {
	font-size: 14px;
	line-height: 1.6;
	color: #50575e;
}

.stockbeacon-email-preview-card a {
	display: inline-block;
	background: #2563eb;
	color: #fff;
	text-decoration: none;
	padding: 11px 16px;
	border-radius: 6px;
	font-weight: 700;
}

.stockbeacon-editor-note {
	margin: 0 0 12px;
	color: #646970;
	font-size: 13px;
	padding: 6px 10px;
	border-radius: 6px;
	transition: opacity .15s ease, transform .15s ease;
}

.stockbeacon-editor-note.is-hidden {
	opacity: 0;
	transform: translateY(-2px);
}

.stockbeacon-editor-note.is-success {
	color: #166534;
	background: #ecfdf3;
	border: 1px solid #bbf7d0;
}

.stockbeacon-editor-note.is-error {
	color: #b91c1c;
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.stockbeacon-editor-note.is-info {
	color: #1d4ed8;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
}

/* ── Settings ────────────────────────────────────────────── */
.stockbeacon-settings {
	margin: 0;
	padding: 0 0 48px;
}

.stockbeacon-settings-intro {
	margin: 0 0 20px;
	max-width: 720px;
}

.stockbeacon-settings-intro h2 {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 700;
	color: #1d2327;
	letter-spacing: -.01em;
}

.stockbeacon-settings-intro p {
	margin: 0;
	color: #646970;
	font-size: 14px;
	line-height: 1.55;
}

.stockbeacon-settings-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr;
	align-items: start;
}

.stockbeacon-settings-form-split {
	display: grid;
	gap: 22px 28px;
	grid-template-columns: 1fr;
}

@media (min-width: 960px) {
	.stockbeacon-settings-form-split {
		grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
		align-items: start;
	}
}

.stockbeacon-settings-appearance {
	padding: 14px 16px;
	border: 1px solid #eef0f2;
	border-radius: 10px;
	background: #fafbfc;
}

.stockbeacon-settings-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(15,23,42,.06);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.stockbeacon-settings-card--wide {
	grid-column: 1 / -1;
}

/* Pro upsell at bottom of Settings (free plugin) */
.stockbeacon-settings-card--pro-upsell {
	border-color: #c7d2fe;
	background: linear-gradient(180deg, #fafbff 0%, #fff 55%);
	box-shadow: 0 1px 3px rgba(79, 70, 229, 0.07);
}

.stockbeacon-settings-card--pro-upsell::before {
	content: "";
	display: block;
	height: 4px;
	background: linear-gradient(90deg, #4f46e5, #7c3aed, #4f46e5);
	background-size: 200% 100%;
	flex-shrink: 0;
}

.stockbeacon-settings-pro-upsell__badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 11px;
	margin-bottom: 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #5b21b6;
	background: linear-gradient(135deg, #ede9fe 0%, #e9d5ff 100%);
	border: 1px solid #ddd6fe;
}

.stockbeacon-settings-card--pro-upsell .stockbeacon-settings-card__head {
	background: transparent;
	border-bottom-color: #eef2ff;
}

.stockbeacon-settings-pro-upsell__intro {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
}

.stockbeacon-settings-pro-upsell__features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 12px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.stockbeacon-settings-pro-upsell__feature {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #2c3338;
}

.stockbeacon-settings-pro-upsell__check {
	flex-shrink: 0;
	margin-top: 2px;
}

.stockbeacon-settings-pro-upsell__foot {
	justify-content: flex-start;
	background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

.stockbeacon-settings-pro-upsell__foot .stockbeacon-btn-cta-primary {
	text-decoration: none;
}

.stockbeacon-settings-card__head {
	padding: 18px 20px 14px;
	border-bottom: 1px solid #f0f0f1;
	background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.stockbeacon-settings-card__head h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: #1d2327;
	letter-spacing: -.01em;
}

.stockbeacon-settings-card__head p {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: #646970;
}

.stockbeacon-settings-card__body {
	padding: 18px 20px 6px;
	flex: 1;
}

.stockbeacon-settings-card__foot {
	padding: 14px 20px 18px;
	border-top: 1px solid #f0f0f1;
	background: #fafbfc;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	justify-content: space-between;
}

.stockbeacon-settings-card__foot--inline {
	margin-top: 14px;
	padding: 0;
	border-top: 0;
	background: transparent;
	justify-content: flex-start;
}

.stockbeacon-settings-field {
	margin: 0 0 16px;
}

.stockbeacon-settings-field:last-child {
	margin-bottom: 10px;
}

.stockbeacon-settings-label {
	display: block;
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
}

.stockbeacon-settings-field > .regular-text,
.stockbeacon-settings-field > .large-text,
.stockbeacon-settings-field > select,
.stockbeacon-settings-field > input[type=text],
.stockbeacon-settings-field > input[type=email],
.stockbeacon-settings-field > input[type=url],
.stockbeacon-settings-field > input[type=number],
.stockbeacon-settings-field > input[type=password],
.stockbeacon-settings-field > textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.stockbeacon-free-editor .stockbeacon-settings-card__body {
	padding: 22px 28px 10px;
}

.stockbeacon-free-editor .stockbeacon-settings-field {
	margin-bottom: 18px;
	min-width: 0;
}

.stockbeacon-free-editor .stockbeacon-settings-label {
	margin-bottom: 9px;
	color: #111827;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
}

.stockbeacon-free-editor .regular-text,
.stockbeacon-free-editor .large-text {
	min-height: 46px;
	padding: 10px 14px;
	border-color: #cbd5e1;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
	color: #1f2937;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
}

.stockbeacon-free-editor textarea.large-text {
	min-height: 96px;
	resize: vertical;
}

.stockbeacon-free-editor .regular-text:focus,
.stockbeacon-free-editor .large-text:focus {
	border-color: #4f46e5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, .14);
}

.stockbeacon-free-editor .stockbeacon-settings-two {
	gap: 18px;
	align-items: start;
}

.stockbeacon-free-editor .stockbeacon-settings-check {
	align-items: center;
	padding: 12px 14px;
	border-color: #e5e7eb;
	border-radius: 10px;
	background: #fbfcfe;
}

.stockbeacon-free-editor .stockbeacon-settings-check > span {
	color: #374151;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}

.stockbeacon-settings-help {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.45;
	color: #787c82;
}

.stockbeacon-settings-input-wrap .regular-text,.stockbeacon-settings-input-wrap .large-text,.stockbeacon-settings-input-wrap select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	border-radius: 6px;
}

.stockbeacon-settings-input-wrap textarea.large-text {
	min-height: 88px;
	resize: vertical;
	line-height: 1.45;
}

.stockbeacon-settings-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 16px;
	border: 1px solid #e8e8ea;
	border-radius: 8px;
	background: #fcfcfd;
}

.stockbeacon-settings-check input[type=checkbox] {
	margin: 2px 0 0;
}

.stockbeacon-settings-check > span {
	font-size: 13px;
	line-height: 1.45;
	color: #2c3338;
}

.stockbeacon-settings-hint {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: #646970;
	flex: 1;
	min-width: 140px;
}

.stockbeacon-settings-hint.stockbeacon-is-success {
	color: #008a20;
	font-weight: 600;
}

.stockbeacon-settings-hint.stockbeacon-is-warn {
	color: #996800;
}

.stockbeacon-settings-hint.stockbeacon-is-error {
	color: #b32d2e;
}

.stockbeacon-settings-sub {
	margin: 0 0 20px;
	padding: 0 0 22px;
	border-bottom: 1px solid #f0f0f1;
}

.stockbeacon-settings-panel-grid {
	display: grid;
	gap: 14px;
}

.stockbeacon-settings-sub--surface {
	margin: 0;
	padding: 16px;
	border: 1px solid #e7e8ea;
	border-radius: 8px;
	background: #fcfcfd;
}

.stockbeacon-settings-sub--surface:last-child {
	margin-bottom: 0;
	padding-bottom: 16px;
	border-bottom: 1px solid #e7e8ea;
}

.stockbeacon-settings-sub--compact {
	margin-bottom: 12px;
	padding-bottom: 0;
	border-bottom: 0;
}

.stockbeacon-settings-sub:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}

.stockbeacon-settings-sub__title {
	margin: 0 0 16px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #50575e;
}

.stockbeacon-settings-sub--surface .stockbeacon-settings-sub__title {
	margin-bottom: 14px;
	color: #1d2327;
	letter-spacing: .04em;
}

.stockbeacon-settings-sub--surface > .stockbeacon-settings-check + .stockbeacon-settings-two {
	margin-top: 14px;
}

.stockbeacon-automation-grid {
	display: grid;
	gap: 12px;
}

.stockbeacon-automation-item {
	display: grid;
	gap: 12px;
	padding: 12px;
	border: 1px solid #ececef;
	border-radius: 8px;
	background: #fff;
}

.stockbeacon-automation-item > .stockbeacon-settings-check {
	padding: 0;
	border: 0;
	background: transparent;
}

.stockbeacon-automation-item > .stockbeacon-settings-field {
	margin-bottom: 0;
	padding-left: 28px;
}

@media (min-width: 920px) {
	.stockbeacon-automation-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.stockbeacon-automation-item:nth-child(3) {
		grid-column: 1 / -1;
	}
}

.stockbeacon-settings-stack {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.stockbeacon-settings-stack > .stockbeacon-settings-field {
	margin-bottom: 0 !important;
}

.stockbeacon-settings-two {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
}

@media (min-width: 720px) {
	.stockbeacon-settings-two {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.stockbeacon-settings-callout {
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1px solid #c7d2fe;
	border-radius: 8px;
	background: #eef2ff;
}

.stockbeacon-settings-callout strong {
	display: block;
	margin-bottom: 4px;
	color: #1e3a8a;
	font-size: 13px;
}

.stockbeacon-settings-callout p {
	margin: 0;
	color: #334155;
	font-size: 13px;
	line-height: 1.5;
}

.stockbeacon-webhook-events {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-top: 4px;
}

@media (min-width: 720px) {
	.stockbeacon-webhook-events {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.stockbeacon-webhook-events div {
	padding: 12px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
}

.stockbeacon-webhook-events strong {
	display: block;
	margin-bottom: 4px;
	color: #1d2327;
	font-size: 13px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.stockbeacon-webhook-events span {
	display: block;
	color: #646970;
	font-size: 12px;
	line-height: 1.45;
}

.stockbeacon-settings-pro-inline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.stockbeacon-settings-check .stockbeacon-pro-badge {
	background: #6b21a8 !important;
	color: #fff !important;
	font-size: 10px;
	line-height: 1.4;
	font-weight: 700;
	padding: 2px 8px;
}

.stockbeacon-settings-mailchimp-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 4px;
}

.stockbeacon-inline-action-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
	align-items: center;
}

.stockbeacon-inline-action-row .regular-text {
	width: 100%;
	max-width: none;
}

.stockbeacon-shortcode-list {
	list-style: none;
	margin: 0;
	padding: 0;
	color: #50575e;
	font-size: 13px;
	line-height: 1.55;
	text-align: left;
}

.stockbeacon-shortcode-list li {
	margin: 0 0 12px;
	padding: 0;
}

.stockbeacon-shortcode-list li:last-child {
	margin-bottom: 0;
}

.stockbeacon-shortcode-code {
	display: block;
	margin: 6px 0 0;
	padding: 8px 10px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #f6f7f7;
	color: #1d2327;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 12px;
	line-height: 1.45;
	word-break: break-word;
	text-align: left;
}

.stockbeacon-overview-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	margin-top: 16px;
}

@media (min-width: 1080px) {
	.stockbeacon-overview-layout {
		grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
	}
}

.stockbeacon-metric-list {
	display: grid;
	gap: 10px;
}

.stockbeacon-metric-list div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f1;
}

.stockbeacon-metric-list div:last-child {
	border-bottom: 0;
}

.stockbeacon-metric-list span {
	color: #646970;
	font-size: 13px;
}

.stockbeacon-metric-list strong {
	color: #1d2327;
	font-size: 20px;
}

.stockbeacon-analytics-highlight {
	margin-top: 14px;
	padding: 14px;
	border: 1px solid #dbeafe;
	border-radius: 8px;
	background: #eff6ff;
}

.stockbeacon-analytics-highlight span {
	display: block;
	margin-bottom: 4px;
	color: #1d4ed8;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.stockbeacon-analytics-highlight strong {
	display: block;
	color: #1d2327;
	font-size: 15px;
	line-height: 1.35;
}

.stockbeacon-analytics-highlight p {
	margin: 6px 0 0;
	color: #50575e;
	font-size: 13px;
	line-height: 1.45;
}

.stockbeacon-contextual-upsell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 14px;
	padding: 14px;
	border: 1px solid #d8b4fe;
	border-radius: 8px;
	background: #faf5ff;
}

.stockbeacon-contextual-upsell strong {
	display: inline-block;
	margin-left: 8px;
	color: #3b0764;
}

.stockbeacon-contextual-upsell p {
	margin: 6px 0 0;
	color: #581c87;
	font-size: 13px;
	line-height: 1.45;
}

.stockbeacon-contextual-upsell a {
	flex-shrink: 0;
	color: #6d28d9;
	font-weight: 700;
	text-decoration: none;
}

.stockbeacon-contextual-upsell a:hover {
	text-decoration: underline;
}

.stockbeacon-debug-list {
	display: grid;
	gap: 10px;
}

.stockbeacon-debug-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	margin-top: 16px;
}

.stockbeacon-debug-layout .stockbeacon-section {
	margin-top: 0;
}

@media (min-width: 1080px) {
	.stockbeacon-debug-layout {
		grid-template-columns: minmax(0, 1fr) minmax(320px, .7fr);
		align-items: start;
	}
}

.stockbeacon-debug-check {
	display: grid;
	grid-template-columns: 14px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 13px 0;
	border-bottom: 1px solid #f0f0f1;
}

.stockbeacon-debug-check:last-child {
	border-bottom: 0;
}

.stockbeacon-debug-check__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #d63638;
}

.stockbeacon-debug-check__dot.is-ok {
	background: #00a32a;
}

.stockbeacon-debug-check__dot.is-warn {
	background: #dba617;
}

.stockbeacon-debug-check strong {
	color: #1d2327;
}

.stockbeacon-debug-check p,
.stockbeacon-debug-helper p {
	margin: 4px 0 0;
	color: #646970;
	font-size: 13px;
	line-height: 1.45;
}

.stockbeacon-debug-summary,
.stockbeacon-debug-helper {
	margin-top: 14px;
	padding: 12px 14px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #f6f7f7;
}

.stockbeacon-debug-summary {
	display: flex;
	align-items: center;
	gap: 10px;
}

.stockbeacon-debug-summary strong {
	font-size: 22px;
	color: #1d2327;
}

.stockbeacon-debug-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	align-items: end;
	gap: 12px;
	margin: 14px 0 0;
}

.stockbeacon-debug-form .button {
	min-height: 38px;
}

.stockbeacon-debug-activity {
	margin: 0;
	color: #50575e;
	font-size: 13px;
	line-height: 1.55;
}

/* ── Toast ───────────────────────────────────────────────── */
/* Toast lives in document.body outside #stockbeacon-admin-root — use the element ID directly */
#stockbeacon-toast-root {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 100000;
	display: grid;
	gap: 12px;
	max-width: min(460px, calc(100vw - 28px));
	pointer-events: none;
}

#stockbeacon-toast-root .stockbeacon-toast {
	pointer-events: auto;
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px 18px;
	border-radius: 12px;
	border: 1px solid #dcdcde;
	background: #fff;
	color: #1d2327;
	box-shadow: 0 16px 44px rgba(15,23,42,.22);
	transform: translateY(8px);
	opacity: 0;
	transition: opacity .2s ease, transform .2s ease;
	overflow: hidden;
}

#stockbeacon-toast-root .stockbeacon-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

#stockbeacon-toast-root .stockbeacon-toast:before {
	content: "";
	margin-top: 4px;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: #2271b1;
	flex: 0 0 auto;
}

#stockbeacon-toast-root .stockbeacon-toast--success {
	border-color: #bbf7d0;
	background: #f0fdf4;
}

#stockbeacon-toast-root .stockbeacon-toast--success:before {
	background: #16a34a;
}

#stockbeacon-toast-root .stockbeacon-toast--error {
	border-color: #fecaca;
	background: #fef2f2;
}

#stockbeacon-toast-root .stockbeacon-toast--error:before {
	background: #dc2626;
}

#stockbeacon-toast-root .stockbeacon-toast--warn {
	border-color: #fed7aa;
	background: #fffbeb;
}

#stockbeacon-toast-root .stockbeacon-toast--warn:before {
	background: #d97706;
}

#stockbeacon-toast-root .stockbeacon-toast__message {
	font-size: 14px;
	line-height: 1.5;
	font-weight: 500;
}

#stockbeacon-toast-root .stockbeacon-toast__progress {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 4px;
	width: 100%;
	transform-origin: left center;
	background: rgba(15,23,42,.28);
	animation: rnToastProgress linear forwards;
}

#stockbeacon-toast-root .stockbeacon-toast--success .stockbeacon-toast__progress {
	background: #16a34a;
}

#stockbeacon-toast-root .stockbeacon-toast--error .stockbeacon-toast__progress {
	background: #dc2626;
}

#stockbeacon-toast-root .stockbeacon-toast--warn .stockbeacon-toast__progress {
	background: #d97706;
}

@keyframes rnToastProgress {
	from { transform: scaleX(1); }
	to { transform: scaleX(0); }
}

/* ── Save button ─────────────────────────────────────────── */
.stockbeacon-save-feedback.is-saving,.stockbeacon-save-feedback.is-saved {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 11.25rem;
	vertical-align: middle;
}

.stockbeacon-save-feedback__row {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	line-height: 1.2;
}

.stockbeacon-save-feedback__spinner {
	box-sizing: border-box;
	width: 15px;
	height: 15px;
	border: 2px solid rgba(255,255,255,.32);
	border-top-color: #fff;
	border-radius: 50%;
	animation: rnSaveSpin .68s linear infinite;
	flex-shrink: 0;
}

@keyframes rnSaveSpin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.stockbeacon-save-feedback__spinner {
		animation: none;
		border-color: rgba(255,255,255,.55);
	}
}

.stockbeacon-save-feedback.is-saved.button-primary,
.stockbeacon-save-feedback.is-saved.button-primary:hover,
.stockbeacon-save-feedback.is-saved.button-primary:focus {
	background: #15803d !important;
	border-color: #14532d !important;
	color: #fff !important;
	text-shadow: none !important;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.12) !important;
}

.stockbeacon-save-feedback__check {
	flex-shrink: 0;
	display: block;
}

/* ── Status pills (extended) ─────────────────────────────── */
.stockbeacon-status-pill.is-purchased {
	background: #eff6ff;
	color: #1d4ed8;
	border: 1px solid #bfdbfe;
}

.stockbeacon-status-pill.is-pending {
	background: #fffbeb;
	color: #b45309;
	border: 1px solid #fde68a;
}

.stockbeacon-status-pill.is-unsubscribed {
	background: #f9fafb;
	color: #6b7280;
	border: 1px solid #e5e7eb;
}

.stockbeacon-status-pill.is-delivered {
	background: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
}

.stockbeacon-status-pill.is-delivery-issue {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.stockbeacon-status-pill.is-neutral {
	background: #f8fafc;
	color: #475569;
	border: 1px solid #cbd5e1;
}

@media (max-width: 900px) {
	.stockbeacon-activity-controls {
		grid-template-columns: 1fr;
	}
}

/* ── Subscriber table enhancements ───────────────────────── */
.stockbeacon-email-link {
	text-decoration: none;
	color: inherit;
}

.stockbeacon-email-link strong {
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 2px;
}

.stockbeacon-email-link:hover strong {
	text-decoration-style: solid;
	color: #4f46e5;
}

.stockbeacon-variation-id {
	font-size: 11px;
	color: #9ca3af;
	font-weight: 400;
}

.stockbeacon-stock-badge {
	display: inline-block;
	margin-top: 4px;
	border-radius: 4px;
	padding: 1px 6px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
}

.stockbeacon-stock-badge.is-instock {
	background: #f0fdf4;
	color: #15803d;
}

.stockbeacon-stock-badge.is-outofstock {
	background: #fef2f2;
	color: #b91c1c;
}

.stockbeacon-stock-badge.is-onbackorder {
	background: #fffbeb;
	color: #b45309;
}

.stockbeacon-stock-badge.is-unknown {
	background: #f6f7f7;
	color: #646970;
}

/* ── Free editor split layout ────────────────────────────── */
.stockbeacon-free-editor {
	margin-top: 16px;
}

.stockbeacon-free-editor__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	align-items: start;
}

.stockbeacon-free-editor__settings {
	min-width: 0;
}

.stockbeacon-free-editor__preview {
	position: sticky;
	top: 90px;
	min-width: 0;
}

.stockbeacon-free-editor__preview > .stockbeacon-contextual-upsell {
	margin: 0 0 14px;
}

@media (max-width: 1100px) {
	.stockbeacon-free-editor__inner {
		grid-template-columns: 1fr;
	}
	.stockbeacon-free-editor__preview {
		position: static;
	}
}

/* ── Free preview panel ──────────────────────────────────── */
.stockbeacon-free-preview {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(15,23,42,.06);
}

.stockbeacon-free-preview__label {
	padding: 10px 16px;
	background: #f6f7f7;
	border-bottom: 1px solid #dcdcde;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #646970;
}

.stockbeacon-free-preview__canvas {
	padding: 24px;
	background: #f0f4f8;
}

.stockbeacon-free-preview__canvas--email {
	background: #f1f5f9;
}

.stockbeacon-free-preview__canvas--form {
	background: #f8fafc;
}

.stockbeacon-free-preview__canvas--form.is-dark {
	background:
		radial-gradient(circle at top, rgba(37, 99, 235, .18), transparent 34%),
		#070b13;
	border-color: #1f2937;
}

.stockbeacon-free-preview__canvas--form .stockbeacon-form-wrapper {
	margin-top: 0;
}

.stockbeacon-email-preview {
	width: min(640px, 100%);
	margin: 0 auto;
}

.stockbeacon-email-preview__body {
	padding: 24px;
}

.stockbeacon-email-preview__body table {
	margin: 0;
}

.stockbeacon-email-preview__body a {
	box-shadow: none;
}

@media (max-width: 560px) {
	.stockbeacon-email-preview__body {
		padding: 14px;
	}
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
	.stockbeacon-editor-body { grid-template-columns: 340px minmax(0, 1fr); }
	.stockbeacon-editor-preview { padding: 18px; }
}

@media (max-width: 900px) {
	.stockbeacon-editor-body { grid-template-columns: 1fr; }
	.stockbeacon-editor-sidebar { border-right: 0; border-bottom: 1px solid #dcdcde; max-height: none; }
	.stockbeacon-preview-stage { min-height: 520px; }
	.stockbeacon-header__nav { display: none; }
}

@media (max-width: 782px) {
	.stockbeacon-header { top: 46px; }
	.stockbeacon-search { width: 100%; }
	.stockbeacon-search input { max-width: none; }
	.stockbeacon-subscriber-filters { grid-template-columns: 1fr; }
	.stockbeacon-export-row select,.stockbeacon-export-row .button { width: 100%; }
	.stockbeacon-editor-bar,.stockbeacon-preview-toolbar { align-items: flex-start; flex-direction: column; }
	.stockbeacon-editor-test-bar { grid-template-columns: 1fr; align-items: stretch; }
	.stockbeacon-editor-test-bar .button { width: 100%; }
	.stockbeacon-editor-preview { padding: 14px; }
}

/* Mobile nav fallback */
.stockbeacon-mobile-nav {
	display: none;
	padding: 8px 0 4px;
	gap: 6px;
	flex-wrap: wrap;
}

@media (max-width: 900px) {
	.stockbeacon-mobile-nav { display: flex; }
}
