/**
 * MPD Cart Widgets Styles
 *
 * Styles for all cart-related widgets including Cart Table, Cart Totals,
 * Cross-Sells, Coupon Form, Mini Cart, and Empty Cart widgets.
 *
 * @package Magical_Shop_Builder
 * @since   2.0.0
 */

/* ==========================================================================
   Cart Table Widget
   ========================================================================== */

.mpd-cart-table {
	width: 100%;
}

.mpd-cart-table table {
	width: 100%;
	border-collapse: collapse;
}

.mpd-cart-table th,
.mpd-cart-table td {
	padding: 15px;
	text-align: left;
	vertical-align: middle;
	border-bottom: 1px solid #e5e5e5;
}

.mpd-cart-table th {
	font-weight: 600;
	background-color: #f8f9fa;
}

.mpd-cart-table .mpd-cart-product-thumbnail {
	width: 80px;
}

.mpd-cart-table .mpd-cart-product-thumbnail img {
	max-width: 80px;
	height: auto;
	border-radius: 4px;
}

.mpd-cart-table .mpd-cart-product-name a {
	text-decoration: none;
	color: inherit;
}

.mpd-cart-table .mpd-cart-product-name a:hover {
	color: #0073aa;
}

.mpd-cart-table .mpd-cart-product-remove a {
	color: #e74c3c;
	text-decoration: none;
	font-size: 18px;
	display: inline-block;
	width: 24px;
	height: 24px;
	line-height: 24px;
	text-align: center;
	border-radius: 50%;
	transition: all 0.3s ease;
}

.mpd-cart-table .mpd-cart-product-remove a:hover {
	background-color: #e74c3c;
	color: #fff;
}

.mpd-cart-table .quantity {
	display: inline-flex;
	align-items: center;
}

