/* Lightbox overlay styles - DISABLED for mobile compatibility */
/*
#ppf-quotes-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 999;
}

#ppf-quotes-overlay.active {
	display: block;
}

*/

/* CSS Custom Properties for reusable values */
:root {
	--wp-admin-blue: #0073aa;
	--wp-admin-blue-dark: #005a87;
	--color-white: #fff;
	--color-text-primary: #1d2327;
	--color-text-secondary: #646970;
	--color-border-light: #e0e0e0;
	--color-border-lighter: #f0f0f1;
	--border-radius: 8px;
	--border-radius-small: 4px;
	--spacing-xs: 8px;
	--spacing-sm: 10px;
	--spacing-md: 15px;
	--spacing-lg: 20px;
	--spacing-xl: 30px;
	--shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
	--shadow-md: 0 2px 8px rgba(0,0,0,0.08);
	--shadow-lg: 0 4px 8px rgba(0, 115, 170, 0.3);
	--transition-fast: all 0.2s ease;
	--transition-normal: all 0.3s ease;
}

/* Chat bubble styles */
#ppf-quotes-chat-container {
	/* Display */
	display: none;

	/* Positioning */
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 2147483647; /* Maximum z-index value for overlay */

	/* Box Model */
	width: 360px;
	border: 1px solid #ccc;
	border-radius: 20px;

	/* Colors */
	background: #fff;

	/* Other */
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transform: translateZ(0);
}

#ppf-quotes-chat-header {
	/* Display */
	display: flex;
	flex-direction: column;
	align-items: center;

	/* Positioning */
	position: relative;

	/* Box Model */
	padding: 15px;
	border-radius: 20px 20px 0 0; /* Rounded top corners for chat bubble */

	/* Colors */
	background: #007bff;
	color: #fff;

	/* Typography */
	text-align: center;
}

#ppf-quotes-chat-header .ppf-quotes-chat-logo {
	/* Box Model */
	width: auto;
	height: 50px;
	margin-bottom: 10px;
	border-radius: 8px; /* Slight rounding for logo */

	/* Other */
	object-fit: contain;
}

#ppf-quotes-chat-header span {
	/* Box Model */
	margin: 0;

	/* Typography */
	font-size: 18px;
	font-weight: 600;
}

#ppf-quotes-chat-close {
	/* Display */
	display: flex;
	align-items: center;
	justify-content: center;

	/* Positioning */
	position: absolute;
	top: 10px;
	right: 15px;

	/* Box Model */
	width: 30px;
	height: 30px;
	border-radius: 50%; /* Circular button */

	/* Colors */
	background: none;
	color: #fff;
	border: none;

	/* Typography */
	font-size: 18px;

	/* Other */
	cursor: pointer;
	transition: background-color 0.2s ease;
}

#ppf-quotes-chat-close:hover {
	/* Colors */
	background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white on hover */
}

#ppf-quotes-chat-body {
	/* Box Model */
	padding: 20px;
	border-left: 2px solid var(--ppf-quotes-brand-color);
	border-right: 2px solid var(--ppf-quotes-brand-color);
}

.ppf-quotes-chat-instructions {
	/* Box Model */
	margin: 0 0 15px 0;
	padding-bottom: 15px;
	border-bottom: 1px solid #e0e0e0;

	/* Colors */
	color: #333;

	/* Typography */
	font-size: 16px;
	font-weight: 600;
	text-align: center;
}

#ppf-quotes-selections-legend {
	/* Box Model */
	margin-bottom: 10px;
	min-height: 20px;

	/* Typography */
	font-size: 16px;
	font-weight: bold;
}

.select {
	margin-bottom: 15px;
}

.select-title {
	font-size: 16px;
	margin-bottom: 5px;
	font-weight: bold;
	text-transform: capitalize;
}

.select-list select {
	width: 100%;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

#ppf-quotes-lead-form p {
	margin-bottom: 10px;
}

#ppf-quotes-lead-form input[type="text"],
#ppf-quotes-lead-form input[type="email"],
#ppf-quotes-lead-form input[type="tel"] {
	width: 100%;
	padding: 8px;
	margin-bottom: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

#ppf-quotes-lead-form label {
	display: block;
	margin-bottom: 10px;
}

#ppf-quotes-lead-form button[type="submit"],
#ppf-quotes-lead-form button[type="button"] {
	background: #007bff;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	margin-right: 10px;
}

