/*
 * Mettäbaari: styles theme.json cannot express (textures, section looks,
 * header, quick-action bar, WooCommerce on a dark background).
 * Colours and fonts come from theme.json presets.
 */

/*
 * Design rules (see "Design rules" in AGENTS.md):
 * - Three surfaces for full-width sections: base (the page), raised and
 *   accent (ember). Neighbouring sections never share a surface; accent
 *   and wood appear at most once in a page's content. The "Surfaces"
 *   section below enforces both.
 * - One card look, one section padding, one button hierarchy.
 */
:root {
	--mb-base: var(--wp--preset--color--base);
	--mb-raised: var(--wp--preset--color--raised);
	--mb-card: var(--wp--preset--color--card);
	--mb-bark: var(--wp--preset--color--bark);
	--mb-cream: var(--wp--preset--color--cream);
	--mb-rust: var(--wp--preset--color--rust);
	--mb-ember: var(--wp--preset--color--ember);
	--mb-stone: var(--wp--preset--color--stone);
	--mb-sand: var(--wp--preset--color--sand);
	--mb-ink: var(--wp--preset--color--ink);
	--mb-radius: 8px;
	--mb-line: rgba(255, 247, 229, 0.12);
	--mb-card-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.75);
	--mb-section-pad: var(--wp--preset--spacing--60);
}

body {
	-webkit-font-smoothing: antialiased;
}

.mb-main {
	margin-block-start: 0;
}

.mb-content--flush,
.mb-main > .mb-content--flush {
	margin-block-start: 0;
}

:where(.mb-content) > .alignfull:first-child {
	margin-block-start: 0;
}

:where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

/* ---------- Spaced caps (labels, small headings) ---------- */

