/*
 * MauriPros Restaurant Suite — online menu (any theme).
 *
 * Colors come from --mpr-* variables: light scheme by default, dark scheme on
 * body.mpr-dark. Themes can set their own values on body.mpr-sf / body.mpr-dark
 * in their stylesheet (see readme: "Online menu in your theme").
 */

body.mpr-sf, .mpr-sf-embed {
	--mpr-brand: #bb1818;
	--mpr-on-brand: #fff;
	--mpr-accent: #fabd0e;
	--mpr-text: #1d1a17;
	--mpr-bg: #f7f6f3;
	--mpr-card: #fff;
	--mpr-panel: #fff;
	--mpr-dialog: #fff;
	--mpr-hi: var(--mpr-brand);
	--mpr-line: rgba(29, 26, 23, .12);
	--mpr-soft: rgba(29, 26, 23, .045);
	--mpr-cats-bg: rgba(255, 255, 255, .94);
	--mpr-btn: var(--mpr-brand);
	--mpr-btn-text: var(--mpr-on-brand);
	--mpr-btn-hover: #1d1a17;
	--mpr-btn-hover-text: #fff;
	--mpr-chip-on: var(--mpr-brand);
	--mpr-chip-on-text: var(--mpr-on-brand);
	--mpr-count-bg: var(--mpr-accent);
	--mpr-count-text: #1d1a17;
	--mpr-toast-bg: #1d1a17;
	--mpr-toast-text: #fff;
	--mpr-toast-link: #ffd34d;
	--mpr-input: #fff;
	--mpr-radio: #fff;
	--mpr-radio-ring: rgba(29, 26, 23, .35);
	--mpr-ok: #2e7d32;
	--mpr-ok-bg: rgba(46, 125, 50, .12);
	--mpr-err: #b42318;
	--mpr-discount: #2e7d32;
	--mpr-ph: linear-gradient(135deg, rgba(187, 24, 24, .14), rgba(250, 189, 14, .22));
	--mpr-backdrop: rgba(0, 0, 0, .5);
	--mpr-shadow: 0 12px 30px rgba(0, 0, 0, .08);
	--mpr-card-hover: 0 16px 34px rgba(0, 0, 0, .12);
	--mpr-sheet-shadow: 0 -12px 34px rgba(0, 0, 0, .18);
	--mpr-radius: 16px;
	--mpr-pill: 999px;
	--mpr-max: 1200px;
	--mpr-font-head: inherit;
	--mpr-font-body: inherit;
}
body.mpr-dark {
	--mpr-on-brand: #ffd34d;
	--mpr-text: #fbf5e7;
	--mpr-bg: #000;
	--mpr-card: #111;
	--mpr-panel: #141414;
	--mpr-dialog: #1b1b1f;
	--mpr-hi: var(--mpr-accent);
	--mpr-line: rgba(251, 245, 231, .12);
	--mpr-soft: rgba(251, 245, 231, .06);
	--mpr-cats-bg: rgba(0, 0, 0, .86);
	--mpr-btn-text: var(--mpr-accent);
	--mpr-btn-hover: var(--mpr-accent);
	--mpr-btn-hover-text: var(--mpr-brand);
	--mpr-chip-on-text: var(--mpr-accent);
	--mpr-count-text: var(--mpr-brand);
	--mpr-toast-bg: #fbf5e7;
	--mpr-toast-text: #1c1410;
	--mpr-toast-link: var(--mpr-brand);
	--mpr-input: rgba(0, 0, 0, .35);
	--mpr-radio: #fff;
	--mpr-radio-ring: #fff;
	--mpr-ok: #8ee39b;
	--mpr-ok-bg: rgba(46, 125, 50, .2);
	--mpr-err: #ff9b9b;
	--mpr-discount: #7bd88f;
	--mpr-ph: radial-gradient(circle at 50% 40%, rgba(187, 24, 24, .55), #160606 70%);
	--mpr-backdrop: rgba(0, 0, 0, .7);
	--mpr-shadow: 0 18px 40px rgba(0, 0, 0, .45);
	--mpr-card-hover: 0 18px 36px rgba(250, 189, 14, .14);
	--mpr-sheet-shadow: 0 -18px 40px rgba(0, 0, 0, .5);
}

html.mpr-locked { overflow: hidden; }
.mpr-ico { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -.125em; }

/* Layout helpers ----------------------------------------------------------- */
.mpr-container { width: 100%; max-width: var(--mpr-max); margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.mpr-sf-main, .mpr-sf-embed { color: var(--mpr-text); font-family: var(--mpr-font-body); }
.mpr-sf-main *, .mpr-sf-embed *, .mpr-panel *, .mpr-pop *, .mpr-toast * { box-sizing: border-box; }
.mpr-sf-main { background: var(--mpr-bg); }
.mpr-empty { text-align: center; font-size: 1.15rem; padding: 64px 0; margin: 0; }

/* Plugin banner (themes without their own) */
.mpr-hero {
	position: relative; padding: 72px 0 56px; text-align: center; color: var(--mpr-text); background: var(--mpr-bg);
}
.mpr-hero.has-image {
	color: #fff; background: #111 var(--mpr-hero-img) center / cover no-repeat; padding: 104px 0 88px;
}
.mpr-hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .7)); }
.mpr-hero .mpr-container { position: relative; }
.mpr-hero-kicker { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .85rem; color: var(--mpr-hi); }
.mpr-hero.has-image .mpr-hero-kicker { color: var(--mpr-accent); }
.mpr-hero-title { margin: 0; font-family: var(--mpr-font-head); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; color: inherit; }
.mpr-hero-text { max-width: 640px; margin: 14px auto 0; font-size: 1.1rem; opacity: .9; }