#ppf-quotes-lead-form button[type="submit"]:hover,
#ppf-quotes-lead-form button[type="button"]:hover {
	background: #0056b3;
}

#ppf-quotes-wizard-nav {
	margin-top: 20px;
	text-align: right;
}

#ppf-quotes-prev {
	background: #6c757d;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
}

#ppf-quotes-prev:disabled {
	background: #ccc;
	cursor: not-allowed;
}

/* Results page styles */

/* Mobile styles for results page, replaced by me
 */

/* Loader styles */
#ppf-quotes-loader-mask {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255,255,255,0.1);
	z-index: 999;
}

#ppf-quotes-loader {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 48px;
	height: 48px;
	z-index: 1000; /* Above content, below modals */
}

/* Stacking helpers for chat moved to document.body (no !important needed) */
.ppf-quotes-on-top {
	z-index: 99999; /* Highest stacking context for chat overlay */
}

.ppf-quotes-mask-below {
	z-index: 99998; /* Below chat overlay, above content */
}

.ppf-quotes-loader-above {
	z-index: 100000; /* Maximum stacking context for loader */
}

/* New styles for results page lead form */
#ppf-quotes-results-lead-message {
	font-size: 16px;
	margin-bottom: 10px;
}

#ppf-quotes-results-lead-success {
	font-size: 16px;
	color: #28a745;
	text-align: center;
	padding: 10px;
}

#ppf-quotes-results-lead-form button {
	display: block;
	margin: 10px 0;
}

/* Admin Settings Form */
.ppf-quotes-settings-form .form-table {
	width: 100%;
	max-width: 600px; /* Limit form width for better readability */
}

.ppf-quotes-settings-form .form-table th {
	width: 200px; /* Fixed width for labels */
	padding: 12px 10px;
	vertical-align: top;
}

.ppf-quotes-settings-form .form-table td {
	padding: 12px 10px;
	vertical-align: top;
}

.ppf-quotes-settings-form .form-table input[type="text"],
.ppf-quotes-settings-form .form-table input[type="email"],
.ppf-quotes-settings-form .form-table input[type="url"],
.ppf-quotes-settings-form .form-table textarea,
.ppf-quotes-settings-form .form-table input[type="color"] {
	width: 100%;
	max-width: 400px; /* Consistent input width */
	padding: 8px;
	margin: 0;
	box-sizing: border-box;
}

.ppf-quotes-settings-form .form-table textarea {
	height: 100px;
}

.ppf-quotes-settings-form .form-table .description {
	margin-top: 5px;
	font-size: 12px;
	color: #666;
}

.ppf-quotes-settings-form .form-table input[type="file"] {
	width: 100%;
	max-width: 400px;
}

/* Ensure consistent spacing for shorter labels */
.ppf-quotes-settings-form .form-table th label {
	display: block;
	margin-bottom: 5px;
}

/* About tab styling */
.about-wrap {
	max-width: none; /* Remove width restriction for full width */
	width: 100%;
}

/* About tab two-column grid for Core Features and Technical Specs */
.about-features-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin-bottom: 30px;
}

/* Mobile responsiveness for About tab grid */

.about-wrap h3 {
	margin-top: 20px;
	margin-bottom: 10px;
}

.about-wrap p {
	margin-bottom: 10px;
	line-height: 1.6;
}

/* Notification for missing API key */
.ppf-quotes-notification.error {
	background-color: #f8d7da;
	color: #721c24;
	padding: 15px;
	border: 1px solid #f5c6cb;
	border-radius: 4px;
	margin: 10px 0;
	font-size: 14px;
}

/* Card-like layout for Leads, Analytics, and Stats tables on mobile */

#ppf-quotes-lead-form label {
	font-size: 12px;
}

.date-filter-box {
	margin-top: 10px;
	margin-bottom: 10px;
}
.date-filter-box label {
	margin-right: 5px;
	font-weight: bold;
}
.date-filter-box input[type="text"] {
	width: 120px;
	padding: 5px;
	margin-right: 10px;
}
.date-filter-box .button {
	margin-right: 10px;
}

/* ========================================
   PPF Quotes PARTS ADMIN INTERFACE STYLING
   ======================================== */

