/**
 * Print Invoice for WooCommerce - Frontend Styles
 *
 * @package Print_Invoice_WC
 */

 .piwc-print-button-wrapper {
	margin: 20px 0;
	padding: 15px;
	background: #f8f9fa;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	text-align: center;
}

.piwc-print-invoice-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: #000000 !important;
	color: #fff !important;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.piwc-print-invoice-button:hover {
	background: #333333 !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.piwc-print-invoice-button:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.piwc-print-icon {
	font-size: 18px;
	line-height: 1;
}

/* Orders list print button */
.woocommerce-orders-table .piwc-print-invoice-button {
	padding: 8px 16px;
	font-size: 13px;
	display: inline-block;
	margin: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
	.piwc-print-button-wrapper {
		padding: 12px;
	}

	.piwc-print-invoice-button {
		width: 100%;
		justify-content: center;
		padding: 14px 20px;
	}
}

/* Print specific styles */
@media print {
	.piwc-print-button-wrapper,
	.piwc-print-invoice-button {
		display: none !important;
	}

	/* Hide unnecessary elements when printing */
	body * {
		visibility: hidden;
	}

	body .piwc-invoice-content,
	body .piwc-invoice-content * {
		visibility: visible;
	}

	body .piwc-invoice-content {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
	}

	/* Print media styles */
	@media print {
		@page {
			margin: 0.5cm;
		}

		.piwc-invoice-content {
			font-size: 11pt !important;
		}
	}
}

/* Advanced Invoice Styles */
.piwc-invoice-wrapper {
	max-width: 210mm;
	margin: 0 auto;
	padding: 20mm;
	background: #fff;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.piwc-invoice-header {
	border-bottom: 3px solid #333;
	padding-bottom: 20px;
	margin-bottom: 30px;
}

.piwc-invoice-logo {
	max-width: 200px;
	margin-bottom: 15px;
}

.piwc-invoice-title {
	font-size: 28px;
	font-weight: bold;
	margin-bottom: 10px;
}

.piwc-invoice-meta {
	margin-bottom: 25px;
}

.piwc-invoice-section {
	margin-bottom: 30px;
}

.piwc-invoice-section-title {
	font-size: 16px;
	font-weight: bold;
	margin-bottom: 15px;
	padding-bottom: 8px;
	border-bottom: 2px solid #f0f0f0;
}

.piwc-items-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.piwc-items-table th {
	background: #f8f9fa;
	padding: 12px;
	text-align: left;
	font-weight: 600;
	border-bottom: 2px solid #ddd;
}

.piwc-items-table td {
	padding: 12px;
	border-bottom: 1px solid #eee;
}

.piwc-items-table tr:hover {
	background: #fafafa;
}

.piwc-totals-table {
	width: 100%;
	margin-top: 30px;
}

.piwc-totals-table td {
	padding: 8px 0;
}

.piwc-totals-table .piwc-label {
	font-weight: 600;
	padding-right: 20px;
}

.piwc-totals-table .piwc-total-row {
	font-size: 18px;
	font-weight: bold;
	border-top: 2px solid #333;
	padding-top: 10px;
}

.piwc-invoice-footer {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 2px solid #ddd;
	font-size: 12px;
	color: #666;
}