/* Header cart and "Track order" ------------------------------------------ */
.mpr-cart-link {
	position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 46px; height: 46px; border-radius: 50%; color: inherit; font-size: 1.3rem; text-decoration: none;
	transition: background-color .2s, color .2s;
}
.mpr-cart-link:hover, .mpr-cart-link:focus-visible { background: rgba(0, 0, 0, .12); }
.mpr-cart-count {
	position: absolute; top: 1px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
	background: var(--mpr-count-bg); color: var(--mpr-count-text); font-weight: 700; font-size: 12px; line-height: 20px; font-family: var(--mpr-font-body); text-align: center;
}
.mpr-cart-count.is-empty { display: none; }
.mpr-cart-link.bump { animation: mpr-bump .6s ease; }
@keyframes mpr-bump { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.22); } 65% { transform: scale(.94); } }
.mpr-track-link {
	display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 9px 16px; border-radius: var(--mpr-pill);
	border: 1px solid currentColor; color: inherit; font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none;
}
@media (max-width: 860px) {
	.mpr-track-link { width: 46px; height: 46px; padding: 0; justify-content: center; border: 0; border-radius: 50%; font-size: 1.2rem; }
	.mpr-track-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Category bar ------------------------------------------------------------ */
.mpr-cats {
	position: sticky; top: var(--mpr-top, 0px); z-index: 90;
	background: var(--mpr-cats-bg); border-bottom: 1px solid var(--mpr-line);
}
@supports (backdrop-filter: blur(8px)) {
	.mpr-cats { backdrop-filter: blur(10px); }
}
.mpr-cats ul {
	list-style: none; margin: 0; padding: 14px 0; display: flex; gap: 8px;
	overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.mpr-cats ul::-webkit-scrollbar { display: none; }
.mpr-cats li { flex: none; margin: 0; }
.mpr-cats a {
	display: block; white-space: nowrap; padding: 10px 18px; border-radius: var(--mpr-pill);
	background: var(--mpr-soft); color: var(--mpr-text); font-weight: 500; font-size: 15px; text-decoration: none;
}
.mpr-cats a:hover, .mpr-cats a.is-active { background: var(--mpr-chip-on); color: var(--mpr-chip-on-text); }
.mpr-notices .woocommerce-notices-wrapper:not(:empty) { padding-top: 24px; }

/* Menu + order panel -------------------------------------------------------- */
.mpr-menu-wrap { background: var(--mpr-bg); color: var(--mpr-text); padding-bottom: 64px; }
.mpr-menu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
.mpr-section { padding: 64px 0 24px; scroll-margin-top: calc(var(--mpr-top, 0px) + 72px); background: none; }
.mpr-section:last-of-type { padding-bottom: 24px; }
.mpr-section-head { text-align: center; margin-bottom: 36px; }
.mpr-section-title { margin: 0; font-family: var(--mpr-font-head); color: var(--mpr-hi); }
.mpr-section-text { max-width: 640px; margin: 12px auto 0; opacity: .85; }
.mpr-section-text p:last-child { margin: 0; }
.mpr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 24px; align-items: stretch; }

/* Dish cards ---------------------------------------------------------------- */
.mpr-dish {
	display: flex; flex-direction: column; text-align: center; overflow: hidden;
	background: var(--mpr-card); color: var(--mpr-text); border-radius: var(--mpr-radius);
	box-shadow: var(--mpr-shadow);
	transition: transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .45s;
}
body.mpr-dark .mpr-dish { box-shadow: none; }
.mpr-dish:hover { transform: translateY(-6px); box-shadow: var(--mpr-card-hover); }
.mpr-dish-media { position: relative; display: block; margin: 0; overflow: hidden; }
.mpr-dish-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; }
.mpr-dish-ph {
	display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3;
	background: var(--mpr-ph); color: var(--mpr-hi); font-size: 2.6rem;
}
.mpr-dish-badge {
	position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: var(--mpr-pill);
	background: var(--mpr-accent); color: var(--mpr-brand); font-weight: 700; font-size: 13px;
}
.mpr-dish-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 24px; }
.mpr-dish-title { font-family: var(--mpr-font-head); font-size: 1.2rem; line-height: 1.25; margin: 0 0 .4em; letter-spacing: 0; }
.mpr-dish:hover .mpr-dish-title { letter-spacing: 0; }
.mpr-dish-title a { color: var(--mpr-text); text-decoration: none; }
.mpr-dish-title a:hover { color: var(--mpr-hi); }
.mpr-dish-desc { font-size: .95rem; line-height: 1.5; opacity: .82; margin: 0 0 16px; }
.mpr-dish-actions { margin-top: auto; }
.mpr-dish-buy { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 16px; }
.mpr-dish-price { color: var(--mpr-hi); font-weight: 700; font-size: 1.1rem; }
.mpr-dish-price del { opacity: .55; font-weight: 500; margin-right: 6px; }
.mpr-dish-price ins { text-decoration: none; }