/* Main admin page container */
.ppf-quotes-admin-page .wrap {
	background: #f8f9fa;
	margin: 0 0 0 -20px;
	padding: 20px;
	min-height: 100vh;
}

/* Page header styling */
.ppf-quotes-admin-page .wrap h1 {
	color: #1d2327;
	font-size: 28px;
	font-weight: 600;
	margin: 0 0 25px 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.ppf-quotes-admin-page .wrap h1:before {
	content: "🛡️";
	font-size: 32px;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Enhanced tab navigation */
.ppf-quotes-admin-page .nav-tab-wrapper {
	background: var(--color-white);
	border-radius: 8px 8px 0 0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	margin: 0 0 -1px 0;
	padding: 0 20px;
	border-bottom: 1px solid var(--color-border-light);
}

.ppf-quotes-admin-page .nav-tab {
	background: transparent;
	border: none;
	border-radius: 0;
	color: var(--color-text-secondary);
	font-weight: 500;
	padding: 18px 20px;
	margin: 0 8px 0 0;
	position: relative;
	transition: all 0.2s ease;
	text-decoration: none;
	border-bottom: 3px solid transparent;
}

.ppf-quotes-admin-page .nav-tab:hover {
	background: rgba(0, 115, 170, 0.05);
	color: var(--wp-admin-blue);
	border-bottom-color: var(--wp-admin-blue);
}

.ppf-quotes-admin-page .nav-tab-active {
	background: transparent;
	color: var(--wp-admin-blue);
	border-bottom-color: var(--wp-admin-blue);
	font-weight: 600;
}

.ppf-quotes-admin-page .nav-tab-active:hover {
	background: transparent;
}

/* Tab content container */
.ppf-quotes-admin-page .tab-content {
	background: var(--color-white);
	border-radius: 0 0 var(--border-radius) var(--border-radius);
	box-shadow: var(--shadow-md);
	padding: var(--spacing-xl);
	margin-top: 0 !important;
	min-height: 500px;
}

/* Section headers within tabs */
.ppf-quotes-admin-page .tab-content h2 {
	color: var(--color-text-primary);
	font-size: 24px;
	font-weight: 600;
	margin: 0 0 20px 0;
	padding-bottom: 15px;
	border-bottom: 2px solid var(--color-border-lighter);
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Section header icons */
.ppf-quotes-admin-page .tab-content h2.ppf-quotes-leads-header:before {
	content: "👥";
	font-size: 20px;
}

.ppf-quotes-admin-page .tab-content h2.ppf-quotes-stats-header:before {
	content: "📊";
	font-size: 20px;
}

.ppf-quotes-admin-page .tab-content h2.ppf-quotes-analytics-header:before {
	content: "📧";
	font-size: 20px;
}

.ppf-quotes-admin-page .tab-content h2.ppf-quotes-settings-header:before {
	content: "⚙️";
	font-size: 20px;
}

.ppf-quotes-admin-page .tab-content h2.ppf-quotes-general-header:before {
	content: "🏠";
	font-size: 20px;
}

.ppf-quotes-admin-page .tab-content h2.ppf-quotes-email-header:before {
	content: "✉️";
	font-size: 20px;
}

.ppf-quotes-admin-page .tab-content h2.ppf-quotes-pdf-header:before {
	content: "📄";
	font-size: 20px;
}

.ppf-quotes-admin-page .tab-content h3 {
	color: #2c3338;
	font-size: 18px;
	font-weight: 500;
	margin: 25px 0 15px 0;
	background: #f8f9fa;
	padding: 12px 16px;
	border-radius: 6px;
	border-left: 4px solid var(--wp-admin-blue);
	display: flex;
	align-items: center;
	gap: 8px;
}

/* H3 section icons */
.ppf-quotes-admin-page .tab-content h3:contains("API Settings"):before,
.ppf-quotes-admin-page .tab-content h3:contains("API"):before {
	content: "🔗";
	font-size: 16px;
}

.ppf-quotes-admin-page .tab-content h3:contains("PDF Settings"):before,
.ppf-quotes-admin-page .tab-content h3:contains("PDF"):before {
	content: "📄";
	font-size: 16px;
}

.ppf-quotes-admin-page .tab-content h3:contains("Disclaimers"):before {
	content: "⚠️";
	font-size: 16px;
}

.ppf-quotes-admin-page .tab-content h3:contains("Analytics"):before {
	content: "📊";
	font-size: 16px;
}

.ppf-quotes-admin-page .tab-content h3:contains("Email"):before {
	content: "✉️";
	font-size: 16px;
}

.ppf-quotes-admin-page .tab-content h3:contains("General"):before,
.ppf-quotes-admin-page .tab-content h3:contains("Business"):before {
	content: "🏢";
	font-size: 16px;
}

/* Override h3 styles for call-to-action sections */
.ppf-quotes-admin-page .tab-content div[style*="linear-gradient"] h3,
.ppf-quotes-admin-page .about-wrap div[style*="linear-gradient"] h3 {
	color: white !important;
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 0 10px 0 !important;
	text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

/* Form styling improvements */
.ppf-quotes-admin-page .form-table {
	background: var(--color-white);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ppf-quotes-admin-page .form-table th {
	background: #f8f9fa;
	color: #2c3338;
	font-weight: 600;
	padding: 20px;
	border-bottom: 1px solid var(--color-border-light);
	width: 200px;
	vertical-align: top;
}

.ppf-quotes-admin-page .form-table td {
	padding: 20px;
	border-bottom: 1px solid var(--color-border-lighter);
}

.ppf-quotes-admin-page .form-table tr:last-child th,
.ppf-quotes-admin-page .form-table tr:last-child td {
	border-bottom: none;
}

/* Input field improvements */
.ppf-quotes-admin-page input[type="text"],
.ppf-quotes-admin-page input[type="email"],
.ppf-quotes-admin-page input[type="password"],
.ppf-quotes-admin-page input[type="number"],
.ppf-quotes-admin-page textarea,
.ppf-quotes-admin-page select {
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	padding: 12px 16px;
	font-size: 14px;
	line-height: 1.4;
	transition: all 0.2s ease;
	background: #fff;
	width: 100%;
	max-width: 400px;
}

.ppf-quotes-admin-page input:focus,
.ppf-quotes-admin-page textarea:focus,
.ppf-quotes-admin-page select:focus {
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
	outline: none;
}

/* Button styling improvements */
.ppf-quotes-admin-page .button-primary {
	background: linear-gradient(135deg, var(--wp-admin-blue) 0%, var(--wp-admin-blue-dark) 100%);
	border: none;
	border-radius: 6px;
	color: #fff;
	font-weight: 600;
	padding: 12px 24px;
	text-shadow: none;
	box-shadow: 0 2px 4px rgba(0, 115, 170, 0.2);
	transition: all 0.2s ease;
}

.ppf-quotes-admin-page .button-primary:hover {
	background: linear-gradient(135deg, #005a87 0%, #004d74 100%);
	box-shadow: var(--shadow-lg);
	transform: translateY(-1px);
}

.ppf-quotes-admin-page .button-secondary,
.ppf-quotes-admin-page .button {
	background: #f6f7f7;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	color: #2c3338;
	font-weight: 500;
	padding: 10px 20px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.ppf-quotes-admin-page .button-secondary:hover,
.ppf-quotes-admin-page .button:hover {
	background: #fff;
	border-color: #0073aa;
	color: #0073aa;
	box-shadow: 0 2px 4px rgba(0, 115, 170, 0.1);
}

/* Search and filter forms */
.ppf-quotes-admin-page .ppf-quotes-lead-search-form,
.ppf-quotes-admin-page .ppf-quotes-stats-filter-form {
	background: #f8f9fa;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 20px;
}

/* Lead search form specific layout */
.ppf-quotes-admin-page .ppf-quotes-lead-search-form {
	display: grid;
	grid-template-columns: 1fr;
	gap: 15px;
}

.ppf-quotes-admin-page .ppf-quotes-lead-search-form .search-box {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 10px;
	align-items: center;
	margin: 0;
}

.ppf-quotes-admin-page .ppf-quotes-lead-search-form .date-filter-box {
	display: grid;
	grid-template-columns: auto 1fr auto 1fr auto auto;
	gap: 10px;
	align-items: center;
	margin: 0;
}

/* Stats filter form specific layout */
.ppf-quotes-admin-page .ppf-quotes-stats-filter-form {
	display: block;
}

.ppf-quotes-admin-page .ppf-quotes-stats-filter-form p {
	display: grid;
	grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
	gap: 15px;
	align-items: center;
	margin: 0;
}

.ppf-quotes-admin-page .search-box input[type="search"],
.ppf-quotes-admin-page .date-filter-box input[type="text"] {
/* byme	max-width: 200px; */
	margin: 0;
}

.ppf-quotes-admin-page .ppf-quotes-stats-filter-form select {
	max-width: 200px;
	margin: 0;
}

.ppf-quotes-admin-page .search-box label,
.ppf-quotes-admin-page .date-filter-box label,
.ppf-quotes-admin-page .ppf-quotes-stats-filter-form label {
	font-weight: 600;
	color: #2c3338;
	margin: 0;
	white-space: nowrap;
}

/* Enhanced table styling */
.ppf-quotes-admin-page .wp-list-table {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	border: 1px solid #e0e0e0;
}

.ppf-quotes-admin-page .wp-list-table thead {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.ppf-quotes-admin-page .wp-list-table th {
	color: #2c3338;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 15px 12px;
	border-bottom: 2px solid #e0e0e0;
}

.ppf-quotes-admin-page .wp-list-table td {
	padding: 15px 12px;
	border-bottom: 1px solid #f0f0f1;
	vertical-align: middle;
}

.ppf-quotes-admin-page .wp-list-table tbody tr:hover {
	background: #f8f9fa;
}

.ppf-quotes-admin-page .wp-list-table tbody tr:nth-child(even) {
	background: rgba(0, 115, 170, 0.02);
}

.ppf-quotes-admin-page .wp-list-table tbody tr:nth-child(even):hover {
	background: #f8f9fa;
}

/* Action buttons in tables */
.ppf-quotes-admin-page .wp-list-table .button {
	padding: 6px 6px;
	font-size: 12px;
	border-radius: 4px;
}

/* Export and action buttons */
.ppf-quotes-admin-page .ppf-quotes-export-section {
	background: #f8f9fa;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
}

.ppf-quotes-admin-page .ppf-quotes-export-section p {
	text-align: left;
	margin: 0;
}

.ppf-quotes-admin-page .ppf-quotes-export-section h3 {
	margin-top: 0;
	color: #2c3338;
}

/* Stats and analytics cards */
.ppf-quotes-admin-page .ppf-quotes-stats-card,
.ppf-quotes-admin-page .ppf-quotes-analytics-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	margin: 15px 0;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ppf-quotes-admin-page .ppf-quotes-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

/* Error and success messages */
.ppf-quotes-admin-page .notice {
	border-radius: 6px;
	border-left-width: 4px;
	padding: 12px 16px;
	margin: 15px 0;
}

.ppf-quotes-admin-page .notice-success {
	background: #f0f8f0;
	border-left-color: #46b450;
}

.ppf-quotes-admin-page .notice-error {
	background: #fef7f1;
	border-left-color: #dc3232;
}

.ppf-quotes-admin-page .notice-warning {
	background: #fff8e5;
	border-left-color: #ffb900;
}

/* Loading states */
.ppf-quotes-admin-page .ppf-quotes-loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid #e0e0e0;
	border-radius: 50%;
	border-top-color: #0073aa;
	animation: ppf-quotes-spin 1s linear infinite;
	margin-right: 8px;
}

@keyframes ppf-quotes-spin {
	to { transform: rotate(360deg); }
}

/* Responsive adjustments */

/* Extra small mobile devices */

/* Chat bubble footer styles */
#ppf-quotes-chat-footer {
	color: #fff;
	padding: 15px;
	border-radius: 0 0 20px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	text-align: center;
	margin-top: auto;
}
/* Frontend Specific Inline Style Replacements */
.ppf-quotes-error-text {
	color: red;
}

.ppf-quotes-hidden {
	display: none;
}

.ppf-quotes-notification-text {
	color: #007bff;
}

.ppf-quotes-results-table {
	border-collapse: collapse;
	width: 100%;
}

.ppf-quotes-results-table th,
.ppf-quotes-results-table td {
	border: 1px solid #ddd;
	padding: 8px;
}

.ppf-quotes-results-table img {
	max-width: 100px;
}

.ppf-quotes-disclaimers {
	margin-top: 20px;
	text-align: center;
	font-style: italic;
	font-size: 12px;
	line-height: 1.6;
}

.ppf-quotes-results-lead-section {
	margin-top: 20px;
}

.ppf-quotes-date-footer {
	font-size: 12px;
}

/* =======================================================
   SEMANTIC CSS CLASSES FOR INLINE STYLE REPLACEMENTS
   ======================================================= */

/* Background and Layout Classes */
.ppf-quotes-light-bg {
	background: #f8f9fa;
}

.ppf-quotes-white-bg {
	background: #fff;
}

.ppf-quotes-light-gray-bg {
	background: #f1f1f1;
}

.ppf-quotes-modal-bg {
	background: #f9f9f9;
}

.ppf-quotes-warning-bg {
	background: #fff3cd;
}

.ppf-quotes-info-bg {
	background: #d1ecf1;
}

.ppf-quotes-success-bg {
	background: #d4edda;
}

.ppf-quotes-error-bg {
	background: #f8d7da;
}

.ppf-quotes-blue-info-bg {
	background: #f0f8ff;
}

.ppf-quotes-gradient-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
}

/* Spacing and Padding Classes */
.ppf-quotes-padding-std {
	padding: 15px;
}

.ppf-quotes-padding-lg {
	padding: 20px;
}

.ppf-quotes-padding-sm {
	padding: 10px;
}

.ppf-quotes-margin-top-std {
	margin-top: 10px;
}

.ppf-quotes-margin-top-lg {
	margin-top: 20px;
}

.ppf-quotes-margin-top-xl {
	margin-top: 30px;
}

.ppf-quotes-margin-bottom-std {
	margin-bottom: 15px;
}

.ppf-quotes-margin-bottom-lg {
	margin-bottom: 20px;
}

.ppf-quotes-margin-left-sm {
	margin-left: 5px;
}

.ppf-quotes-margin-left-std {
	margin-left: 10px;
}

.ppf-quotes-margin-std {
	margin: 20px 0;
}

/* Border Classes */
.ppf-quotes-border-std {
	border: 1px solid #ddd;
}

.ppf-quotes-border-top-std {
	border-top: 1px solid #ddd;
}

.ppf-quotes-border-left-warning {
	border-left: 4px solid #ffc107;
}

.ppf-quotes-border-left-info {
	border-left: 4px solid #0c5460;
}

.ppf-quotes-border-radius-std {
	border-radius: 4px;
}

.ppf-quotes-border-radius-lg {
	border-radius: 8px;
}

.ppf-quotes-border-radius-sm {
	border-radius: 5px;
}

/* Typography Classes */
.ppf-quotes-text-center {
	text-align: center;
}

.ppf-quotes-text-left {
	text-align: left;
}

.ppf-quotes-text-italic {
	font-style: italic;
}

.ppf-quotes-text-bold {
	font-weight: bold;
}

.ppf-quotes-line-height-normal {
	line-height: 1.4;
}

.ppf-quotes-line-height-tight {
	line-height: 1;
}

.ppf-quotes-no-margin {
	margin: 0;
}

.ppf-quotes-no-margin-top {
	margin-top: 0;
}

.ppf-quotes-margin-sm {
	margin: 5px 0 0 0;
}

/* Color Classes */
.ppf-quotes-text-muted {
	color: #666;
}

.ppf-quotes-text-light-muted {
	color: #999;
}

.ppf-quotes-text-dark {
	color: #333;
}

.ppf-quotes-text-primary {
	color: #0073aa;
}

.ppf-quotes-text-success {
	color: #46b450;
}

.ppf-quotes-text-warning {
	color: #f56500;
}

.ppf-quotes-text-error {
	color: #dc3232;
}

.ppf-quotes-text-white {
	color: white;
}

/* Size and Dimension Classes */
.ppf-quotes-width-narrow {
	width: 80px;
}

.ppf-quotes-font-sm {
	font-size: 11px;
}

.ppf-quotes-font-xs {
	font-size: 10px;
}

.ppf-quotes-font-lg {
	font-size: 18px;
}

.ppf-quotes-font-xl {
	font-size: 24px;
}

/* Display Classes */
.ppf-quotes-hidden {
	display: none;
}

.ppf-quotes-block {
	display: block;
}

/* Grid Layout Classes */
.ppf-quotes-grid-4col {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
}

.ppf-quotes-grid-3col {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 15px;
}

/* Badge and Status Classes */
.ppf-quotes-badge {
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: bold;
	display: inline-block;
}

.ppf-quotes-badge-warning {
	background: #ffeb3b;
}

.ppf-quotes-badge-pending {
	color: #f56500;
	font-size: 11px;
	font-weight: bold;
}

.ppf-quotes-badge-sent {
	color: #46b450;
	font-size: 11px;
	font-weight: bold;
}

.ppf-quotes-badge-failed {
	color: #dc3232;
	font-size: 11px;
	font-weight: bold;
}

.ppf-quotes-badge-cancelled {
	color: #666;
	font-size: 11px;
	font-weight: bold;
}

/* Link Styles */
.ppf-quotes-link-plain {
	text-decoration: none;
	color: #0073aa;
}

.ppf-quotes-link-plain:hover {
	text-decoration: underline;
}

/* Icon Spacing */
.ppf-quotes-icon-spacing {
	line-height: 1;
	margin-right: 5px;
}

.ppf-quotes-icon-spacing-sm {
	font-size: 12px;
	color: #0073aa;
	margin-left: 4px;
}

/* Specific Component Classes */
.ppf-quotes-template-editor {
	border-top: 1px solid #ddd;
	padding-top: 20px;
	margin-top: 15px;
}

.ppf-quotes-template-description {
	margin-top: 10px;
	font-style: italic;
	line-height: 1.4;
}

.ppf-quotes-section-divider {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #ddd;
}

.ppf-quotes-section-header {
	margin-top: 0;
	color: #333;
}

.ppf-quotes-overdue-notice {
	color: #dc3232;
	font-size: 12px;
}

.ppf-quotes-stats-number {
	font-size: 24px;
	color: #135e96;
}

.ppf-quotes-stats-number-primary {
	font-size: 24px;
	color: #0073aa;
}

.ppf-quotes-stats-number-error {
	font-size: 24px;
	color: #d63638;
}

.ppf-quotes-stats-number-success {
	font-size: 24px;
	color: #00a32a;
}

.ppf-quotes-stats-number-muted {
	font-size: 24px;
	color: #8c8f94;
}

.ppf-quotes-progress-container {
	width: 100%;
}

/* Mobile Sort Helper */
.ppf-quotes-mobile-sort {
	display: none;
}

/* Lead Modal Styles */
.ppf-quotes-lead-modal {
	background: #f9f9f9;
	padding: 20px;
}

/* Honeypot Field */
.ppf-quotes-honeypot {
	display: none;
}

/* Loading States */
.ppf-quotes-loader-mask {
	display: none;
}

.ppf-quotes-loader-image {
	display: none;
}

/* Inline Form Styles - WordPress Compliant */
.ppf-quotes-inline {
	max-width: 600px;
	margin: 20px auto;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	position: relative;
}

.ppf-quotes-inline-header {
	text-align: center;
	margin-bottom: 20px;
}

.ppf-quotes-inline-header h3 {
	margin: 0;
	color: #333;
}

.ppf-quotes-inline-logo {
	max-height: 80px;
	margin-bottom: 15px;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.ppf-quotes-inline-instructions {
	margin-bottom: 15px;
	color: #666;
}

#ppf-quotes-inline-selections-legend {
	margin-bottom: 15px;
	font-weight: bold;
}

#ppf-quotes-inline-select {
	margin-bottom: 20px;
}

#ppf-quotes-inline-select .select {
	margin-bottom: 15px;
}

#ppf-quotes-inline-select .select-title {
	font-weight: bold;
	margin-bottom: 8px;
}

#ppf-quotes-inline-select select {
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

#ppf-quotes-inline-lead-form {
	margin-top: 20px;
}

#ppf-quotes-inline-lead-form p {
	margin-bottom: 15px;
	font-weight: bold;
}

