.mfp-wrap .modal-producto {
	background: #fff !important;
	border-radius: 24px !important;
	display: flex !important;
	flex-direction: column;
	max-height: calc(100dvh - 32px) !important;
	max-width: 680px !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	scroll-padding-bottom: 108px;
	scrollbar-width: none;
	width: min(94vw, 680px) !important;
}

.mfp-wrap .modal-producto::-webkit-scrollbar {
	display: none;
}

.mfp-wrap .modal-producto .mfp-close {
	background: rgba(255, 255, 255, .94) !important;
	box-shadow: 0 4px 18px rgba(15, 23, 42, .18);
	color: #17202b !important;
	right: 16px !important;
	top: 16px !important;
	z-index: 8;
}

.mfp-wrap .modal-producto figure {
	align-self: stretch;
	aspect-ratio: auto;
	background: #f3f5f7;
	display: block;
	margin: 0 !important;
	height: clamp(320px, 46vh, 380px);
	max-height: 48vh;
	order: 1;
	overflow: hidden;
	position: relative;
	width: 100% !important;
}

.mfp-wrap .modal-producto figure img {
	display: block;
	height: 100%;
	object-fit: cover !important;
	width: 100%;
}

.product-image-expand-button {
	align-items: center;
	background: rgba(8, 16, 26, .72);
	border: 0;
	border-radius: 10px;
	bottom: 12px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
	color: #fff;
	display: flex;
	height: 36px;
	justify-content: center;
	position: absolute;
	right: 12px;
	transition: background .16s ease, transform .16s ease;
	width: 36px;
	z-index: 3;
}

.product-image-expand-button:hover,
.product-image-expand-button:focus {
	background: rgba(8, 16, 26, .88);
	color: #fff;
	outline: 0;
	transform: translateY(-1px);
}

.product-image-viewer {
	align-items: center;
	background: rgba(4, 8, 13, .92);
	display: none;
	inset: 0;
	justify-content: center;
	padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
	position: fixed;
	z-index: 2147483647 !important;
}

html.product-image-viewer-open,
html.product-image-viewer-open body {
	overflow: hidden !important;
}

.product-image-viewer.is-open {
	display: flex;
}

.product-image-viewer img {
	border-radius: 14px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .38);
	max-height: 92dvh;
	max-width: 94vw;
	object-fit: contain;
}

.product-image-viewer__close {
	align-items: center;
	background: rgba(255, 255, 255, .94);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
	color: #17202b;
	display: flex;
	font-size: 24px;
	height: 42px;
	justify-content: center;
	line-height: 1;
	position: fixed;
	right: max(16px, env(safe-area-inset-right));
	top: max(16px, env(safe-area-inset-top));
	width: 42px;
}

.product-image-viewer__close:focus {
	outline: 0;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .34), 0 10px 28px rgba(0, 0, 0, .28);
}

.mfp-wrap .modal-producto .small-dialog-header {
	background: #fff !important;
	border: 0 !important;
	display: flex !important;
	gap: 18px;
	justify-content: space-between;
	order: 2;
	padding: 24px 72px 8px 26px !important;
}