/* Add buttons (beat WooCommerce's ".woocommerce a.button"). */
.mpr-dish a.button,
.mpr-dish a.mpr-quick-add {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	margin: 0; padding: 10px 18px; border: 1px solid transparent; border-radius: var(--mpr-pill);
	background: var(--mpr-btn); color: var(--mpr-btn-text);
	font-weight: 600; font-size: 15px; line-height: 1.2; font-family: var(--mpr-font-body); text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s, opacity .2s;
}
.mpr-dish a.button:hover,
.mpr-dish a.mpr-quick-add:hover { background: var(--mpr-btn-hover); color: var(--mpr-btn-hover-text); transform: translateY(-2px); }
.mpr-dish a.mpr-quick-add.loading { opacity: .6; pointer-events: none; padding-right: 18px; }
.mpr-dish a.mpr-quick-add.loading::after,
.mpr-dish a.mpr-quick-add.added::after { display: none; }
.mpr-dish a.mpr-quick-add.added { border-color: var(--mpr-accent); }
.mpr-dish .added_to_cart { display: none; }
.mpr-dish a.button:focus-visible { outline: 2px solid var(--mpr-accent); outline-offset: 2px; }
.mpr-soldout {
	display: inline-flex; align-items: center; padding: 10px 20px; border-radius: var(--mpr-pill);
	border: 1px solid currentColor; color: var(--mpr-text); font-weight: 600; font-size: 15px; opacity: .85;
}
.mpr-dish.is-soldout .mpr-dish-media img { filter: grayscale(.7); opacity: .75; }

/* WooCommerce product grids (related dishes, search) */
.woocommerce ul.products li.product .mpr-dish { width: 100%; }
.mpr-sf ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; }
.mpr-sf ul.products::before, .mpr-sf ul.products::after { display: none; }
.mpr-sf ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; padding: 0; display: flex; }

/* Order panel ---------------------------------------------------------------- */
.mpr-panel {
	position: sticky; top: calc(var(--mpr-top, 0px) + 84px);
	margin-top: 64px; max-height: calc(100vh - var(--mpr-top, 0px) - 108px); overflow-y: auto;
	padding: 22px; border-radius: var(--mpr-radius);
	background: var(--mpr-panel); border: 1px solid var(--mpr-line); color: var(--mpr-text);
	box-shadow: var(--mpr-shadow); scrollbar-width: thin; font-family: var(--mpr-font-body);
}
body.mpr-dark .mpr-panel { box-shadow: none; }
.mpr-panel.is-busy .mpr-op-body { opacity: .55; pointer-events: none; }
.mpr-panel p { margin: 0; }
.mpr-op-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mpr-op-title { margin: 0; font-family: var(--mpr-font-head); font-size: 1.35rem; color: var(--mpr-hi); }
.mpr-op-close { display: none; background: none; border: 0; color: var(--mpr-text); font-size: 1.4rem; cursor: pointer; padding: 6px 8px; }