.is-style-mb-wide {
	font-family: var(--wp--preset--font-family--wide);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

h1.is-style-mb-wide,
h2.is-style-mb-wide,
h3.is-style-mb-wide {
	font-size: clamp(1.3rem, 2.8vw, 1.9rem);
	line-height: 1.3;
}

/* ---------- Surfaces (Group block → Styles) ----------
 *
 * Base     .is-style-mb-base    the page itself, deepest warm dark
 * Raised   .is-style-mb-raised  a step lighter; alternates with base
 *          (.is-style-mb-band and .is-style-mb-stone are older names for it)
 * Accent   .is-style-mb-ember   burnt orange, once per page
 * Wood     .is-style-mb-wood, .is-style-mb-wood-dark  texture, once per page
 * Photo    .is-style-mb-sign / .mb-sign  the welcome sign photo
 * Card     .is-style-mb-card    the one card look, on any surface
 */

.is-style-mb-base {
	background-color: var(--mb-base);
	color: var(--mb-cream);
}

.is-style-mb-raised,
.is-style-mb-band,
.is-style-mb-stone {
	background-color: var(--mb-raised);
	color: var(--mb-cream);
}

.is-style-mb-ember {
	background-color: var(--mb-ember);
	color: var(--mb-cream);
}

.is-style-mb-wood,
.is-style-mb-wood-dark,
.mb-title-band {
	background-color: var(--mb-raised);
	background-image:
		linear-gradient(rgba(23, 19, 15, 0.42), rgba(23, 19, 15, 0.42)),
		var(--mb-wood-wall);
	background-size: cover;
	background-position: center;
	color: var(--mb-cream);
}

.is-style-mb-wood-dark {
	background-image:
		linear-gradient(rgba(23, 19, 15, 0.74), rgba(23, 19, 15, 0.74)),
		var(--mb-wood-wall);
}

.is-style-mb-wood :where(h1, h2, h3, p),
.mb-title-band :where(h1, h2, h3, p) {
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

/* One card look everywhere: content cards, event cards, tickets, footer details, shop products, the contact form. */
.is-style-mb-card {
	background-color: var(--mb-card);
	border: 1px solid var(--mb-line);
	border-radius: var(--mb-radius);
	box-shadow: var(--mb-card-shadow);
	padding: var(--wp--preset--spacing--40);
}

/* One vertical padding for every full-width section. */
:where(.is-style-mb-base, .is-style-mb-raised, .is-style-mb-band, .is-style-mb-stone, .is-style-mb-ember, .is-style-mb-wood, .is-style-mb-wood-dark, .is-style-mb-sign, .mb-sign) {
	padding-top: var(--mb-section-pad);
	padding-bottom: var(--mb-section-pad);
}

.mb-title-band {
	padding-top: var(--wp--preset--spacing--50);
	padding-bottom: var(--wp--preset--spacing--50);
}

/*
 * The surface rules, applied on the site and in the editor:
 * - a section right after one with the same surface switches to the other dark;
 * - only the first accent and the first wood section of the content keep
 *   their look, later ones turn raised;
 * - wood right under the wood title band turns raised.
 */
:is(.mb-content, .is-root-container) > .alignfull.is-style-mb-base + .alignfull.is-style-mb-base {
	background-color: var(--mb-raised);
}

:is(.mb-content, .is-root-container) > .alignfull:is(.is-style-mb-raised, .is-style-mb-band, .is-style-mb-stone) + .alignfull:is(.is-style-mb-raised, .is-style-mb-band, .is-style-mb-stone) {
	background-color: var(--mb-base);
}

:is(.mb-content, .is-root-container) > .alignfull.is-style-mb-ember ~ .alignfull.is-style-mb-ember,
:is(.mb-content, .is-root-container) > .alignfull:is(.is-style-mb-wood, .is-style-mb-wood-dark) ~ .alignfull:is(.is-style-mb-wood, .is-style-mb-wood-dark),
.mb-title-band + .mb-content > .alignfull:first-child:is(.is-style-mb-wood, .is-style-mb-wood-dark) {
	background-color: var(--mb-raised);
	background-image: none;
}

/* Section headings keep clear of the text below them. */
:where(.is-style-mb-base, .is-style-mb-raised, .is-style-mb-band, .is-style-mb-stone, .is-style-mb-wood, .is-style-mb-wood-dark, .is-style-mb-ember, .is-style-mb-sign, .mb-sign, .mb-cell-text) > h2 + * {
	margin-block-start: 1rem;
}

/* Small spaced-caps line under a section heading. */
:where(.is-style-mb-base, .is-style-mb-raised, .is-style-mb-band, .is-style-mb-stone, .is-style-mb-wood, .is-style-mb-wood-dark, .is-style-mb-ember) > h2 + p.is-style-mb-wide {
	margin-block-start: 0.6rem;
	opacity: 0.85;
}

/* Lead paragraph: the first, larger line of a section. */
.mb-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.45;
}

/* Plain pages: space between the title band and the first block, and before the footer. */
.mb-content > :first-child:not(.alignfull) {
	margin-block-start: var(--wp--preset--spacing--50) !important;
}

.mb-content > :last-child:not(.alignfull) {
	margin-block-end: var(--wp--preset--spacing--60) !important;
}

/* ---------- Buttons and images ---------- */

.wp-block-button.is-style-mb-light .wp-block-button__link {
	background-color: var(--mb-cream);
	color: var(--mb-base);
}

.wp-block-button.is-style-mb-light .wp-block-button__link:hover {
	background-color: var(--mb-sand);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid currentColor;
	color: inherit;
}

.wp-block-image.is-style-mb-framed img,
.wp-block-post-featured-image.is-style-mb-framed img {
	border-radius: var(--mb-radius);
	outline: 1px solid rgba(255, 247, 229, 0.14);
	outline-offset: -1px;
	box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
}

/* ---------- Header ---------- */

.mb-header {
	background-color: var(--mb-raised);
	background-image:
		linear-gradient(rgba(20, 13, 6, 0.45), rgba(20, 13, 6, 0.45)),
		var(--mb-wood-strip);
	background-size: cover;
	background-position: center;
	padding-top: 0.6rem;
	padding-bottom: 0.6rem;
	position: relative;
	z-index: 50;
}

.mb-header__inner {
	gap: 1rem;
}

.mb-header__nav {
	gap: 1.2rem;
	align-items: center;
}

.mb-header .wp-block-navigation {
	font-size: 1rem;
	font-weight: 500;
}

.mb-header .wp-block-navigation a {
	text-decoration: none;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* Every header link is at least a 24 × 24 px tap target, short "EN" / "FI" too. */
.mb-header .wp-block-navigation-item__content {
	min-width: 24px;
	min-height: 24px;
	text-align: center;
}

/*
 * The cart drawer stays out of the keyboard order and the accessibility tree
 * while it is closed; it hides only after its fade-out ends.
 */
.wc-block-components-drawer__screen-overlay--is-hidden {
	visibility: hidden;
	transition: opacity 0.3s, visibility 0s 0.3s;
}

.mb-header .wp-block-navigation a:hover,
.mb-header .wp-block-navigation .current-menu-item > a,
.mb-header .wp-block-navigation a[aria-current="page"] {
	text-decoration: underline;
	text-underline-offset: 6px;
}

.mb-header__logo img {
	display: block;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

/* Hamburger and close buttons: 44px tap targets that read on the wood. */
.mb-header .wp-block-navigation__responsive-container-open:not([hidden]),
.mb-header .wp-block-navigation__responsive-container-close {
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	color: var(--mb-cream);
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.6));
}

.mb-header .wp-block-navigation__responsive-container-open svg {
	width: 32px;
	height: 32px;
}

.mb-header .wp-block-navigation__responsive-container-close svg {
	width: 30px;
	height: 30px;
}

/* Language switcher: the last item of the main menu, "EN ▾" with a dropdown. */
.mb-header .mb-nav-lang {
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mb-header .mb-nav-lang .wp-block-navigation__submenu-container {
	min-width: 0 !important;
	padding: 0.35rem 0;
	background-color: var(--mb-raised) !important;
	color: var(--mb-cream) !important;
	border: 1px solid rgba(255, 247, 229, 0.2) !important;
	border-radius: var(--mb-radius);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.mb-header .mb-nav-lang .wp-block-navigation__submenu-container a {
	padding: 0.45rem 1.1rem;
	text-shadow: none;
}

.mb-header .mb-nav-lang .current-lang > a {
	text-decoration: underline;
	text-underline-offset: 6px;
}

@media (min-width: 1024px) {
	.mb-header .mb-nav-lang {
		margin-left: 0.4rem;
		padding-left: 1.1rem;
		border-left: 1px solid rgba(255, 247, 229, 0.3);
	}
}

/* Phones and tablets: logo on the left; the cart, then the hamburger at the right edge. */
/*
 * The link row needs about 1024px in Finnish, so narrower screens get the
 * hamburger too (core switches at 600px).
 */
@media (max-width: 1023px) {
	.mb-header .wp-block-navigation__responsive-container-open {
		display: inline-flex;
	}

	.mb-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	.mb-header__nav {
		gap: 0.25rem !important;
	}

	.mb-header__nav > .wp-block-woocommerce-mini-cart,
	.mb-header__nav > .mb-cart {
		order: 1;
	}

	.mb-header__nav > .wp-block-navigation {
		order: 2;
	}
}

/* ---------- Menu overlay (phones and tablets; inc/menu-overlay.php) ----------
 *
 * Top bar like the header (logo left, close button where the hamburger
 * was), centred links with thin separators, language pills, then opening
 * hours, a call button and Instagram at the bottom. On desktop the menu is
 * not an overlay and the extra parts stay hidden.
 */

.mb-header .mb-nav-bar,
.mb-header .mb-nav-info {
	display: none;
}

/* The open menu covers the phone quick-action bar and the cookie banner. */
.mb-header:has(.is-menu-open) {
	z-index: 100000;
}

.mb-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 0;
	background-color: var(--mb-raised) !important;
	background-image:
		linear-gradient(rgba(42, 33, 25, 0.93), rgba(42, 33, 25, 0.97)),
		var(--mb-wood-wall);
	background-size: cover;
	background-position: center;
	animation: mb-menu-in 0.22s ease-out both;
}

@keyframes mb-menu-in {
	from {
		opacity: 0;
		transform: translateX(28px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mb-header .wp-block-navigation__responsive-container.is-menu-open {
		animation: none;
	}
}

.mb-header .is-menu-open .wp-block-navigation__responsive-close {
	max-width: none;
	height: 100%;
}

/* The dialog is a grid: bar and close button share the first row. */
.mb-header .is-menu-open .wp-block-navigation__responsive-dialog {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto minmax(0, 1fr);
	box-sizing: border-box;
	min-height: calc(100% - var(--wp-admin--admin-bar--height, 0px));
	padding-inline: var(--wp--style--root--padding-left, var(--wp--preset--spacing--40)) var(--wp--style--root--padding-right, var(--wp--preset--spacing--40));
}

.mb-header .is-menu-open .mb-nav-bar {
	display: flex;
	align-items: center;
	grid-column: 1;
	grid-row: 1;
	padding-block: 0.6rem;
}

.mb-header .is-menu-open .mb-nav-bar__logo {
	display: block;
	width: 64px;
	height: auto;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.mb-header .is-menu-open .wp-block-navigation__responsive-container-close {
	position: static;
	display: inline-flex;
	grid-column: 2;
	grid-row: 1;
	align-self: center;
	margin: 0;
}

.mb-header .is-menu-open .wp-block-navigation__responsive-container-close svg {
	width: 32px;
	height: 32px;
}

.mb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	grid-column: 1 / -1;
	grid-row: 2;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 1.5rem;
	width: 100%;
	max-width: 30rem;
	margin-inline: auto;
	padding: 0.5rem 0 calc(1.5rem + env(safe-area-inset-bottom));
}

/* Links: centred, large caps, a thin line between them. */
.mb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
}

.mb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	justify-content: center;
	border-bottom: 1px solid var(--mb-line);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.3rem, 5vw, 1.75rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.mb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:first-child {
	border-top: 1px solid var(--mb-line);
}

.mb-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	min-height: 48px;
	padding: 0.3rem 1rem;
	text-align: center;
	text-shadow: none;
	text-decoration: none;
}

/* Current page: a rust underline, never the focus ring. */
.mb-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > a[aria-current="page"] {
	text-decoration: underline;
	text-decoration-color: var(--mb-rust);
	text-decoration-thickness: 4px;
	text-underline-offset: 0.3em;
}

/*
 * The menu moves focus to its first link when it opens. That focus shows
 * only for keyboard users (:focus-visible), as a cream ring inside the row.
 */
.mb-header .is-menu-open :is(a, button):focus:not(:focus-visible) {
	outline: none;
}

.mb-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > a:focus-visible {
	outline: 2px solid var(--mb-cream);
	outline-offset: -4px;
	border-radius: var(--mb-radius);
}

/* Languages: compact pills under the links, the current one filled. */
.mb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .mb-nav-lang {
	align-items: center !important;
	margin-top: 1.25rem;
	padding: 0 !important;
	border: 0 !important;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
}

.mb-header .is-menu-open .mb-nav-lang > .wp-block-navigation-item__content,
.mb-header .is-menu-open .mb-nav-lang > .wp-block-navigation__submenu-icon {
	display: none !important;
}

.mb-header .is-menu-open .mb-nav-lang > .wp-block-navigation__submenu-container {
	display: flex !important;
	flex-flow: row wrap !important;
	justify-content: center;
	width: auto !important;
	gap: 0.6rem !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none;
	background: transparent !important;
}

.mb-header .is-menu-open .mb-nav-lang .wp-block-navigation-item {
	font-size: inherit;
}

.mb-header .is-menu-open .mb-nav-lang .wp-block-navigation__submenu-container a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 64px;
	min-height: 48px;
	padding: 0 1.1rem !important;
	border: 1px solid rgba(255, 247, 229, 0.45);
	border-radius: 999px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
}

.mb-header .is-menu-open .mb-nav-lang .current-lang > a {
	background: var(--mb-cream);
	border-color: var(--mb-cream);
	color: var(--mb-base);
	text-decoration: none;
}

/* Bottom: opening hours, call button, Instagram. */
.mb-header .is-menu-open .mb-nav-info {
	display: block;
	margin-top: auto;
	padding-top: 1.25rem;
	border-top: 1px solid var(--mb-line);
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	text-align: center;
	text-transform: none;
}

.mb-header .mb-nav-info p {
	margin: 0;
}

.mb-header .mb-nav-info__label {
	font-family: var(--wp--preset--font-family--wide);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.75;
}

.mb-header .mb-nav-info__hours {
	margin-top: 0.25rem !important;
}

.mb-header .mb-nav-info__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 0.85rem;
}

