.cum-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.cum-modal-overlay.cum-active {
	display: flex;
}

body.cum-modal-open {
	overflow: hidden;
}

.cum-modal {
	background: #fff;
	border-radius: 8px;
	max-width: 640px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 32px;
	position: relative;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.cum-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 4px 8px;
}

.cum-modal-close:hover {
	color: #000;
}

.cum-modal-title {
	margin: 0 0 4px;
	font-size: 22px;
	padding-right: 24px;
}

.cum-modal-subtitle {
	margin: 0 0 24px;
	color: #666;
}

.cum-modal-products {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 24px;
}

.cum-product-card {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	padding: 12px;
}

.cum-product-image img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.cum-product-info {
	flex: 1;
	min-width: 0;
}

.cum-product-name {
	font-weight: 600;
	margin-bottom: 4px;
}

.cum-product-price {
	color: #77a464;
	font-size: 14px;
}

.cum-product-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	flex-shrink: 0;
}

.cum-qty-selector {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	width: 110px;
}

.cum-qty-btn {
	background: #f6f6f6;
	border: none;
	width: 30px;
	height: 32px;
	line-height: 1;
	font-size: 16px;
	cursor: pointer;
	flex-shrink: 0;
}

.cum-qty-btn:hover {
	background: #ececec;
}

.cum-qty-btn:disabled {
	cursor: default;
	opacity: 0.5;
	background: #f6f6f6;
}

.cum-qty-input {
	width: 40px;
	height: 32px;
	border: none;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
	font-size: 14px;
}

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

.cum-qty-input:disabled {
	background: #f6f6f6;
	color: #999;
}

.cum-add-btn {
	white-space: nowrap;
	min-width: 110px;
	text-align: center;
	flex-shrink: 0;
}

.cum-add-btn.cum-loading {
	opacity: 0.6;
	cursor: default;
}

.cum-add-btn.cum-added {
	background: #4caf50 !important;
	color: #fff !important;
}

.cum-modal-actions {
	text-align: center;
}

.cum-continue-btn {
	width: 100%;
	transition: background-color 0.15s ease;
}

.cum-continue-btn.cum-continue-ready {
	background: #4caf50;
	border-color: #4caf50;
	color: #fff;
}

@media (max-width: 480px) {
	.cum-product-card {
		flex-wrap: wrap;
	}

	.cum-product-actions {
		width: 100%;
		flex-direction: row;
		margin-top: 8px;
	}

	.cum-qty-selector {
		width: 110px;
	}

	.cum-add-btn {
		flex: 1;
		min-width: 0;
	}
}
