.mgemu-box {
	margin: 24px 0;
	padding: 18px;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	background: #fff;
	box-sizing: border-box;
}

.mgemu-box * {
	box-sizing: border-box;
}

.mgemu-heading {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 600;
	text-align: left;
}

.mgemu-slider {
	position: relative;
	overflow: hidden;
}

.mgemu-track {
	display: flex;
	transition: transform 0.3s ease;
	touch-action: pan-y;
	cursor: grab;
}

.mgemu-track.is-dragging {
	transition: none;
	cursor: grabbing;
}

.mgemu-slide {
	flex: 0 0 100%;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 4px;
}

.mgemu-thumb {
	flex: 0 0 auto;
	display: block;
	width: 90px;
	height: 90px;
	border-radius: 8px;
	overflow: hidden;
	background: #f5f5f5;
}

.mgemu-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mgemu-info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mgemu-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	font-size: 15px;
	font-weight: 500;
	color: inherit;
	text-decoration: none;
	line-height: 1.3;
	max-height: calc(1.3em * 2);
}

.mgemu-title:hover {
	text-decoration: underline;
}

.mgemu-price {
	font-size: 15px;
	font-weight: 600;
}

.mgemu-price del {
	opacity: 0.6;
	font-weight: 400;
	margin-right: 6px;
}

.mgemu-variable {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: stretch;
}

.mgemu-variation-select {
	flex: 1 1 120px;
	min-width: 90px;
	max-width: 100%;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
}

.mgemu-add {
	flex: 1 1 auto;
	white-space: nowrap;
	cursor: pointer;
}

@media (max-width: 420px) {
	.mgemu-variable {
		flex-direction: column;
	}

	.mgemu-variation-select,
	.mgemu-variable .mgemu-add {
		flex: 1 1 auto;
		width: 100%;
	}
}

.mgemu-add:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.mgemu-add.is-added {
	background: #4c8a5e !important;
	border-color: #4c8a5e !important;
	color: #fff !important;
}

.mgemu-unavailable {
	font-size: 13px;
	opacity: 0.6;
}

.mgemu-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 12px;
}

.mgemu-dots button.mgemu-dot {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	display: inline-block;
	flex: 0 0 auto;
	width: 8px;
	min-width: 8px;
	max-width: 8px;
	height: 8px;
	min-height: 8px;
	max-height: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #d8dcd9;
	box-shadow: none;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	transition: width 0.25s ease, background-color 0.25s ease;
}

.mgemu-dots button.mgemu-dot.is-active {
	width: 22px;
	min-width: 22px;
	max-width: 22px;
	background: #4c8a5e;
}

@media (min-width: 640px) {
	.mgemu-slide {
		gap: 20px;
	}

	.mgemu-thumb {
		width: 110px;
		height: 110px;
	}
}
