#qmc-wrapper {
	position: fixed;
	bottom: 50px;  /* Adjust the distance from the bottom */
	left: 10px;
	z-index: 9999;
	font-size: 14px;
	font-family: sans-serif;
}

@media only screen and (max-width: 768px) {
	#qmc-wrapper {
		bottom: 30px;
	}
}

#qmc-bubble {
	width: 60px;
	height: 60px;
	background: #7db928;
	color: white !important;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	cursor: pointer;
	z-index: 10000; /* Ensure the bubble is always on top */
	box-shadow: rgba(2, 6, 16, 0.2) 0 2px 16px;
	transform: scale(1);
	transition: transform 300ms ease;
}

#qmc-bubble circle, #qmc-bubble path {
	color: white !important;
}

#qmc-bubble:hover {
	background: #9cd447;
	transform: scale(1.1);
}

#qmc-count {
	position: absolute;
	top: -5px;
	right: -5px;
	background: crimson;
	color: white;
	border-radius: 50%;
	font-size: 12px;
	line-height: 1;
	width: 25px;
	height: 25px;
	display: flex;
	justify-content: center;
	align-items: center;
}

#qmc-cart {
	background: white;
	color: black;
	margin-top: 10px;
	padding: 10px;
	border-radius: 6px;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
	min-width: 300px;
	display: none; /* Ensure it’s hidden initially */
	position: absolute;
	bottom: calc(100% + 20px); /* Position above the bubble */
	left: 0;
	z-index: 9998; /* Ensure the cart is behind the bubble */
}

@media only screen and (max-width: 768px) {
	#qmc-cart {
		width: calc(100vw - 20px);
	}
}

@media only screen and (min-width: 768px) {
	#qmc-cart {
		width: calc(40vw - 20px);
		max-width: 500px;
	}
}

#qmc-items th,
#qmc-items td {
	padding: 4px 6px;
	text-align: left;
}

#qmc-actions {
	margin-top: 10px;
	display: flex;
	gap: 10px;
	justify-content: space-between;
}

.qmc-btn {
	background: #7db928;
	color: white;
	padding: 6px 12px;
	border-radius: 4px;
	text-decoration: none;
	font-size: 13px;
}

.qmc-btn:hover {
	background: #9cd447;
}

.qmc-remove {
	color: crimson;
	font-weight: bold;
	text-decoration: none;
}

.qmc-remove:focus {
	border: unset;
	outline: unset;
}