.mb-header .mb-nav-info__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	box-sizing: border-box;
	min-height: 48px;
	padding: 0 1rem;
	border: 2px solid rgba(255, 247, 229, 0.7);
	border-radius: 999px;
	color: var(--mb-cream);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.mb-header .mb-nav-info__btn--call {
	background: var(--mb-rust);
	border-color: var(--mb-rust);
}

.mb-header .mb-nav-info__btn:hover {
	border-color: var(--mb-cream);
}

.mb-header .wc-block-mini-cart__button {
	color: var(--mb-cream);
	min-width: 44px;
	min-height: 44px;
	padding: 0.4rem;
	justify-content: center;
}

.mb-header .wc-block-mini-cart__badge {
	background: var(--mb-rust);
	color: var(--mb-cream);
	border-color: var(--mb-rust);
}

/* ---------- Footer ---------- */

.mb-footer a {
	text-decoration: none;
}

.mb-footer a:hover {
	text-decoration: underline;
}

.mb-footer .wp-block-separator {
	border-color: rgba(255, 247, 229, 0.18);
	opacity: 1;
}

.mb-footer h2 {
	margin-bottom: 0.2em;
}

/* ---------- Quick-action bar on phones ---------- */

.wp-block-buttons.mb-mobile-actions {
	display: none !important;
}