.modal-producto .small-dialog-header h3 {
	color: var(--restaurant-title, #17202b) !important;
	flex: 1 1 auto;
	font-size: clamp(22px, 4vw, 29px) !important;
	font-weight: 700 !important;
	letter-spacing: -.025em;
	line-height: 1.12 !important;
	margin: 0 !important;
	min-width: 0;
	overflow-wrap: anywhere;
}

.modal-product-base-price {
	color: var(--restaurant-button-color, #18b39b);
	flex: 0 0 auto;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

.mfp-wrap .modal-producto .content {
	order: 3;
	padding: 4px 26px 84px !important;
}

.mfp-wrap .modal-producto.has-no-product-image .content {
	padding-bottom: 24px !important;
}

.modal-producto .content > div {
	font-size: 15px !important;
}

.modal-product-description-full {
	color: var(--restaurant-text-secondary, #64748b) !important;
	font-size: 15px;
	line-height: 1.55 !important;
	margin: 4px 0 18px !important;
	white-space: pre-line;
}

.modal-producto .content hr,
.modal-producto .variant-list:not(.variant-group-public) {
	display: none !important;
}

.product-option-group {
	border-bottom: 1px solid var(--restaurant-border, #e8edf2);
	margin: 0 !important;
	padding: 0;
}

.product-option-group:first-of-type {
	border-top: 1px solid var(--restaurant-border, #e8edf2);
}

.product-option-group.has-selection > summary {
	background: transparent;
}

.product-option-group.has-selection [data-group-selection-summary] {
	color: var(--restaurant-button-color, #15ad96);
	font-weight: 600;
}

.product-option-group.is-required .product-option-group__rule {
	background: #fff0f2;
	color: #ad1637;
}

.product-option-group.is-optional .product-option-group__rule {
	background: #f1f4f6;
	color: #64748b;
}

.product-option-group > summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	gap: 12px;
	list-style: none;
	min-height: 68px;
	padding: 15px 2px;
}

.product-option-group > summary::-webkit-details-marker {
	display: none;
}

.product-option-group > summary > i {
	color: #718096;
	font-size: 18px;
	line-height: 1;
	margin-left: 2px;
	transform-origin: center;
	transition: transform .18s ease;
}

.product-option-group[open] > summary > i {
	transform: rotate(180deg);
}

.product-option-group__title {
	display: grid;
	gap: 3px;
	margin-right: auto;
}

.product-option-group__title strong {
	color: var(--restaurant-title, #17202b);
	font-size: 16px;
	font-weight: 650;
}

.product-option-group__title span {
	color: var(--restaurant-text-secondary, #718096);
	font-size: 12px;
}

.product-option-group__rule {
	background: var(--restaurant-button-soft-bg, #eef7f5);
	border-radius: 999px;
	color: var(--restaurant-button-color, #187f72);
	font-size: 11px;
	font-weight: 650;
	padding: 5px 8px;
	white-space: nowrap;
}

.product-option-group > ul {
	display: grid !important;
	gap: 7px !important;
	padding: 0 0 16px !important;
}

.modal-producto .container_check {
	align-items: center !important;
	background: var(--restaurant-surface, #fff) !important;
	border: 1px solid var(--restaurant-border, #e4eaf0) !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 16px;
	min-height: 50px !important;
	padding: 10px 14px 10px 46px !important;
	transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease !important;
}

.modal-producto .container_check:hover {
	border-color: var(--restaurant-button-soft-border, var(--restaurant-button-color, #15ad96)) !important;
	box-shadow: 0 5px 16px rgba(15, 31, 46, .06) !important;
}

.modal-producto .container_check:has(input:checked) {
	background: color-mix(in srgb, var(--restaurant-button-color, #15ad96) 3%, var(--restaurant-surface, #fff)) !important;
	border-color: var(--restaurant-button-soft-border, var(--restaurant-button-color, #15ad96)) !important;
	box-shadow: inset 3px 0 0 var(--restaurant-button-color, #15ad96) !important;
}

.modal-producto .container_check .checkmark {
	left: 14px !important;
}

.modal-producto .container_check:hover .checkmark {
	border-color: var(--restaurant-button-color, #15ad96) !important;
}

.modal-producto .container_check input:checked ~ .checkmark {
	background-color: var(--restaurant-button-color, #15ad96) !important;
	border-color: var(--restaurant-button-color, #15ad96) !important;
	box-shadow: none !important;
}

.modal-producto .container_check input:checked ~ .checkmark::after {
	border-color: var(--restaurant-button-text-color, #fff) !important;
}

.modal-producto .container_check .product-option-name,
.modal-producto .container_check .product-option-price {
	position: static !important;
	right: auto !important;
	top: auto !important;
	transform: none !important;
}

.modal-producto .container_check .product-option-name {
	color: var(--restaurant-title, #17202b) !important;
	font-size: 14px !important;
	font-weight: 550 !important;
	line-height: 1.35;
	margin: 0 !important;
	min-width: 0;
	overflow-wrap: anywhere;
	padding: 0 !important;
	text-align: left;
}

.modal-producto .container_check .product-option-price {
	color: var(--restaurant-muted, var(--restaurant-text-secondary, #64748b)) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.2;
	margin: 0 !important;
	padding: 0 !important;
	text-align: right;
	white-space: nowrap !important;
}

html[data-restaurant-custom-theme][data-restaurant-dark="true"] body .modal-producto .container_check:has(input:checked) {
	background: color-mix(in srgb, var(--restaurant-button-color) 5%, var(--restaurant-surface-soft)) !important;
	border-color: var(--restaurant-button-soft-border) !important;
	box-shadow: inset 3px 0 0 var(--restaurant-button-color) !important;
}

html[data-restaurant-custom-theme][data-restaurant-dark="true"] body .modal-producto .container_check .checkmark {
	background-color: var(--restaurant-surface) !important;
	border-color: var(--restaurant-border) !important;
}

html[data-restaurant-custom-theme][data-restaurant-dark="true"] body .modal-producto .container_check input:checked ~ .checkmark {
	background-color: var(--restaurant-button-color) !important;
	border-color: var(--restaurant-button-color) !important;
}

.cpp-product-controls {
	border: 0 !important;
	margin-top: 22px;
	padding: 0 !important;
}

.cpp-product-controls__top,
.cpp-product-subtotal {
	display: none !important;
}

.cpp-product-note {
	background: #f7f9fb;
	border-radius: 16px;
	padding: 14px;
	transition: box-shadow .16s ease;
}

.cpp-product-note:focus-within {
	box-shadow: inset 0 0 0 1px var(--restaurant-button-soft-border, rgba(24, 179, 155, .38));
}

.cpp-product-note label {
	color: var(--restaurant-title, #334155) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
}

.cpp-product-note-input {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	min-height: 58px !important;
	outline: 0 !important;
	padding: 8px 0 0 !important;
	resize: vertical;
}

.modal-producto .footer {
	background: rgba(255, 255, 255, .97) !important;
	backdrop-filter: blur(14px);
	border-top: 1px solid rgba(226, 232, 240, .86) !important;
	bottom: 0;
	box-shadow: 0 -12px 30px rgba(15, 31, 46, .09) !important;
	order: 4;
	padding: 12px 18px max(14px, env(safe-area-inset-bottom)) !important;
	position: sticky !important;
	z-index: 7;
}

.product-modal-actionbar {
	align-items: center;
	display: grid;
	gap: 12px;
	grid-template-columns: auto minmax(0, 1fr);
}

.product-modal-actionbar__meta {
	align-items: center;
	display: flex;
}

.product-modal-actionbar .cpp-product-quantity {
	background: #f1f4f6;
	border-radius: 13px;
	padding: 3px;
}

.product-modal-actionbar .cpp-product-quantity button {
	background: #fff;
	border-radius: 10px;
	height: 38px;
	width: 38px;
}

.product-modal-actionbar .cpp-product-quantity-input {
	background: transparent;
	border: 0;
	font-weight: 700;
	height: 38px;
	width: 32px;
}

.product-modal-actionbar .cpp-product-add-button {
	align-items: center;
	border-radius: 14px !important;
	display: flex;
	font-size: 16px !important;
	font-weight: 650 !important;
	gap: 6px;
	justify-content: center;
	min-height: 52px !important;
	padding: 10px 14px !important;
	text-align: center;
	width: 100%;
}

.product-action-price {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.product-modal-actionbar .cpp-product-add-button.is-requirements-pending {
	background: #e8edf1 !important;
	box-shadow: none !important;
	color: #526273 !important;
	cursor: not-allowed;
}

.product-modal-actionbar .cpp-product-add-button.is-requirements-pending .product-action-price {
	display: none;
}

.product-modal-actionbar__meta.is-hidden-when-unavailable {
	display: none;
}

.product-modal-actionbar:has(.cpp-product-add-button.is-product-unavailable) {
	grid-template-columns: 1fr;
}

.product-modal-actionbar .cpp-product-add-button.is-product-unavailable {
	background: #e8edf1 !important;
	box-shadow: none !important;
	color: #526273 !important;
	cursor: not-allowed;
	font-size: 14px !important;
	line-height: 1.25 !important;
	white-space: normal !important;
}

@media (max-width: 575.98px) {
	.mfp-bg {
		background: #fff !important;
		opacity: 1 !important;
	}

	.mfp-wrap .modal-producto {
		border-radius: 0 !important;
		height: 100dvh !important;
		margin: 0 !important;
		max-height: 100dvh !important;
		max-width: none !important;
		scroll-padding-bottom: 148px;
		width: 100vw !important;
	}

	.mfp-wrap .modal-producto figure {
		height: clamp(260px, 40vh, 320px);
		max-height: 45vh;
	}

	.mfp-wrap .modal-producto .mfp-close {
		position: fixed !important;
		right: 14px !important;
		top: 14px !important;
	}

	.mfp-wrap .modal-producto .small-dialog-header {
		padding: 20px 64px 7px 18px !important;
	}

	.mfp-wrap .modal-producto .content {
		padding: 4px 18px 128px !important;
	}

	.mfp-wrap .modal-producto.has-no-product-image .content {
		padding-bottom: 28px !important;
	}

	.product-option-group > summary {
		min-height: 62px;
	}

	.modal-producto .footer {
		padding: 10px 12px max(12px, env(safe-area-inset-bottom)) !important;
	}

	.product-modal-actionbar {
		gap: 9px;
		grid-template-columns: auto minmax(0, 1fr);
	}

	.product-modal-actionbar__meta {
		padding: 0 2px;
	}

	.product-modal-actionbar .cpp-product-add-button {
		font-size: 14px !important;
		padding-left: 10px !important;
		padding-right: 10px !important;
	}

	.product-modal-actionbar .cpp-product-add-button.is-product-unavailable {
		font-size: 13px !important;
		min-height: 48px !important;
	}
}
