/* PIZA mobile fixes (mu-plugin) — 2026-11-24 */

/* 1. Mobile: two floating buttons only.
      Left: accessibility. Right: AI advisor (WhatsApp lives inside it).
      On pages where the advisor is hidden (e.g. /family/) WhatsApp stays as the second button.
      Both sit 12px above whatever bar is docked at the bottom (--pz-dock, set by fixes.js). */
@media (max-width: 767px) {
	html.pzx-adv-on body.pz-site .pz-fab .elementor-element:has(> .elementor-widget-container a[href*="wa.me"]),
	html.pzx-adv-on body.pz-site .pz-fab .elementor-widget:has(a[href*="wa.me"]) {
		display: none !important;
	}
	html body.pz-site .pz-fab.pz-fab {
		left: 12px !important;
		bottom: calc(var(--pz-dock, 0px) + 12px) !important;
		transition: bottom .2s ease;
	}
	/* room at the very end of the page so the buttons don't sit on the last footer line */
	html body.pz-site #colophon {
		padding-bottom: calc(76px + var(--pz-dock, 0px));
	}
	/* pages without the advisor (e.g. /family/) keep two stacked buttons on the left: more room */
	html:not(.pzx-adv-on) body.pz-site #colophon {
		padding-bottom: calc(150px + var(--pz-dock, 0px));
	}
}

/* 2 + 3. Pinned (sticky) columns stack in one column below 1024px and slide over the content after them.
      how-it-works FAQ heading, in-my-space result image, contact details column. */
@media (max-width: 1023px) {
	html body.pz-site .pz-53a153e,
	html body.pz-site .elementor-element-a5d7404,
	html body.pz-site .pz-2567d95,
	html body.pz-site .pz-d65a85a {
		position: relative !important;
		top: auto !important;
	}
}

/* 15. /family/ mobile: the "welcome back" resume banner (inline-styled by the family app, no classes).
       Was 4 rows / ~147px covering a fifth of the screen. Now a compact 2-row bar:
       row 1 = title on one line + close, row 2 = continue / start over. Avatar and the step line are hidden. */
@media (max-width: 767px) {
	/* pz-family-resume */
	body.pz-site div[style*="pzUp"][style*="max-width: 560px"] {
		bottom: 10px !important;
		left: 10px !important;
		right: 10px !important;
		padding: 10px 12px !important;
		gap: 8px !important;
		flex-wrap: wrap !important;
		box-shadow: 4px 4px 0 #f2398b !important;
	}
	body.pz-site div[style*="pzUp"][style*="max-width: 560px"] > span:first-child {
		display: none !important;
	}
	body.pz-site div[style*="pzUp"][style*="max-width: 560px"] > span:nth-child(2) {
		flex: 1 1 0 !important;
		min-width: 0 !important;
		padding-left: 34px !important;
	}
	body.pz-site div[style*="pzUp"][style*="max-width: 560px"] > span:nth-child(2) > b {
		display: block !important;
		font-size: 14px !important;
		line-height: 1.3 !important;
		white-space: nowrap !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
	}
	body.pz-site div[style*="pzUp"][style*="max-width: 560px"] > span:nth-child(2) > span {
		display: none !important;
	}
	body.pz-site div[style*="pzUp"][style*="max-width: 560px"] > span:nth-child(3) {
		flex: 1 1 100% !important;
		display: flex !important;
		align-items: center !important;
		gap: 12px !important;
	}
	body.pz-site div[style*="pzUp"][style*="max-width: 560px"] > span:nth-child(3) > button {
		min-height: 36px !important;
		font-size: 13px !important;
	}
	/* close (×) moves up into row 1, top-left corner */
	body.pz-site div[style*="pzUp"][style*="max-width: 560px"] > span:nth-child(3) > button:last-child {
		position: absolute !important;
		top: 6px !important;
		left: 6px !important;
		width: 30px !important;
		height: 30px !important;
		min-height: 30px !important;
	}
}

/* 10. /sculptures/ mobile: the paint drips under "פסלים." ran up to 120px down over the pink hint and the intro text.
       Shorter drips on mobile; the "move the mouse to spray" hint is hidden on touch screens (there is no mouse). */
@media (max-width: 767px) {
	/* pzx-sculptures-hero */
	html body.pz-site .pz-50a53c3 .pz-drip {
		max-height: 34px !important;
	}
}
@media (hover: none) {
	html body.pz-site .pz-41716a0 {
		display: none !important;
	}
}

/* 11. 404 page, mobile: the big "404" sat behind the card (hidden), and the three buttons wrapped to two rows. */
@media (max-width: 767px) {
	html body.pz-site .pz-b368138 {
		align-items: flex-start !important;
	}
	html body.pz-site .pz-91dbfe8 {
		top: 112px !important;
		bottom: auto !important;
	}
	html body.pz-site .pz-91dbfe8,
	html body.pz-site .pz-91dbfe8 * {
		font-size: 140px !important;
		line-height: 1 !important;
	}
	html body.pz-site .pz-c798261 {
		margin-top: 150px !important;
	}
	html body.pz-site .pz-36558a4 {
		gap: 8px !important;
		flex-wrap: nowrap !important;
	}
	html body.pz-site .pz-36558a4 .elementor-button {
		padding: 0 12px !important;
		font-size: 14px !important;
		min-height: 46px !important;
		height: 46px !important;
		white-space: nowrap !important;
	}
}