@media (max-width: 781px) {
	body {
		padding-bottom: 64px;
	}

	.wp-block-buttons.mb-mobile-actions {
		display: flex !important;
		position: fixed;
		inset: auto 0 0 0;
		z-index: 90;
		gap: 0 !important;
		margin: 0 !important;
		background: var(--mb-ink);
		border-top: 1px solid rgba(255, 247, 229, 0.15);
		padding-bottom: env(safe-area-inset-bottom);
	}

	.mb-mobile-actions .wp-block-button {
		flex: 1 1 0;
		margin: 0;
	}

	.mb-mobile-actions .wp-block-button__link {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 3px;
		width: 100%;
		border-radius: 0;
		background: transparent;
		color: var(--mb-cream);
		font-size: 0.68rem;
		font-weight: 600;
		padding: 9px 2px 8px;
	}

	.mb-mobile-actions .wp-block-button__link::before {
		content: "";
		width: 22px;
		height: 22px;
		background-color: currentColor;
		-webkit-mask: var(--mb-icon) center / contain no-repeat;
		mask: var(--mb-icon) center / contain no-repeat;
	}

	.mb-act--map {
		--mb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E");
	}

	.mb-act--whatsapp {
		--mb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm5.3 14.1c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.5-3.9-4.7-4.1-.1-.2-1.1-1.5-1.1-2.9s.7-2 1-2.3c.3-.3.6-.3.7-.3h.6c.2 0 .4 0 .6.5l.9 2.1c.1.2.1.3 0 .5l-.3.5-.4.4c-.1.1-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.1 1.3 2.4 1.5.3.1.5.1.6-.1l.9-1.1c.2-.3.4-.2.7-.1l2 1c.3.1.5.2.5.3.1.1.1.6-.1 1.2Z'/%3E%3C/svg%3E");
	}

	.mb-act--instagram {
		--mb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm0 8.2a3.2 3.2 0 1 1 0-6.4 3.2 3.2 0 0 1 0 6.4ZM17.3 5.5a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4ZM16.5 2h-9A5.5 5.5 0 0 0 2 7.5v9A5.5 5.5 0 0 0 7.5 22h9a5.5 5.5 0 0 0 5.5-5.5v-9A5.5 5.5 0 0 0 16.5 2Zm3.7 14.5a3.7 3.7 0 0 1-3.7 3.7h-9a3.7 3.7 0 0 1-3.7-3.7v-9a3.7 3.7 0 0 1 3.7-3.7h9a3.7 3.7 0 0 1 3.7 3.7Z'/%3E%3C/svg%3E");
	}

	.mb-act--call {
		--mb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.2 15.2 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2Z'/%3E%3C/svg%3E");
	}
}

/* ---------- Hero ---------- */

.wp-block-cover.mb-hero {
	min-height: min(88svh, 860px) !important;
	padding-block: var(--wp--preset--spacing--60);
	text-align: center;
}

.wp-block-cover.mb-hero .wp-block-cover__background {
	background: linear-gradient(180deg, rgba(18, 12, 6, 0.35) 0%, rgba(18, 12, 6, 0.55) 55%, rgba(18, 12, 6, 0.88) 100%) !important;
	opacity: 1 !important;
}

.mb-hero :where(h1, p) {
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.mb-hero__logo {
	margin-bottom: 0.5rem;
}

.mb-hero__logo img {
	width: clamp(96px, 14vw, 150px);
	height: auto;
	filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55));
}

.mb-hero__title {
	font-size: var(--wp--preset--font-size--giant);
	line-height: 0.9;
	letter-spacing: 0.02em;
	margin-block-start: 0.25rem;
}

.mb-hero__tagline {
	font-size: var(--wp--preset--font-size--large);
	margin-block-start: 0.75rem !important;
}

.mb-hero__hours {
	font-size: 0.95rem;
	opacity: 0.9;
}

.mb-hero .wp-block-buttons {
	margin-block-start: var(--wp--preset--spacing--40);
	gap: 0.75rem;
}

.mb-hero .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: rgba(255, 247, 229, 0.75);
	background: rgba(18, 12, 6, 0.25);
}

/* Home intro: centred text above the photo strip. */
.mb-intro > :where(p) {
	max-width: 40rem;
	margin-inline: auto;
}

.mb-intro .mb-photo-strip {
	margin-block-start: var(--wp--preset--spacing--50);
}

/* Photo strip that scrolls sideways on phones */
.mb-photo-strip.wp-block-gallery {
	flex-wrap: nowrap !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 247, 229, 0.45) transparent;
	padding-bottom: 0.5rem;
}

.mb-photo-strip.wp-block-gallery > .wp-block-image {
	flex: 0 0 min(78vw, 420px) !important;
	scroll-snap-align: center;
}

.mb-photo-strip.wp-block-gallery img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	height: 100% !important;
	border-radius: var(--mb-radius);
}

/* ---------- Feature cells (photo + text grid) ---------- */

.mb-cells.wp-block-columns {
	gap: 0 !important;
	margin-block: 0;
}

.mb-cells .wp-block-column {
	min-height: 280px;
}

.mb-cells .wp-block-cover {
	height: 100%;
	min-height: 280px !important;
}

.mb-cell-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
}

.mb-cell-text > * {
	max-width: 34rem;
}

@media (min-width: 782px) {
	.mb-cells .wp-block-column,
	.mb-cells .wp-block-cover {
		min-height: 520px !important;
	}

	.mb-cell-text {
		padding-inline: clamp(2rem, 6vw, 6rem);
	}
}

/* ---------- Contact section with the welcome sign ---------- */

.is-style-mb-sign,
.mb-sign {
	background-image:
		linear-gradient(rgba(25, 16, 8, 0.55), rgba(25, 16, 8, 0.55)),
		var(--mb-welcome-sign);
	background-size: cover;
	background-position: center;
}

/* ---------- Forms and WooCommerce on the dark background ---------- */

:where(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="password"], input[type="date"], input[type="datetime-local"], textarea, select) {
	background: var(--mb-cream);
	color: var(--mb-ink);
	border: 1px solid var(--mb-sand);
	border-radius: var(--mb-radius);
	padding: 0.6em 0.8em;
	font: inherit;
}

.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-textarea {
	background-color: var(--mb-cream) !important;
	color: var(--mb-ink) !important;
}

.wc-block-components-text-input label,
.wc-block-components-combobox .wc-block-components-combobox-control label,
.wc-blocks-components-select .wc-blocks-components-select__label {
	color: var(--mb-stone) !important;
}

.wc-block-components-panel,
.wc-block-components-totals-wrapper,
.wc-block-cart-items,
.wc-block-components-sidebar {
	border-color: rgba(255, 247, 229, 0.2) !important;
}

.wc-block-components-radio-control__option,
.wc-block-components-radio-control-accordion-option {
	color: var(--mb-cream);
}

