/**
 * WooCommerce Order Documents - Styles
 * @version 1.0.0
 */

/* Container for document buttons */
.wa-order-documents {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

/* Document button base styles */
.wa-order-document-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
	font-size: 12px;
	line-height: 1.2;
	font-weight: 500;
	background-color: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: #333;
	text-decoration: none;
	transition: all 0.2s ease-in-out;
	white-space: nowrap;
}

/* Button hover state */
.wa-order-document-btn:hover {
	background-color: #e8e8e8;
	border-color: #bbb;
	color: #000;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Button active state */
.wa-order-document-btn:active {
	transform: translateY(0);
	box-shadow: none;
}

/* Invoice button specific styles */
.wa-order-document-btn--invoice {
	background-color: #f0f9ff;
	border-color: #bfdbfe;
	color: #1e40af;
}

.wa-order-document-btn--invoice:hover {
	background-color: #dbeafe;
	border-color: #93c5fd;
	color: #1e3a8a;
}

/* Credit note button specific styles */
.wa-order-document-btn--credit {
	background-color: #fef3c7;
	border-color: #fde68a;
	color: #92400e;
}

.wa-order-document-btn--credit:hover {
	background-color: #fde68a;
	border-color: #fcd34d;
	color: #78350f;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
	.wa-order-documents {
		flex-direction: column;
		gap: 4px;
		width: 100%;
	}
	
	.wa-order-document-btn {
		width: 100%;
		font-size: 11px;
		padding: 5px 10px;
	}
}

/* My Account table column width optimization */
.woocommerce-account .woocommerce-orders-table__cell-order-documents {
	white-space: nowrap;
	min-width: 180px;
}

/* ====================================================================
   Order Detail View Styles
   ==================================================================== */

/* Section wrapper for order detail view */
.wa-order-documents-detail {
	margin-bottom: 30px;
	margin-top: -15px;
}

/* Section heading */
.wa-order-documents-detail h3 {
	margin: 0 0 15px 0;
	padding: 0;
	font-size: 16px;
	font-weight: 600;
	color: #1f2937;
	text-transform: none;
}

/* Button container in detail view */
.wa-order-documents-detail .wa-order-documents {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* Larger buttons for detail view */
.wa-order-documents-detail .wa-order-document-btn {
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 600;
	min-width: 140px;
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Enhanced hover effect for detail view buttons */
.wa-order-documents-detail .wa-order-document-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments for detail view */
@media screen and (max-width: 768px) {

	.wa-order-documents-detail h3 {
		font-size: 15px;
		margin-bottom: 12px;
	}
	
	.wa-order-documents-detail .wa-order-documents {
		flex-direction: column;
		gap: 10px;
	}
	
	.wa-order-documents-detail .wa-order-document-btn {
		width: 100%;
		padding: 12px 20px;
		font-size: 13px;
	}
}

@media screen and (max-width: 480px) {
	.wa-order-documents-detail .wa-order-document-btn {
		padding: 10px 16px;
		font-size: 12px;
	}
}