/**
 * Mataam storefront.
 *
 * Themes vary wildly, so this file styles only what the plugin adds and leans
 * on system fonts and neutral colour so it sits inside most WooCommerce themes
 * without a fight. Everything scopes under .mataam-* to avoid bleeding out.
 */

.mataam-menu,
.mataam-picker,
.mataam-branches,
.mataam-track,
.mataam-bar {
	--m-ink: #16191d;
	--m-dim: #666e78;
	--m-line: #e3e6ea;
	--m-bg: #fff;
	--m-accent: #16a34a;
	--m-warn: #b45309;
	--m-bad: #b91c1c;
	--m-radius: 12px;
}

.mataam-locked { overflow: hidden; }

/* ------------------------------------------------------------------ *
 * Branch picker modal
 * ------------------------------------------------------------------ */

.mataam-picker {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.mataam-picker[hidden] { display: none; }

.mataam-picker__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 15, 20, 0.55);
	backdrop-filter: blur(2px);
}

.mataam-picker__panel {
	position: relative;
	width: min(520px, 100%);
	max-height: min(88vh, 760px);
	overflow-y: auto;
	background: var(--m-bg);
	color: var(--m-ink);
	border-radius: 16px;
	padding: 26px 24px 24px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	animation: mataam-rise 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mataam-rise {
	from { opacity: 0; transform: translateY(14px) scale(0.98); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.mataam-picker__panel { animation: none; }
}

.mataam-picker__close {
	position: absolute;
	top: 12px;
	inset-inline-end: 14px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--m-dim);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.mataam-picker__close:hover { background: #f2f4f6; }

.mataam-picker__title {
	margin: 0 0 6px;
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.mataam-picker__lede {
	margin: 0 0 18px;
	color: var(--m-dim);
	font-size: 0.92rem;
	line-height: 1.5;
}

.mataam-picker__back {
	background: none;
	border: 0;
	padding: 0 0 10px;
	color: var(--m-dim);
	font-size: 0.85rem;
	cursor: pointer;
}

/* Order type cards */

.mataam-picker__types {
	display: grid;
	gap: 10px;
	margin-top: 18px;
}

.mataam-picker__type {
	display: grid;
	gap: 3px;
	padding: 18px 20px;
	text-align: start;
	background: var(--m-bg);
	border: 1.5px solid var(--m-line);
	border-radius: var(--m-radius);
	cursor: pointer;
	transition: border-color 140ms ease, transform 140ms ease;
}

.mataam-picker__type:hover {
	border-color: var(--m-ink);
	transform: translateY(-1px);
}

.mataam-picker__type-name { font-size: 1.05rem; font-weight: 650; }
.mataam-picker__type-note { font-size: 0.85rem; color: var(--m-dim); }

/* Location step */

.mataam-picker__search { display: flex; gap: 8px; margin-bottom: 10px; }

.mataam-picker__input {
	flex: 1;
	min-width: 0;
	padding: 11px 14px;
	border: 1.5px solid var(--m-line);
	border-radius: 10px;
	font-size: 0.95rem;
}

.mataam-picker__input:focus { outline: 2px solid var(--m-ink); outline-offset: 1px; border-color: transparent; }

.mataam-picker__locate {
	flex-shrink: 0;
	padding: 11px 14px;
	border: 1.5px solid var(--m-line);
	border-radius: 10px;
	background: var(--m-bg);
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.mataam-picker__locate:hover { border-color: var(--m-ink); }

.mataam-picker__results {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	border: 1px solid var(--m-line);
	border-radius: 10px;
	max-height: 190px;
	overflow-y: auto;
}

.mataam-picker__results li { border-bottom: 1px solid var(--m-line); margin: 0; }
.mataam-picker__results li:last-child { border-bottom: 0; }

.mataam-picker__results button {
	display: block;
	width: 100%;
	padding: 11px 14px;
	text-align: start;
	background: none;
	border: 0;
	font-size: 0.88rem;
	line-height: 1.4;
	cursor: pointer;
}

.mataam-picker__results button:hover { background: #f6f7f8; }
.mataam-picker__results .is-empty { padding: 11px 14px; font-size: 0.88rem; color: var(--m-dim); }

.mataam-picker__map {
	height: 250px;
	border-radius: var(--m-radius);
	border: 1px solid var(--m-line);
	margin-bottom: 10px;
	z-index: 1;
}

.mataam-picker__pin {
	margin: 0 0 14px;
	font-size: 0.86rem;
	color: var(--m-dim);
	min-height: 1.2em;
	line-height: 1.4;
}

.mataam-picker__confirm {
	display: block;
	width: 100%;
	padding: 14px;
	border: 0;
	border-radius: 10px;
	background: var(--m-ink);
	color: #fff;
	font-size: 1rem;
	font-weight: 650;
	cursor: pointer;
}

.mataam-picker__confirm:hover { opacity: 0.9; }

/* Branch list */

.mataam-picker__branches { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }

.mataam-picker__branch { margin: 0; }

.mataam-picker__branch-btn {
	display: grid;
	gap: 3px;
	width: 100%;
	padding: 15px 18px;
	text-align: start;
	background: var(--m-bg);
	border: 1.5px solid var(--m-line);
	border-radius: var(--m-radius);
	cursor: pointer;
	transition: border-color 140ms ease;
}

.mataam-picker__branch-btn:hover { border-color: var(--m-ink); }

.mataam-picker__branch.is-closed .mataam-picker__branch-btn { opacity: 0.62; }
.mataam-picker__branch.is-far .mataam-picker__branch-btn { border-style: dashed; }

.mataam-picker__branch-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mataam-picker__branch-head strong { font-size: 1.02rem; font-weight: 650; }

.mataam-picker__nearest {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 2px 7px;
	border-radius: 4px;
	background: #dcfce7;
	color: #14532d;
}

.mataam-picker__branch-meta { font-size: 0.84rem; color: var(--m-dim); }
.mataam-picker__branch-addr { font-size: 0.8rem; color: var(--m-dim); }
.mataam-picker__none { padding: 20px; text-align: center; color: var(--m-dim); }

/* Loading */

.mataam-picker__loading {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 16px;
	font-size: 0.9rem;
	color: var(--m-dim);
}

.mataam-picker__loading[hidden] { display: none; }

.mataam-picker__spinner {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 3px solid var(--m-line);
	border-top-color: var(--m-ink);
	animation: mataam-spin 800ms linear infinite;
}

@keyframes mataam-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ *
 * Map pin
 * ------------------------------------------------------------------ */

.mataam-pin { position: relative; }

.mataam-pin__dot {
	position: absolute;
	inset: 5px;
	background: #16a34a;
	border: 2.5px solid #fff;
	border-radius: 50%;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}

.mataam-pin__pulse {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: rgba(22, 163, 74, 0.28);
	animation: mataam-pulse 1.9s ease-out infinite;
}

@keyframes mataam-pulse {
	0% { transform: scale(0.6); opacity: 0.9; }
	100% { transform: scale(1.9); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.mataam-pin__pulse { animation: none; opacity: 0.35; }
}

/* ------------------------------------------------------------------ *
 * Menu
 * ------------------------------------------------------------------ */

.mataam-menu { color: var(--m-ink); }

.mataam-menu__header {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	background: #f8f9fa;
	border-radius: var(--m-radius);
	margin-bottom: 22px;
}

.mataam-menu__branch { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mataam-menu__branch-label { font-size: 0.78rem; color: var(--m-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.mataam-menu__branch-name { font-size: 1.06rem; font-weight: 700; }

.mataam-menu__change {
	background: none;
	border: 0;
	color: var(--m-dim);
	font-size: 0.84rem;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
}

.mataam-status {
	font-size: 0.76rem;
	font-weight: 650;
	padding: 2px 8px;
	border-radius: 999px;
}

.mataam-status--open { background: #dcfce7; color: #14532d; }
.mataam-status--closed { background: #fee2e2; color: #7f1d1d; }

.mataam-menu__types,
.mataam-inline-picker__types { display: inline-flex; gap: 4px; padding: 3px; background: #eceff1; border-radius: 999px; }

.mataam-type-toggle {
	border: 0;
	background: transparent;
	padding: 7px 16px;
	border-radius: 999px;
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--m-dim);
	cursor: pointer;
}

.mataam-type-toggle.is-active { background: #fff; color: var(--m-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }

.mataam-menu__nav {
	position: sticky;
	top: 0;
	z-index: 5;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(8px);
	padding: 10px 0;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--m-line);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.mataam-menu__nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.mataam-menu__nav li { margin: 0; }

.mataam-menu__nav a {
	display: block;
	padding: 7px 14px;
	border-radius: 999px;
	background: #f2f4f6;
	color: var(--m-ink);
	font-size: 0.86rem;
	font-weight: 600;
	text-decoration: none;
}

.mataam-menu__nav a:hover { background: var(--m-ink); color: #fff; }

.mataam-menu__search { margin-bottom: 20px; }

.mataam-menu__search-input {
	width: 100%;
	padding: 12px 16px;
	border: 1.5px solid var(--m-line);
	border-radius: 10px;
	font-size: 0.95rem;
}

.mataam-menu__section { margin-bottom: 38px; scroll-margin-top: 70px; }

.mataam-menu__section-title {
	margin: 0 0 4px;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.mataam-menu__section-desc { margin: 0 0 16px; color: var(--m-dim); font-size: 0.9rem; }

.mataam-menu__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mataam-menu__items--cols-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.mataam-menu__items--cols-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.mataam-menu__items--cols-1 { grid-template-columns: 1fr; }

.mataam-item {
	display: flex;
	gap: 14px;
	padding: 14px;
	border: 1px solid var(--m-line);
	border-radius: var(--m-radius);
	background: var(--m-bg);
	margin: 0;
	transition: border-color 140ms ease;
}

.mataam-item:hover { border-color: #c9ced4; }
.mataam-item.is-soldout { opacity: 0.55; }

.mataam-item__media { flex-shrink: 0; width: 84px; }
.mataam-item__media img { width: 84px; height: 84px; object-fit: cover; border-radius: 9px; display: block; }

.mataam-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }

.mataam-item__name { margin: 0; font-size: 1rem; font-weight: 650; line-height: 1.3; }
.mataam-item__name a { color: inherit; text-decoration: none; }
.mataam-item__name a:hover { text-decoration: underline; }

.mataam-item__desc { margin: 0; font-size: 0.84rem; color: var(--m-dim); line-height: 1.45; }

.mataam-item__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.mataam-item__price { font-weight: 700; font-size: 0.98rem; }
.mataam-item__price del { font-weight: 400; opacity: 0.6; font-size: 0.85em; }

.mataam-item__soldout {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--m-bad);
}

.mataam-menu__empty { padding: 40px; text-align: center; color: var(--m-dim); }

/* ------------------------------------------------------------------ *
 * Modifiers on the product page
 * ------------------------------------------------------------------ */

.mataam-modifiers { margin: 20px 0; display: grid; gap: 18px; }

.mataam-modifier-group { border: 0; padding: 0; margin: 0; }

.mataam-modifier-group__title {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 0 8px;
	font-size: 0.95rem;
	font-weight: 700;
}

.mataam-required,
.mataam-hint {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 2px 7px;
	border-radius: 4px;
}

.mataam-required { background: #fee2e2; color: #7f1d1d; }
.mataam-hint { background: #f1f3f5; color: var(--m-dim); }

.mataam-modifier-options { display: grid; gap: 6px; }

.mataam-modifier-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 14px;
	border: 1.5px solid var(--m-line);
	border-radius: 9px;
	cursor: pointer;
	font-size: 0.92rem;
}

.mataam-modifier-option:hover { border-color: #c9ced4; }
.mataam-modifier-option:has(input:checked) { border-color: var(--m-ink); background: #fafbfc; }
.mataam-modifier-option__label { flex: 1; }
.mataam-modifier-option__price { font-size: 0.85rem; color: var(--m-dim); font-weight: 600; }

.mataam-item-note-field { margin: 16px 0; }
.mataam-item-note-field label { display: block; margin-bottom: 5px; font-size: 0.88rem; font-weight: 600; }
.mataam-item-note-field input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--m-line); border-radius: 9px; }

/* Cart notes */

.mataam-item-note { margin-top: 7px; }

.mataam-item-note__input {
	width: 100%;
	max-width: 320px;
	padding: 7px 11px;
	border: 1px solid var(--m-line);
	border-radius: 7px;
	font-size: 0.84rem;
}

/* ------------------------------------------------------------------ *
 * Checkout additions
 * ------------------------------------------------------------------ */

.mataam-checkout-map {
	height: 260px;
	border-radius: var(--m-radius);
	border: 1px solid #e3e6ea;
	margin: 10px 0;
	z-index: 1;
}

.mataam-checkout-locate {
	padding: 10px 16px;
	border: 1.5px solid #e3e6ea;
	border-radius: 9px;
	background: #fff;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
}

.mataam-checkout-branch {
	padding: 14px 16px;
	background: #f8f9fa;
	border-radius: var(--m-radius);
	margin-bottom: 18px;
	font-size: 0.92rem;
}

.mataam-schedule { display: grid; gap: 10px; margin: 14px 0; }
.mataam-schedule select { padding: 10px 12px; border: 1.5px solid #e3e6ea; border-radius: 9px; }

/* ------------------------------------------------------------------ *
 * Branch locator
 * ------------------------------------------------------------------ */

.mataam-map--locator {
	height: 380px;
	border-radius: var(--m-radius);
	border: 1px solid var(--m-line);
	margin-bottom: 24px;
	z-index: 1;
}

.mataam-branches__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.mataam-branches--cols-2 .mataam-branches__list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.mataam-branches--cols-3 .mataam-branches__list { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.mataam-branches__item {
	margin: 0;
	padding: 18px;
	border: 1px solid var(--m-line);
	border-radius: var(--m-radius);
}

.mataam-branches__item h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 700; }
.mataam-branches__address { margin: 8px 0; font-size: 0.88rem; color: var(--m-dim); line-height: 1.5; }
.mataam-branches__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 0; font-size: 0.88rem; }

.mataam-branches__order {
	border: 0;
	background: var(--m-ink);
	color: #fff;
	padding: 9px 16px;
	border-radius: 8px;
	font-size: 0.86rem;
	font-weight: 600;
	cursor: pointer;
}

/* ------------------------------------------------------------------ *
 * Sticky bar
 * ------------------------------------------------------------------ */

.mataam-bar {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--m-ink);
	color: #fff;
}

.mataam-bar__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 9px 18px;
}

.mataam-bar__branch,
.mataam-bar__type {
	display: grid;
	gap: 1px;
	background: none;
	border: 0;
	color: inherit;
	text-align: start;
	cursor: pointer;
	padding: 0;
}

.mataam-bar__eyebrow { font-size: 0.66rem; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.08em; }
.mataam-bar__value { font-size: 0.92rem; font-weight: 650; }
.mataam-bar__divider { width: 1px; height: 26px; background: rgba(255, 255, 255, 0.2); }

/* ------------------------------------------------------------------ *
 * Inline picker
 * ------------------------------------------------------------------ */

.mataam-inline-picker { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 16px 0; }

.mataam-inline-picker__select {
	padding: 10px 14px;
	border: 1.5px solid var(--m-line);
	border-radius: 9px;
	font-size: 0.92rem;
	min-width: 200px;
}

.mataam-inline-picker__more {
	background: none;
	border: 0;
	color: var(--m-dim);
	text-decoration: underline;
	font-size: 0.86rem;
	cursor: pointer;
}

/* ------------------------------------------------------------------ *
 * Order tracking
 * ------------------------------------------------------------------ */

.mataam-track { max-width: 520px; margin: 0 auto; }
.mataam-track__title { margin: 0 0 24px; font-size: 1.4rem; font-weight: 700; }

.mataam-track__steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 0; }

.mataam-track__step {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 0 0 26px;
	margin: 0;
}

.mataam-track__step:last-child { padding-bottom: 0; }

.mataam-track__step::before {
	content: "";
	position: absolute;
	inset-inline-start: 8px;
	top: 18px;
	bottom: 0;
	width: 2px;
	background: var(--m-line);
}

.mataam-track__step:last-child::before { display: none; }
.mataam-track__step.is-done::before { background: var(--m-accent); }

.mataam-track__dot {
	position: relative;
	z-index: 1;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2.5px solid var(--m-line);
	background: #fff;
	flex-shrink: 0;
}

.mataam-track__step.is-done .mataam-track__dot { background: var(--m-accent); border-color: var(--m-accent); }

.mataam-track__step.is-current .mataam-track__dot {
	border-color: var(--m-accent);
	box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16);
}

.mataam-track__label { font-size: 0.98rem; color: var(--m-dim); }
.mataam-track__step.is-current .mataam-track__label { font-weight: 700; color: var(--m-ink); }
.mataam-track__step.is-done .mataam-track__label { color: var(--m-ink); }

.mataam-track__driver,
.mataam-track__eta {
	padding: 14px 16px;
	background: #f8f9fa;
	border-radius: var(--m-radius);
	font-size: 0.92rem;
	margin: 0 0 10px;
}

.mataam-track__empty { padding: 40px; text-align: center; color: var(--m-dim); }

/* Order confirmation */

.mataam-order-branch { margin-top: 28px; }

/* ------------------------------------------------------------------ *
 * Mobile
 * ------------------------------------------------------------------ */

@media screen and (max-width: 600px) {
	.mataam-picker { padding: 0; align-items: flex-end; }

	.mataam-picker__panel {
		width: 100%;
		max-height: 92vh;
		border-radius: 18px 18px 0 0;
		padding: 24px 18px calc(20px + env(safe-area-inset-bottom));
	}

	.mataam-menu__items--cols-2,
	.mataam-menu__items--cols-3 { grid-template-columns: 1fr; }

	.mataam-menu__header { flex-direction: column; align-items: flex-start; }
	.mataam-picker__search { flex-direction: column; }
	.mataam-picker__locate { width: 100%; }
}

/* ------------------------------------------------------------------ *
 * Checkout
 *
 * The map container is the important one here: Leaflet renders into a
 * div that has no intrinsic height, so without an explicit height the
 * map collapses to nothing and the customer sees a heading, a hint and
 * a button with an invisible gap where the map should be.
 * ------------------------------------------------------------------ */

.mataam-map {
	height: 280px;
	min-height: 280px;
	width: 100%;
	border-radius: 12px;
	border: 1px solid #e3e6ea;
	margin: 10px 0;
	background: #eef1f4;
	z-index: 1;
}

.mataam-map--locator { height: 380px; min-height: 380px; }
.mataam-picker__map { height: 250px; min-height: 250px; }

@media screen and (max-width: 600px) {
	.mataam-map { height: 240px; min-height: 240px; }
}

.mataam-field-group {
	margin: 0 0 26px;
	padding: 18px 20px;
	border: 1px solid #e3e6ea;
	border-radius: 12px;
	background: #fff;
}

.mataam-field-group h3 {
	margin: 0 0 4px;
	font-size: 1.05rem;
	font-weight: 650;
	letter-spacing: -0.01em;
}

.mataam-hint {
	display: block;
	margin: 0 0 10px;
	font-size: 0.82rem;
	color: #666e78;
	line-height: 1.5;
}

.mataam-locate-me,
.mataam-checkout-locate {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	border: 1.5px solid #e3e6ea;
	border-radius: 10px;
	background: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	color: inherit;
}

.mataam-locate-me:hover,
.mataam-checkout-locate:hover { border-color: #16191d; }

.mataam-pin-readout {
	margin: 10px 0 0;
	font-size: 0.86rem;
	color: #666e78;
	min-height: 1.2em;
	line-height: 1.45;
}

.mataam-pin-readout.is-set { color: #14532d; font-weight: 600; }

.mataam-select {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid #e3e6ea;
	border-radius: 10px;
	font-size: 0.95rem;
	background: #fff;
}

.mataam-checkout-context {
	padding: 16px 18px;
	background: #f8f9fa;
	border-radius: 12px;
	margin-bottom: 22px;
}

.mataam-checkout-context__row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	align-items: baseline;
}

.mataam-checkout-context__label {
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #666e78;
}

.mataam-checkout-context__closed {
	display: block;
	margin-top: 8px;
	color: #b91c1c;
	font-weight: 600;
	font-size: 0.9rem;
}

.mataam-checkout-notice {
	padding: 12px 16px;
	border-inline-start: 3px solid #b45309;
	background: #fffbeb;
	border-radius: 0 8px 8px 0;
	font-size: 0.9rem;
	margin: 0 0 16px;
}

.mataam-cutlery { padding-bottom: 6px; }

.mataam-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: #f1f3f5;
	color: #666e78;
}

.mataam-badge--86 { background: #fee2e2; color: #7f1d1d; }

/* Map fallback — shown only when the mapping library cannot load. */

.mataam-map--fallback {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px;
	text-align: center;
	background: #f7f8f9;
	border-style: dashed;
}

.mataam-map__fallbacktext {
	margin: 0;
	max-width: 40ch;
	font-size: 0.88rem;
	color: #666e78;
	line-height: 1.5;
}

.mataam-map__fallbackbtn {
	padding: 11px 20px;
	border: 1.5px solid #16191d;
	border-radius: 10px;
	background: #16191d;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 650;
	cursor: pointer;
}

/* Order-received: the tracking hand-off. */

.mataam-thanks {
	padding: 24px 26px;
	background: #f8f9fa;
	border-radius: 14px;
	margin: 0 0 28px;
	text-align: center;
}

.mataam-thanks__title { margin: 0 0 6px; font-size: 1.25rem; font-weight: 700; }
.mataam-thanks__line { margin: 0 0 18px; color: #666e78; }

.mataam-thanks__btn {
	display: inline-block;
	padding: 14px 30px;
	border-radius: 11px;
	background: #16a34a;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.mataam-thanks__btn:hover { background: #15803d; color: #fff; }
.mataam-thanks__hint { margin: 14px 0 0; font-size: 0.82rem; color: #666e78; }
.mataam-order-track { margin: 0 0 14px; font-weight: 600; }

/* Mobile: the pin section must survive whatever the theme does to checkout.
   Some themes collapse or hide unfamiliar blocks inside the order-notes area,
   and a delivery order with no way to drop a pin is a dead end. */

#mataam-checkout-extras,
#mataam-checkout-extras .mataam-field-group {
	display: block !important;
	visibility: visible !important;
}

#mataam-checkout-extras .mataam-map {
	display: block !important;
	min-height: 240px !important;
}

@media screen and (max-width: 782px) {
	#mataam-checkout-extras { margin-top: 18px; }
	#mataam-checkout-extras .mataam-map { min-height: 260px !important; }
	.mataam-locate-me,
	.mataam-checkout-locate { width: 100%; justify-content: center; }
}
