/**
 * Local SEO settings — card-based layout.
 */

.lsar-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	margin-bottom: 20px;
	max-width: 800px;
}

.lsar-card-header {
	padding: 12px 20px;
	border-bottom: 1px solid #f0f0f1;
}

.lsar-card-header h2 {
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

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

.lsar-card-body {
	padding: 20px;
}

.lsar-card-body > p {
	margin-top: 0;
	font-size: 13px;
	color: #50575e;
}

.lsar-field {
	margin-bottom: 16px;
}

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

.lsar-field > label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 13px;
}

.lsar-field .regular-text,
.lsar-field select {
	max-width: 25rem;
	width: 100%;
}

.lsar-field textarea {
	max-width: 100%;
	width: 100%;
}

.lsar-field .description {
	margin-top: 4px;
	font-size: 13px;
	color: #646970;
}

/* Schema Health card */

.lsar-health-card {
	border-left: 4px solid #2271b1;
}

.lsar-health-summary {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 8px;
}

.lsar-health-score {
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
	color: #1d2327;
}

.lsar-health-status {
	font-size: 14px;
	font-weight: 600;
	color: #2271b1;
}

.lsar-status-excellent { color: #008a20; }
.lsar-status-good { color: #2271b1; }
.lsar-status-needs-attention { color: #d63638; }
.lsar-status-incomplete { color: #646970; }

.lsar-health-progress-wrap {
	background: #e2e8f0;
	border-radius: 6px;
	height: 8px;
	overflow: hidden;
	margin-bottom: 12px;
}

.lsar-health-progress-bar {
	background: #2271b1;
	height: 100%;
	transition: width 0.3s ease;
}

.lsar-health-stat-badges {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

.lsar-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

.lsar-badge-critical { background: #fee2e2; color: #b91c1c; }
.lsar-badge-warning { background: #fef3c7; color: #b45309; }
.lsar-badge-improvement { background: #e0f2fe; color: #0369a1; }

.lsar-health-issues-wrap {
	margin-top: 16px;
	border-top: 1px solid #e2e8f0;
	padding-top: 12px;
}

.lsar-health-issues-wrap h3 {
	font-size: 14px;
	margin: 0 0 12px 0;
}

.lsar-health-issues-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lsar-issue-item {
	background: #f8fafc;
	border-left: 4px solid #cbd5e1;
	border-radius: 0 6px 6px 0;
	padding: 10px 14px;
}

.lsar-issue-critical { border-left-color: #ef4444; background: #fff5f5; }
.lsar-issue-warning { border-left-color: #f59e0b; background: #fffbeb; }
.lsar-issue-improvement { border-left-color: #3b82f6; background: #f0f9ff; }

.lsar-issue-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
	font-size: 13px;
}

.lsar-issue-severity-tag {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 1px 5px;
	border-radius: 3px;
	background: #e2e8f0;
	color: #334155;
}

.lsar-issue-critical .lsar-issue-severity-tag { background: #fee2e2; color: #b91c1c; }
.lsar-issue-warning .lsar-issue-severity-tag { background: #fef3c7; color: #b45309; }
.lsar-issue-improvement .lsar-issue-severity-tag { background: #e0f2fe; color: #0369a1; }

.lsar-req-tag {
	font-size: 11px;
	padding: 1px 6px;
	border-radius: 3px;
	margin-left: auto;
}

.lsar-req-google { background: #e0e7ff; color: #3730a3; font-weight: 500; }
.lsar-req-schema { background: #f3e8ff; color: #6b21a8; }

.lsar-issue-msg {
	margin: 2px 0 6px;
	font-size: 12px;
	color: #475569;
}

.lsar-issue-rec {
	margin: 0;
	font-size: 12px;
	color: #1e293b;
}

.lsar-health-notice {
	background: #fcf9e8;
	border: 1px solid #dba617;
	padding: 8px 12px;
	margin-bottom: 12px;
	font-size: 13px;
	color: #6e4e00;
}

.lsar-health-recommendations li {
	margin-bottom: 4px;
}

/* Conflict notice */

.lsar-conflict-notice {
	background: #fcf9e8;
	border: 1px solid #dba617;
	padding: 12px 16px;
	margin-top: 16px;
	font-size: 13px;
}

.lsar-conflict-heading {
	margin: 0 0 6px;
	color: #6e4e00;
}

.lsar-conflict-list {
	margin: 0 0 8px;
	padding-left: 18px;
}

.lsar-conflict-list li {
	margin-bottom: 2px;
}

.lsar-conflict-desc {
	margin: 0;
	color: #6e4e00;
}

/* Schema Preview card */

.lsar-preview-card {
	border-left: 4px solid #8c8f94;
}

.lsar-preview-card details summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
	padding: 6px 0;
	user-select: none;
}

.lsar-preview-card details summary:hover {
	color: #2271b1;
}

.lsar-preview-json {
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	padding: 12px 16px;
	margin: 8px 0 12px;
	font-size: 12px;
	line-height: 1.6;
	overflow-x: auto;
	max-height: 400px;
	overflow-y: auto;
	white-space: pre;
	tab-size: 4;
}

.lsar-preview-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.lsar-preview-actions #lsar-copy-feedback {
	font-size: 13px;
	color: #00a32a;
	font-weight: 600;
}

.lsar-preview-test-link {
	font-size: 13px;
	text-decoration: none;
}

.lsar-preview-test-desc {
	margin-top: 4px;
}

.lsar-preview-store-note {
	margin-top: 8px;
	font-style: italic;
}

/* Logo */

.lsar-logo-preview-wrap {
	margin-bottom: 8px;
}

.lsar-logo-preview-wrap img {
	max-width: 200px;
	max-height: 150px;
	border: 1px solid #c3c4c7;
	padding: 4px;
	background: #f0f0f1;
}

.lsar-logo-actions {
	margin-top: 8px;
}

.lsar-logo-actions .button {
	margin-right: 8px;
}

.lsar-logo-remove-btn {
	color: #b32d2e;
	text-decoration: none;
}

.lsar-logo-remove-btn:hover,
.lsar-logo-remove-btn:focus {
	color: #a00;
}

/*
 * Hide WooCommerce fields when PHP reports WooCommerce is not active.
 * Rows use Settings API class `lsar-woocommerce-field` on the <tr>.
 * Product-schema fields stay visible for every business type when WC is active.
 */
.lsar-settings.lsar-woocommerce-unavailable .lsar-woocommerce-field {
	display: none;
}

/* Opening hours controls */
.lsar-hours-card {
	border-left: 4px solid #2271b1;
}

.lsar-hours-table,
.lsar-special-hours-table {
	border-collapse: collapse;
	width: 100%;
	margin-top: 6px;
	border: 1px solid #c3c4c7;
}

.lsar-hours-table th,
.lsar-hours-table td,
.lsar-special-hours-table th,
.lsar-special-hours-table td {
	padding: 8px 10px;
	vertical-align: middle;
}

.lsar-slot-item {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}

.lsar-slot-item:last-child {
	margin-bottom: 8px;
}

.lsar-time-input {
	width: 130px !important;
	max-width: 130px !important;
	padding: 2px 6px;
	font-size: 13px;
}

.lsar-time-sep {
	color: #646970;
	font-weight: bold;
}

.lsar-remove-slot-btn {
	color: #d63638;
	font-size: 18px;
	font-weight: bold;
	text-decoration: none;
	padding: 0 4px;
	line-height: 1;
}

.lsar-remove-slot-btn:hover {
	color: #b32d2e;
}

.lsar-special-hours-table input[type="date"],
.lsar-special-hours-table input[type="time"] {
	max-width: 140px;
	width: 100%;
}

/* Frontend shortcode badges and schedule table */
.lsar-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: 10px;
}

.lsar-status-open {
	background-color: #e7f7ed;
	color: #00701a;
	border: 1px solid #a6e5b8;
}

.lsar-status-closed {
	background-color: #fcf0f1;
	color: #b32d2e;
	border: 1px solid #f2b8b9;
}

.lsar-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
}

.lsar-status-open .lsar-status-dot {
	background-color: #00a32a;
}

.lsar-status-closed .lsar-status-dot {
	background-color: #d63638;
}

.lsar-opening-hours-list {
	border-collapse: collapse;
	width: 100%;
	max-width: 400px;
}

.lsar-opening-hours-list th,
.lsar-opening-hours-list td {
	padding: 6px 8px;
	text-align: left;
	border-bottom: 1px solid #f0f0f1;
}

.lsar-day-current {
	background-color: #f0f6fc;
	font-weight: 600;
}

.lsar-today-pill {
	background-color: #2271b1;
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	padding: 1px 5px;
	border-radius: 8px;
	margin-left: 4px;
	text-transform: uppercase;
}

.lsar-admin-tabs {
	display: flex;
	gap: 4px;
	margin-top: 16px;
	flex-wrap: wrap;
}

.lsar-dashboard-grid .lsar-card {
	max-width: 100%;
}

.lsar-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
}

.lsar-readiness-summary-card {
	background: #ffffff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
}

.lsar-seo-readiness-metabox {
	font-size: 13px;
	color: #1e293b;
}

.lsar-welcome-card {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	border-radius: 4px;
}

.lsar-tech-accordion summary {
	user-select: none;
	transition: color 0.15s ease-in-out;
}

.lsar-tech-accordion summary:hover,
.lsar-tech-accordion summary:focus-visible {
	color: #2271b1;
	outline: none;
}

@media screen and (max-width: 782px) {
	.lsar-dashboard-grid {
		grid-template-columns: 1fr !important;
	}
	.lsar-admin-tabs {
		flex-direction: column;
	}
	.lsar-hours-table th,
	.lsar-hours-table td {
		padding: 8px 6px;
	}
	.lsar-slot-item {
		flex-wrap: wrap;
	}
}

.lsar-search-preview-card {
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.lsar-hours-table .lsar-slot-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 2px 6px 4px 0;
}

.lsar-service-row input[type="text"],
.lsar-faq-item input[type="text"],
.lsar-faq-item textarea {
	border-radius: 4px;
}

/* Onboarding Banner Button */
.lsar-onboarding-notice .button-primary.lsar-btn-start-setup,
.lsar-onboarding-notice .button-primary.lsar-btn-start-setup:link,
.lsar-onboarding-notice .button-primary.lsar-btn-start-setup:visited {
	background-color: #2563eb !important;
	border-color: #1d4ed8 !important;
	color: #ffffff !important;
	text-decoration: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 5px !important;
	font-weight: 600 !important;
	font-size: 13px !important;
	line-height: normal !important;
	padding: 4px 12px !important;
	border-radius: 4px !important;
	vertical-align: middle !important;
}

.lsar-onboarding-notice .button-primary.lsar-btn-start-setup:hover {
	background-color: #1d4ed8 !important;
	border-color: #1e40af !important;
	color: #ffffff !important;
}

.lsar-onboarding-notice .button-primary.lsar-btn-start-setup:focus {
	background-color: #1d4ed8 !important;
	border-color: #1e40af !important;
	color: #ffffff !important;
	box-shadow: 0 0 0 1px #ffffff, 0 0 0 3px #2563eb !important;
	outline: 2px solid transparent !important;
}

.lsar-onboarding-notice .button-primary.lsar-btn-start-setup:active {
	background-color: #1e40af !important;
	border-color: #1e3a8a !important;
	color: #ffffff !important;
}
