.tasco-cart-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.38);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	z-index: 99998;
}

.tasco-cart-overlay.tasco-visible {
	opacity: 1;
	visibility: visible;
}

.tasco-cart-sidebar {
	position: fixed;
	top: 0;
	right: 0;
	width: min(92vw, 650px);
	height: 100vh;
	background: #fff;
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.16);
	transform: translateX(100%);
	transition: transform 0.25s ease;
	z-index: 99999;
	display: flex;
	flex-direction: column;
}

.tasco-cart-sidebar.tasco-open {
	transform: translateX(0);
}

body.tasco-cart-open {
	overflow: hidden;
}

.tasco-cart-sidebar__header,
.tasco-cart-sidebar__footer {
	padding: 20px;
	border-bottom: 1px solid #ececec;
	flex-shrink: 0;
}

.tasco-cart-sidebar__footer {
	border-bottom: 0;
	border-top: 1px solid #ececec;
	margin-top: auto;
	background: #fff;
}

.tasco-cart-sidebar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-weight: 700;
	font-size: 20px;
	color: #111;
}

.tasco-cart-sidebar__close {
	background: transparent;
	color: #ef1f63;
	cursor: pointer;
	border-radius: 100% !important;
    padding: 0 !important;
    width: 25px !important;
    height: 25px !important;
    font-weight: bold !important;	
}

.tasco-cart-sidebar__body {
	padding: 20px;
	overflow-y: auto;
	flex: 1;
}

.tasco-cart-sidebar__loading,
.tasco-cart-sidebar__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 160px;
	text-align: center;
	color: #666;
}

.tasco-cart-spinner {
	width: 28px;
	height: 28px;
	border: 3px solid #d9e5ff;
	border-top-color: #2563eb;
	border-radius: 50%;
	animation: tasco-cart-spin 0.8s linear infinite;
}

@keyframes tasco-cart-spin {
	to { transform: rotate(360deg); }
}

.tasco-cart-item {
	display: grid;
	grid-template-columns: 84px 1fr;
	gap: 14px;
	padding: 0 0 18px;
	margin-bottom: 18px;
	border-bottom: 1px solid #f0f0f0;
}

.tasco-cart-item__image {
	width: 84px;
	height: 84px;
	border-radius: 10px;
	background: #f6f6f6;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.tasco-cart-item__image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.tasco-cart-item__content {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.tasco-cart-item__top {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: flex-start;
}

.tasco-cart-item__name {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	color: #111;
	text-decoration: none;
	text-transform: uppercase;
}

.tasco-cart-item__price {
	white-space: nowrap;
	font-size: 20px !important;
	font-weight: 700;
	color: #111;
}

.tasco-cart-item__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.tasco-cart-item__qty {
	display: flex;
	align-items: center;
    justify-content: space-between;
    width: 100%;
	max-width: 300px;
    overflow: hidden;
    background: #fff;
    gap: 10px;
}

.tasco-sidebar-minus,
.tasco-sidebar-plus {
	background: var(--e-global-color-primary, #2563eb) !important;
    color: #fff !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    transition: filter 0.2s ease !important;
    border-radius: 100% !important;
}

.tasco-sidebar-minus:disabled,
.tasco-sidebar-plus:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.tasco-sidebar-qty {
	border: none !important;
    border-radius: 100px !important;
    appearance: textfield;
    -moz-appearance: textfield;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #000;
    background: #f3f3f3;
    height: 100%;
    padding: 10px 0;
    display: inline-block;
    width: 100%;
    outline: none;
}

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

.tasco-cart-item__remove {
	border: 0 !important;
    background: transparent;
    color: #ef1f63;
    font-size: 14px;
    cursor: pointer;
    padding: 0 !important;
    text-decoration: underline;
    font-size: 16px !important;
}

.tasco-cart-sidebar__taxes {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 10px;
}

.tasco-cart-sidebar__total {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	font-weight: bold;
	font-size: 20px !important;
	margin-bottom: 18px;
}

.tasco-cart-sidebar__actions {
	display: flex;
	gap: 12px;
}
.tasco-cart-sidebar__continue,
.tasco-cart-sidebar__go-cart {
	flex: 1;
	height: 46px;
	border-radius: 999px  !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-weight: bold !important;
	cursor: pointer;
	transition: filter 0.2s ease;
}
.tasco-cart-sidebar__continue{
	border: 2px solid #2f6dd8 !important;
	background: white !important;
	color: #2f6dd8 !important;
}
.tasco-cart-sidebar__go-cart {
    border: 2px solid #2f6dd8 !important;
    background: #2f6dd8 !important;
    color: white !important;
}

.tasco-cart-sidebar__continue:hover,
.tasco-cart-sidebar__go-cart:hover {
	filter: brightness(1.05);
	color: inherit;
}

.tasco-cart-sidebar__go-cart:hover {
	color: #fff;
}

@media (max-width: 575.98px) {
	.tasco-cart-sidebar {
		width: 100vw;
	}

	.tasco-cart-sidebar__header,
	.tasco-cart-sidebar__body,
	.tasco-cart-sidebar__footer {
		padding-left: 16px;
		padding-right: 16px;
	}

	.tasco-cart-sidebar__actions {
		flex-direction: column;
	}
}