/*
 * Eugene's Online Ordering — site-wide front-end helpers (v1.0.14).
 * Loaded on every page: text wrapping, the sticky header, the hero pizza
 * carousel, the map and the social icons.
 */

/* ---------------------------------------------------------------------------
 * No orphan words: balanced headings, and paragraphs that never end on a
 * single word (browsers without text-wrap: pretty get a script fallback).
 * ------------------------------------------------------------------------ */

:where(h1, h2, h3, h4, h5, h6, .e-heading-base) {
	text-wrap: balance;
}

:where(p, li, blockquote, figcaption, .e-paragraph-base) {
	text-wrap: pretty;
}

/* Centred paragraphs (marked by site.js) get evenly balanced lines. */
.eu-balance {
	text-wrap: balance;
}

/* ---------------------------------------------------------------------------
 * Sticky header. The homepage bar sits over the hero photo, so it is fixed
 * from the start and a dark background fades in once the page scrolls. The
 * site header on the other pages is already dark and simply sticks.
 * ------------------------------------------------------------------------ */

body .eu-sticky-bar.is-fixed {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	right: 0;
	left: 0;
	z-index: 1000;
	width: auto;
	padding: 2rem 3rem;
	background-color: rgba(18, 22, 24, 0);
	box-shadow: 0 0 0 rgba(0, 0, 0, 0);
	transition: background-color 0.45s ease, padding 0.35s ease, box-shadow 0.45s ease;
}

body .eu-sticky-bar.is-fixed.is-stuck {
	padding-top: 0.85rem;
	padding-bottom: 0.85rem;
	background-color: rgba(18, 22, 24, 0.97);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

body .eu-sticky-bar.is-fixed img {
	transition: width 0.35s ease;
}

body .eu-sticky-bar.is-fixed.is-stuck img {
	width: 5rem;
}

body .eu-sticky-bar.eu-measuring,
body .eu-sticky-bar.eu-measuring img {
	transition: none !important;
}

.elementor-location-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 1000;
	transition: box-shadow 0.45s ease;
}

.elementor-location-header.is-stuck {
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1024px) {
	body .eu-sticky-bar.is-fixed {
		padding: 1.75rem 2rem;
	}
}

@media (max-width: 767px) {
	body .eu-sticky-bar.is-fixed {
		padding: 1.25rem 15px;
	}

	body .eu-sticky-bar.is-fixed.is-stuck {
		padding-top: 0.6rem;
		padding-bottom: 0.6rem;
	}

	body .eu-sticky-bar.is-fixed.is-stuck img {
		width: 3.75rem;
	}
}

/* ---------------------------------------------------------------------------
 * Hero pizzas (global class eu-floating-pizza): turn on hover like the pizzas
 * on the menu.
 * ------------------------------------------------------------------------ */

.eu-floating-pizza {
	transition: rotate 0.4s;
}

.eu-floating-pizza:hover {
	rotate: 12deg;
}

/* ---------------------------------------------------------------------------
 * Hero pizza carousel (global classes eu-pizza-carousel and eu-pizza-slide).
 * The slides sit on top of each other and cross-fade, each pizza spinning in;
 * site.js adds the dots and turns the slides every five seconds.
 * ------------------------------------------------------------------------ */

.eu-pizza-carousel {
	position: relative;
}

.eu-pizza-carousel > .eu-pizza-slide {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.7s ease, visibility 0s linear 0.7s;
}

.eu-pizza-carousel > .eu-pizza-slide:not(:first-child) {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
}

.eu-pizza-carousel > .eu-pizza-slide.is-active,
.eu-pizza-carousel:not(.is-ready) > .eu-pizza-slide:first-child {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.7s ease, visibility 0s;
}

.eu-pizza-slide .eu-floating-pizza {
	transform: rotate(-40deg) scale(0.88);
	transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), rotate 0.4s;
}

.eu-pizza-slide.is-active .eu-floating-pizza,
.eu-pizza-carousel:not(.is-ready) > .eu-pizza-slide:first-child .eu-floating-pizza {
	transform: none;
}

.eu-pizza-dots {
	display: flex;
	justify-content: center;
	gap: 0.65rem;
}

.eu-pizza-dots button.eu-pizza-dot {
	width: 0.8rem;
	height: 0.8rem;
	margin: 0;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.7);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background-color 0.3s, border-color 0.3s;
}

.eu-pizza-dots button.eu-pizza-dot:is(:hover, :focus-visible) {
	border-color: #FFFFFF;
	background: transparent;
}