.mpr-op-store { padding: 14px 16px; border-radius: 14px; background: var(--mpr-soft); margin-bottom: 16px; }
.mpr-op-store-name { font-weight: 700; margin-bottom: 6px !important; }
.mpr-op-store-line { display: flex; gap: 10px; align-items: baseline; font-size: .9rem; opacity: .9; margin-top: 4px !important; }
.mpr-op-store-line .mpr-ico { color: var(--mpr-hi); position: relative; top: 2px; }
.mpr-op-store-line a { color: var(--mpr-text); text-decoration: underline; text-underline-offset: 3px; }
.mpr-op-store-line a:hover { color: var(--mpr-hi); }

.mpr-op-empty { text-align: center; padding: 24px 8px; opacity: .8; }
.mpr-op-empty .mpr-ico { font-size: 2rem; color: var(--mpr-hi); }
.mpr-op-empty p { margin: 10px 0 0; font-size: .95rem; }

.mpr-op-items { list-style: none; margin: 0; padding: 0; }
.mpr-op-item { padding: 12px 0; margin: 0; border-bottom: 1px solid var(--mpr-line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
.mpr-op-line { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: .95rem; }
.mpr-op-qty { color: var(--mpr-hi); }
.mpr-op-price { white-space: nowrap; }
.mpr-op-meta { font-size: .82rem; opacity: .75; }
.mpr-op-ctrl { grid-column: 2; grid-row: 2; display: flex; gap: 6px; justify-self: end; }
.mpr-op-btn {
	width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 1px solid var(--mpr-line);
	background: transparent; color: var(--mpr-text); cursor: pointer; font-size: .85rem;
	display: inline-grid; place-items: center;
}
.mpr-op-btn:hover, .mpr-op-btn:focus-visible { background: var(--mpr-btn); border-color: var(--mpr-btn); color: var(--mpr-btn-text); }

.mpr-op-ship { margin: 14px 0 4px; }
.mpr-op-label { margin: 0 0 8px !important; font-weight: 600; font-size: .9rem; }
.mpr-op-rate {
	display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 6px; border-radius: 12px; cursor: pointer;
	background: var(--mpr-soft); border: 1px solid transparent; font-size: .92rem;
}
.mpr-op-rate:has(input:checked) { border-color: var(--mpr-hi); }
.mpr-op-rate input { accent-color: var(--mpr-brand); margin: 0; }
.mpr-op-rate .mpr-ico { color: var(--mpr-hi); }
.mpr-op-rate-cost { margin-left: auto; font-weight: 600; }
.mpr-op-hint { display: flex; gap: 8px; align-items: baseline; font-size: .85rem; opacity: .8; }
.mpr-op-hint .mpr-ico { color: var(--mpr-hi); position: relative; top: 2px; }

.mpr-op-totals { margin: 14px 0 16px; }
.mpr-op-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: .92rem; }
.mpr-op-row dt { opacity: .8; font-weight: 400; }
.mpr-op-row dd { margin: 0; text-align: right; }
.mpr-op-row.is-discount dd { color: var(--mpr-discount); }
.mpr-op-row.is-total { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--mpr-line); font-size: 1.1rem; font-weight: 700; }
.mpr-op-row.is-total dt { opacity: 1; font-weight: 700; }
.mpr-op-row.is-total dd { color: var(--mpr-hi); }
.mpr-op-row small { display: none; }

.mpr-op-checkout {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 20px; border-radius: var(--mpr-pill); text-decoration: none;
	background: var(--mpr-btn); color: var(--mpr-btn-text); font-weight: 700; font-size: 1.05rem;
}
.mpr-op-checkout:hover { background: var(--mpr-btn-hover); color: var(--mpr-btn-hover-text); }
.mpr-op-cart { display: block; text-align: center; margin-top: 10px; font-size: .9rem; color: var(--mpr-text); text-decoration: underline; text-underline-offset: 3px; }

/* Boxes from other modules inside the panel / menu */
.mpr-panel .mpr-rewards { border-color: var(--mpr-line); margin: 0 0 14px; }
.mpr-panel .mpr-rewards a { color: var(--mpr-hi); }
.mpr-panel .mpr-rewards a.button {
	display: inline-block; padding: 9px 16px; border-radius: var(--mpr-pill); border: 1px solid var(--mpr-hi);
	background: transparent; color: var(--mpr-hi); font-weight: 600; font-size: .9rem;
}
.mpr-panel .mpr-rewards a.button:hover { background: var(--mpr-btn); border-color: var(--mpr-btn); color: var(--mpr-btn-text); }
.mpr-panel .mpr-op-table { margin: 0 0 12px; font-weight: 600; color: var(--mpr-text); opacity: 1; }
.mpr-menu-main .mpr-promos { margin: 32px 0 0; }
.mpr-menu-main .mpr-promo { background: var(--mpr-panel); border-color: var(--mpr-line); color: var(--mpr-text); }
.mpr-menu-main .mpr-promo-text h3 { color: var(--mpr-hi); font-size: 1.05rem; letter-spacing: 0; }

