.asovera-cart-drawer-shell,
.asovera-cart-drawer-shell * { box-sizing: border-box; }

.asovera-cart-drawer-shell[hidden] { display: none !important; }

body.asovera-cart-drawer-open { overflow: hidden; }

.asovera-cart-drawer-shell {
	font-family: var(--wp--preset--font-family--body, "Inter", sans-serif);
	height: calc(100dvh - var(--asovera-admin-offset, var(--wp-admin--admin-bar--height, 0px)));
	inset: var(--asovera-admin-offset, var(--wp-admin--admin-bar--height, 0px)) 0 0;
	position: fixed;
	z-index: 100000;
}

.asovera-cart-drawer-backdrop {
	-webkit-backdrop-filter: blur(7px);
	backdrop-filter: blur(7px);
	background: rgba(0, 0, 0, .24);
	inset: 0;
	opacity: 0;
	position: absolute;
	transition: opacity 220ms ease;
}

.asovera-cart-drawer {
	background: #fff;
	bottom: 0;
	color: var(--asovera-ink, #12201e);
	display: flex;
	flex-direction: column;
	max-width: 100%;
	overflow: hidden;
	position: absolute;
	right: 0;
	top: 0;
	transform: translateX(100%);
	transition: transform 220ms ease;
	width: min(628px, calc(100vw - 140px));
}

.asovera-cart-drawer-shell.is-open .asovera-cart-drawer-backdrop { opacity: 1; }
.asovera-cart-drawer-shell.is-open .asovera-cart-drawer { transform: translateX(0); }

.asovera-cart-drawer-header {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	gap: 10px;
	justify-content: space-between;
	padding: 20px 24px;
}

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

.asovera-cart-drawer-heading h2 {
	color: var(--asovera-ink, #12201e);
	font-family: var(--wp--preset--font-family--heading, "Inter", sans-serif);
	font-size: 22px;
	font-weight: 600;
	line-height: 28px;
	margin: 0;
	text-transform: uppercase;
	white-space: nowrap;
}

.asovera-cart-drawer-count {
	align-items: center;
	background: var(--asovera-gold, #fadba7);
	color: var(--asovera-ink, #12201e);
	display: inline-flex;
	font-size: 14px;
	font-weight: 600;
	height: 20px;
	justify-content: center;
	line-height: 20px;
	min-width: 22px;
	padding: 0 7px;
}

.asovera-cart-drawer-close,
.asovera-cart-drawer-stepper button,
.asovera-cart-drawer-remove,
.asovera-cart-drawer-continue {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--asovera-muted, #717978);
	cursor: pointer;
	font: inherit;
	margin: 0;
	padding: 0;
}

.asovera-cart-drawer-close {
	align-items: center;
	display: inline-flex;
	flex: 0 0 34px;
	height: 34px;
	justify-content: center;
	width: 34px;
}

.asovera-cart-drawer-icon { display: block; flex: 0 0 auto; }

.asovera-cart-drawer-items {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0 24px;
	scrollbar-gutter: stable;
}

.asovera-cart-drawer-item {
	border: 0;
	border-bottom: 1px solid #eceded;
	display: grid;
	gap: 16px;
	grid-template-columns: 100px minmax(0, 1fr);
	margin: 0;
	padding: 22px 0;
}

.asovera-cart-drawer-item:last-child { border-bottom: 0; }

.asovera-cart-drawer-image-link {
	background: var(--asovera-soft, #f6f6f6);
	display: block;
	height: 136px;
	overflow: hidden;
	width: 100px;
}

.asovera-cart-drawer-image-link .asovera-cart-drawer-image {
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	display: block;
	height: 136px;
	margin: 0;
	max-width: none;
	object-fit: cover;
	width: 100px;
}

.asovera-cart-drawer-item-content {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.asovera-cart-drawer-item-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.asovera-cart-drawer-name {
	display: -webkit-box;
	font-size: 16px;
	font-weight: 500;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	line-height: 28px;
	max-height: 56px;
	min-width: 0;
	overflow: hidden;
	white-space: normal;
}

.asovera-cart-drawer-name a,
.asovera-cart-drawer-name span {
	color: var(--asovera-ink, #12201e);
	text-decoration: none;
}

.asovera-cart-drawer-attributes {
	align-items: center;
	display: flex;
	font-size: 12px;
	font-weight: 500;
	gap: 6px;
	line-height: 16px;
	min-width: 0;
	white-space: nowrap;
}

.asovera-cart-drawer-attributes span {
	color: #838d8b;
	overflow: hidden;
	text-overflow: ellipsis;
}

.asovera-cart-drawer-attributes a {
	color: var(--asovera-muted, #717978);
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-transform: uppercase;
}

.asovera-cart-drawer-price {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	font-family: var(--wp--preset--font-family--heading, "Inter", sans-serif);
	font-size: 14px;
	font-weight: 600;
	gap: 4px 6px;
	line-height: 20px;
}

.asovera-cart-drawer-price .amount { color: var(--asovera-ink, #12201e); }

.asovera-cart-drawer-price del {
	color: var(--asovera-muted, #717978);
	font-family: var(--wp--preset--font-family--body, "Inter", sans-serif);
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
	opacity: 1;
}

.asovera-cart-drawer-price del .amount { color: inherit; }

.asovera-cart-drawer-item-actions {
	align-items: center;
	display: flex;
	justify-content: space-between;
	min-width: 0;
}

.asovera-cart-drawer-stepper {
	align-items: stretch;
	border: 1px solid var(--asovera-line, #e1e4e3);
	display: flex;
	height: 32px;
	padding: 1px;
}

.asovera-cart-drawer-stepper > button,
.asovera-cart-drawer-stepper > span {
	align-items: center;
	display: inline-flex;
	flex: 0 0 28px;
	font-size: 12px;
	font-weight: 500;
	height: 28px;
	justify-content: center;
	line-height: 16px;
	width: 28px;
}

.asovera-cart-drawer-stepper > button:disabled,
.asovera-cart-drawer-remove:disabled {
	color: var(--asovera-disabled-icon, #b6bab9);
	cursor: not-allowed;
}

.asovera-cart-drawer-stepper .asovera-cart-drawer-wishlist {
	background: transparent;
	border-bottom: 0;
	border-left: 1px solid var(--asovera-line, #e1e4e3);
	border-radius: 0;
	border-right: 0;
	border-top: 0;
	box-shadow: none;
	color: var(--asovera-muted, #717978);
	height: 28px;
	opacity: 1;
	padding: 0;
	pointer-events: auto;
	position: static;
	right: auto;
	top: auto;
	width: 28px;
	z-index: auto;
}

.asovera-cart-drawer-wishlist .asovera-wishlist-icon { height: 16px; width: 16px; }

.asovera-cart-drawer-wishlist .asovera-wishlist-icon-selected { display: none; }
.asovera-cart-drawer-wishlist.is-saved { color: var(--asovera-green, #092622); }
.asovera-cart-drawer-wishlist.is-saved .asovera-wishlist-icon-default { display: none; }
.asovera-cart-drawer-wishlist.is-saved .asovera-wishlist-icon-selected { display: block; }

.asovera-cart-drawer-remove {
	align-items: center;
	display: inline-flex;
	height: 32px;
	justify-content: center;
	width: 32px;
}

.asovera-cart-drawer-close:hover,
.asovera-cart-drawer-close:focus-visible,
.asovera-cart-drawer-stepper button:hover:not(:disabled),
.asovera-cart-drawer-stepper button:focus-visible:not(:disabled),
.asovera-cart-drawer-remove:hover,
.asovera-cart-drawer-remove:focus-visible { color: var(--asovera-green, #092622); }

.asovera-cart-drawer-close:focus-visible,
.asovera-cart-drawer-stepper button:focus-visible,
.asovera-cart-drawer-remove:focus-visible,
.asovera-cart-drawer-continue:focus-visible,
.asovera-cart-drawer-checkout:focus-visible {
	outline: 2px solid var(--asovera-green, #092622);
	outline-offset: 2px;
}

.asovera-cart-drawer-footer {
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 16px 24px;
}

.asovera-cart-drawer-total {
	align-items: center;
	display: flex;
	font-size: 16px;
	gap: 10px;
	justify-content: space-between;
	line-height: 28px;
}

.asovera-cart-drawer-total > span {
	color: var(--asovera-ink, #12201e);
	overflow: hidden;
	text-overflow: ellipsis;
}

.asovera-cart-drawer-total strong {
	color: var(--asovera-ink, #12201e);
	font-family: var(--wp--preset--font-family--heading, "Inter", sans-serif);
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	white-space: nowrap;
}

.asovera-cart-drawer-buttons {
	display: flex;
	gap: 10px;
}

.asovera-cart-drawer-checkout,
.asovera-cart-drawer-continue {
	align-items: center;
	display: flex;
	flex: 1 1 0;
	font-size: 16px;
	font-weight: 500;
	height: 48px;
	justify-content: center;
	line-height: 28px;
	padding: 0 14px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

.asovera-cart-drawer-checkout,
.asovera-cart-drawer-checkout:visited {
	background: var(--asovera-green, #092622);
	color: var(--asovera-on-primary, #fff);
}

.asovera-cart-drawer-checkout:hover { background: var(--asovera-primary-hover, #061b18); color: var(--asovera-on-primary, #fff); }
.asovera-cart-drawer-continue { color: var(--asovera-green, #092622); display: none; text-transform: uppercase; }

.asovera-cart-drawer-empty {
	align-items: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 0 auto;
	max-width: 360px;
	min-height: 100%;
	padding: 48px 20px;
	text-align: center;
}

.asovera-cart-drawer-empty h3 {
	color: var(--asovera-ink, #12201e);
	font-family: var(--wp--preset--font-family--heading, "Inter", sans-serif);
	font-size: 22px;
	font-weight: 600;
	line-height: 28px;
	margin: 0;
}

.asovera-cart-drawer-empty p { color: var(--asovera-body, #495352); font-size: 14px; line-height: 22px; margin: 12px 0 0; }
.asovera-cart-drawer-empty a { background: var(--asovera-green, #092622); color: #fff; display: inline-flex; font-size: 14px; font-weight: 500; justify-content: center; margin-top: 24px; min-height: 48px; padding: 13px 24px; text-decoration: none; text-transform: uppercase; }

.asovera-cart-drawer-status,
.asovera-cart-drawer-sr-only {
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	height: 1px !important;
	overflow: hidden !important;
	position: absolute !important;
	white-space: nowrap !important;
	width: 1px !important;
}

.asovera-cart-drawer.is-busy::after {
	background: rgba(255, 255, 255, .5);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

@media (min-width: 1200px) {
	.asovera-cart-drawer-backdrop {
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
	}
	.asovera-cart-drawer { width: 668px; }
	.asovera-cart-drawer-header { padding: 24px; }
	.asovera-cart-drawer-footer { padding: 16px 24px 20px; }
	.asovera-cart-drawer-continue { display: flex; }
}

@media (max-width: 599px) {
	.asovera-cart-drawer-shell {
		height: calc(100dvh - var(--asovera-admin-offset, var(--wp-admin--admin-bar--height, 0px)));
	}
	.asovera-cart-drawer-backdrop { display: block; }
	.asovera-cart-drawer {
		height: auto;
		max-height: calc(100dvh - var(--asovera-admin-offset, var(--wp-admin--admin-bar--height, 0px)));
		top: auto;
		transform: translateY(100%);
		width: 100vw;
	}
	.asovera-cart-drawer-shell.is-open .asovera-cart-drawer { transform: translateY(0); }
	.asovera-cart-drawer-header { padding: 16px; }
	.asovera-cart-drawer-items { flex: 0 1 auto; padding: 0 16px; scrollbar-gutter: auto; }
	.asovera-cart-drawer-item { border-bottom-color: var(--asovera-line, #e1e4e3); padding: 20px 0; }
	.asovera-cart-drawer-item-content { gap: 12px; }
	.asovera-cart-drawer-name { font-size: 14px; line-height: 22px; max-height: 44px; }
	.asovera-cart-drawer-footer { gap: 16px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
	.asovera-cart-drawer,
	.asovera-cart-drawer-backdrop { transition-duration: 1ms; }
}