.eu-pizza-dots button.eu-pizza-dot.is-active {
	border-color: #FFCC00;
	background: #FFCC00;
}

@media (prefers-reduced-motion: reduce) {
	.eu-pizza-slide .eu-floating-pizza {
		transform: none;
		transition: rotate 0.4s;
	}
}

/* ---------------------------------------------------------------------------
 * Map in the homepage "Visit" section (global class eu-map): site.js loads a
 * Google map of the address in the box's link, which stays on top as a label.
 * ------------------------------------------------------------------------ */

.eu-map {
	position: relative;
	overflow: hidden;
}

.eu-map .eu-map__frame {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.eu-map > :not(.eu-map__frame) {
	z-index: 1;
}

/* ---------------------------------------------------------------------------
 * Social icons in the headers (global classes eu-social-link plus
 * eu-social-instagram / eu-social-facebook on a button whose text is the
 * network's name): the text is kept for screen readers, the icon is drawn
 * in the link colour so it turns yellow on hover like the menu links.
 * ------------------------------------------------------------------------ */

.elementor .eu-social-link.e-button-base,
.eu-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: #DCE4E8;
	font-size: 0;
	line-height: 0;
	text-decoration: none;
	transition: color 0.3s;
}

.elementor .eu-social-link.e-button-base:is(:hover, :focus-visible),
.eu-social-link:is(:hover, :focus-visible) {
	background: transparent;
	color: #FFCC00;
}

.eu-social-link::before {
	content: "";
	width: 1.35rem;
	height: 1.35rem;
	background-color: currentColor;
	-webkit-mask: var(--eu-social-icon) center / contain no-repeat;
	mask: var(--eu-social-icon) center / contain no-repeat;
}

.eu-social-instagram {
	--eu-social-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4.2'/%3E%3Ccircle cx='17.4' cy='6.6' r='1.1' fill='%23000' stroke='none'/%3E%3C/svg%3E");
}

