:root {
	--uw-cart-primary: #4F8F29;
	--uw-cart-primary-dark: #3d7520;
	--uw-cart-primary-gradient: linear-gradient(135deg, #4F8F29 0%, #3e7520 100%);
	--uw-cart-primary-soft: #f0fdf4;
	--uw-cart-text-dark: #0f172a;
	--uw-cart-text-muted: #64748b;
	--uw-cart-border: #e2e8f0;
	--uw-cart-border-subtle: #f1f5f9;
	--uw-cart-bg-panel: #ffffff;
	--uw-cart-bg-card: #ffffff;
}

.uw-cart-drawer,
.uw-cart-drawer *,
.uw-cart-drawer *::before,
.uw-cart-drawer *::after {
	box-sizing: border-box !important;
	font-family: "gilroy", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.uw-cart-drawer {
	position: fixed;
	inset: 0;
	z-index: 999999;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.uw-cart-drawer.uw-cart-open {
	visibility: visible;
	pointer-events: auto;
}

.uw-cart-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	opacity: 0;
	transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	cursor: pointer;
}

.uw-cart-drawer.uw-cart-open .uw-cart-backdrop {
	opacity: 1;
}

.uw-cart-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: 440px;
	height: 100%;
	height: 100dvh;
	background: var(--uw-cart-bg-panel);
	box-shadow: -20px 0 60px rgba(15, 23, 42, 0.18);
	transform: translateX(100%);
	transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	flex-direction: column;
	z-index: 2;
	border-left: 1px solid var(--uw-cart-border);
	overflow: hidden;
}

.uw-cart-drawer.uw-cart-open .uw-cart-panel {
	transform: translateX(0);
}

.uw-cart-header {
	height: 68px;
	min-height: 68px;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--uw-cart-border-subtle);
	background: #ffffff;
	flex-shrink: 0;
	gap: 12px;
}

.uw-cart-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.uw-cart-header-icon {
	width: 36px;
	height: 36px;
	min-width: 36px;
	border-radius: 10px;
	background: var(--uw-cart-primary-soft);
	color: var(--uw-cart-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(79, 143, 41, 0.15);
	flex-shrink: 0;
}

.uw-cart-header-icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

.uw-cart-title-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

.uw-cart-title {
	font-size: 19px;
	font-weight: 700;
	color: var(--uw-cart-text-dark);
	letter-spacing: -0.02em;
	line-height: 1;
}

.uw-cart-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	border-radius: 9999px;
	background: #eaf5e3;
	color: var(--uw-cart-primary-dark);
	font-size: 12px;
	font-weight: 700;
	border: 1px solid rgba(79, 143, 41, 0.2);
	line-height: 1;
}

.uw-cart-close-btn {
	width: 36px;
	height: 36px;
	min-width: 36px;
	border-radius: 10px;
	border: 1px solid var(--uw-cart-border);
	background: #ffffff;
	color: #64748b;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	line-height: 1;
	transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
	flex-shrink: 0;
}

.uw-cart-close-btn:hover {
	background: #f8fafc;
	color: #0f172a;
	border-color: #cbd5e1;
	transform: rotate(90deg);
}

.uw-cart-close-btn:active {
	transform: rotate(90deg) scale(0.92);
}

.uw-cart-close-btn svg {
	width: 18px;
	height: 18px;
	display: block;
}

.uw-cart-content-wrap {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
	background: #f8fafc;
	position: relative;
}

.uw-cart-items-list {
	flex: 1;
	overflow-y: auto;
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	overscroll-behavior: contain;
}

.uw-cart-items-list::-webkit-scrollbar {
	width: 5px;
}

.uw-cart-items-list::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 9999px;
}

.uw-cart-item {
	display: flex;
	gap: 14px;
	padding: 14px;
	border-radius: 14px;
	background: var(--uw-cart-bg-card);
	border: 1px solid var(--uw-cart-border);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.uw-cart-item:hover {
	border-color: #cbd5e1;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.uw-cart-item-visual {
	width: 76px;
	height: 76px;
	min-width: 76px;
	border-radius: 10px;
	overflow: hidden;
	background: #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #eef2f6;
	flex-shrink: 0;
}

.uw-cart-item-visual a {
	display: block;
	width: 100%;
	height: 100%;
}

.uw-cart-item-visual img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	max-width: none !important;
	border: none !important;
	border-radius: 0 !important;
}

.uw-cart-item-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
}

.uw-cart-item-header-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.uw-cart-item-name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--uw-cart-text-dark);
	margin: 0 0 4px 0;
	word-break: break-word;
}

.uw-cart-item-name a {
	color: inherit !important;
	text-decoration: none !important;
	transition: color 0.15s;
}

.uw-cart-item-name a:hover {
	color: var(--uw-cart-primary) !important;
}

.uw-cart-item-meta {
	font-size: 12px;
	color: var(--uw-cart-text-muted);
	margin-bottom: 6px;
	line-height: 1.35;
}