.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content,
.wc-block-components-radio-control--highlight-checked {
	background: rgba(255, 247, 229, 0.04);
}

.wc-block-components-product-badge,
.wc-block-components-sale-badge {
	background: var(--mb-rust);
	color: var(--mb-cream);
	border-color: var(--mb-rust);
}

.wc-block-components-notice-banner {
	color: var(--mb-ink);
}

.wc-block-grid__product-image img,
.wc-block-components-product-image img,
.wp-block-woocommerce-product-image-gallery img {
	border-radius: var(--mb-radius);
}

.wc-block-components-product-name,
.wp-block-post-title a {
	text-decoration: none;
}

.woocommerce-store-notice,
p.demo_store {
	background: var(--mb-rust);
}

/* Shop breadcrumbs: the same space above and below. */
.wc-block-breadcrumbs,
.woocommerce-breadcrumb {
	margin-block: var(--wp--preset--spacing--40) !important;
	font-size: var(--wp--preset--font-size--small);
}

.wc-block-breadcrumbs + * {
	margin-block-start: 0 !important;
}

/* Gift card form of PW WooCommerce Gift Cards */
#pwgc-purchase-container {
	color: var(--mb-cream);
}

#pwgc-purchase-container .pwgc-label,
#pwgc-purchase-container label {
	color: var(--mb-cream);
	font-weight: 600;
}

/* ---------- Instagram feed (Smash Balloon) ---------- */

#sb_instagram {
	padding-bottom: 0 !important;
}

#sb_instagram .sbi_follow_btn a,
#sb_instagram #sbi_load .sbi_load_btn {
	background: var(--mb-rust) !important;
	color: var(--mb-cream) !important;
	border-radius: 999px !important;
}

/* ---------- Embeds ---------- */

.mb-map iframe {
	width: 100%;
	min-height: 360px;
	border: 0;
	border-radius: var(--mb-radius);
	filter: sepia(0.25);
}

/* ---------- Layout fixes ---------- */

/* Sections of a page sit edge to edge: no gap after the title band. */
.mb-main > * + * {
	margin-block-start: 0;
}

.mb-title-band h1 {
	hyphens: auto;
	overflow-wrap: break-word;
}

@media (max-width: 600px) {
	.mb-title-band h1 {
		font-size: clamp(2.25rem, 10vw, 3rem);
	}
}

/* Header: one line of links on desktop. */
@media (min-width: 1024px) {
	.mb-header .wp-block-navigation {
		flex-wrap: nowrap;
		white-space: nowrap;
		font-size: 0.95rem;
	}

	.mb-header .wp-block-navigation__container {
		flex-wrap: nowrap;
		gap: 1.1rem;
	}
}

@media (min-width: 1024px) and (max-width: 1180px) {
	.mb-header .wp-block-navigation {
		font-size: 0.85rem;
	}

	.mb-header .wp-block-navigation__container {
		gap: 0.8rem;
	}
}

/*
 * Primary buttons on the rust or orange accent turn cream with dark text,
 * so they still stand out from the background (rust on orange does not).
 */
:is(.has-rust-background-color, .has-ember-background-color, .is-style-mb-ember) .wp-block-button:not(.is-style-mb-light):not(.is-style-outline) .wp-block-button__link {
	background-color: var(--mb-cream);
	color: var(--mb-base);
}

:is(.has-rust-background-color, .has-ember-background-color, .is-style-mb-ember) .wp-block-button:not(.is-style-mb-light):not(.is-style-outline) .wp-block-button__link:hover {
	background-color: var(--mb-sand);
}

/* Cards keep the site's normal buttons, also inside an accent section. */
:is(.has-rust-background-color, .has-ember-background-color, .is-style-mb-ember) :is(.is-style-mb-card, .mb-event-card) .wp-block-button:not(.is-style-mb-light):not(.is-style-outline) .wp-block-button__link {
	background-color: var(--mb-rust);
	color: var(--mb-cream);
}

/* Photo/text rows alternate sides on desktop. */
@media (min-width: 782px) {
	.mb-cells--reverse {
		flex-direction: row-reverse;
	}
}

/* Contact Form 7 */
.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 textarea,
.wpcf7 select {
	width: 100%;
	box-sizing: border-box;
}

.wpcf7 {
	margin-bottom: var(--wp--preset--spacing--50);
}

.wpcf7 input[type="submit"] {
	background: var(--mb-rust);
	color: var(--mb-cream);
	border: 0;
	border-radius: 999px;
	padding: 0.7em 1.8em;
	font-weight: 600;
	cursor: pointer;
}

/* Smash Balloon's admin-only notice must not float into the next section. */
#sbi_mod_error {
	float: none !important;
	clear: both;
}

.wp-block-shortcode:has(#sb_instagram),
.wp-block-group:has(> #sb_instagram) {
	display: flow-root;
}

/* Keyboard focus: a cream ring that shows on every background. */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--mb-cream);
	outline-offset: 3px;
}

/* ---------- About: story rows ---------- */

.mb-story > .mb-story-row + .mb-story-row {
	margin-block-start: var(--wp--preset--spacing--60);
}

.mb-story-row.wp-block-columns {
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60);
}

@media (max-width: 781px) {
	.mb-story-row .wp-block-image img {
		aspect-ratio: 3 / 2 !important;
		object-position: 50% 30%;
	}
}

/* ---------- Home: events ---------- */

.mb-home-events .mb-events-list {
	margin-block-start: var(--wp--preset--spacing--50);
}

.mb-home-events .wp-block-buttons {
	margin-block-start: var(--wp--preset--spacing--50);
}

/* ---------- Shop on the dark background ---------- */

.woocommerce span.onsale,
.wc-block-components-product-sale-badge,
.wp-block-woocommerce-product-sale-badge .wc-block-components-product-sale-badge {
	min-width: 0;
	min-height: 0;
	padding: 0.3em 0.8em;
	background: var(--mb-rust) !important;
	color: var(--mb-cream) !important;
	border: 0 !important;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--wide);
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.woocommerce span.onsale {
	top: 0.75rem !important;
	left: 0.75rem !important;
	right: auto !important;
	margin: 0 !important;
	z-index: 2;
}