#ppf-quotes-inline-lead-form-submit {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#ppf-quotes-inline-lead-form input[type="text"],
#ppf-quotes-inline-lead-form input[type="email"],
#ppf-quotes-inline-lead-form input[type="tel"] {
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

#ppf-quotes-inline-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

#ppf-quotes-inline-lead-form label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #666;
	margin-top: 10px;
}

#ppf-quotes-inline-lead-form .ppf-quotes-inline-button-group {
	display: flex;
	gap: 10px;
	margin-top: 15px;
}

#ppf-quotes-inline-lead-form button {
	flex: 1;
	padding: 12px;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: bold;
}

#ppf-quotes-inline-lead-form button[type="submit"] {
	background: #007cba;
}

#ppf-quotes-inline-lead-form button[type="submit"]:hover {
	background: #005a87;
}

#ppf-quotes-inline-lead-form button[type="button"] {
	background: #666;
}

#ppf-quotes-inline-lead-form button[type="button"]:hover {
	background: #555;
}

#ppf-quotes-inline-lead-error {
	color: red;
	margin-top: 10px;
	text-align: center;
}

#ppf-quotes-inline-wizard-nav {
	margin-top: 20px;
	text-align: center;
}

#ppf-quotes-inline-prev {
	padding: 8px 16px;
	background: #6c757d;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

