/* WooCommerce PDF Editor Styles */

/* Container */
.wcpdf-editor-container {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #333;
}

.wcpdf-editor-wrapper {
	background: #fff;
	padding: 20px;
	border-radius: 4px;
}

/* Upload Area */
.wcpdf-upload-area {
	background: #f9f9f9;
	padding: 20px;
	border: 2px dashed #0073aa;
	border-radius: 4px;
	text-align: center;
	margin-bottom: 30px;
}

.wcpdf-upload-area h4 {
	margin-top: 0;
	color: #0073aa;
}

.wcpdf-file-input-wrapper {
	display: inline-block;
}

.wcpdf-upload-btn {
	background: #0073aa;
	color: white;
	border: none;
	padding: 12px 24px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
	transition: background 0.2s;
}

.wcpdf-upload-btn:hover {
	background: #005a87;
}

.wcpdf-upload-area .description {
	margin-top: 10px;
	color: #666;
	font-size: 0.9em;
}

/* Progress Bar */
.wcpdf-progress-bar {
	width: 100%;
	height: 4px;
	background: #ddd;
	border-radius: 2px;
	overflow: hidden;
	margin-top: 15px;
}

.wcpdf-progress-fill {
	height: 100%;
	background: #0073aa;
	width: 0%;
	transition: width 0.3s ease;
}

/* Files List */
.wcpdf-files-list {
	margin-top: 30px;
}

.wcpdf-files-list h4 {
	color: #0073aa;
	margin-bottom: 15px;
}

.wcpdf-files-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	overflow: hidden;
}

.wcpdf-files-table thead {
	background: #f5f5f5;
	border-bottom: 2px solid #0073aa;
}

.wcpdf-files-table th {
	padding: 12px;
	text-align: left;
	font-weight: 600;
	color: #333;
}

.wcpdf-files-table td {
	padding: 12px;
	border-bottom: 1px solid #eee;
}

.wcpdf-files-table tbody tr:hover {
	background: #f9f9f9;
}

.wcpdf-files-table tbody tr:last-child td {
	border-bottom: none;
}

.wcpdf-files-table strong {
	color: #0073aa;
}

.wcpdf-files-table .button {
	margin: 0 3px;
	font-size: 0.9em;
	padding: 5px 10px;
}

.wcpdf-files-table .button-small {
	padding: 4px 8px;
	font-size: 0.85em;
}

/* Empty State */
.wcpdf-empty-state {
	text-align: center;
	padding: 40px 20px;
	color: #999;
	font-style: italic;
}

.wcpdf-empty-state:before {
	content: "📄";
	display: block;
	font-size: 2em;
	margin-bottom: 10px;
}

/* Pricing Display */
.wcpdf-pricing-display {
	margin: 20px 0;
	padding: 15px;
	background: #f9f9f9;
	border-left: 4px solid #0073aa;
	border-radius: 3px;
}

.wcpdf-pricing-display h3 {
	margin-top: 0;
	color: #0073aa;
	font-size: 1.1em;
}

.wcpdf-price-table {
	width: 100%;
	border-collapse: collapse;
	margin: 15px 0;
}

.wcpdf-price-table thead {
	background: #e8e8e8;
}

.wcpdf-price-table th {
	padding: 8px;
	text-align: left;
	border-bottom: 2px solid #0073aa;
	font-weight: 600;
}

.wcpdf-price-table td {
	padding: 8px;
	border-bottom: 1px solid #ddd;
}

.wcpdf-price-table tbody tr {
	transition: background 0.2s;
}

.wcpdf-price-table tbody tr:hover {
	background: #fff8e5;
}

.wcpdf-price-table tbody tr.tier-row {
	background: #fff8e5;
}

.wcpdf-price-table th:last-child,
.wcpdf-price-table td:last-child {
	text-align: right;
}

.wcpdf-price-table strong {
	color: #0073aa;
	font-size: 1.05em;
}

.wcpdf-pricing-display .description {
	margin-top: 10px;
	font-size: 0.9em;
	color: #666;
}

/* Admin Section */
.wcpdf-admin-section {
	background: #fff;
	padding: 15px;
	margin: 15px 0;
	border: 1px solid #ddd;
	border-radius: 3px;
}

.wcpdf-admin-section h3 {
	margin-top: 0;
	color: #0073aa;
}

/* Customer Section */
.wcpdf-customer-section {
	background: #f9f9f9;
	padding: 20px;
	margin: 20px 0;
	border-radius: 3px;
	border-left: 4px solid #0073aa;
}

.wcpdf-customer-section h2 {
	margin-top: 0;
	color: #0073aa;
}

/* Responsive */
@media (max-width: 768px) {
	.wcpdf-files-table {
		font-size: 0.9em;
	}

	.wcpdf-files-table th,
	.wcpdf-files-table td {
		padding: 8px;
	}

	.wcpdf-files-table .button {
		display: block;
		width: 100%;
		margin: 3px 0;
		padding: 6px 8px;
	}

	.wcpdf-upload-btn {
		width: 100%;
		padding: 10px 20px;
	}

	.wcpdf-pricing-display {
		padding: 10px;
		margin: 15px 0;
	}

	.wcpdf-price-table {
		font-size: 0.9em;
	}

	.wcpdf-price-table th,
	.wcpdf-price-table td {
		padding: 6px;
	}
}

/* Tablet Screens */
@media (min-width: 769px) and (max-width: 1024px) {
	.wcpdf-files-table {
		font-size: 0.95em;
	}
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
	.wcpdf-editor-wrapper {
		background: #2a2a2a;
		color: #e0e0e0;
	}

	.wcpdf-upload-area {
		background: #3a3a3a;
		border-color: #0073aa;
	}

	.wcpdf-files-table {
		background: #2a2a2a;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	}

	.wcpdf-files-table thead {
		background: #3a3a3a;
	}

	.wcpdf-files-table th,
	.wcpdf-files-table strong {
		color: #7fb7d4;
	}

	.wcpdf-files-table td {
		border-bottom-color: #444;
	}

	.wcpdf-files-table tbody tr:hover {
		background: #333;
	}

	.wcpdf-pricing-display {
		background: #3a3a3a;
	}

	.wcpdf-empty-state {
		color: #888;
	}
}

/* Print Styles */
@media print {
	.wcpdf-upload-area,
	.wcpdf-upload-btn,
	.wcpdf-progress-bar,
	.button {
		display: none;
	}

	.wcpdf-files-table {
		border: 1px solid #000;
	}

	.wcpdf-files-table th,
	.wcpdf-files-table td {
		border: 1px solid #000;
	}
}
