/* Woo Menu Cart – final responsive UI */

.wmc-wrapper {
	display: inline-block;
	position: relative;
	vertical-align: middle;
}

.wmc-hidden-empty {
	display: none !important;
}

.wmc-trigger-container {
	display: inline-flex;
	align-items: center;
	gap: 16px;
}

.wmc-trigger-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	min-height: 0 !important;
	padding: 6px;
	border: 0;
	background: transparent !important;
	color: #25282a;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.wmc-trigger-btn:hover {
	transform: scale(1.06);
}

.wmc-trigger-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wmc-trigger-icon i,
.wmc-trigger-icon svg {
	width: 24px;
	height: 24px;
	font-size: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.wmc-item-count {
	position: absolute;
	top: -9px;
	right: -10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 19px;
	height: 19px;
	padding: 0 4px;
	border-radius: 99px;
	background: #ffc82c;
	color: #151515;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.wmc-order-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 0 !important;
	padding: 12px 25px;
	border: 0;
	border-radius: 99px;
	background: #007b68;
	color: #fff !important;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0, 77, 65, 0.14);
	transition: background 0.2s ease, transform 0.2s ease;
}

.wmc-order-pill:hover {
	background: #006554;
	transform: translateY(-1px);
}

/* Drawer */

.wmc-drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(18, 28, 30, 0.34);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.32s ease;
}

.wmc-drawer-overlay.wmc-open {
	opacity: 1;
	pointer-events: auto;
}

.wmc-side-drawer {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	width: 400px;
	max-width: 100vw;
	height: 100dvh;
	background: #fff;
	box-shadow: -8px 0 30px rgba(0, 0, 0, 0.13);
	transform: translateX(105%);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.wmc-side-drawer.wmc-open {
	transform: translateX(0);
}

body.wmc-drawer-active {
	overflow: hidden;
}

body.admin-bar .wmc-side-drawer {
	top: var(--wp-admin--admin-bar--height, 32px);
	height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px));
}

/* Header */

.wmc-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 24px;
	border-bottom: 1px solid #dedfe0;
}

.wmc-drawer-title {
	margin: 0;
	color: #252525;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.wmc-side-drawer .wmc-close-drawer {
	display: inline-grid !important;
	place-items: center;
	flex: 0 0 29px;
	width: 29px !important;
	min-width: 29px !important;
	height: 29px !important;
	min-height: 29px !important;
	padding: 0 !important;
	border: 2px solid #4b9d90 !important;
	border-radius: 50% !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #397f75;
	font-family: Arial, sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 20px;
	cursor: pointer;
}

.wmc-side-drawer .wmc-close-drawer:hover {
	border-color: #007b68 !important;
	background: #007b68 !important;
	color: #fff !important;
}

/* Loading */

.wmc-drawer-body {
	position: relative;
	display: flex;
	min-height: 0;
	flex: 1;
	flex-direction: column;
	overflow-y: auto;
	padding: 0;
}

.wmc-drawer-body.wmc-loading {
	pointer-events: none;
}

.wmc-drawer-body.wmc-loading::after {
	position: absolute;
	inset: 0;
	z-index: 3;
	background: rgba(255, 255, 255, 0.66);
	content: "";
}

.wmc-drawer-body.wmc-loading::before {
	position: absolute;
	top: 45%;
	left: 50%;
	z-index: 4;
	width: 26px;
	height: 26px;
	margin: -13px;
	border: 3px solid #d5e8e4;
	border-top-color: #007b68;
	border-radius: 50%;
	content: "";
	animation: wmc-spin 0.65s linear infinite;
}

@keyframes wmc-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Product list */

.wmc-drawer-products {
	flex: 1;
	padding: 18px 24px;
}

.wmc-cart-item {
	position: relative;
	display: flex;
	gap: 13px;
	padding: 0 0 17px;
	margin: 0 0 18px;
	border-bottom: 1px solid #eee;
}

.wmc-cart-item:last-child {
	margin-bottom: 0;
}

.wmc-item-thumb {
	flex: 0 0 90px;
}

.wmc-item-thumb img {
	display: block;
	width: 90px;
	height: 90px;
	border-radius: 16px;
	object-fit: cover;
}

.wmc-item-details {
	min-width: 0;
	flex: 1;
}

.wmc-item-title {
	margin: 1px 28px 11px 0;
	color: #232526;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
}

.wmc-item-title a {
	color: inherit;
	text-decoration: none;
}

.wmc-item-title a:hover {
	color: #007b68;
}

.wmc-item-price-row {
	position: absolute;
	right: 0;
	bottom: 23px;
	margin: 0;
}

.wmc-item-price {
	color: #007b68;
	font-size: 16px;
	font-weight: 800;
	white-space: nowrap;
}

.wmc-item-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

/*
 * Simple quantity design:
 * no green fill, no pill background on minus/plus,
 * exactly like your shared reference.
 */
.wmc-side-drawer .wmc-qty-selector {
	display: inline-flex;
	align-items: center;
	overflow: hidden;
	height: 37px;
	border: 1px solid #dce1e2;
	border-radius: 99px;
	background: transparent !important;
	box-shadow: none !important;
}