#ppf-quotes-inline-prev:hover:not(:disabled) {
	background: #5a6268;
}

#ppf-quotes-inline-prev:disabled {
	background: #ccc;
	cursor: not-allowed;
}

#ppf-quotes-inline-notification {
	margin-top: 15px;
	padding: 10px;
	border-radius: 4px;
	text-align: center;
	background: #e7f3ff;
	border: 1px solid #b8daff;
	color: #004085;
}

#ppf-quotes-inline-loader-mask {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.8);
	z-index: 10;
	display: none;
}

#ppf-quotes-inline-loader {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 48px;
	height: 48px;
	z-index: 11;
	display: none;
}

/* Responsive inline form */

/* Server connection status display */
.ppf-server-connection-info {
	border: 1px solid #ddd;
	padding: 12px;
	margin-bottom: 12px;
	background: #fff;
}

.ppf-status-yes {
	color: green;
}

.ppf-status-no {
	color: orange;
}

/* Table Styles for Quote Results */
.ppf-quotes-results-table {
	border-collapse: collapse;
	width: 100%;
	border: 1px solid #ddd;
}

.ppf-quotes-results-th {
	border: 1px solid #ddd;
	padding: 8px;
	background-color: #f5f5f5;
}

.ppf-quotes-results-td {
	border: 1px solid #ddd;
	padding: 8px;
}