.mpr-bar, .mpr-op-backdrop { display: none; }

/* Tablets and phones: the panel is a bottom sheet opened from a fixed bar. */
@media (max-width: 1099px) {
	.mpr-menu-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.mpr-menu-wrap { padding-bottom: 104px; }
	.mpr-panel {
		position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 1050;
		margin: 0; max-height: 86vh; max-height: 86dvh; border-radius: 22px 22px 0 0;
		padding: 18px 20px calc(20px + env(safe-area-inset-bottom));
		transform: translateY(100%); visibility: hidden;
		transition: transform .35s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .35s;
		box-shadow: var(--mpr-sheet-shadow);
	}
	body.mpr-dark .mpr-panel { box-shadow: var(--mpr-sheet-shadow); }
	.mpr-panel.is-open { transform: none; visibility: visible; transition-delay: 0s; }
	.mpr-op-close { display: inline-block; }
	.mpr-op-backdrop { display: block; position: fixed; inset: 0; z-index: 1040; background: var(--mpr-backdrop); }
	.mpr-op-backdrop[hidden] { display: none; }
	.mpr-bar {
		display: block; position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 1000;
		padding: 0; border: 0; border-radius: var(--mpr-pill); cursor: pointer;
		background: var(--mpr-btn); color: var(--mpr-btn-text);
		box-shadow: 0 10px 28px rgba(0, 0, 0, .35); font-weight: 700; font-size: 16px; line-height: 1; font-family: var(--mpr-font-body);
	}
	.mpr-bar:has(.is-empty) { display: none; }
	.mpr-bar-inner { display: flex; align-items: center; gap: 12px; padding: 15px 20px; }
	.mpr-bar-count {
		min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; display: inline-grid; place-items: center;
		background: var(--mpr-count-bg); color: var(--mpr-count-text); font-size: 14px;
	}
	.mpr-bar-total { margin-left: auto; }
	body.mpr-has-panel .mpr-toast { bottom: 84px; }
}
@media (max-width: 1099px) and (min-width: 700px) {
	.mpr-panel { left: auto; width: 440px; right: 0; border-radius: 22px 0 0 0; }
}