.eu-social-facebook {
	--eu-social-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-1.6 19.87v-6.99H7.86V12h2.54V9.8c0-2.5 1.49-3.89 3.78-3.89 1.09 0 2.24.2 2.24.2v2.46h-1.26c-1.24 0-1.63.77-1.63 1.56V12h2.78l-.44 2.88h-2.34v6.99A10 10 0 0 0 12 2z'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------------------
 * Standard page width (v1.0.25): 1440px of content, the same as the Elementor
 * eu-inner class (90rem) inside eu-section's side padding. This covers pages
 * drawn by the theme rather than Elementor (cart, checkout, account, search);
 * the menu and product pages set their own in store.css.
 * ------------------------------------------------------------------------ */

body:not([class*="elementor-page-"]):not(.eugenes-menu-page):not(.eugenes-product-page) main.site-main {
	max-width: 96rem;
	padding-inline: 3rem;
}

body:not([class*="elementor-page-"]):not(.eugenes-menu-page):not(.eugenes-product-page) main.site-main .page-header .entry-title {
	max-width: none;
}

@media (max-width: 1024px) {
	body:not([class*="elementor-page-"]):not(.eugenes-menu-page):not(.eugenes-product-page) main.site-main {
		padding-inline: 2rem;
	}
}

@media (max-width: 767px) {
	body:not([class*="elementor-page-"]):not(.eugenes-menu-page):not(.eugenes-product-page) main.site-main {
		padding-inline: 15px;
	}
}

/* ---------------------------------------------------------------------------
 * Check my suburb (v1.0.31): the search box (global class eu-suburb-check)
 * and its popup. Colours and fonts match the site's buttons and dark panels.
 * ------------------------------------------------------------------------ */

.eu-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.eu-suburb-check .eu-suburb-check__form {
	width: 100%;
	margin: 0;
}

.eu-suburb-check .eu-suburb-check__row {
	display: flex;
	gap: 0.75rem;
}

/* The box and its suggestions list (v1.0.86), which opens right under it. */
.eu-suburb-check .eu-suburb-check__field {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
}

.eu-suburb-check .eu-suburb-check__list {
	position: absolute;
	top: calc(100% + 0.4rem);
	right: 0;
	left: 0;
	z-index: 50;
	box-sizing: border-box;
	max-height: 16rem;
	margin: 0;
	padding: 0.4rem 0;
	overflow-y: auto;
	list-style: none;
	border: 2px solid #121618;
	border-radius: 1.25rem;
	background: #FFFFFF;
	box-shadow: 0 16px 32px rgba(18, 22, 24, 0.18);
	text-align: left;
}

.eu-suburb-check .eu-suburb-check__list[hidden] {
	display: none;
}

.eu-suburb-check .eu-suburb-check__option {
	margin: 0;
	padding: 0.6rem 1.25rem;
	color: #121618;
	font-size: 1rem;
	line-height: 1.3;
	cursor: pointer;
}

.eu-suburb-check .eu-suburb-check__option:hover,
.eu-suburb-check .eu-suburb-check__option.is-active {
	background: #EDF5ED;
	color: #18751B;
}

.eu-suburb-check input.eu-suburb-check__input {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	height: auto;
	margin: 0;
	padding: 1rem 1.25rem;
	border: 2px solid #121618;
	border-radius: 999px;
	background: #FFFFFF;
	color: #121618;
	font-family: inherit;
	font-size: 1.05rem;
	line-height: 1.2;
	box-shadow: none;
}

.eu-suburb-check input.eu-suburb-check__input:focus {
	outline: none;
	border-color: #18751B;
	box-shadow: 0 0 0 3px rgba(24, 117, 27, 0.25);
}

.eu-suburb-check button.eu-suburb-check__button {
	flex: 0 0 auto;
	margin: 0;
	padding: 1rem 1.75rem;
	border: 2px solid #18751B;
	border-radius: 999px;
	background: #18751B;
	color: #FFFFFF;
	font-family: var(--eugenes-heading-font, "PT Sans Narrow"), sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.3s, border-color 0.3s;
}

.eu-suburb-check button.eu-suburb-check__button:is(:hover, :focus-visible) {
	border-color: #1D8429;
	background: #1D8429;
	color: #FFFFFF;
}

.eu-suburb-check button.eu-suburb-check__button:focus-visible {
	outline: 3px solid #FFCC00;
	outline-offset: 2px;
}

.eu-suburb-check .eu-suburb-check__error {
	margin: 0.6rem 0 0;
	color: #B42318;
	font-size: 0.95rem;
	font-weight: 600;
}

/* Popup */

dialog.eu-suburb-dialog {
	box-sizing: border-box;
	width: min(34rem, calc(100vw - 2.5rem));
	max-height: calc(100vh - 2.5rem);
	overflow: auto;
	margin: auto;
	padding: 2.75rem 2.5rem 2.25rem;
	border: 0;
	border-top: 4px solid #FFCC00;
	border-radius: 0;
	background: #121618;
	color: #DCE4E8;
	text-align: center;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

dialog.eu-suburb-dialog.is-no {
	text-align: left;
}

dialog.eu-suburb-dialog::backdrop {
	background: rgba(18, 22, 24, 0.78);
}

dialog.eu-suburb-dialog button.eu-suburb-dialog__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #DCE4E8;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

dialog.eu-suburb-dialog button.eu-suburb-dialog__close:is(:hover, :focus-visible) {
	background: transparent;
	color: #FFCC00;
}

.eu-suburb-dialog .eu-suburb-dialog__eyebrow {
	margin: 0 0 0.6rem;
	font-family: var(--eugenes-heading-font, "PT Sans Narrow"), sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: #FFCC00;
}

.eu-suburb-dialog h2.eu-suburb-dialog__title {
	margin: 0;
	font-family: var(--eugenes-heading-font, "PT Sans Narrow"), sans-serif;
	font-size: clamp(1.9rem, 5vw, 2.4rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #FFFFFF;
}

.eu-suburb-dialog .eu-suburb-dialog__text {
	margin: 0.9rem 0 0;
	font-size: 1rem;
	line-height: 1.6;
}

.eu-suburb-dialog .eu-suburb-dialog__text a {
	color: #FFCC00;
}

.eu-suburb-dialog .eu-suburb-dialog__form {
	display: grid;
	gap: 0.9rem;
	margin: 1.5rem 0 0;
}

.eu-suburb-dialog .eu-suburb-dialog__field label {
	display: block;
	margin: 0 0 0.35rem;
	font-family: var(--eugenes-heading-font, "PT Sans Narrow"), sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1.2;
	text-transform: uppercase;
	color: #FFFFFF;
}

.eu-suburb-dialog .eu-suburb-dialog__field input {
	box-sizing: border-box;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0.8rem 1rem;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-radius: 0;
	background: transparent;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.3;
	box-shadow: none;
	color-scheme: dark;
}

.eu-suburb-dialog .eu-suburb-dialog__field input:focus {
	outline: none;
	border-color: #FFCC00;
	box-shadow: 0 0 0 1px #FFCC00;
}

.eu-suburb-dialog .eu-suburb-dialog__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.eu-suburb-dialog .eu-suburb-dialog__small {
	margin: 0;
	font-size: 0.85rem;
	color: rgba(220, 228, 232, 0.75);
}

.eu-suburb-dialog .eu-suburb-dialog__error {
	margin: 0;
	color: #FF7A6B;
	font-weight: 600;
}

.eu-suburb-dialog .eu-suburb-dialog__actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 1.5rem 0 0;
}

.eu-suburb-dialog .eu-suburb-dialog__form .eu-suburb-dialog__actions {
	margin-top: 0.4rem;
}

.eu-suburb-dialog .eu-suburb-dialog__button {
	box-sizing: border-box;
	display: block;
	width: 100%;
	margin: 0;
	padding: 1rem 1.5rem;
	border: 2px solid;
	border-radius: 999px;
	font-family: var(--eugenes-heading-font, "PT Sans Narrow"), sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.eu-suburb-dialog .eu-suburb-dialog__button.is-yellow {
	border-color: #FFCC00;
	background: #FFCC00 linear-gradient(180deg, #FFCC00 0%, #F2B600 100%);
	color: #121618;
}

.eu-suburb-dialog .eu-suburb-dialog__button.is-outline {
	border-color: rgba(220, 228, 232, 0.6);
	background: transparent;
	color: #FFFFFF;
}

.eu-suburb-dialog .eu-suburb-dialog__button:is(:hover, :focus-visible):not(:disabled) {
	border-color: #FFFFFF;
	background: #FFFFFF;
	color: #121618;
}

.eu-suburb-dialog .eu-suburb-dialog__button:focus-visible {
	outline: 3px solid #FFCC00;
	outline-offset: 3px;
}

.eu-suburb-dialog .eu-suburb-dialog__button:disabled {
	opacity: 0.6;
	cursor: wait;
}

@media (max-width: 767px) {
	.eu-suburb-check .eu-suburb-check__row {
		flex-direction: column;
	}

	.eu-suburb-check .eu-suburb-check__error {
		text-align: center;
	}

	dialog.eu-suburb-dialog {
		padding: 2.5rem 1.25rem 1.5rem;
	}
}

/* ---------------------------------------------------------------------------
 * v1.0.32: anchors clear of the sticky header, carousel buttons hidden while
 * the shop is closed, and the Google reviews carousel.
 * ------------------------------------------------------------------------ */

[class*="eu-id-"] {
	scroll-margin-top: calc(var(--eu-header-height, 6.5rem) + var(--wp-admin--admin-bar--height, 0px));
}

body.eugenes-shop-closed .eu-pizza-slide .eu-btn {
	display: none;
}

.eu-google-reviews .eu-reviews {
	width: 100%;
	text-align: left;
}

.eu-reviews .eu-reviews__summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	margin: 0 0 2rem;
	color: #DCE4E8;
	font-size: 1rem;
}

.eu-reviews .eu-reviews__stars {
	color: #FFCC00;
	font-size: 1.15rem;
	letter-spacing: 0.12em;
	line-height: 1;
}

.eu-reviews .eu-reviews__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3rem) / 3);
	/* Each card is as tall as its review; site.js sizes the track to the
	   cards in view (v1.0.61). */
	align-items: start;
	gap: 1.5rem;
	overflow-x: auto;
	overflow-y: hidden;
	transition: height 0.3s ease;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.eu-reviews .eu-reviews__track::-webkit-scrollbar {
	display: none;
}

