/* =========================================================
   WC ORDER EXPORT - MODERN PREMIUM UI
========================================================= */

.wcoe-export-card {
	padding: 24px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	font-family: inherit;
	transition: all 0.3s ease;
}

/* Header Section */
.wcoe-export-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 18px;
	border-bottom: 1px dashed #e2e8f0;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.wcoe-export-title-wrapper {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wcoe-export-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: #f1f5f9;
	color: #0f172a;
	flex-shrink: 0;
}

.wcoe-export-heading {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	line-height: 1.3 !important;
}

.wcoe-export-subheading {
	margin: 3px 0 0 0 !important;
	font-size: 13px !important;
	color: #64748b !important;
	line-height: 1.4 !important;
}

/* Meta & Quick controls */
.wcoe-export-meta {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.wcoe-badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	font-size: 13px;
	color: #475569;
}

.wcoe-badge strong {
	color: #0284c7;
	font-weight: 700;
	margin: 0 4px;
}

/* Grid Buttons */
.wcoe-export-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}

.wcoe-export-btn {
	display: flex !important;
	align-items: center !important;
	gap: 14px !important;
	padding: 16px 18px !important;
	background: #ffffff !important;
	border: 1.5px solid #e2e8f0 !important;
	border-radius: 12px !important;
	cursor: pointer !important;
	text-align: left !important;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
	position: relative !important;
	overflow: hidden !important;
	margin-bottom: 0px;
}

.wcoe-btn-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

.wcoe-excel-icon {
	background: #ecfdf5;
	color: #059669;
}

.wcoe-pdf-icon {
	background: #fff1f2;
	color: #e11d48;
}

.wcoe-btn-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.wcoe-btn-title {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.3;
}

.wcoe-btn-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
	transition: all 0.25s ease;
}

/* Hover States for Cards */
.wcoe-export-excel:hover {
	border-color: #10b981 !important;
}

.wcoe-export-excel:hover .wcoe-excel-icon {
	background: #10b981;
	color: #ffffff;
}

.wcoe-export-pdf:hover {
	border-color: #f43f5e !important;
}

.wcoe-export-pdf:hover .wcoe-pdf-icon {
	background: #f43f5e;
	color: #ffffff;
}

.wcoe-export-btn:hover .wcoe-btn-arrow {
	color: #0f172a;
}

/* Message styling */
.wcoe-export-message {
	margin-top: 14px;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13px;
	display: none;
}

.wcoe-export-message.visible {
	display: block;
}

.wcoe-export-message.error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.wcoe-export-message.success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}


/* =========================================================
   CHECKBOX COLUMNS IN CART TABLE
========================================================= */

.woocommerce-cart-form table.shop_table th.wcoe-select-col,
.woocommerce-cart-form table.shop_table td.wcoe-select-col {
	width: 50px !important;
	min-width: 50px !important;
	max-width: 50px !important;
	padding-left: 8px !important;
	padding-right: 8px !important;
	text-align: center !important;
	vertical-align: middle !important;
}

.wcoe-header-checkbox,
.wcoe-item-checkbox {
	position: relative !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 22px !important;
	height: 22px !important;
	margin: 0 !important;
	padding: 0 !important;
	cursor: pointer !important;
}

.wcoe-header-checkbox input,
.wcoe-item-checkbox input {
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	width: 22px !important;
	height: 22px !important;
	margin: 0 !important;
	opacity: 0 !important;
	cursor: pointer !important;
	z-index: 30 !important;
}

.wcoe-checkbox-ui {
	position: relative !important;
	display: block !important;
	width: 20px !important;
	height: 20px !important;
	border: 2px solid #94a3b8 !important;
	border-radius: 5px !important;
	background: #ffffff !important;
	box-sizing: border-box !important;
	pointer-events: none !important;
	transition: all 0.2s ease !important;
}

.wcoe-header-checkbox:hover .wcoe-checkbox-ui,
.wcoe-item-checkbox:hover .wcoe-checkbox-ui {
	border-color: #2563eb !important;
}

.wcoe-header-checkbox input:checked+.wcoe-checkbox-ui,
.wcoe-item-checkbox input:checked+.wcoe-checkbox-ui {
	background: #2563eb !important;
	border-color: #2563eb !important;
}

.wcoe-header-checkbox input:checked+.wcoe-checkbox-ui::after,
.wcoe-item-checkbox input:checked+.wcoe-checkbox-ui::after {
	content: "" !important;
	position: absolute !important;
	left: 5px !important;
	top: 2px !important;
	width: 5px !important;
	height: 9px !important;
	border: solid #ffffff !important;
	border-width: 0 2px 2px 0 !important;
	transform: rotate(45deg) !important;
}

.wcoe-header-checkbox.is-mixed .wcoe-checkbox-ui {
	background: #ffffff !important;
	border-color: #2563eb !important;
}

.wcoe-header-checkbox.is-mixed .wcoe-checkbox-ui::after {
	content: "" !important;
	position: absolute !important;
	left: 4px !important;
	top: 7px !important;
	width: 8px !important;
	height: 2px !important;
	background: #2563eb !important;
	border: 0 !important;
	transform: none !important;
}


/* =========================================================
   RESPONSIVE MOBILE STYLING
========================================================= */

@media (max-width: 640px) {
	.wcoe-export-card {
		margin-top: 30px;
		padding: 16px;
	}

	.wcoe-export-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.wcoe-export-meta {
		width: 100%;
		justify-content: space-between;
	}

	.wcoe-export-grid {
		grid-template-columns: 1fr;
	}

	.woocommerce-cart-form table.shop_table th.wcoe-select-col,
	.woocommerce-cart-form table.shop_table td.wcoe-select-col {
		width: 42px !important;
		min-width: 42px !important;
		max-width: 42px !important;
	}
}