/* Dish pop-up ---------------------------------------------------------------- */
.mpr-pop { position: fixed; inset: 0; z-index: 100100; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 24px; font-family: var(--mpr-font-body); }
.mpr-pop img, .mpr-panel img, .mpr-dish img { max-width: 100%; height: auto; }
.mpr-pop[hidden] { display: none; }
.mpr-pop-backdrop { position: absolute; inset: 0; background: var(--mpr-backdrop); }
.mpr-pop-dialog {
	position: relative; width: min(560px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
	overflow-y: auto; border-radius: 22px; background: var(--mpr-dialog); color: var(--mpr-text);
	box-shadow: 0 30px 70px rgba(0, 0, 0, .45); outline: none; overscroll-behavior: contain;
}
.mpr-pop-close {
	position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; padding: 0;
	display: grid; place-items: center; border: 2px solid var(--mpr-brand); background: #fff; color: #111; cursor: pointer; font-size: 1.2rem;
}
.mpr-pop-close:hover { background: var(--mpr-brand); color: #fff; }
.mpr-pop-loading { padding: 64px 24px; text-align: center; margin: 0; }
.mpr-spin {
	display: inline-block; width: 1em; height: 1em; vertical-align: -.15em; border-radius: 50%;
	border: 2px solid currentColor; border-right-color: transparent; animation: mpr-spin .8s linear infinite;
}
@keyframes mpr-spin { to { transform: rotate(360deg); } }

.mpr-form.is-popup { display: flex; flex-direction: column; }
.mpr-form-hero img, .mpr-form-hero .mpr-dish-ph { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin: 0; }
.mpr-form-head { padding: 22px 24px 18px; border-bottom: 4px solid var(--mpr-soft); }
.mpr-form-name { margin: 0 0 8px; font-family: var(--mpr-font-head); font-size: 1.6rem; line-height: 1.2; color: var(--mpr-text); }
.mpr-form-desc { opacity: .85; font-size: .98rem; line-height: 1.55; }
.mpr-form-desc p { margin: 0 0 .5em; }
.mpr-form-from { margin: 6px 0 0; font-weight: 700; color: var(--mpr-hi); font-size: 1.1rem; }

.mpr-form-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.mpr-form-group legend {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; float: left;
	padding: 16px 24px; background: var(--mpr-soft); font-weight: 700; font-size: 1.05rem;
}
.mpr-form-group legend + * { clear: both; }
.mpr-form.is-page .mpr-form-group legend { border-radius: 14px 14px 0 0; }
.mpr-form-req {
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--mpr-pill);
	background: var(--mpr-ok-bg); color: var(--mpr-ok); font-size: .8rem; font-weight: 600;
}
.mpr-form-opt {
	display: flex; align-items: center; gap: 14px; padding: 15px 24px; cursor: pointer; margin: 0;
	border-bottom: 1px solid var(--mpr-line); font-size: 1rem; font-weight: 400;
}
.mpr-form-opt:hover { background: var(--mpr-soft); }
.mpr-form-opt input {
	appearance: none; -webkit-appearance: none; flex: none; margin: 0;
	width: 22px; height: 22px; border-radius: 50%; background: var(--mpr-radio); border: 2px solid var(--mpr-radio-ring);
	display: grid; place-items: center; cursor: pointer;
}
.mpr-form-opt input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: transparent; }
.mpr-form-opt input:checked { border-color: #fff; box-shadow: 0 0 0 2px var(--mpr-brand); }
.mpr-form-opt input:checked::after { background: var(--mpr-brand); }
.mpr-form-opt input:focus-visible { outline: 2px solid var(--mpr-accent); outline-offset: 3px; }
.mpr-form-opt-name { flex: 1; }
.mpr-form-opt-price { font-weight: 600; white-space: nowrap; }

.mpr-form-note { display: block; padding: 18px 24px 8px; margin: 0; }
.mpr-form-note span { display: block; font-weight: 600; margin-bottom: 8px; }
.mpr-form-note small { font-weight: 400; opacity: .7; }
.mpr-form-note textarea {
	width: 100%; resize: vertical; padding: 12px 14px; border-radius: 12px; min-height: 0;
	border: 1px solid var(--mpr-line); background: var(--mpr-input); color: var(--mpr-text); font: inherit;
}
.mpr-form-note textarea:focus { outline: 2px solid var(--mpr-accent); outline-offset: 1px; }

.mpr-form-foot {
	position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
	padding: 16px 24px 20px; background: var(--mpr-dialog); border-top: 1px solid var(--mpr-line);
}
.mpr-qty { display: inline-flex; align-items: center; border-radius: var(--mpr-pill); border: 1px solid var(--mpr-line); }
.mpr-qty-btn { width: 42px; height: 46px; padding: 0; background: none; border: 0; color: var(--mpr-text); cursor: pointer; display: grid; place-items: center; }
.mpr-qty-btn:hover { color: var(--mpr-hi); background: none; }
.mpr-qty input {
	width: 40px; height: 46px; padding: 0; text-align: center; background: none; border: 0; color: var(--mpr-text);
	font-weight: 700; font-size: 1.05rem; font-family: var(--mpr-font-body); -moz-appearance: textfield; appearance: textfield;
}
.mpr-qty input::-webkit-outer-spin-button, .mpr-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mpr-form-add {
	flex: 1; min-width: 200px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 50px; padding: 12px 20px; border: 0; border-radius: var(--mpr-pill); cursor: pointer;
	background: var(--mpr-brand); color: #fff; font-weight: 600; font-size: 1.05rem; font-family: var(--mpr-font-body);
}
.mpr-form-add:hover { background: var(--mpr-brand); filter: brightness(.88); color: #fff; }
.mpr-form-add span { white-space: nowrap; }
.mpr-form-add.is-loading { opacity: .65; cursor: progress; }
.mpr-form-msg { flex-basis: 100%; margin: 0; color: var(--mpr-err); font-size: .9rem; }

/* Dish page form */
.mpr-form.is-page { margin: 18px 0 8px; border-radius: 14px; background: var(--mpr-soft); overflow: hidden; }
.mpr-form.is-page .mpr-form-opt, .mpr-form.is-page .mpr-form-note, .mpr-form.is-page .mpr-form-foot { padding-left: 18px; padding-right: 18px; }
.mpr-form.is-page .mpr-form-foot { position: static; background: transparent; }
.mpr-form-page-desc { margin: 4px 0 8px; opacity: .9; }

/* Toast ----------------------------------------------------------------------- */
.mpr-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 100000; font-family: var(--mpr-font-body);
	display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap;
	width: max-content; max-width: calc(100vw - 32px);
	padding: 14px 14px 14px 20px; border-radius: 18px;
	background: var(--mpr-toast-bg); color: var(--mpr-toast-text);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
	transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
	transition: transform .4s cubic-bezier(.16, 1, .3, 1), visibility .4s;
}
.mpr-toast.is-visible { transform: translate(-50%, 0); visibility: visible; }
.mpr-toast-text { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.mpr-toast-text .mpr-ico { color: #2e9e44; font-size: 1.15em; }
.mpr-toast-actions { display: flex; align-items: center; gap: 10px; }
.mpr-toast a { font-weight: 600; text-decoration: none; }
.mpr-toast .mpr-toast-view { color: var(--mpr-toast-link); }
.mpr-toast .mpr-toast-checkout { padding: 10px 18px; border-radius: var(--mpr-pill); background: var(--mpr-btn); color: var(--mpr-btn-text); }
.mpr-toast .mpr-toast-checkout:hover { filter: brightness(.9); }
.mpr-toast-close { background: none; border: 0; cursor: pointer; padding: 6px 8px; color: inherit; opacity: .6; font-size: 1.1rem; display: grid; place-items: center; }
.mpr-toast-close:hover { opacity: 1; background: none; }

/* Cart / checkout / confirmation: steps, "add more", restaurant info ---------- */
.mpr-flow { color: inherit; }
.mpr-steps { margin: 0 0 28px; }
.mpr-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mpr-steps li { position: relative; margin: 0; }
.mpr-steps li a, .mpr-steps li .mpr-step {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 8px 12px; border-radius: var(--mpr-pill); text-decoration: none;
	background: var(--mpr-soft); color: var(--mpr-text); opacity: .75;
	font-weight: 600; font-size: .95rem; text-align: center;
}
.mpr-steps li.is-done a, .mpr-steps li.is-done .mpr-step { opacity: 1; }
.mpr-steps li.is-done .mpr-ico { color: var(--mpr-hi); }
.mpr-steps li.is-current .mpr-step { opacity: 1; background: var(--mpr-btn); color: var(--mpr-btn-text); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.mpr-add-more {
	display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; text-decoration: none;
	padding: 10px 18px; border-radius: var(--mpr-pill); border: 2px solid var(--mpr-brand); color: var(--mpr-brand); font-weight: 600;
}
.mpr-add-more:hover { background: var(--mpr-brand); color: var(--mpr-on-brand); }
.mpr-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 0; }
.mpr-info-card {
	display: flex; align-items: flex-start; gap: 14px; padding: 20px; border-radius: var(--mpr-radius); text-decoration: none;
	background: var(--mpr-panel); border: 1px solid var(--mpr-line); color: var(--mpr-text);
}
a.mpr-info-card:hover { border-color: var(--mpr-hi); color: var(--mpr-text); }
.mpr-info-card > .mpr-ico { font-size: 1.6rem; color: var(--mpr-hi); margin-top: 2px; }
.mpr-info-card strong { display: block; color: var(--mpr-hi); margin-bottom: 4px; }

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 860px) {
	.mpr-info { grid-template-columns: 1fr; }
	.mpr-sf ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.mpr-container { padding: 0 16px; }
	.mpr-grid, .mpr-sf ul.products { grid-template-columns: 1fr; gap: 14px; }
	/* Phones: compact horizontal cards with a square photo. */
	.mpr-dish { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: start; text-align: left; }
	.mpr-dish:hover { transform: none; }
	.mpr-dish-media { height: auto; align-self: start; margin: 12px 0 12px 12px; border-radius: 14px; overflow: hidden; }
	.mpr-dish-media img, .mpr-dish-media .mpr-dish-ph { width: 100%; height: auto; min-height: 0; aspect-ratio: 1 / 1; object-fit: cover; }
	.mpr-dish-badge { top: 6px; left: 6px; padding: 2px 8px; font-size: 11px; }
	.mpr-dish-ph { font-size: 1.8rem; }
	.mpr-dish-body { padding: 12px 14px 14px; }
	.mpr-dish-title { font-size: 1.02rem; }
	.mpr-dish-desc { font-size: .875rem; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.mpr-dish-buy { justify-content: flex-start; }
	.mpr-dish a.button { padding: 9px 16px; font-size: 14px; }
	.mpr-section { padding-top: 44px; }
	.mpr-section-head { margin-bottom: 24px; }
	.mpr-cats ul { padding: 10px 0; }
	.mpr-cats a { padding: 8px 14px; font-size: 14px; }

	.mpr-pop { padding: 0; align-items: end; }
	.mpr-pop-dialog { width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: 22px 22px 0 0; }
	.mpr-form-head, .mpr-form-opt, .mpr-form-note, .mpr-form-foot, .mpr-form-group legend { padding-left: 18px; padding-right: 18px; }
	.mpr-form-name { font-size: 1.35rem; }
	.mpr-form-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
	.mpr-form-add { min-width: 0; font-size: 1rem; padding: 12px 14px; }
	.mpr-qty-btn { width: 36px; }
	.mpr-qty input { width: 32px; }

	.mpr-toast { left: 16px; right: 16px; width: auto; max-width: none; transform: translateY(calc(100% + 40px)); }
	.mpr-toast.is-visible { transform: none; }
	.mpr-steps ol { gap: 4px; }
	.mpr-steps li a, .mpr-steps li .mpr-step { flex-direction: column; gap: 4px; min-height: 60px; padding: 6px 4px; border-radius: 14px; font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
	.mpr-dish, .mpr-toast, .mpr-cart-link, .mpr-panel { transition: none; }
	.mpr-dish:hover { transform: none; }
	.mpr-cart-link.bump { animation: none; }
	.mpr-spin { animation-duration: 2s; }
}

/* Modifier groups in the dish form ---------------------------------------- */
.mpr-form-req.is-optional { background: var(--mpr-soft); color: var(--mpr-text); opacity: .8; }
.mpr-mod.is-missing legend { box-shadow: inset 4px 0 0 var(--mpr-err); }
.mpr-mod.is-missing .mpr-form-req { background: var(--mpr-err); color: #fff; }
.mpr-form-opt.is-check input { border-radius: 6px; }
.mpr-form-opt.is-check input::after { width: 11px; height: 6px; border-radius: 0; background: transparent; border: solid transparent; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); }
.mpr-form-opt.is-check input:checked { background: var(--mpr-brand); border-color: var(--mpr-brand); box-shadow: none; }
.mpr-form-opt.is-check input:checked::after { background: transparent; border-color: #fff; }
.mpr-form-opt.is-out { opacity: .5; cursor: not-allowed; }
.mpr-form-opt.is-out .mpr-form-opt-price { font-weight: 600; font-size: .85rem; }
.mpr-form-opt input:disabled { cursor: not-allowed; }

/* Dish labels (Restaurant Suite 1.16) */
.mpr-labels { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
/* Cards: follow the card's own text alignment (centered cards → centered labels). */
.mpr-labels.is-card { display: block; text-align: inherit; margin: 2px 0 10px; font-size: 0; }
.mpr-labels.is-card .mpr-label { margin: 3px; vertical-align: middle; }
.mpr-label { --mpr-lb: currentColor; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 7px; border-radius: 999px; border: 1px solid var(--mpr-line); border-color: color-mix(in srgb, var(--mpr-lb) 35%, transparent); background: var(--mpr-soft); background: color-mix(in srgb, var(--mpr-lb) 12%, transparent); color: inherit; font-size: 12px; font-weight: 600; line-height: 1.3; }
.mpr-label .mpr-label-ico { flex-shrink: 0; }
.mpr-labels.is-popup { margin: 8px 0 4px; }
.mpr-labels.is-popup .mpr-label { font-size: 13px; padding: 4px 11px 4px 8px; }
.mpr-dish[hidden], .mpr-section[hidden] { display: none !important; }
.mpr-filter { padding: 18px 0 0; color: var(--mpr-text); }
.mpr-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mpr-filter-title { font-size: 14px; font-weight: 700; margin-right: 4px; }
.mpr-filter-chip, .mpr-filter-clear { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 11px; border-radius: 999px; border: 1px solid var(--mpr-line); background: var(--mpr-card); color: inherit; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.mpr-filter-chip:hover { border-color: currentColor; }
.mpr-filter-chip .mpr-label-ico { stroke: var(--mpr-lb, currentColor); }
.mpr-filter-chip[aria-pressed="true"] { background: var(--mpr-lb, var(--mpr-btn)); border-color: var(--mpr-lb, var(--mpr-btn)); color: #fff; }
.mpr-filter-chip[aria-pressed="true"] .mpr-label-ico { stroke: #fff; }
.mpr-filter-clear { padding: 0 14px; background: none; text-decoration: underline; }
.mpr-filter-clear[hidden], .mpr-filter-empty[hidden] { display: none; }
.mpr-filter-note { margin: 8px 0 0; font-size: 13px; opacity: .75; }
.mpr-filter-empty { margin: 16px 0 0; font-weight: 600; }
@media (max-width: 600px) {
	.mpr-filter-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
	.mpr-filter-row::-webkit-scrollbar { display: none; }
	.mpr-filter-chip, .mpr-filter-title, .mpr-filter-clear { flex-shrink: 0; }
}
