.velmora-multi-product-open {
	overflow: hidden;
}

.velmora-multi-product-modal[hidden] {
	display: none;
}

.velmora-multi-product-modal {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 20px;
	position: fixed;
	z-index: 99999;
}

.velmora-multi-product-backdrop {
	background: rgba(18, 22, 19, 0.62);
	inset: 0;
	position: absolute;
}

.velmora-multi-product-dialog {
	background: #fffdf8;
	border-radius: 8px;
	box-shadow: 0 24px 80px rgba(15, 20, 18, 0.22);
	max-height: min(720px, calc(100vh - 40px));
	max-width: 720px;
	overflow: hidden;
	position: relative;
	width: min(100%, 720px);
}

.velmora-multi-product-header {
	align-items: flex-start;
	border-bottom: 1px solid rgba(31, 60, 46, 0.12);
	display: flex;
	gap: 16px;
	justify-content: space-between;
	padding: 22px 24px 18px;
}

.velmora-multi-product-kicker {
	color: #6c7a43;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	margin: 0 0 6px;
	text-transform: uppercase;
}

.velmora-multi-product-header h2 {
	color: #1c241e;
	font-size: 24px;
	line-height: 1.2;
	margin: 0;
}

.velmora-multi-product-close {
	align-items: center;
	background: transparent;
	border: 1px solid rgba(31, 60, 46, 0.16);
	border-radius: 999px;
	color: #1c241e;
	cursor: pointer;
	display: inline-flex;
	font-size: 24px;
	height: 40px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 40px;
}

.velmora-multi-product-list {
	display: grid;
	gap: 10px;
	max-height: min(420px, calc(100vh - 255px));
	overflow: auto;
	padding: 18px 24px;
}

.velmora-multi-product-row {
	align-items: center;
	background: #ffffff;
	border: 1px solid rgba(31, 60, 46, 0.12);
	border-radius: 8px;
	cursor: pointer;
	display: grid;
	gap: 14px;
	grid-template-columns: auto 72px minmax(0, 1fr) auto;
	padding: 12px;
}

.velmora-multi-product-row:hover,
.velmora-multi-product-row:focus-within {
	border-color: rgba(31, 60, 46, 0.32);
	box-shadow: 0 10px 24px rgba(31, 60, 46, 0.08);
}

.velmora-multi-product-row input {
	height: 18px;
	width: 18px;
}

.velmora-multi-product-image {
	background: #f5f0e7;
	border-radius: 6px;
	display: block;
	height: 72px;
	overflow: hidden;
	width: 72px;
}

.velmora-multi-product-image img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.velmora-multi-product-info {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.velmora-multi-product-name {
	color: #1c241e;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.velmora-multi-product-price {
	color: #596456;
	font-size: 14px;
}

.velmora-multi-product-discount {
	background: #e7c666;
	border-radius: 999px;
	color: #1c241e;
	font-size: 12px;
	font-weight: 800;
	justify-self: end;
	padding: 7px 10px;
	white-space: nowrap;
}

.velmora-multi-product-message {
	font-size: 14px;
	margin: 0;
	min-height: 20px;
	padding: 0 24px;
}

.velmora-multi-product-message[data-state="error"] {
	color: #b42318;
}

.velmora-multi-product-message[data-state="success"] {
	color: #267043;
}

.velmora-multi-product-actions {
	align-items: center;
	border-top: 1px solid rgba(31, 60, 46, 0.12);
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	padding: 18px 24px 22px;
}

.velmora-multi-product-primary,
.velmora-multi-product-secondary {
	border-radius: 999px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 800;
	min-height: 44px;
	padding: 10px 18px;
}

.velmora-multi-product-primary {
	background: #244d39;
	border: 1px solid #244d39;
	color: #fffaf0;
}

.velmora-multi-product-primary:disabled {
	cursor: wait;
	opacity: 0.72;
}

.velmora-multi-product-secondary {
	background: #ffffff;
	border: 1px solid rgba(31, 60, 46, 0.18);
	color: #1c241e;
}

@media (max-width: 640px) {
	.velmora-multi-product-modal {
		align-items: flex-end;
		padding: 0;
	}

	.velmora-multi-product-dialog {
		border-radius: 8px 8px 0 0;
		max-height: calc(100vh - 24px);
		width: 100%;
	}

	.velmora-multi-product-row {
		grid-template-columns: auto 60px minmax(0, 1fr);
	}

	.velmora-multi-product-image {
		height: 60px;
		width: 60px;
	}

	.velmora-multi-product-discount {
		grid-column: 2 / -1;
		justify-self: start;
	}

	.velmora-multi-product-actions {
		align-items: stretch;
		flex-direction: column-reverse;
	}
}