.wmc-side-drawer .wmc-qty-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 34px !important;
	min-width: 34px !important;
	height: 35px !important;
	min-height: 35px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #4d5658;
	font-family: inherit;
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.wmc-side-drawer .wmc-qty-btn:hover {
	background: #f1f8f6 !important;
	color: #007b68;
}

.wmc-side-drawer .wmc-qty-input {
	width: 35px !important;
	min-width: 35px !important;
	height: 35px !important;
	min-height: 35px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #282c2d;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 35px;
	text-align: center;
	appearance: textfield;
}

.wmc-qty-input::-webkit-inner-spin-button,
.wmc-qty-input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

/* Simple remove X, no green circular background */

.wmc-side-drawer .wmc-remove-item {
	position: absolute;
	top: -2px;
	right: 0;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 25px !important;
	min-width: 25px !important;
	height: 25px !important;
	min-height: 25px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #70797d;
	font-family: Arial, sans-serif;
	font-size: 23px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.wmc-side-drawer .wmc-remove-item:hover {
	background: transparent !important;
	color: #cf3030;
}

/* Footer */

.wmc-drawer-footer {
	padding: 18px 24px 20px;
	border-top: 1px solid #dfe1e2;
	background: #fff;
}

.wmc-coupon-section {
	display: flex;
	gap: 9px;
	margin: 0 0 18px;
}

.wmc-coupon-input {
	min-width: 0;
	flex: 1;
	padding: 11px 13px;
	border: 1px solid #daddde;
	border-radius: 99px;
	background: #fff;
	color: #667076;
	font-family: inherit;
	font-size: 16px;
	outline: 0;
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.09);
}

.wmc-coupon-input:focus {
	border-color: #66aa9f;
	box-shadow: 0 0 0 3px rgba(0, 123, 104, 0.1);
}

.wmc-side-drawer .wmc-coupon-btn {
	min-height: 0 !important;
	padding: 10px 19px !important;
	border: 1px solid #a5d3cc !important;
	border-radius: 99px !important;
	background: #fff !important;
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08) !important;
	color: #007b68;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.wmc-side-drawer .wmc-coupon-btn:hover {
	background: #007b68 !important;
	color: #fff !important;
}

.wmc-summary {
	margin: 0 0 17px;
}

.wmc-summary-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin: 8px 0;
	color: #5f686e;
	font-size: 15px;
	line-height: 1.3;
}

.wmc-summary-row span:last-child {
	color: #34383a;
	font-weight: 500;
	white-space: nowrap;
}

.wmc-summary-coupon span:last-child {
	color: #007b68;
}

.wmc-grand-total {
	margin-top: 11px;
	padding-top: 11px;
	border-top: 1px solid #d9dcdd;
	color: #242627;
	font-size: 18px;
	font-weight: 800;
}

.wmc-grand-total span:last-child {
	color: #007b68;
	font-weight: 800;
}

/* Checkout + continue buttons */

.wmc-buttons {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.wmc-side-drawer .wmc-btn {
	display: block !important;
	width: 100%;
	min-height: 0 !important;
	box-sizing: border-box;
	padding: 15px;
	border: 0 !important;
	border-radius: 99px;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}

.wmc-side-drawer .wmc-btn-checkout {
	background: #007b68 !important;
	color: #fff !important;
}

.wmc-side-drawer .wmc-btn-checkout:hover {
	background: #006553 !important;
	transform: translateY(-1px);
}

.wmc-side-drawer .wmc-btn-continue-shopping {
	background: transparent !important;
	color: #242526;
}

.wmc-side-drawer .wmc-btn-continue-shopping:hover {
	background: transparent !important;
	color: #007b68;
}

/* Empty cart */

.wmc-empty-cart-state {
	padding: 70px 24px;
	text-align: center;
}

.wmc-empty-icon {
	display: block;
	margin: 0 0 14px;
	color: #9caaa9;
	font-size: 50px;
}

.wmc-empty-text {
	margin: 0 0 20px;
	color: #657075;
	font-size: 15px;
}

.wmc-empty-msg {
	padding: 24px;
	color: #657075;
	text-align: center;
}

/* Mobile */

@media (max-width: 782px) {
	body.admin-bar .wmc-side-drawer {
		top: 46px;
		height: calc(100dvh - 46px);
	}
}

@media (max-width: 480px) {
	.wmc-side-drawer {
		width: 100vw;
	}

	.wmc-drawer-header,
	.wmc-drawer-footer {
		padding-right: 18px;
		padding-left: 18px;
	}

	.wmc-drawer-products {
		padding-right: 18px;
		padding-left: 18px;
	}

	.wmc-item-thumb,
	.wmc-item-thumb img {
		width: 78px;
		height: 78px;
		flex-basis: 78px;
	}

	.wmc-item-title {
		font-size: 15px;
	}

	.wmc-item-price-row {
		bottom: 22px;
	}

	.wmc-coupon-input {
		font-size: 14px;
	}

	.wmc-order-pill {
		padding: 10px 17px;
		font-size: 14px;
	}
}