/* 9. PIZA COMPANY form: the native file picker showed the browser's own English ("Choose Files / No file chosen").
      fixes.js replaces it with a Hebrew picker in the site's style; the real input stays (visually hidden) for submit. */
form.piza-pp-form input.pzx-file-in {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
}
form.piza-pp-form label.pzx-file.pzx-file {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 8px 12px;
	box-sizing: border-box;
	width: 100%;
	border: 2px dashed rgba(11, 11, 10, .45);
	background: #F1EDE4;
	color: #0B0B0A;
	font-family: "IBM Plex Sans Hebrew", "IBM Plex Sans", sans-serif;
	font-size: 15px;
	cursor: pointer;
}
form.piza-pp-form .pzx-file .pzx-file__btn {
	flex: none;
	background: #0B0B0A;
	color: #F3EFE7;
	padding: 7px 14px;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
}
form.piza-pp-form .pzx-file .pzx-file__name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	opacity: .75;
}
form.piza-pp-form label.pzx-file.is-set .pzx-file__name { opacity: 1; font-weight: 600; }
form.piza-pp-form label.pzx-file.pzx-file:hover { border-color: #0B0B0A; }
form.piza-pp-form .pzx-file-in:focus-visible + label.pzx-file.pzx-file { outline: 3px solid #F5C518; outline-offset: 2px; }

/* /family/ mobile (2026-11-24b)
   - hero painting: the "no photo of everyone together?" note sat on the bottom of the painting
     (covering the kids and the dog, its first line hidden behind the image). It now sits under the painting.
   - the round PIZA FAMILY sticker is smaller so it doesn't cover the corner of the painting.
   - the 5-step strip under the hero: two clean columns, no arrows breaking at line ends. */
@media (max-width: 699px) {
	html body.pz-site .pzx-hero-frame {
		margin-bottom: 92px !important;
	}
	html body.pz-site .pzx-hero-frame .pzx-hero-note {
		top: calc(100% + 16px) !important;
		bottom: auto !important;
		right: 0 !important;
		left: 0 !important;
		z-index: 4 !important;
	}
	html body.pz-site .pzx-hero-frame > [style*="-44px"] {
		width: 68px !important;
		height: 68px !important;
		top: -26px !important;
		left: -8px !important;
	}
	html body.pz-site .pzx-steps {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 12px 16px !important;
		font-size: 15px !important;
	}
	html body.pz-site .pzx-steps > li:nth-child(even) {
		display: none !important;
	}
}

/* /family/ mobile: the scroll "ruler" (paint rail). As a 16px strip on the left edge it was practically invisible.
   On phones it turns into a horizontal paint bar right under the header, full screen width, filling right→left.
   The rail's own JS measures clientWidth/clientHeight, so rotating the box keeps markers and fill aligned. */
@media (max-width: 699px) {
	html body.pz-site .pz-rail {
		top: var(--pz-head, 76px) !important;
		bottom: auto !important;
		left: 100% !important;
		right: auto !important;
		width: 18px !important;
		height: 100vw !important;
		transform: rotate(90deg) !important;
		transform-origin: 0 0 !important;
		background: rgba(11, 11, 10, .82) !important;
		-webkit-backdrop-filter: blur(6px);
		backdrop-filter: blur(6px);
		z-index: 186 !important; /* above content, below the mobile menu (190) and header (200) */
	}
}

/* Header nav (9 items since "ציור לחברות" was added, 2026-11-24): keep it on one line between 1025px and 1399px. */
@media (min-width: 1025px) and (max-width: 1399px) {
	html body.pz-site .elementor-element-328abc0 .elementor-icon-list-items.elementor-inline-items {
		gap: 10px !important;
		column-gap: 10px !important;
		flex-wrap: nowrap !important;
	}
	html body.pz-site .elementor-element-328abc0 .elementor-icon-list-items.elementor-inline-items > .elementor-icon-list-item {
		margin: 0 6px !important;
		white-space: nowrap;
	}
}
@media (min-width: 1025px) and (max-width: 1180px) {
	html body.pz-site .elementor-element-328abc0 .elementor-icon-list-items.elementor-inline-items > .elementor-icon-list-item {
		margin: 0 4px !important;
	}
	html body.pz-site .elementor-element-328abc0 .elementor-icon-list-text {
		font-size: 14px !important;
	}
}

/* pzx-eyebrow-fix: family-template hero starts below the fixed header (+rail on mobile) */
@media (max-width:1024px){ html body.page-template-piza-family-v12 #dc-root .sc-host > div:first-child > section:first-child > div:first-child{padding-top:96px!important} }
@media (max-width:699px){ html body.page-template-piza-family-v12 #dc-root .sc-host > div:first-child > section:first-child > div:first-child{padding-top:112px!important} }
