/* OrderNao 2.2.111 — the mini-cart ("Your cart" drawer) uses the same card
 * layout as the main Cart page: thumbnail, name + remove, meta lines, then
 * Price / Quantity stepper / Subtotal rows. Scoped to .fe-mc-* inside
 * WooCommerce's own mini-cart wrapper, with !important on the layout
 * properties because themes (e.g. WoodMart) style li.mini_cart_item heavily. */

.widget_shopping_cart_content ul.woocommerce-mini-cart.fe-mc-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.widget_shopping_cart_content li.fe-mc-item {
	display: flex !important;
	align-items: flex-start !important;
	gap: 14px !important;
	position: relative !important;
	margin: 0 !important;
	padding: 16px 0 !important;
	border: 0 !important;
	border-bottom: 1px solid #eee !important;
	min-height: 0 !important;
	transition: opacity .15s;
}
.widget_shopping_cart_content li.fe-mc-item:first-child { padding-top: 0 !important; }
.widget_shopping_cart_content li.fe-mc-item:last-child { border-bottom: 0 !important; }
.widget_shopping_cart_content li.fe-mc-item.is-busy { opacity: .55; pointer-events: none; }

.fe-mc-thumb { flex: 0 0 auto; }
.widget_shopping_cart_content .fe-mc-thumb img {
	display: block !important;
	position: static !important;
	width: 72px !important;
	height: 72px !important;
	min-width: 72px;
	max-width: none !important;
	margin: 0 !important;
	object-fit: cover;
	border-radius: 10px;
}

.fe-mc-body { flex: 1 1 auto; min-width: 0; }

.fe-mc-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}
.fe-mc-name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: inherit;
	word-break: break-word;
}
.fe-mc-name a { color: inherit; text-decoration: none; }

.widget_shopping_cart_content a.fe-mc-remove {
	position: static !important;
	flex: 0 0 auto;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 26px !important;
	height: 26px !important;
	margin: 0 !important;
	border-radius: 50%;
	background: transparent !important;
	color: #888 !important;
	font-size: 18px !important;
	line-height: 1 !important;
	text-decoration: none;
}
.widget_shopping_cart_content a.fe-mc-remove:hover { background: #f3f3f3 !important; color: #c0392b !important; }

.fe-mc-meta { margin: 6px 0 0 !important; font-size: 13px; line-height: 1.45; color: #555; }
.fe-mc-meta strong { color: #333; }

.fe-mc-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 10px;
	font-size: 14px;
	color: #555;
}
.fe-mc-subtotal span:last-child { color: #2449d6; font-weight: 700; }

.fe-mc-stepper {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid #ddd;
	border-radius: 999px;
	padding: 3px 8px;
}
.widget_shopping_cart_content .fe-mc-stepper button {
	width: 26px;
	height: 26px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	color: #333;
}
.fe-mc-qty-value { min-width: 18px; text-align: center; font-weight: 700; color: #222; }

/* Subtotal row */
.widget_shopping_cart_content .woocommerce-mini-cart__total,
.widget_shopping_cart_content .total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 14px 0 12px;
	padding-top: 12px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	font-size: 15px;
}
.widget_shopping_cart_content .woocommerce-mini-cart__total .woocommerce-Price-amount {
	font-weight: 700;
}

/* Action buttons: stacked, full width, even spacing. */
.widget_shopping_cart_content .woocommerce-mini-cart__buttons.buttons {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
}
.widget_shopping_cart_content .woocommerce-mini-cart__buttons.buttons a.button {
	display: block;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	margin: 0;
}

@media (max-width: 480px) {
	.widget_shopping_cart_content .fe-mc-thumb img {
		width: 60px !important;
		height: 60px !important;
		min-width: 60px;
	}
	.widget_shopping_cart_content li.fe-mc-item { gap: 12px !important; }
}

@media (prefers-color-scheme: dark) {
	.widget_shopping_cart_content li.fe-mc-item { border-bottom-color: #2c2d36 !important; }
	.fe-mc-meta, .fe-mc-row { color: #bbb; }
	.fe-mc-meta strong, .fe-mc-qty-value, .widget_shopping_cart_content .fe-mc-stepper button { color: #f2f2f2; }
	.fe-mc-stepper { border-color: #3a3b45; }
}