.woocommerce-product-gallery .flex-control-thumbs {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.5rem !important;
}

.woocommerce-product-gallery .flex-control-thumbs li {
	width: auto !important;
	flex: 1 1 0;
	max-width: 25%;
}

.woocommerce-product-gallery .flex-control-thumbs img {
	border-radius: 4px;
}

.woocommerce div.product form.cart .variations select,
.woocommerce select,
.wc-block-components-select select,
select.orderby {
	min-height: 44px;
	padding: 0.5em 2.2em 0.5em 0.8em;
	background-color: var(--mb-cream);
	color: var(--mb-ink);
	border: 1px solid var(--mb-sand);
	border-radius: var(--mb-radius);
	font-size: 1rem;
}

.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations label {
	color: var(--mb-cream);
	vertical-align: middle;
}

.woocommerce .quantity input.qty {
	min-height: 44px;
	width: 4.5rem;
	background: var(--mb-cream);
	color: var(--mb-ink);
	border: 1px solid var(--mb-sand);
	border-radius: var(--mb-radius);
}

.woocommerce div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.woocommerce div.product form.cart.variations_form,
.woocommerce div.product form.cart .single_variation_wrap {
	display: block;
}

.woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.woocommerce div.product form.cart .button,
.woocommerce div.product form.cart .quantity {
	margin: 0 !important;
	float: none !important;
}

.woocommerce div.product form.cart .button {
	min-height: 44px;
	padding-inline: 1.8em;
}

.woocommerce .button:disabled,
.wc-block-components-button:disabled {
	opacity: 0.55;
}

/*
 * "Add to cart" before a size is chosen: WooCommerce marks it with a class,
 * not the disabled attribute, so its text must stay readable. The colours
 * match the faded look of the disabled buttons above.
 */
.woocommerce .button.disabled:not(:disabled) {
	opacity: 1;
	background-color: #5d2a13;
	color: var(--wp--preset--color--sand);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a,
.wc-tabs a {
	color: var(--mb-cream);
}

.woocommerce .reset_variations {
	color: var(--mb-sand);
	font-size: var(--wp--preset--font-size--small);
}

.woocommerce-product-gallery__trigger {
	background: var(--mb-cream) !important;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
	border-radius: var(--mb-radius);
}

/* Text beside a photo keeps a comfortable line length. */
.wp-block-columns.alignwide > .wp-block-column > p {
	max-width: 36rem;
}

@media (min-width: 782px) {
	.mb-photo-strip.wp-block-gallery > .wp-block-image {
		flex-basis: min(32%, 420px) !important;
	}

	.mb-photo-strip.wp-block-gallery img {
		aspect-ratio: 1 / 1;
	}
}

/* Photos in page content share the rounded corners of cards and buttons. */
.mb-content .wp-block-image img,
.mb-content .wp-block-embed iframe {
	border-radius: var(--mb-radius);
}

/* YouTube poster with a play button; the player replaces it on press (inc/video.php). */
.wp-block-embed .mb-video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	overflow: hidden;
	background: var(--mb-ink, #121212);
	border: 0;
	border-radius: var(--mb-radius);
	cursor: pointer;
}

.wp-block-embed .mb-video__poster {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wp-block-embed .mb-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
	transition: transform 0.15s ease;
}

.wp-block-embed .mb-video:hover .mb-video__play,
.wp-block-embed .mb-video:focus-visible .mb-video__play {
	transform: translate(-50%, -50%) scale(1.08);
}

.wp-block-embed .mb-video:focus-visible {
	outline: 2px solid var(--wp--preset--color--cream);
	outline-offset: 3px;
}

/* WooCommerce templates: room before the footer; the "Description" heading under the tab is for screen readers only. */
body.woocommerce-page main.wp-block-group:not(.mb-main) {
	padding-bottom: var(--wp--preset--spacing--60);
}

.woocommerce-Tabs-panel > h2:first-child {
	/* Hidden from view only: screen readers and the heading outline keep it. */
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.woocommerce-product-details__short-description em {
	display: block;
	color: var(--mb-sand);
}

.wc-block-components-quantity-selector {
	min-height: 44px;
	background: var(--mb-cream);
	color: var(--mb-ink);
	border-radius: var(--mb-radius) !important;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	min-width: 40px;
	color: var(--mb-ink);
	opacity: 0.8;
}

/* Gift card code field of PW WooCommerce Gift Cards in the cart and checkout. */
#pwgc-redeem-gift-card-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-block: 0.5rem;
}

#pwgc-redeem-gift-card-form label {
	flex-basis: 100%;
	font-size: var(--wp--preset--font-size--small);
}

#pwgc-redeem-gift-card-number {
	flex: 1 1 10rem;
	min-width: 0;
	min-height: 44px;
	box-sizing: border-box;
}

#pwgc-redeem-gift-card-form .pwgc-apply-gift-card-button {
	min-height: 44px;
	padding: 0.5em 1.4em;
	background: transparent;
	color: var(--mb-cream);
	border: 2px solid rgba(255, 247, 229, 0.7);
	border-radius: 999px;
	font-weight: 600;
	cursor: pointer;
}

.mb-not-found {
	padding-block: clamp(5rem, 16vw, 10rem) !important;
}

.mb-not-found > * + * {
	margin-block-start: 1.25rem;
}

/* Footer links and social icons: comfortable tap targets on phones. */
.mb-footer__links a {
	display: inline-block;
	padding-block: 0.6rem;
}

.mb-footer .wp-block-social-links .wp-social-link a {
	padding: 0.5rem;
}

.wp-block-columns.are-vertically-aligned-center {
	align-items: center;
}

/* ---------- Photo slider (Gallery block with class mb-photo-strip) ---------- */

.mb-slider {
	position: relative;
}

.mb-slider .mb-slider__track {
	scrollbar-width: none;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	padding-bottom: 0;
}

.mb-slider .mb-slider__track::-webkit-scrollbar {
	display: none;
}

.mb-slider .mb-slider__track:focus-visible {
	outline: 2px solid var(--mb-cream);
	outline-offset: 4px;
}