.uw-cart-item-meta dt,
.uw-cart-item-meta dd {
	display: inline;
	margin: 0;
}

.uw-cart-item-meta dd::after {
	content: ", ";
}

.uw-cart-item-meta dd:last-child::after {
	content: "";
}

.uw-cart-item-variations {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 3px;
	margin-bottom: 4px;
}

.uw-cart-var-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	padding: 1px 6px;
	font-size: 11px;
	line-height: 1.35;
}

.uw-cart-var-label {
	color: #64748b;
	font-weight: 400;
}

.uw-cart-var-val {
	color: #1e293b;
	font-weight: 600;
}

.uw-cart-item-variations + .uw-cart-item-meta {
	display: none !important;
}

.uw-cart-item-remove {
	width: 28px;
	height: 28px;
	min-width: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	color: #94a3b8;
	cursor: pointer;
	border-radius: 6px;
	padding: 0;
	margin: 0;
	flex-shrink: 0;
	transition: all 0.15s ease;
}

.uw-cart-item-remove:hover {
	color: #ef4444;
	background: #fee2e2;
	transform: scale(1.08);
}

.uw-cart-item-bottom-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 8px;
}

.uw-cart-stepper {
	display: inline-flex;
	align-items: center;
	background: #f1f5f9;
	border: 1px solid var(--uw-cart-border);
	border-radius: 9999px;
	height: 30px;
	padding: 0 3px;
	gap: 2px;
}

.uw-step-btn {
	width: 24px;
	height: 24px;
	min-width: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	color: #475569;
	cursor: pointer;
	border-radius: 50%;
	padding: 0;
	margin: 0;
	transition: all 0.12s ease;
}

.uw-step-btn:hover {
	background: #ffffff;
	color: #0f172a;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.uw-step-btn:active {
	transform: scale(0.88);
}

.uw-qty-input {
	width: 32px;
	height: 26px;
	border: none !important;
	background: transparent !important;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	color: var(--uw-cart-text-dark);
	-moz-appearance: textfield;
	pointer-events: none;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
}

.uw-qty-input::-webkit-outer-spin-button,
.uw-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.uw-cart-item-pricing {
	font-size: 15px;
	font-weight: 700;
	color: var(--uw-cart-text-dark);
	letter-spacing: -0.01em;
	text-align: right;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 1px;
}

.uw-cart-item-pricing .woocommerce-Price-amount {
	color: inherit;
	font-weight: inherit;
}

.uw-cart-unit-price {
	font-size: 11px;
	font-weight: 500;
	color: var(--uw-cart-text-muted);
	line-height: 1.2;
}

.uw-cart-footer {
	padding: 18px 20px 22px;
	border-top: 1px solid var(--uw-cart-border);
	background: #ffffff;
	box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.04);
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex-shrink: 0;
}

.uw-cart-summary {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
}

.uw-summary-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--uw-cart-text-muted);
}

.uw-summary-val {
	font-size: 20px;
	font-weight: 800;
	color: var(--uw-cart-text-dark);
	letter-spacing: -0.02em;
}

.uw-cart-cta-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.uw-btn-checkout {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 50px;
	border-radius: 12px;
	background: var(--uw-cart-primary-gradient);
	color: #ffffff !important;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	box-shadow: 0 6px 18px -3px rgba(79, 143, 41, 0.42);
	transition: all 0.15s ease;
	cursor: pointer;
}

.uw-btn-checkout:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow: 0 10px 22px -3px rgba(79, 143, 41, 0.52);
}

.uw-btn-checkout:active {
	transform: scale(0.98);
}

.uw-btn-view-cart {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	border-radius: 10px;
	border: 1px solid var(--uw-cart-border);
	background: #ffffff;
	color: #475569;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.15s ease;
}

.uw-btn-view-cart:hover {
	border-color: #cbd5e1;
	background: #f8fafc;
	color: #0f172a;
}

.uw-cart-empty {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 24px;
	text-align: center;
}

.uw-cart-empty-art {
	width: 88px;
	height: 88px;
	border-radius: 24px;
	background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
	border: 1px solid var(--uw-cart-border);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.03);
	margin-bottom: 18px;
}

.uw-cart-empty-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--uw-cart-text-dark);
	margin: 0 0 16px 0;
	line-height: 1.3;
}

.uw-cart-btn-catalog {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 24px;
	border-radius: 10px;
	background: var(--uw-cart-primary-gradient);
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(79, 143, 41, 0.35);
	transition: all 0.15s ease;
}

.uw-cart-btn-catalog:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(79, 143, 41, 0.45);
}

.uw-cart-btn-catalog:active {
	transform: scale(0.98);
}

.uw-cart-busy {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.15s;
}

@media (max-width: 480px) {
	.uw-cart-panel {
		max-width: 100%;
		border-left: none;
	}
	.uw-cart-header {
		height: 62px;
		padding: 0 16px;
	}
	.uw-cart-items-list {
		padding: 14px 16px;
	}
	.uw-cart-footer {
		padding: 16px;
	}
}