.eu-reviews .eu-reviews__track:focus-visible {
	outline: 3px solid #FFCC00;
	outline-offset: 4px;
}

.eu-reviews .eu-reviews__card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0;
	padding: 1.75rem;
	border: 1px solid rgba(220, 228, 232, 0.14);
	border-radius: 15px;
	background: rgba(255, 255, 255, 0.04);
	scroll-snap-align: start;
}

.eu-reviews blockquote.eu-reviews__text {
	margin: 0;
	padding: 0;
	border: 0;
	color: #DCE4E8;
	font-size: 1rem;
	font-style: normal;
	line-height: 1.7;
}

.eu-reviews .eu-reviews__author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
}

.eu-reviews .eu-reviews__photo {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.eu-reviews .eu-reviews__who {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.eu-reviews .eu-reviews__name {
	font-family: var(--eugenes-heading-font, "PT Sans Narrow"), sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #FFFFFF;
	text-decoration: none;
}

.eu-reviews a.eu-reviews__name:hover {
	color: #FFCC00;
}

.eu-reviews .eu-reviews__time {
	font-size: 0.85rem;
	color: rgba(220, 228, 232, 0.7);
}

.eu-reviews .eu-reviews__nav {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	margin: 1.75rem 0 0;
}

.eu-reviews button.eu-reviews__arrow {
	width: 3rem;
	height: 3rem;
	margin: 0;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.6);
	border-radius: 999px;
	background: transparent;
	color: #FFFFFF;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.eu-reviews button.eu-reviews__arrow:is(:hover, :focus-visible) {
	border-color: #FFFFFF;
	background: #FFFFFF;
	color: #121618;
}

.eu-reviews .eu-reviews__footer {
	margin: 1.5rem 0 0;
	text-align: center;
}

.eu-reviews a.eu-reviews__more {
	color: #FFCC00;
	font-family: var(--eugenes-heading-font, "PT Sans Narrow"), sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 4px;
}

@media (max-width: 1024px) {
	.eu-reviews .eu-reviews__track {
		grid-auto-columns: calc((100% - 1.5rem) / 2);
	}
}

@media (max-width: 767px) {
	/* One review at a time on phones (v1.0.51). */
	.eu-reviews .eu-reviews__track {
		grid-auto-columns: 100%;
		gap: 1rem;
	}

	.eu-reviews .eu-reviews__card {
		padding: 1.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eu-reviews .eu-reviews__track {
		transition: none;
	}
}

/* ---------------------------------------------------------------------------
 * Header cart (v1.0.37): item count on the Cart button, and a Checkout button
 * that only shows when the cart has something in it.
 * ------------------------------------------------------------------------ */

a.eu-cart-link {
	display: inline-flex !important;
	align-items: center;
	gap: 0.5rem;
}

.eu-cart-link .eu-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.35rem;
	height: 1.35rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: #121618;
	color: #FFCC00;
	font-size: 0.75rem;
	letter-spacing: 0;
	line-height: 1;
	/* Overlaps the button's padding so Cart is no taller than Checkout (v1.0.44). */
	margin-block: -0.2rem;
}

.eu-cart-link .eu-cart-count[hidden] {
	display: none;
}

.eu-checkout-link {
	display: none !important;
}

body.eu-cart-has-items .eu-checkout-link {
	display: inline-block !important;
}

/* ---------------------------------------------------------------------------
 * iPhones turn addresses (e.g. "133 George St East Fremantle") into maps
 * links with a dotted underline (v1.0.43); they keep working but look like
 * the text around them.
 * ------------------------------------------------------------------------ */

a[x-apple-data-detectors] {
	color: inherit !important;
	font: inherit !important;
	letter-spacing: inherit !important;
	text-decoration: none !important;
	text-transform: inherit !important;
}

/* ---------------------------------------------------------------------------
 * Product pictures don't turn on phones and touch screens (v1.0.45), where a
 * tap would leave them stuck at an angle: the homepage menu cards, the hero
 * pizzas, and the menu, product and cart grids.
 * ------------------------------------------------------------------------ */

@media (max-width: 767px), (hover: none) {
	.eu-floating-pizza:hover {
		rotate: none;
	}

	[data-id="20d5412d"] img:hover,
	ul.products li.product a img:hover,
	.wc-block-components-product-image:hover img {
		transform: none !important;
	}
}

/* ---------------------------------------------------------------------------
 * Featured pizza on the homepage (v1.0.66): site.js puts it first in the
 * "Eugene's menu" grid (marked eu-menu-grid by site.js) on a green tile like
 * the menu page's (v1.0.80): white name and toppings, yellow price, the white
 * outline button and a white ring round the "Featured" pill. It has the site's
 * tile padding (1.75rem, 1.5rem on phones) and 15px corners. The tile grows up
 * and down by its padding, so its photo, name and price line up with the cards
 * beside it; on phones it runs across both columns, like the menu page's.
 * ------------------------------------------------------------------------ */

.eu-menu-grid {
	--eu-tile-pad: 1.75rem;
}

.elementor .eu-menu-grid:has(> .eu-featured-card) {
	padding-top: var(--eu-tile-pad);
}

.elementor .eu-menu-grid > .eu-featured-card {
	width: auto;
	margin: calc(-1 * var(--eu-tile-pad)) -1rem;
	padding: var(--eu-tile-pad);
	border-radius: 15px;
	background: #18751B;
}

.elementor .eu-featured-card .eu-card-title {
	color: #FFFFFF;
}

.elementor .eu-featured-card .eu-card-text {
	color: rgba(255, 255, 255, 0.9);
}

.elementor .eu-featured-card .eu-price {
	color: #FFCC00;
}

/* "Featured" sits above any of the pizza's own pills (New, Plant based) at the photo's top right. */
.eu-featured-badges {
	position: absolute;
	top: calc(var(--eu-tile-pad) + 0.4rem);
	right: max(var(--eu-tile-pad), calc(50% - 7rem));
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.4rem;
}

.elementor .eu-featured-badges .eu-badge {
	position: static;
	inset: auto;
}

/* A white ring keeps "Featured" visible on the green tile; the pizza's other pills are charcoal. */
.elementor .eu-featured-badges .eu-badge-featured {
	background-color: #18751B;
	color: #FFFFFF;
	box-shadow: inset 0 0 0 2px #FFFFFF;
}

.elementor .eu-featured-badges .eu-badge:not(.eu-badge-featured) {
	background-color: #121618;
}

@media (max-width: 767px) {
	.eu-menu-grid {
		--eu-tile-pad: 1.5rem;
	}

	.elementor .eu-menu-grid:has(> .eu-featured-card) {
		padding-top: 0;
	}

	.elementor .eu-menu-grid > .eu-featured-card {
		grid-column: 1 / -1;
		margin: 0;
	}

	.elementor .eu-featured-badges .eu-badge {
		font-size: 0.81rem;
		letter-spacing: 0.16em;
		padding: 0.34rem 0.7rem 0.3rem calc(0.7rem + 0.16em);
	}
}

/* ---------------------------------------------------------------------------
 * Read more (global class eu-read-more, v1.0.82): on phones a long text block
 * shows its first lines with a fade and a "Read more" pill (site.js wraps the
 * text under the heading in eu-read-more__body and adds the button). Used on
 * About's Our story and Previous owner sections. Wider screens show it all.
 * ------------------------------------------------------------------------ */

.eu-read-more__body {
	display: flex;
	flex-direction: column;
	gap: inherit;
	align-items: inherit;
	width: 100%;
}

.elementor .eu-read-more .eu-read-more__toggle {
	display: none;
}

/* Opening (v1.0.83) unrolls the text over 0.7s with the fade riding down its
 * bottom edge; once it's open the fade slides away. Folding runs it back. */
@media (max-width: 767px) {
	.eu-read-more:not(.eu-read-more--short) .eu-read-more__body {
		overflow: hidden;
		-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 4.5rem), transparent);
		mask-image: linear-gradient(to bottom, #000 calc(100% - 4.5rem), transparent);
		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		-webkit-mask-size: 100% 100%;
		mask-size: 100% 100%;
		transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1), -webkit-mask-size 0.3s ease, mask-size 0.3s ease;
	}

	.eu-read-more:not(.is-open):not(.eu-read-more--short) .eu-read-more__body {
		max-height: 10.5rem;
	}

	.eu-read-more.is-open:not(.eu-read-more--short) .eu-read-more__body {
		-webkit-mask-size: 100% calc(100% + 4.5rem);
		mask-size: 100% calc(100% + 4.5rem);
		transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1), -webkit-mask-size 0.35s ease 0.55s, mask-size 0.35s ease 0.55s;
	}

	.elementor .eu-read-more:not(.eu-read-more--short) .eu-read-more__toggle {
		display: inline-block;
		margin: 0;
		cursor: pointer;
		-webkit-appearance: none;
		appearance: none;
	}
}

/* Visitors who ask for less motion still see it open, just quicker. */
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
	.eu-read-more:not(.eu-read-more--short) .eu-read-more__body,
	.eu-read-more.is-open:not(.eu-read-more--short) .eu-read-more__body {
		transition-duration: 0.3s;
		transition-delay: 0s;
	}
}

/* ---------------------------------------------------------------------------
 * Text first on phones (global class eu-text-first-mobile, v1.0.84): on a
 * side-by-side section the photo goes below the text on phones, whichever
 * side it sits on wider screens. Used on About's Our story and Previous owner
 * rows; the second has its photo on the right on desktop.
 * ------------------------------------------------------------------------ */

@media (max-width: 767px) {
	.elementor .e-con.eu-text-first-mobile {
		flex-direction: column;
	}

	.elementor .e-con.eu-text-first-mobile > :is(img, .e-image-base, .e-image-link-base) {
		order: 1;
	}
}