.mb-slider__arrow {
	position: absolute;
	top: calc(50% - 1.25rem);
	transform: translateY(-50%);
	z-index: 2;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 247, 229, 0.92);
	color: var(--mb-base);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	cursor: pointer;
	transition: opacity 0.2s, transform 0.2s;
}

.mb-slider__arrow:hover {
	background: var(--mb-cream);
	transform: translateY(-50%) scale(1.06);
}

.mb-slider__arrow:focus-visible {
	outline: 2px solid var(--mb-cream);
	outline-offset: 3px;
}

.mb-slider__arrow:disabled {
	opacity: 0;
	pointer-events: none;
}

.mb-slider__prev {
	left: -12px;
}

.mb-slider__next {
	right: -12px;
}

.mb-slider.is-static .mb-slider__arrow,
.mb-slider.is-static .mb-slider__dots {
	display: none;
}

.mb-slider__dots {
	display: flex;
	justify-content: center;
	gap: 0.25rem;
	margin-top: 0.9rem;
}

.mb-slider__dot {
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: grid;
	place-items: center;
}

.mb-slider__dot::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: rgba(255, 247, 229, 0.4);
	transition: width 0.25s, background 0.25s;
}

.mb-slider__dot.is-active::before {
	width: 22px;
	background: var(--mb-cream);
}

@media (max-width: 781px) {
	/* Phones swipe; arrows would cover the photo. */
	.mb-slider__arrow {
		display: none;
	}
}

img.mb-zoomable {
	cursor: zoom-in;
}

img.mb-zoomable:focus-visible {
	outline: 2px solid var(--mb-cream);
	outline-offset: 3px;
}

/* Full-screen viewer in the site's colours. */
.pswp {
	--pswp-bg: #1a120a;
	--pswp-icon-color: var(--wp--preset--color--cream, #fff7e5);
	--pswp-icon-color-secondary: #1a120a;
	--pswp-placeholder-bg: #2a1c0e;
}

.pswp__counter {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1rem;
	letter-spacing: 0.05em;
}

/* ---------- Instagram grid on the home page ---------- */

.mb-instagram .mb-insta-grid.wp-block-gallery {
	gap: clamp(0.4rem, 1vw, 0.75rem);
	margin-block: var(--wp--preset--spacing--40);
}

.mb-insta-grid.wp-block-gallery .wp-block-image {
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--mb-radius);
}

.mb-insta-grid.wp-block-gallery .wp-block-image a {
	display: block;
	height: 100%;
}

.mb-insta-grid.wp-block-gallery .wp-block-image img {
	width: 100%;
	height: 100% !important;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.35s ease, filter 0.35s ease;
}

.mb-insta-grid.wp-block-gallery .wp-block-image a:hover img,
.mb-insta-grid.wp-block-gallery .wp-block-image a:focus-visible img {
	transform: scale(1.05);
	filter: brightness(1.08);
}

.mb-insta-grid.wp-block-gallery .wp-block-image a:focus-visible {
	outline: 2px solid var(--mb-cream);
	outline-offset: 3px;
}

/* ---------- Cookie banner (CookieYes) above the phone quick-action bar ---------- */

@media (max-width: 781px) {
	.cky-consent-container.cky-box-bottom-left,
	.cky-consent-container.cky-box-bottom-right,
	.cky-consent-container.cky-banner-bottom {
		bottom: calc(61px + env(safe-area-inset-bottom)) !important;
	}

	.cky-consent-container .cky-consent-bar {
		max-height: calc(100vh - 61px - 1rem - env(safe-area-inset-bottom));
		overflow-y: auto;
	}

	.cky-btn-revisit-wrapper.cky-revisit-bottom-left,
	.cky-btn-revisit-wrapper.cky-revisit-bottom-right {
		bottom: calc(61px + 12px + env(safe-area-inset-bottom)) !important;
	}
}

/* ---------- Cards: one look for every boxed item ----------
 * Event blocks (events.css) read their panel colours from these properties.
 */

body :is(.mb-events-list, .mb-calendar, .mb-event-details, .mb-event-tickets) {
	--mb-ev-panel: var(--mb-card);
	--mb-ev-line: var(--mb-line);
	--mb-ev-radius: var(--mb-radius);
}

.mb-event-card,
.mb-event-tickets,
.mb-calendar__list-item {
	box-shadow: var(--mb-card-shadow);
}

/* Shop product grid. */
.wc-block-product-template > li.wc-block-product {
	display: flex;
	flex-direction: column;
	padding: 0 0 1.25rem;
	overflow: hidden;
	background: var(--mb-card);
	border: 1px solid var(--mb-line);
	border-radius: var(--mb-radius);
	box-shadow: var(--mb-card-shadow);
}

.wc-block-product-template > li.wc-block-product .wc-block-components-product-image,
.wc-block-product-template > li.wc-block-product .wc-block-components-product-image img {
	margin-block-start: 0;
	border-radius: 0;
}

.wc-block-product-template > li.wc-block-product > :not(.wc-block-components-product-image) {
	padding-inline: 1rem;
}

.wc-block-product-template > li.wc-block-product > .wp-block-button,
.wc-block-product-template > li.wc-block-product > .wc-block-components-product-button {
	margin-top: auto;
}

.wc-block-product-template > li.wc-block-product .wp-block-button__link {
	padding-inline: 1.1em;
	white-space: nowrap;
}

@media (max-width: 599px) {
	.wc-block-product-template > li.wc-block-product > :not(.wc-block-components-product-image) {
		padding-inline: 0.6rem;
	}
}

/* Contact Form 7 forms sit in a card. */
.mb-content .wpcf7 {
	padding: var(--wp--preset--spacing--40);
	background: var(--mb-card);
	border: 1px solid var(--mb-line);
	border-radius: var(--mb-radius);
	box-shadow: var(--mb-card-shadow);
}

.mb-content .wpcf7 form > p:last-of-type,
.mb-content .wpcf7 form .wpcf7-response-output {
	margin-bottom: 0;
}

/* ---------- Footer layout (patterns/footer.php) ---------- */

.mb-footer {
	padding-top: clamp(3rem, 7vw, 5rem);
	padding-bottom: 2rem;
	border-top: 1px solid var(--mb-line);
}

/*
 * Phones: the room kept free for the quick-action bar belongs to the footer,
 * so the footer's surface runs to the bottom edge.
 */
