/* Overlay Styles */
.easystore-drawer-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 999990;
	display: none;
}

/* Drawer Base Styles */
.easystore-drawer {
	position: fixed;
	top: 0;
	height: 100%;
	width: var(--easystore-cart-drawer-width);
	background-color: #fff;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
	z-index: 999991;
	display: flex;
	flex-direction: column;
}

.easystore-drawer-wrapper {
	display: none;
}

.easystore-drawer-wrapper.open {
	display: flex;
}

.easystore-drawer-wrapper.open .easystore-drawer-overlay {
	display: block;
	cursor:
		url('../images/modal-overlay-cursor.svg') 28 28,
		auto;
}

.easystore-drawer.easystore-drawer-left {
	animation: easyStoreSlideFromLeftStart 0.3s ease;
}

.easystore-drawer.easystore-drawer-left.easystore-drawer-closing {
	animation: easyStoreSlideFromLeftClose 0.3s ease;
}

.easystore-drawer.easystore-drawer-right {
	right: 0;
	animation: easyStoreSlideFromRightStart 0.3s ease;
}

.easystore-drawer.easystore-drawer-right.easystore-drawer-closing {
	animation: easyStoreSlideFromRightClose 0.3s ease;
}

.easystore-drawer .easystore-drawer-footer {
	padding: 12px;
	display: flex;
	gap: 4px;
	justify-content: end;
}

/* Drawer Header Styles */
.easystore-drawer-header {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	padding: 12px 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--easystore-border-color);
}

/* Close Button Styles */
.easystore-drawer-close-button {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
}

/* Drawer Content Styles */
.easystore-drawer-content {
	position: relative;
	flex: 1 1 auto;
	overflow-y: auto;
	height: 100%;
}

/* Mini Cart Styles */
.easystore-mini-cart-items {
	display: flex;
	flex-direction: column;
}

.easystore-mini-cart-item {
	display: flex;
	position: relative;
	padding: 1rem;
	gap: 1rem;
	border-bottom: 1px solid var(--easystore-border-color);
}

.easystore-mini-cart-item-data {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.easystore-mini-cart-item-thumbnail-wrapper {
	position: relative;
	width: 80px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 4px;
	flex-shrink: 0;
}

.easystore-min-cart-thumbnail {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.easystore-mini-cart-quantity-price {
	display: flex;
	justify-content: space-between;
}

.easystore-mini-cart-quantity-price .easystore-quantity-selector .form-control {
	width: 90px;
}

.easystore-drawer .easystore-remove-cart-item {
	position: absolute;
	top: 10px;
	right: 10px;
}

/* Media Query for Smaller Screens */
@media (max-width: 768px) {
	.easystore-drawer {
		width: 100%;
	}
}

/* Keyframes */
@keyframes easyStoreSlideFromLeftStart {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(0);
	}
}

@keyframes easyStoreSlideFromLeftClose {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-100%);
	}
}

@keyframes easyStoreSlideFromRightStart {
	0% {
		transform: translateX(100%);
	}
	100% {
		transform: translateX(0);
	}
}

@keyframes easyStoreSlideFromRightClose {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(100%);
	}
}

.easystore-mini-cart-quantity-price .cart-item-message {
	display: flex;
	background-color: #fff;
	color: #e62305;
	padding: 10px 20px;
	font-size: 14px;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	margin-bottom: 10px;
}

.easystore-mini-cart-quantity-price .cart-item-message i {
	margin-right: 8px;
	margin-top: 4px;
	font-size: 14px;
}