.ppf-quotes-results-td-center {
	border: 1px solid #ddd;
	padding: 8px;
	text-align: center;
}

.ppf-quotes-results-td-price {
	border: 1px solid #ddd;
	padding: 8px;
	text-align: center;
	font-weight: bold;
}

.ppf-quotes-kit-image {
	max-width: 100px;
	height: auto;
}

/* ===== MEDIA QUERIES ===== */

@media only screen and (max-width: 767px) {
        #ppf-quotes-overlay {
                display: block;
        }
}

@media only screen and (max-width: 767px) {
        #ppf-quotes-chat-container {
                /* Display */
                width: 100%;
                height: 100%;

                /* Positioning */
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;

                /* Box Model */
                border-radius: 0;
                border: none;
        }
}

@media only screen and (min-width: 768px) {
        #ppf-quotes-data table {
                border-collapse: collapse;
                width: 100%;
        }
}

@media only screen and (max-width: 767px) {
        #ppf-quotes-data .table-mobile {
                border: none;
                width: 100%;
                margin-bottom: 20px;
        }
}

@media (max-width: 767px) {
        .table-mobile {
                width: 100%;
                border-collapse: collapse;
                border: 1px solid #ddd; /* Added to match desktop */
        }
}

@media (max-width: 782px) {
        .about-features-grid {
                grid-template-columns: 1fr; /* Stack on mobile */
                gap: 20px;
        }
}

@media (max-width: 767px) {
        /* Target Leads, Analytics, and Stats tables specifically */
        #ppf-quotes-leads-table,
        #ppf-quotes-analytics-table,
        #ppf-quotes-stats-table {
                width: 100%;
                border-collapse: collapse;
                background: var(--color-white);
        }
}

@media (max-width: 1200px) {
        .ppf-quotes-admin-page .tab-content {
                padding: 20px;
        }
}

@media (max-width: 768px) {
        .ppf-quotes-admin-page .wrap {
                margin: 0 -20px 0 -20px;
                padding: 15px;
        }
}

@media (max-width: 480px) {
        .ppf-quotes-admin-page .wrap {
                margin: 0 -10px 0 -10px;
                padding: 10px;
        }
}

@media (max-width: 768px) {
        .ppf-quotes-inline {
                margin: 10px;
                padding: 15px;
        }
}