@media (max-width: 781px) {
	body:has(.mb-footer) {
		padding-bottom: 0;
	}

	.mb-footer {
		padding-bottom: calc(2rem + 64px + env(safe-area-inset-bottom)) !important;
	}
}

/* The footer sits on the raised surface; after a raised last section it drops to base. */
body:has(.mb-content > .alignfull:last-child:is(.is-style-mb-raised, .is-style-mb-band, .is-style-mb-stone)) .mb-footer {
	background-color: var(--mb-base) !important;
}

.mb-footer p {
	margin: 0;
}

.mb-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 3rem;
	align-items: start;
}

.mb-footer__logo {
	margin: 0 0 1rem;
}

.mb-footer__logo img {
	display: block;
	height: auto;
	filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.mb-footer__slogan {
	font-size: 1.15rem;
	margin-bottom: 1.1rem !important;
}

.mb-footer .mb-footer__social {
	gap: 0.6rem !important;
}

.mb-footer .mb-footer__social .wp-social-link a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 247, 229, 0.3);
	border-radius: 50%;
	transition: background 0.2s, border-color 0.2s;
}

.mb-footer .mb-footer__social .wp-social-link a:hover {
	background: rgba(255, 247, 229, 0.1);
	border-color: var(--mb-cream);
}

.mb-footer__info {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem 2.5rem;
	align-content: start;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--mb-card);
	border: 1px solid var(--mb-line);
	border-radius: var(--mb-radius);
	box-shadow: var(--mb-card-shadow);
}

.mb-footer__label {
	font-size: 0.95rem !important;
	opacity: 0.7;
	margin-bottom: 0.6rem !important;
}

.mb-footer__col p:not(.mb-footer__label) {
	line-height: 1.7;
}

.mb-footer__contact {
	grid-column: 1 / -1;
	gap: 0.75rem !important;
	margin: 0 !important;
}

.mb-footer__btn .wp-block-button__link {
	padding: 0.7em 1.4em;
	font-weight: 600;
	text-decoration: none !important;
}

.mb-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1.6rem;
	margin-top: clamp(2.5rem, 6vw, 4rem);
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 247, 229, 0.14);
	font-size: 0.875rem;
}

.mb-footer__bottom .mb-footer__links {
	margin: 0;
}

.mb-footer__cookies a {
	display: inline-block;
	padding-block: 0.6rem;
}

.mb-footer__copy {
	margin-left: auto !important;
	opacity: 0.65;
}

/* The footer's "Cookie settings" link replaces CookieYes's floating button. */
.cky-btn-revisit-wrapper {
	display: none !important;
}

@media (max-width: 781px) {
	.mb-footer {
		text-align: center;
		padding-top: 3rem;
	}

	.mb-footer__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 2.25rem;
	}

	.mb-footer__logo,
	.mb-footer__logo img {
		margin-inline: auto;
	}

	.mb-footer .mb-footer__social {
		justify-content: center;
	}

	.mb-footer__info {
		gap: 1.75rem 1rem;
		padding: 1.5rem 1.25rem;
		font-size: 0.95rem;
	}

	.mb-footer__contact {
		flex-direction: column;
		align-items: stretch !important;
	}

	.mb-footer__btn,
	.mb-footer__btn .wp-block-button__link {
		width: 100%;
	}

	.mb-footer__bottom {
		flex-direction: column;
		justify-content: center;
		gap: 0;
	}

	.mb-footer__bottom .mb-footer__links {
		justify-content: center;
	}

	.mb-footer__copy {
		margin: 0.75rem 0 0 !important;
	}
}

/* Footer details: block gaps come from the grid, not from sibling margins. */
.mb-footer__info > *,
.mb-footer__grid > *,
.mb-footer__brand > * {
	margin-block-start: 0 !important;
}

.mb-footer__brand > * + * {
	margin-top: 0;
}

@media (max-width: 781px) {
	.mb-footer__info {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.4rem;
		padding: 1.75rem 1.25rem;
	}

	.mb-footer__label {
		margin-bottom: 0.35rem !important;
	}

	.mb-footer__col p:not(.mb-footer__label) {
		line-height: 1.55;
	}

	.mb-footer__btn .wp-block-button__link {
		border-width: 1px !important;
		padding: 0.75em 1em;
		font-size: 0.95rem;
	}
}

.mb-footer__bottom .wp-block-navigation {
	font-size: 0.875rem;
}

/* Instagram shows posts in 4:5 portrait; tiles keep that shape. */
.mb-insta-grid.wp-block-gallery .wp-block-image,
.mb-insta-grid.wp-block-gallery .wp-block-image img {
	aspect-ratio: 4 / 5;
}

/* Cloudflare Turnstile in the contact forms (Contact Form 7). */
.wpcf7-turnstile {
	margin-block: 1.25rem;
	min-height: 65px;
}

/* ---------- Shop hero (patterns/shop-hero.php) ---------- */

.mb-shop-hero.wp-block-cover {
	min-height: clamp(320px, 33vw, 560px) !important;
	padding-block: clamp(2rem, 5vw, 4rem);
	margin-block: 0;
}

.mb-shop-hero .wp-block-cover__background {
	background: linear-gradient(to top, rgba(18, 13, 8, 0.85) 0%, rgba(18, 13, 8, 0.25) 55%, rgba(18, 13, 8, 0) 100%) !important;
	opacity: 1 !important;
}

.mb-shop-hero__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--giant);
	text-shadow: 0 3px 18px rgba(0, 0, 0, 0.6);
}

.mb-shop-hero__lead {
	max-width: 32rem;
	margin: 0.5rem 0 0;
	font-size: 1.125rem;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.mb-shop__body {
	padding-top: 1.5rem;
	padding-bottom: var(--wp--preset--spacing--60);
}

@media (max-width: 781px) {
	.mb-shop-hero.wp-block-cover {
		min-height: 300px !important;
	}

	.mb-shop-hero .wp-block-cover__image-background {
		object-position: 38% 50% !important;
	}
}

/* Shop hero text lines up with the page content below it. */
.mb-shop-hero .wp-block-cover__inner-container {
	width: 100%;
	max-width: 1240px;
	margin-inline: auto !important;
}
