/*
 * Admin styles for Checkout Geo Flash.
 *
 * Minimal overrides only. All layout, typography, colors, buttons, and form
 * controls inherit from WordPress core and WooCommerce admin CSS.
 *
 * No custom card systems, grids, shells, or shadow layers.
 */


/* ── Tab content spacing ─────────────────────────────────────────────────── */

.cgf-dashboard-tab,
.cgf-settings-tab,
.cgf-guide-tab,
.cgf-preview-tab {
	margin-top: 16px;
}


/* ── Messaging callouts ──────────────────────────────────────────────────── */

.cgf-surface-callout {
	padding: 20px 22px;
	margin-bottom: 20px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-left: 4px solid #2271b1;
	border-radius: 4px;
}

.cgf-surface-callout--preview {
	border-left-color: #dba617;
	background: #fffbeb;
}

.cgf-surface-callout__eyebrow {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #50575e;
}

.cgf-surface-callout h2 {
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 1.25;
}

.cgf-surface-callout p {
	max-width: 820px;
}

.cgf-surface-callout__actions {
	margin: 12px 0 0;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.cgf-inline-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: #f6f7f7;
	color: #1d2327;
	font-size: 12px;
	font-weight: 600;
}

.cgf-inline-badge--good {
	background: #edfaef;
	color: #0a5c1d;
}


/* ── Metrics cards row ───────────────────────────────────────────────────── */

.cgf-metrics-cards {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.cgf-metric-card {
	flex: 1 1 140px;
	max-width: 200px;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	text-align: center;
}

.cgf-metric-card__value {
	display: block;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: #1d2327;
}

.cgf-metric-card__label {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 500;
	color: #646970;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}


/* ── Metrics details row ─────────────────────────────────────────────────── */

.cgf-metrics-details {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.cgf-metrics-breakdown {
	flex: 1 1 280px;
	max-width: 400px;
}

.cgf-metrics-daily {
	flex: 2 1 320px;
}


/* ── Bar chart ───────────────────────────────────────────────────────────── */

.cgf-bar-chart {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	height: 140px;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}

.cgf-bar-chart__col {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	justify-content: flex-end;
}

.cgf-bar-chart__bar {
	width: 100%;
	max-width: 40px;
	min-height: 2px;
	background: #dcdcde;
	border-radius: 2px 2px 0 0;
	transition: height 300ms ease;
}

.cgf-bar-chart__bar.has-value {
	background: #2271b1;
}

.cgf-bar-chart__count {
	font-size: 11px;
	font-weight: 600;
	color: #1d2327;
	margin-bottom: 4px;
}

.cgf-bar-chart__label {
	font-size: 10px;
	color: #646970;
	margin-top: 6px;
}


/* ── Dashboard status ────────────────────────────────────────────────────── */

.cgf-dashboard-status {
	margin-bottom: 24px;
}


/* ── Empty state ─────────────────────────────────────────────────────────── */

.cgf-empty-state {
	padding: 24px;
	background: #f0f6fc;
	border: 1px solid #c3c4c7;
	border-left: 4px solid #2271b1;
	border-radius: 4px;
	margin-top: 16px;
}

.cgf-empty-state h3 {
	margin-top: 0;
}

.cgf-empty-state .button {
	margin-right: 8px;
}


/* ── Status badges (JS-driven dynamic states) ────────────────────────────── */

.cgf-status-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
}

.cgf-status-badge.is-checking {
	color: #646970;
	background: #f6f7f7;
}

.cgf-status-badge.is-healthy,
.cgf-status-badge.is-standalone,
.cgf-status-badge.is-active {
	color: #00a32a;
	background: #edfaef;
}

.cgf-status-badge.is-warning {
	color: #996800;
	background: #fcf9e8;
}

.cgf-status-badge.is-unreachable,
.cgf-status-badge.is-error {
	color: #d63638;
	background: #fdecea;
}


/* ── Preview toast cards (animated by JS) ────────────────────────────────── */

.cgf-preview-panel {
	margin: 12px 0;
}

.cgf-preview-card {
	padding: 10px 12px;
	margin-bottom: 8px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-left: 4px solid #2271b1;
	opacity: 0;
	transform: translateY( 6px );
	transition: opacity 200ms ease, transform 200ms ease;
}

.cgf-preview-card.is-visible {
	opacity: 1;
	transform: none;
}

.cgf-preview-card.is-leaving {
	opacity: 0;
	transform: translateY( 4px );
}

.cgf-preview-card__label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: #646970;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 2px;
}

.cgf-preview-card__text {
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
	margin: 0;
}


/* ── Preview controls ────────────────────────────────────────────────────── */

.cgf-preview-actions {
	margin: 8px 0;
}

.cgf-preview-actions .button {
	margin-right: 8px;
}

.cgf-preview-status {
	color: #50575e;
}

.cgf-preview-controls.is-running .cgf-preview-status {
	color: #00a32a;
	font-weight: 600;
}

.cgf-preview-instructions {
	padding: 12px 16px;
	background: #f0f6fc;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	margin-bottom: 16px;
}

.cgf-preview-instructions h4 {
	margin-top: 0;
	margin-bottom: 8px;
}

.cgf-preview-instructions ol {
	margin-bottom: 0;
}


/* ── Getting Started guide ───────────────────────────────────────────────── */

.cgf-guide-hero {
	padding: 24px;
	background: #f0f6fc;
	border: 1px solid #c3c4c7;
	border-left: 4px solid #2271b1;
	border-radius: 4px;
}

.cgf-guide-hero h2 {
	margin-top: 0;
	margin-bottom: 8px;
}

.cgf-guide-hero__subtitle {
	font-size: 14px;
	color: #50575e;
	margin: 0;
}

.cgf-guide-section {
	margin-bottom: 24px;
}

.cgf-guide-steps {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cgf-guide-step {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}

.cgf-guide-step__number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	min-width: 32px;
	background: #2271b1;
	color: #fff;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 700;
}

.cgf-guide-step__content strong {
	display: block;
	margin-bottom: 4px;
}

.cgf-guide-step__content p {
	margin: 0;
	color: #50575e;
	font-size: 13px;
}

.cgf-guide-check {
	color: #00a32a;
}

.cgf-guide-pending {
	color: #dba617;
}

.cgf-guide-info {
	color: #2271b1;
}

.cgf-guide-list {
	list-style: disc;
	padding-left: 20px;
}

.cgf-guide-list li {
	margin-bottom: 6px;
}

.cgf-guide-actions .button {
	margin-right: 8px;
}

.cgf-guide-location-card {
	padding: 16px 18px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}