.mpd-cart-table .quantity input {
	width: 60px;
	text-align: center;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

/* Quantity Style Variations (Pro) */

/* Default style */
.mpd-cart-table .quantity.mpd-quantity-style-default input.qty,
.mpd-cart-table-wrapper .quantity.mpd-quantity-style-default input.qty {
	width: 60px;
	text-align: center;
	padding: 8px 5px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

/* Modern quantity style (+/-) */
.mpd-cart-table .quantity.mpd-quantity-style-modern,
.mpd-cart-table-wrapper .quantity.mpd-quantity-style-modern {
	display: inline-flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
}

.mpd-cart-table .mpd-quantity-wrapper,
.mpd-cart-table-wrapper .mpd-quantity-wrapper {
	display: inline-flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
}

.mpd-cart-table .mpd-quantity-wrapper button,
.mpd-cart-table-wrapper .mpd-quantity-wrapper button {
	width: 36px;
	height: 36px;
	border: none;
	background: #f5f5f5;
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
	transition: background 0.3s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.mpd-cart-table .mpd-quantity-wrapper button:hover,
.mpd-cart-table-wrapper .mpd-quantity-wrapper button:hover {
	background: #e5e5e5;
}

.mpd-cart-table .mpd-quantity-wrapper input.qty,
.mpd-cart-table-wrapper .mpd-quantity-wrapper input.qty {
	width: 50px;
	text-align: center;
	border: none;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	padding: 8px 5px;
	-moz-appearance: textfield;
}

.mpd-cart-table .mpd-quantity-wrapper input.qty::-webkit-outer-spin-button,
.mpd-cart-table .mpd-quantity-wrapper input.qty::-webkit-inner-spin-button,
.mpd-cart-table-wrapper .mpd-quantity-wrapper input.qty::-webkit-outer-spin-button,
.mpd-cart-table-wrapper .mpd-quantity-wrapper input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Buttons quantity style */
.mpd-cart-table .quantity.mpd-quantity-style-buttons,
.mpd-cart-table-wrapper .quantity.mpd-quantity-style-buttons {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.mpd-cart-table .quantity.mpd-quantity-style-buttons button,
.mpd-cart-table-wrapper .quantity.mpd-quantity-style-buttons button {
	width: 32px;
	height: 32px;
	border: 1px solid #ddd;
	background: #f5f5f5;
	cursor: pointer;
	font-size: 14px;
	font-weight: bold;
	border-radius: 4px;
	transition: all 0.3s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.mpd-cart-table .quantity.mpd-quantity-style-buttons button:hover,
.mpd-cart-table-wrapper .quantity.mpd-quantity-style-buttons button:hover {
	background: #333;
	color: #fff;
	border-color: #333;
}

.mpd-cart-table .quantity.mpd-quantity-style-buttons input.qty,
.mpd-cart-table-wrapper .quantity.mpd-quantity-style-buttons input.qty {
	width: 50px;
	text-align: center;
	padding: 6px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

/* Dropdown quantity style */
.mpd-cart-table .quantity.mpd-quantity-style-dropdown select,
.mpd-cart-table-wrapper .quantity.mpd-quantity-style-dropdown select {
	padding: 8px 30px 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") no-repeat right 8px center;
	background-size: 16px;
	cursor: pointer;
	font-size: 14px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	min-width: 70px;
}

.mpd-cart-table .quantity.mpd-quantity-style-dropdown select:hover,
.mpd-cart-table .quantity.mpd-quantity-style-dropdown select:focus,
.mpd-cart-table-wrapper .quantity.mpd-quantity-style-dropdown select:hover,
.mpd-cart-table-wrapper .quantity.mpd-quantity-style-dropdown select:focus {
	border-color: #0073aa;
	outline: none;
}

/* Legacy modern quantity style */
.mpd-cart-table .mpd-quantity-modern,
.mpd-cart-table-wrapper .mpd-quantity-modern {
	display: inline-flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
}

.mpd-cart-table .mpd-quantity-modern button,
.mpd-cart-table-wrapper .mpd-quantity-modern button {
	width: 36px;
	height: 36px;
	border: none;
	background: #f5f5f5;
	cursor: pointer;
	font-size: 16px;
	transition: background 0.3s;
}

.mpd-cart-table .mpd-quantity-modern button:hover,
.mpd-cart-table-wrapper .mpd-quantity-modern button:hover {
	background: #e5e5e5;
}

.mpd-cart-table .mpd-quantity-modern input,
.mpd-cart-table-wrapper .mpd-quantity-modern input {
	width: 50px;
	text-align: center;
	border: none;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	padding: 8px 5px;
}

.mpd-cart-table .mpd-cart-actions {
	padding: 20px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

/* WooCommerce cart table integration */
.mpd-cart-table-wrapper .woocommerce-cart-form__contents {
	width: 100%;
	border-collapse: collapse;
}

.mpd-cart-table-wrapper .woocommerce-cart-form__contents th,
.mpd-cart-table-wrapper .woocommerce-cart-form__contents td {
	padding: 15px;
	text-align: left;
	vertical-align: middle;
	border-bottom: 1px solid #e5e5e5;
}

.mpd-cart-table-wrapper .woocommerce-cart-form__contents thead th {
	font-weight: 600;
	background-color: #f8f9fa;
}

.mpd-cart-table-wrapper .product-thumbnail img {
	max-width: 80px;
	height: auto;
	border-radius: 4px;
}

.mpd-cart-table-wrapper .product-name a {
	text-decoration: none;
	color: inherit;
}

.mpd-cart-table-wrapper .product-name a:hover {
	color: #0073aa;
}

.mpd-cart-table-wrapper .product-remove a {
	color: #e74c3c;
	text-decoration: none;
	font-size: 20px;
	font-weight: 700;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 28px;
	height: 28px;
	line-height: 1;
	text-align: center;
	border-radius: 50%;
	transition: all 0.3s ease;
}

.mpd-cart-table-wrapper .product-remove a:hover {
	background-color: #e74c3c;
	color: #fff;
}

.mpd-cart-table-wrapper .product-sku {
	display: block;
	font-size: 12px;
	color: #888;
	margin-top: 5px;
}

.mpd-cart-table-wrapper .product-stock {
	display: block;
	font-size: 12px;
	margin-top: 8px;
}

.mpd-cart-table-wrapper .product-stock .stock {
	font-weight: 500;
}

.mpd-cart-table-wrapper .product-stock .in-stock,
.mpd-cart-table-wrapper .product-stock .stock.in-stock {
	color: #2ecc71;
}

.mpd-cart-table-wrapper .product-stock .out-of-stock,
.mpd-cart-table-wrapper .product-stock .stock.out-of-stock {
	color: #e74c3c;
}

.mpd-cart-table-wrapper .product-stock .available-on-backorder,
.mpd-cart-table-wrapper .product-stock .stock.available-on-backorder {
	color: #f39c12;
}

/* Cart Actions Wrapper - below the table */
.mpd-cart-actions-wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding: 20px 0;
	margin-top: 15px;
	border-top: 1px solid #e5e5e5;
}

/* Coupon Form Wrapper */
.mpd-coupon-form-wrapper {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	flex-wrap: nowrap;
}

/* Stacked layout for coupon form */
.mpd-cart-table-wrapper.mpd-coupon-stacked .mpd-coupon-form-wrapper,
.mpd-coupon-form-wrapper.mpd-stacked {
	flex-direction: column !important;
	align-items: stretch !important;
}

.mpd-cart-table-wrapper.mpd-coupon-stacked .mpd-coupon-form-wrapper input.input-text,
.mpd-cart-table-wrapper.mpd-coupon-stacked .mpd-coupon-form-wrapper button,
.mpd-coupon-form-wrapper.mpd-stacked input.input-text,
.mpd-coupon-form-wrapper.mpd-stacked button {
	width: 100%;
}

.mpd-coupon-form-wrapper .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.mpd-coupon-form-wrapper input.input-text {
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	min-width: 180px;
}

.mpd-coupon-form-wrapper button {
	padding: 10px 20px;
	background: #333;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
	transition: background-color 0.3s;
	white-space: nowrap;
}

.mpd-coupon-form-wrapper button:hover {
	background-color: #0073aa;
}

/* Update Cart Wrapper */
.mpd-update-cart-wrapper {
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: flex-end;
	width: 100%;
}

.mpd-update-cart-wrapper button {
	padding: 10px 20px;
	background: #333;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
	transition: background-color 0.3s;
}

.mpd-update-cart-wrapper button:hover {
	background-color: #0073aa;
}

.mpd-update-cart-wrapper button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Legacy support for old structure */
.mpd-cart-table-wrapper .actions {
	padding: 20px 15px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
}

.mpd-cart-table-wrapper .actions .coupon {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 10px;
	flex-wrap: nowrap;
}

/* Editor preview specific - ensure inline layout */
.mpd-editor-preview .mpd-coupon-form-wrapper {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
}

.mpd-editor-preview .actions .coupon {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 10px;
}

.mpd-cart-table-wrapper .actions .coupon label {
	font-weight: 500;
	margin-right: 5px;
	white-space: nowrap;
}

.mpd-cart-table-wrapper .actions .coupon input.input-text {
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	min-width: 150px;
	max-width: 200px;
}

.mpd-cart-table-wrapper .actions .coupon button,
.mpd-cart-table-wrapper .actions button[name="update_cart"] {
	padding: 10px 20px;
	background: #333;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
	transition: background-color 0.3s;
}

.mpd-cart-table-wrapper .actions .coupon button:hover,
.mpd-cart-table-wrapper .actions button[name="update_cart"]:hover {
	background-color: #0073aa;
}

.mpd-cart-table-wrapper .actions button[name="update_cart"]:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.mpd-cart-table .mpd-update-cart {
	padding: 12px 24px;
	background-color: #333;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
	transition: background-color 0.3s;
}

.mpd-cart-table .mpd-update-cart:hover {
	background-color: #0073aa;
}

.mpd-cart-table .mpd-update-cart:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.mpd-cart-table .mpd-stock-status {
	font-size: 12px;
	margin-top: 5px;
}

.mpd-cart-table .mpd-stock-status.in-stock {
	color: #2ecc71;
}

.mpd-cart-table .mpd-stock-status.out-of-stock {
	color: #e74c3c;
}

/* Responsive */
@media (max-width: 768px) {
	.mpd-cart-table thead {
		display: none;
	}

	.mpd-cart-table tr {
		display: block;
		margin-bottom: 20px;
		border: 1px solid #e5e5e5;
		border-radius: 4px;
	}

	.mpd-cart-table td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		border-bottom: 1px solid #f0f0f0;
	}

	.mpd-cart-table td:before {
		content: attr(data-title);
		font-weight: 600;
		margin-right: 10px;
	}

	.mpd-cart-table td:last-child {
		border-bottom: none;
	}
}

/* ==========================================================================
   Cart Table Style Variations
   ========================================================================== */

/* Default Style - already styled above */
.mpd-cart-table-style-default .woocommerce-cart-form__contents,
.mpd-cart-table-style-default .mpd-cart-table.shop_table {
	/* Uses default styles */
}

/* Modern Style - Clean borders, rounded corners, hover effects */
.mpd-cart-table-style-modern .woocommerce-cart-form__contents,
.mpd-cart-table-style-modern .mpd-cart-table.shop_table {
	border: none;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mpd-cart-table-style-modern .woocommerce-cart-form__contents thead th,
.mpd-cart-table-style-modern .mpd-cart-table.shop_table thead th {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.5px;
	padding: 18px 15px;
	border-bottom: none;
}

.mpd-cart-table-style-modern .woocommerce-cart-form__contents tbody tr,
.mpd-cart-table-style-modern .mpd-cart-table.shop_table tbody tr {
	transition: all 0.3s ease;
}

.mpd-cart-table-style-modern .woocommerce-cart-form__contents tbody tr:hover,
.mpd-cart-table-style-modern .mpd-cart-table.shop_table tbody tr:hover {
	background-color: #f8f9ff;
	transform: scale(1.01);
}

.mpd-cart-table-style-modern .woocommerce-cart-form__contents tbody td,
.mpd-cart-table-style-modern .mpd-cart-table.shop_table tbody td {
	padding: 20px 15px;
	border-bottom: 1px solid #f0f0f5;
	vertical-align: middle;
}

.mpd-cart-table-style-modern .woocommerce-cart-form__contents tbody tr:last-child td,
.mpd-cart-table-style-modern .mpd-cart-table.shop_table tbody tr:last-child td {
	border-bottom: none;
}

.mpd-cart-table-style-modern .product-thumbnail img {
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mpd-cart-table-style-modern .product-remove a {
	width: 32px;
	height: 32px;
	background: #fee2e2;
	color: #ef4444;
	border-radius: 8px;
}

.mpd-cart-table-style-modern .product-remove a:hover {
	background: #ef4444;
	color: #fff;
}

.mpd-cart-table-style-modern .mpd-cart-actions-wrapper,
.mpd-cart-table-style-modern .actions {
	border-top: 2px solid #f0f0f5;
	padding-top: 25px;
	margin-top: 20px;
}

.mpd-cart-table-style-modern .mpd-coupon-form-wrapper input.input-text,
.mpd-cart-table-style-modern .actions .coupon input.input-text {
	border-radius: 8px;
	border: 2px solid #e5e7eb;
	padding: 12px 16px;
}

.mpd-cart-table-style-modern .mpd-coupon-form-wrapper input.input-text:focus,
.mpd-cart-table-style-modern .actions .coupon input.input-text:focus {
	border-color: #667eea;
	outline: none;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mpd-cart-table-style-modern .mpd-coupon-form-wrapper button,
.mpd-cart-table-style-modern .mpd-update-cart-wrapper button,
.mpd-cart-table-style-modern .actions .coupon button,
.mpd-cart-table-style-modern .actions button[name="update_cart"] {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 8px;
	padding: 12px 24px;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.5px;
}

.mpd-cart-table-style-modern .mpd-coupon-form-wrapper button:hover,
.mpd-cart-table-style-modern .mpd-update-cart-wrapper button:hover,
.mpd-cart-table-style-modern .actions .coupon button:hover,
.mpd-cart-table-style-modern .actions button[name="update_cart"]:hover {
	background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
}

/* Minimal Style - Clean and simple, borderless look */
.mpd-cart-table-style-minimal .woocommerce-cart-form__contents,
.mpd-cart-table-style-minimal .mpd-cart-table.shop_table {
	border: none;
}

.mpd-cart-table-style-minimal .woocommerce-cart-form__contents thead th,
.mpd-cart-table-style-minimal .mpd-cart-table.shop_table thead th {
	background: transparent;
	color: #9ca3af;
	font-weight: 500;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 1px;
	padding: 12px 15px;
	border-bottom: 1px solid #e5e7eb;
}

.mpd-cart-table-style-minimal .woocommerce-cart-form__contents tbody td,
.mpd-cart-table-style-minimal .mpd-cart-table.shop_table tbody td {
	padding: 24px 15px;
	border-bottom: 1px solid #f3f4f6;
	background: transparent;
}

.mpd-cart-table-style-minimal .woocommerce-cart-form__contents tbody tr:last-child td,
.mpd-cart-table-style-minimal .mpd-cart-table.shop_table tbody tr:last-child td {
	border-bottom: 1px solid #e5e7eb;
}

.mpd-cart-table-style-minimal .product-thumbnail img {
	border-radius: 4px;
	border: 1px solid #f0f0f0;
}

.mpd-cart-table-style-minimal .product-name a {
	font-weight: 500;
	color: #1f2937;
}

.mpd-cart-table-style-minimal .product-name a:hover {
	color: #4b5563;
}

.mpd-cart-table-style-minimal .product-remove a {
	width: 24px;
	height: 24px;
	font-size: 18px;
	color: #9ca3af;
	background: transparent;
}

.mpd-cart-table-style-minimal .product-remove a:hover {
	color: #ef4444;
	background: transparent;
}

.mpd-cart-table-style-minimal .mpd-cart-actions-wrapper,
.mpd-cart-table-style-minimal .actions {
	border-top: none;
	padding-top: 20px;
	margin-top: 10px;
}

.mpd-cart-table-style-minimal .mpd-coupon-form-wrapper input.input-text,
.mpd-cart-table-style-minimal .actions .coupon input.input-text {
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	padding: 10px 14px;
	background: #f9fafb;
}

.mpd-cart-table-style-minimal .mpd-coupon-form-wrapper input.input-text:focus,
.mpd-cart-table-style-minimal .actions .coupon input.input-text:focus {
	border-color: #1f2937;
	background: #fff;
	outline: none;
}

.mpd-cart-table-style-minimal .mpd-coupon-form-wrapper button,
.mpd-cart-table-style-minimal .mpd-update-cart-wrapper button,
.mpd-cart-table-style-minimal .actions .coupon button,
.mpd-cart-table-style-minimal .actions button[name="update_cart"] {
	background: #1f2937;
	border: none;
	border-radius: 4px;
	padding: 10px 20px;
	font-weight: 500;
	font-size: 13px;
}

.mpd-cart-table-style-minimal .mpd-coupon-form-wrapper button:hover,
.mpd-cart-table-style-minimal .mpd-update-cart-wrapper button:hover,
.mpd-cart-table-style-minimal .actions .coupon button:hover,
.mpd-cart-table-style-minimal .actions button[name="update_cart"]:hover {
	background: #374151;
}

/* Quantity input styles for table styles */
.mpd-cart-table-style-modern .quantity input.qty {
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	padding: 8px 12px;
}

.mpd-cart-table-style-modern .mpd-quantity-wrapper {
	border: 2px solid #e5e7eb;
	border-radius: 8px;
}

.mpd-cart-table-style-minimal .quantity input.qty {
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	padding: 8px 10px;
	background: #f9fafb;
}

.mpd-cart-table-style-minimal .mpd-quantity-wrapper {
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	background: #f9fafb;
}

/* ==========================================================================
   Cart Totals Widget
   ========================================================================== */

.mpd-cart-totals {
	max-width: 100%;
}

.mpd-cart-totals-inner {
	padding: 25px;
	background: #f8f9fa;
	border-radius: 8px;
}

.mpd-cart-totals-title {
	margin: 0 0 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #e5e5e5;
	font-size: 20px;
	font-weight: 600;
}

.mpd-cart-totals table {
	width: 100%;
	border-collapse: collapse;
}

.mpd-cart-totals th,
.mpd-cart-totals td {
	padding: 12px 0;
	border-bottom: 1px solid #e5e5e5;
}

.mpd-cart-totals th {
	text-align: left;
	font-weight: 500;
}

.mpd-cart-totals td {
	text-align: right;
}

.mpd-cart-totals .mpd-cart-total-row th,
.mpd-cart-totals .mpd-cart-total-row td {
	font-size: 18px;
	font-weight: 700;
	border-bottom: none;
	padding-top: 15px;
}

.mpd-cart-totals .mpd-checkout-button-wrapper {
	margin-top: 20px;
}

.mpd-cart-totals .mpd-checkout-button,
.mpd-cart-totals .checkout-button {
	display: block;
	width: 100%;
	padding: 15px 20px;
	text-align: center;
	text-decoration: none;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s;
	box-sizing: border-box;
}

.mpd-cart-totals .mpd-checkout-button:hover,
.mpd-cart-totals .checkout-button:hover {
	background: #005177;
	color: #fff;
}

/* WooCommerce cart totals integration */
.mpd-cart-totals .wc-proceed-to-checkout {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mpd-cart-totals .wc-proceed-to-checkout a.button,
.mpd-cart-totals .wc-proceed-to-checkout a.checkout-button {
	display: block;
	width: 100%;
	padding: 15px 20px;
	text-align: center;
	text-decoration: none;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s;
	box-sizing: border-box;
}

.mpd-cart-totals .wc-proceed-to-checkout a.button:hover,
.mpd-cart-totals .wc-proceed-to-checkout a.checkout-button:hover {
	background: #005177;
	color: #fff;
}

/* Savings Display */
.mpd-cart-savings {
	margin-top: 15px;
	padding: 12px 15px;
	background: #d4edda;
	border-radius: 4px;
	text-align: center;
}

.mpd-cart-savings-text {
	color: #155724;
	font-weight: 500;
}

/* Free Shipping Notice */
.mpd-free-shipping-notice {
	margin-top: 15px;
	padding: 15px;
	background: #fff3cd;
	border-radius: 4px;
}

.mpd-free-shipping-notice.mpd-shipping-free {
	background: #d4edda;
}

.mpd-free-shipping-progress {
	height: 8px;
	background: #e9ecef;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 10px;
}

.mpd-free-shipping-progress-bar {
	height: 100%;
	background: #28a745;
	border-radius: 4px;
	transition: width 0.3s ease;
}

.mpd-free-shipping-text {
	font-size: 14px;
	text-align: center;
}

/* Coupon List in Totals */
.mpd-cart-totals .mpd-coupon-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 5px 0;
}

.mpd-cart-totals .mpd-coupon-item .remove-coupon {
	color: #e74c3c;
	text-decoration: none;
	font-size: 12px;
}

/* ==========================================================================
   Cross-Sells Widget
   ========================================================================== */

.mpd-cross-sells {
	margin: 30px 0;
}

.mpd-cross-sells-title {
	margin-bottom: 25px;
	font-size: 22px;
	font-weight: 600;
}

/* Grid layout (matches .mpd-cross-sells-grid from widget render) */
.mpd-cross-sells-grid {
	display: grid;
	gap: 25px;
	grid-template-columns: repeat(4, 1fr);
}

/* Legacy class support */
.mpd-cross-sells-products {
	display: grid;
	gap: 25px;
}

.mpd-cross-sells-products.mpd-columns-2,
.mpd-cross-sells-grid.mpd-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.mpd-cross-sells-products.mpd-columns-3,
.mpd-cross-sells-grid.mpd-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.mpd-cross-sells-products.mpd-columns-4,
.mpd-cross-sells-grid.mpd-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.mpd-cross-sell-product {
	text-align: center;
	padding: 20px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	transition: box-shadow 0.3s ease;
	position: relative;
	display: flex;
	flex-direction: column;
}

.mpd-cross-sell-product:hover {
	box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.mpd-cross-sell-product-image {
	position: relative;
	margin-bottom: 15px;
}

.mpd-cross-sell-product-image img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.mpd-cross-sell-product-image .onsale {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #e74c3c;
	color: #fff;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 3px;
}

.mpd-cross-sell-product-title {
	font-size: 16px;
	font-weight: 500;
	margin-bottom: 10px;
}

.mpd-cross-sell-product-title a {
	color: inherit;
	text-decoration: none;
}

.mpd-cross-sell-product-title a:hover {
	color: #0073aa;
}

.mpd-cross-sell-product-price {
	margin-bottom: 10px;
	font-size: 16px;
	font-weight: 600;
}

.mpd-cross-sell-product-price del {
	opacity: 0.6;
	font-weight: 400;
	margin-right: 5px;
}

.mpd-cross-sell-product-price ins {
	text-decoration: none;
	color: #e74c3c;
}

.mpd-cross-sell-product-rating {
	margin-bottom: 15px;
}

.mpd-cross-sell-product-rating .star-rating {
	display: inline-block;
	font-size: 14px;
	color: #f39c12;
}

/* Star Rating Icons */
.mpd-product-rating {
	margin: 10px 0;
	display: flex;
	justify-content: center;
}

.mpd-star-rating {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 16px;
	line-height: 1;
}

/* Content Alignment */
.mpd-cross-sell-product.mpd-align-left {
	text-align: left;
}

.mpd-cross-sell-product.mpd-align-left .mpd-product-info {
	text-align: left;
}

.mpd-cross-sell-product.mpd-align-left .mpd-product-rating .mpd-star-rating {
	justify-content: flex-start;
}

.mpd-cross-sell-product.mpd-align-left .mpd-add-to-cart-wrap {
	text-align: left;
}

.mpd-cross-sell-product.mpd-align-center {
	text-align: center;
}

.mpd-cross-sell-product.mpd-align-center .mpd-product-info {
	text-align: center;
}

.mpd-cross-sell-product.mpd-align-center .mpd-product-rating .mpd-star-rating {
	justify-content: center;
}

.mpd-cross-sell-product.mpd-align-center .mpd-add-to-cart-wrap {
	text-align: center;
}

.mpd-cross-sell-product .mpd-star-rating{
	width: 100%;
}

.mpd-cross-sell-product.mpd-align-right {
	text-align: right;
}

.mpd-cross-sell-product.mpd-align-right .mpd-product-info {
	text-align: right;
}

.mpd-cross-sell-product.mpd-align-right .mpd-product-rating .mpd-star-rating {
	justify-content: flex-end;
}

.mpd-cross-sell-product.mpd-align-right .mpd-add-to-cart-wrap {
	text-align: right;
}

.mpd-star {
	color: #ddd;
	transition: color 0.2s;
	display: inline-block;
}

.mpd-star-full {
	color: #f5a623;
}

.mpd-star-half {
	color: #f5a623;
	position: relative;
}

.mpd-star-empty {
	color: #ddd;
}
.wc-block-components-button:not(.is-link){
	text-decoration: inherit;
}
/* Product Info Content Padding */
.mpd-cross-sell-product .mpd-product-info {
	padding: 15px;
}

/* Product title styling */
.mpd-cross-sell-product .woocommerce-loop-product__title {
	font-size: 16px;
	font-weight: 500;
	margin: 0 0 10px;
	line-height: 1.4;
}

.mpd-cross-sell-product .woocommerce-loop-product__title a {
	color: inherit;
	text-decoration: none;
}

.mpd-cross-sell-product .woocommerce-loop-product__title a:hover {
	color: #0073aa;
}

/* Product price styling */
.mpd-cross-sell-product .price {
	display: block;
	margin-bottom: 15px;
	font-size: 16px;
	font-weight: 600;
}

.mpd-cross-sell-product .price del {
	opacity: 0.6;
	font-weight: 400;
	margin-right: 5px;
}

.mpd-cross-sell-product .price ins {
	text-decoration: none;
	color: #e74c3c;
}

/* Image Link Styling */
.mpd-cross-sell-product .mpd-cross-sell-image-link,
.mpd-cross-sell-product .woocommerce-LoopProduct-link {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	margin-bottom: 15px;
}

.mpd-cross-sell-product .mpd-cross-sell-image-link img,
.mpd-cross-sell-product .woocommerce-LoopProduct-link img {
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

.mpd-cross-sell-product:hover .mpd-cross-sell-image-link img,
.mpd-cross-sell-product:hover .woocommerce-LoopProduct-link img {
	transform: scale(1.05);
}

/* Sale Badge */
.mpd-cross-sell-product .onsale {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #e74c3c;
	color: #fff;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 3px;
	z-index: 1;
}

/* Add to Cart Button */
.mpd-cross-sell-product .mpd-add-to-cart-wrap {
	margin-top: 15px;
}

.mpd-cross-sell-product .add_to_cart_button,
.mpd-cross-sell-product .button {
	display: inline-block;
	padding: 10px 20px;
	background: #333;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	border: none;
	font-weight: 500;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.mpd-cross-sell-product .add_to_cart_button:hover,
.mpd-cross-sell-product .button:hover {
	background: #0073aa;
	color: #fff;
}

/* Add to Cart Loading State */
.mpd-cross-sell-product .add_to_cart_button.loading {
	opacity: 0.7;
	pointer-events: none;
	position: relative;
}

.mpd-cross-sell-product .add_to_cart_button.loading::after {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: 8px;
	border: 2px solid #fff;
	border-top-color: transparent;
	border-radius: 50%;
	animation: mpd-spin 0.8s linear infinite;
	vertical-align: middle;
}

.mpd-cross-sell-product .add_to_cart_button.added::after {
	content: "✓";
	margin-left: 8px;
	animation: none;
	border: none;
}

/* Cross-sells Carousel */
.mpd-cross-sells-carousel {
	position: relative;
	padding: 0 50px;
}

.mpd-cross-sells-swiper {
	overflow: hidden;
}

.mpd-cross-sells-carousel .swiper-button-prev,
.mpd-cross-sells-carousel .swiper-button-next {
	width: 40px;
	height: 40px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0,0,0,0.15);
	transition: all 0.3s ease;
	top: 50%;
	transform: translateY(-50%);
	margin-top: 0;
}

.mpd-cross-sells-carousel .swiper-button-prev {
	left: 0;
}

.mpd-cross-sells-carousel .swiper-button-next {
	right: 0;
}

.mpd-cross-sells-carousel .swiper-button-prev:hover,
.mpd-cross-sells-carousel .swiper-button-next:hover {
	background: #0073aa;
	box-shadow: 0 4px 15px rgba(0,115,170,0.3);
}

.mpd-cross-sells-carousel .swiper-button-prev:after,
.mpd-cross-sells-carousel .swiper-button-next:after {
	font-size: 16px;
	font-weight: bold;
	color: #333;
	transition: color 0.3s ease;
}

.mpd-cross-sells-carousel .swiper-button-prev:hover:after,
.mpd-cross-sells-carousel .swiper-button-next:hover:after {
	color: #fff;
}

.mpd-cross-sells-carousel .swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* Carousel Pagination Dots */
.mpd-cross-sells-carousel .swiper-pagination {
	position: relative;
	margin-top: 20px;
	bottom: auto;
}

.mpd-cross-sells-carousel .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #ddd;
	opacity: 1;
	transition: all 0.3s ease;
}

.mpd-cross-sells-carousel .swiper-pagination-bullet:hover {
	background: #999;
}

.mpd-cross-sells-carousel .swiper-pagination-bullet-active {
	background: #0073aa;
	transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
	.mpd-cross-sells-products.mpd-columns-3,
	.mpd-cross-sells-products.mpd-columns-4,
	.mpd-cross-sells-grid.mpd-columns-3,
	.mpd-cross-sells-grid.mpd-columns-4,
	.mpd-cross-sells-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.mpd-cross-sells-products,
	.mpd-cross-sells-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Coupon Form Widget
   ========================================================================== */

.mpd-coupon-form {
	padding: 20px;
	background: #f8f9fa;
	border-radius: 8px;
}

.mpd-coupon-form-title {
	margin: 0 0 15px;
	font-size: 16px;
	font-weight: 600;
}

.mpd-coupon-form-inner {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

/* Inline layout (default) */
.mpd-coupon-form.mpd-coupon-form-inline .mpd-coupon-form-inner {
	flex-direction: row;
	justify-content: flex-start;
	align-items: stretch;
}

/* Stacked layout */
.mpd-coupon-form.mpd-coupon-form-stacked .mpd-coupon-form-inner {
	flex-direction: column;
	align-items: stretch;
}

.mpd-coupon-form .mpd-coupon-field {
	flex: 1;
}

.mpd-coupon-form input.input-text,
.mpd-coupon-form input[name="coupon_code"] {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	transition: border-color 0.3s;
	box-sizing: border-box;
}

.mpd-coupon-form input.input-text:focus,
.mpd-coupon-form input[name="coupon_code"]:focus {
	outline: none;
	border-color: #0073aa;
}

.mpd-coupon-form .mpd-coupon-button {
	flex-shrink: 0;
}

.mpd-coupon-form .mpd-coupon-button button,
.mpd-coupon-form button[name="apply_coupon"] {
	padding: 12px 24px;
	background: #333;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s;
	white-space: nowrap;
	height: 100%;
}

.mpd-coupon-form .mpd-coupon-button button:hover,
.mpd-coupon-form button[name="apply_coupon"]:hover {
	background: #0073aa;
}

/* Applied Coupons */
.mpd-applied-coupons {
	margin-bottom: 15px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mpd-applied-coupon {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: #e8f4fd;
	border-radius: 4px;
	font-size: 14px;
}

.mpd-applied-coupon .coupon-code {
	font-weight: 600;
	text-transform: uppercase;
}

.mpd-applied-coupon .remove-coupon {
	color: #e74c3c;
	text-decoration: none;
	font-size: 16px;
	line-height: 1;
}

.mpd-applied-coupon .remove-coupon:hover {
	color: #c0392b;
}

/* Coupon Suggestions */
.mpd-coupon-suggestions {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e5e5e5;
}

.mpd-coupon-suggestions-title {
	margin: 0 0 15px;
	font-size: 14px;
	font-weight: 600;
	color: #666;
}

.mpd-coupon-suggestions-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mpd-coupon-suggestion {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 15px;
	background: #fff;
	border: 1px dashed #ddd;
	border-radius: 4px;
}

.mpd-coupon-suggestion .coupon-code {
	font-weight: 600;
	color: #0073aa;
	text-transform: uppercase;
}

.mpd-coupon-suggestion .coupon-description {
	flex: 1;
	margin-left: 15px;
	font-size: 13px;
	color: #666;
}

.mpd-coupon-suggestion .apply-suggestion {
	padding: 6px 12px;
	background: none;
	border: 1px solid #0073aa;
	color: #0073aa;
	border-radius: 3px;
	cursor: pointer;
	font-size: 13px;
	transition: all 0.3s;
}

.mpd-coupon-suggestion .apply-suggestion:hover {
	background: #0073aa;
	color: #fff;
}

/* Coupon AJAX Messages */
.mpd-coupon-message {
	padding: 12px 15px;
	margin-top: 15px;
	border-radius: 4px;
	font-size: 14px;
}

.mpd-coupon-message.mpd-coupon-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.mpd-coupon-message.mpd-coupon-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Coupon form loading state */
.mpd-coupon-form.loading button[name="apply_coupon"],
.mpd-coupon-form.loading .apply-suggestion {
	opacity: 0.7;
	pointer-events: none;
	cursor: wait;
}

.mpd-coupon-form.loading button[name="apply_coupon"]::after {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-left: 8px;
	border: 2px solid #fff;
	border-top-color: transparent;
	border-radius: 50%;
	animation: mpd-spin 0.8s linear infinite;
}

@keyframes mpd-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ==========================================================================
   Mini Cart Widget
   ========================================================================== */

.mpd-mini-cart {
	position: relative;
	display: flex;
	width: 100%;
	justify-content: flex-end;
}

.mpd-mini-cart.mpd-mini-cart-align-left {
	justify-content: flex-start;
}

.mpd-mini-cart.mpd-mini-cart-align-center {
	justify-content: center;
}

.mpd-mini-cart.mpd-mini-cart-align-right {
	justify-content: flex-end;
}

.mpd-mini-cart-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.mpd-mini-cart-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	line-height: 1;
}

.mpd-mini-cart-icon i,
.mpd-mini-cart-icon svg {
	font-size: inherit;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.mpd-mini-cart-counter {
	position: absolute;
	top: -8px;
	right: -8px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	background: #e74c3c;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 20px;
	text-align: center;
	border-radius: 10px;
}

.mpd-mini-cart-text {
	font-weight: 500;
}

.mpd-mini-cart-subtotal {
	font-weight: 600;
}

/* Dropdown */
.mpd-mini-cart-dropdown {
	position: absolute;
	z-index: 1000;
	top: 100%;
	width: 300px;
	padding: 20px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	box-shadow: 0 5px 25px rgba(0,0,0,0.15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s ease;
}

.mpd-mini-cart-dropdown.mpd-dropdown-bottom-left {
	left: 0;
	right: auto;
}

.mpd-mini-cart-dropdown.mpd-dropdown-bottom-center {
	left: 50%;
	right: auto;
	transform: translateX(-50%) translateY(10px);
}

.mpd-mini-cart:hover .mpd-mini-cart-dropdown.mpd-dropdown-bottom-center {
	transform: translateX(-50%) translateY(0);
}

.mpd-mini-cart-dropdown.mpd-dropdown-bottom-right {
	right: 0;
	left: auto;
}

.mpd-mini-cart:hover .mpd-mini-cart-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.mpd-mini-cart-empty {
	text-align: center;
	padding: 20px;
	color: #888;
}

.mpd-mini-cart-products {
	max-height: 300px;
	overflow-y: auto;
	margin-bottom: 15px;
}

.mpd-mini-cart-product {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
}

.mpd-mini-cart-product:last-child {
	border-bottom: none;
}

.mpd-mini-cart-product-image {
	width: 50px;
	height: 50px;
	flex-shrink: 0;
}

.mpd-mini-cart-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 4px;
}

.mpd-mini-cart-product-details {
	flex: 1;
	min-width: 0;
}

.mpd-mini-cart-product-name {
	margin: 0 0 5px;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mpd-mini-cart-product-name a {
	color: inherit;
	text-decoration: none;
}

.mpd-mini-cart-product-price {
	font-size: 13px;
	color: #666;
}

.mpd-mini-cart-remove {
	color: #e74c3c;
	text-decoration: none;
	font-size: 18px;
	line-height: 1;
}

.mpd-mini-cart-more {
	text-align: center;
	padding: 10px;
	font-size: 13px;
	color: #666;
}

.mpd-mini-cart-subtotal-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
	border-top: 2px solid #e5e5e5;
	font-size: 16px;
}

.mpd-mini-cart-buttons {
	display: flex;
	justify-content: stretch;
	align-items: stretch;
	gap: 10px;
}

.mpd-mini-cart-buttons .button {
	flex: 1;
	padding: 12px 15px;
	text-align: center;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s;
	display: inline-flex;
	justify-content: center;
	align-items: center;
}

.mpd-mini-cart-buttons .view-cart {
	background: #f5f5f5;
	color: #333;
}

.mpd-mini-cart-buttons .view-cart:hover {
	background: #e5e5e5;
}

.mpd-mini-cart-buttons .checkout {
	background: #0073aa;
	color: #fff;
}

.mpd-mini-cart-buttons .checkout:hover {
	background: #005177;
}

/* Slide-out Panel (Pro) */
.mpd-mini-cart-panel {
	position: fixed;
	z-index: 9999;
	top: 0;
	bottom: 0;
	width: 400px;
	background: #fff;
	box-shadow: -5px 0 25px rgba(0,0,0,0.15);
	transform: translateX(100%);
	transition: transform 0.3s ease;
}

.mpd-mini-cart-panel.mpd-panel-left {
	left: 0;
	transform: translateX(-100%);
	box-shadow: 5px 0 25px rgba(0,0,0,0.15);
}

.mpd-mini-cart-panel.mpd-panel-right {
	right: 0;
	transform: translateX(100%);
}

.mpd-mini-cart-panel.active {
	transform: translateX(0);
}

.mpd-panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid #e5e5e5;
}

.mpd-panel-header h3 {
	margin: 0;
	font-size: 18px;
}

.mpd-panel-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
}

.mpd-panel-content {
	padding: 20px;
	height: calc(100% - 80px);
	overflow-y: auto;
}

.mpd-mini-cart-overlay {
	position: fixed;
	z-index: 9998;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.5);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.mpd-mini-cart-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* Floating Cart (Pro) */
.mpd-mini-cart.mpd-mini-cart-floating {
	position: fixed;
	z-index: 9999;
	width: auto;
}

/* Editor preview - use relative positioning */
.elementor-editor-active .mpd-mini-cart.mpd-mini-cart-floating {
	position: relative;
	bottom: auto;
	left: auto;
	right: auto;
	z-index: 1;
}

.mpd-mini-cart.mpd-floating-bottom-left {
	bottom: 30px;
	left: 30px;
	right: auto;
}

.mpd-mini-cart.mpd-floating-bottom-right {
	bottom: 30px;
	right: 30px;
	left: auto;
}

.mpd-mini-cart-floating .mpd-mini-cart-toggle {
	width: 60px;
	height: 60px;
	padding: 0;
	background: #0073aa;
	color: #fff;
	border-radius: 50%;
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
	justify-content: center;
	transition: transform 0.3s ease;
}

.mpd-mini-cart-floating .mpd-mini-cart-icon {
	font-size: 24px;
	line-height: 1;
}

.mpd-mini-cart-floating .mpd-mini-cart-icon i,
.mpd-mini-cart-floating .mpd-mini-cart-icon svg {
	font-size: 24px;
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.mpd-mini-cart-floating .mpd-mini-cart-text,
.mpd-mini-cart-floating .mpd-mini-cart-subtotal {
	display: none;
}

.mpd-mini-cart-floating .mpd-mini-cart-counter {
	top: -5px;
	right: -5px;
}

.mpd-mini-cart-floating .mpd-mini-cart-toggle:hover {
	transform: scale(1.1);
}

/* ==========================================================================
   Empty Cart Widget
   ========================================================================== */

.mpd-empty-cart {
	padding: 60px 40px;
	text-align: center;
}

.mpd-empty-cart-icon {
	margin-bottom: 25px;
}

.mpd-empty-cart-icon i,
.mpd-empty-cart-icon svg {
	font-size: 80px;
	color: #ccc;
}

.mpd-empty-cart-title {
	margin: 0 0 15px;
	font-size: 28px;
	font-weight: 600;
	color: #333;
}

.mpd-empty-cart-description {
	margin: 0 0 30px;
	font-size: 16px;
	color: #666;
	line-height: 1.6;
	margin-left: auto;
	margin-right: auto;
}

.mpd-empty-cart-button-wrapper {
	margin-top: 25px;
}

.mpd-empty-cart-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 35px;
	background: #0073aa;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	transition: all 0.3s;
}

.mpd-empty-cart-button:hover {
	background: #005177;
	color: #fff;
	transform: translateY(-2px);
}

/* Animations (Pro) */
.mpd-empty-cart.mpd-animation-fade {
	animation: mpdFadeIn 0.6s ease;
}

.mpd-empty-cart.mpd-animation-slide {
	animation: mpdSlideUp 0.6s ease;
}

.mpd-empty-cart.mpd-animation-bounce {
	animation: mpdBounce 0.8s ease;
}

.mpd-empty-cart.mpd-animation-pulse {
	animation: mpdPulse 1s ease;
}

@keyframes mpdFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes mpdSlideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes mpdBounce {
	0%, 20%, 50%, 80%, 100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-15px);
	}
	60% {
		transform: translateY(-7px);
	}
}

@keyframes mpdPulse {
	0% {
		transform: scale(0.95);
		opacity: 0;
	}
	50% {
		transform: scale(1.02);
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

/* Product Suggestions */
.mpd-empty-cart-suggestions {
	margin-top: 50px;
	padding-top: 40px;
	border-top: 1px solid #e5e5e5;
}

.mpd-suggestions-title {
	margin-bottom: 25px;
	font-size: 20px;
	font-weight: 600;
}

.mpd-suggestions-products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.mpd-suggestion-product {
	text-align: center;
}

.mpd-suggestion-product a {
	text-decoration: none;
	color: inherit;
}

.mpd-suggestion-product img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin-bottom: 12px;
	transition: transform 0.3s;
}

.mpd-suggestion-product:hover img {
	transform: scale(1.05);
}

.mpd-suggestion-title {
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 5px;
}

.mpd-suggestion-price {
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

@media (max-width: 768px) {
	.mpd-suggestions-products {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ==========================================================================
   Editor Notices
   ========================================================================== */

.mpd-editor-notice {
	text-align: center;
	padding: 15px;
	background: #e8f4fd;
	color: #0c5460;
	border-radius: 4px;
	margin-top: 20px;
	font-size: 14px;
}

.mpd-editor-notice strong {
	display: block;
	margin-bottom: 5px;
}

/* ==========================================================================
   Additional Fixes & Enhancements
   ========================================================================== */

/* Mini cart counter pulse animation */
.mpd-mini-cart-counter.mpd-pulse {
	animation: mpdCounterPulse 0.6s ease;
}

@keyframes mpdCounterPulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.3);
	}
}

/* Mini cart dropdown flash animation */
.mpd-mini-cart-dropdown.mpd-flash {
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateY(0) !important;
}

/* Product removing state */
.mpd-mini-cart-product.mpd-removing {
	opacity: 0.5;
	pointer-events: none;
}

/* Body class when cart panel is open */
body.mpd-cart-panel-open {
	overflow: hidden;
}

/* Cross-sell product card - match rendered markup */
.mpd-cross-sell-product {
	text-align: center;
	padding: 20px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	transition: box-shadow 0.3s ease;
	position: relative;
}

.mpd-cross-sell-product:hover {
	box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.mpd-cross-sell-product .onsale {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #e74c3c;
	color: #fff;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 3px;
	z-index: 1;
}

.mpd-cross-sell-product .woocommerce-LoopProduct-link {
	display: block;
	margin-bottom: 15px;
}

.mpd-cross-sell-product .woocommerce-LoopProduct-link img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.mpd-cross-sell-product .mpd-product-info {
	text-align: center;
}

.mpd-cross-sell-product .woocommerce-loop-product__title {
	font-size: 16px;
	font-weight: 500;
	margin: 0 0 10px;
}

.mpd-cross-sell-product .woocommerce-loop-product__title a {
	color: inherit;
	text-decoration: none;
}

.mpd-cross-sell-product .woocommerce-loop-product__title a:hover {
	color: #0073aa;
}

.mpd-cross-sell-product .price {
	display: block;
	margin-bottom: 15px;
	font-size: 16px;
	font-weight: 600;
}

.mpd-cross-sell-product .price del {
	opacity: 0.6;
	font-weight: 400;
	margin-right: 5px;
}

.mpd-cross-sell-product .price ins {
	text-decoration: none;
	color: #e74c3c;
}

.mpd-cross-sell-product .star-rating {
	display: inline-flex;
	justify-content: center;
	margin-bottom: 10px;
	font-size: 14px;
	color: #f39c12;
}

.mpd-cross-sell-product .add_to_cart_button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	padding: 10px 20px;
	background: #333;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 500;
	transition: background 0.3s;
}

.mpd-cross-sell-product .add_to_cart_button:hover {
	background: #0073aa;
	color: #fff;
}

/* Empty cart button alignment */
.mpd-empty-cart-button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	padding: 15px 35px;
	background: #0073aa;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	transition: all 0.3s;
}

.mpd-empty-cart-button:hover {
	background: #005177;
	color: #fff;
	transform: translateY(-2px);
}

.mpd-empty-cart-button-wrapper {
	margin-top: 25px;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Free shipping progress bar enhancements */
.mpd-free-shipping-notice {
	margin-bottom: 15px;
	padding: 15px;
	background: #fff3cd;
	border-radius: 4px;
	text-align: center;
}

.mpd-free-shipping-notice.mpd-free-shipping-achieved {
	background: #d4edda;
	color: #155724;
}

.mpd-free-shipping-notice .dashicons {
	vertical-align: middle;
	margin-right: 5px;
}

.mpd-free-shipping-progress {
	height: 8px;
	background: #e9ecef;
	border-radius: 4px;
	overflow: hidden;
	margin-top: 10px;
}

.mpd-free-shipping-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #28a745, #20c997);
	border-radius: 4px;
	transition: width 0.5s ease;
}

/* Cart totals table alignment */
.mpd-cart-totals .shop_table {
	width: 100%;
	border-collapse: collapse;
}

.mpd-cart-totals .shop_table th,
.mpd-cart-totals .shop_table td {
	padding: 12px;
	border-bottom: 1px solid #e5e5e5;
	vertical-align: top;
}

.mpd-cart-totals .shop_table th {
	text-align: left;
	font-weight: 500;
}

.mpd-cart-totals .shop_table td {
	text-align: right;
}

.mpd-cart-totals .shop_table .order-total th,
.mpd-cart-totals .shop_table .order-total td {
	font-size: 18px;
	font-weight: 700;
	border-bottom: none;
	padding-top: 15px;
}

/* WooCommerce notices in cart table */
.mpd-cart-table-wrapper .woocommerce-error,
.mpd-cart-table-wrapper .woocommerce-message,
.mpd-cart-table-wrapper .woocommerce-info,
.elementor-widget-mpd-cart-table .woocommerce-error,
.elementor-widget-mpd-cart-table .woocommerce-message,
.elementor-widget-mpd-cart-table .woocommerce-info {
	padding: 15px 20px;
	margin-bottom: 20px;
	border-radius: 4px;
	list-style: none;
}

.mpd-cart-table-wrapper .woocommerce-error,
.elementor-widget-mpd-cart-table .woocommerce-error {
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	color: #dc2626;
}

.mpd-cart-table-wrapper .woocommerce-message,
.elementor-widget-mpd-cart-table .woocommerce-message {
	background-color: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #16a34a;
}

.mpd-cart-table-wrapper .woocommerce-info,
.elementor-widget-mpd-cart-table .woocommerce-info {
	background-color: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #2563eb;
}

.mpd-cart-table-wrapper .woocommerce-error li,
.mpd-cart-table-wrapper .woocommerce-message li,
.mpd-cart-table-wrapper .woocommerce-info li,
.elementor-widget-mpd-cart-table .woocommerce-error li,
.elementor-widget-mpd-cart-table .woocommerce-message li,
.elementor-widget-mpd-cart-table .woocommerce-info li {
	list-style: none;
	margin: 0;
	padding-left: 30px !important;
}

/* Coupon button loading state */
.mpd-coupon-form-wrapper button.loading {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}

.mpd-coupon-form-wrapper button.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: mpd-coupon-spin 0.6s linear infinite;
}

@keyframes mpd-coupon-spin {
	to {
		transform: rotate(360deg);
	}
}

/* AJAX Cart Table Loading States */
.mpd-cart-table-wrapper.mpd-cart-loading {
	position: relative;
	pointer-events: none;
}

.mpd-cart-table-wrapper.mpd-cart-loading::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.6);
	z-index: 10;
}

.mpd-cart-table-wrapper .cart_item.mpd-updating {
	opacity: 0.5;
	position: relative;
}

.mpd-cart-table-wrapper tr.mpd-removing {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.mpd-cart-table-wrapper .cart_item.mpd-updating td {
	position: relative;
}

.mpd-cart-table-wrapper .cart_item.mpd-updating .product-quantity::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid #ddd;
	border-top-color: #333;
	border-radius: 50%;
	animation: mpd-coupon-spin 0.6s linear infinite;
}

/* Coupon form responsive */
@media (max-width: 576px) {
	.mpd-coupon-form.mpd-coupon-form-inline .mpd-coupon-form-inner {
		flex-direction: column;
	}
	
	.mpd-coupon-form .mpd-coupon-button button {
		width: 100%;
	}
}

/* Mini cart responsive */
@media (max-width: 768px) {
	.mpd-mini-cart-panel {
		width: 100% !important;
		max-width: 400px;
	}
	
	.mpd-mini-cart-dropdown {
		width: 280px;
	}
}

/* ==========================================
   MODERN BLOCKUI LOADING OVERLAY
   Replaces WooCommerce default loading spinner
   ========================================== */

.woocommerce .blockUI.blockOverlay,
.woocommerce .loader {
	background-color: rgba(255, 255, 255, 0.7) !important;
	background-image: none !important;
	opacity: 1 !important;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.woocommerce .blockUI.blockOverlay::before,
.woocommerce .loader::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border-radius: 50%;
	border: 3px solid rgba(0, 0, 0, 0.08);
	border-top-color: var(--mpd-primary-color, #3b82f6);
	animation: mpd-blockui-spin 0.7s linear infinite;
	box-sizing: border-box;
}

.woocommerce .blockUI.blockOverlay::after,
.woocommerce .loader::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 24px;
	height: 24px;
	margin: -12px 0 0 -12px;
	border-radius: 50%;
	border: 3px solid rgba(0, 0, 0, 0.05);
	border-bottom-color: var(--mpd-primary-color, #3b82f6);
	animation: mpd-blockui-spin 1.1s linear infinite reverse;
	box-sizing: border-box;
}

@keyframes mpd-blockui-spin {
	0%   { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

