/*
 * MALTHÉ phone fixes (2026-11-05). Layout only: no text, images or products change.
 * Everything here applies to screens up to 767px wide, so tablet and desktop are untouched.
 * To undo: delete this file and the "Phone fixes" block in functions.php.
 */
@media (max-width: 767px) {

	/* ---------- Form fields: 16px stops iPhones zooming in when a field is tapped ---------- */
	input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
	input[type="number"], input[type="search"], input[type="url"], select, textarea,
	.select2-container .select2-selection__rendered {
		font-size: 16px !important;
	}
	html body.woocommerce-checkout form.checkout .form-row input.input-text,
	html body.woocommerce-checkout form.checkout .form-row textarea,
	html body.woocommerce-checkout form.checkout .form-row select,
	html body.woocommerce-checkout form.checkout .select2-container .select2-selection--single .select2-selection__rendered,
	html body.woocommerce-cart .cart_item .quantity input.qty,
	html body .frm_forms input[type="text"], html body .frm_forms input[type="email"],
	html body .frm_forms input[type="tel"], html body .frm_forms select, html body .frm_forms textarea,
	html body .frm_forms.frm_forms .frm_form_field.frm_form_field.form-field input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
	html body .frm_forms.frm_forms .frm_form_field.frm_form_field.form-field select,
	html body .frm_forms.frm_forms .frm_form_field.frm_form_field.form-field textarea,
	html body .elementor-form .elementor-field-group input.elementor-field,
	html body .elementor-form .elementor-field-group textarea.elementor-field {
		font-size: 16px !important;
	}

	/* ---------- Cart: less nested padding, so the product box and buttons have more room ---------- */
	html body.woocommerce-cart .elementor-element.elementor-element-c_cart_body { padding-left: 16px !important; padding-right: 16px !important; }
	.woocommerce-cart .e-cart-section { padding: 12px !important; }
	.woocommerce-cart .e-shop-table { padding: 12px !important; }
	.woocommerce-cart .cart_item { padding: 8px !important; margin-bottom: 12px !important; }
	.woocommerce-cart .cart_item td { padding: 10px 8px !important; }
	.woocommerce-cart td.actions { padding: 12px 8px !important; }
	.woocommerce-cart .e-cart__container { gap: 16px !important; }
	.woocommerce-cart .cart_totals { margin-top: 0 !important; }
	.woocommerce-cart .cart_totals table, .woocommerce-cart .cart_totals tbody { display: block; width: 100% !important; }
	.woocommerce-cart .cart_totals tr { display: block !important; width: 100% !important; }
	.woocommerce-cart .cart_totals tr td { width: 100% !important; box-sizing: border-box; }
	.woocommerce-cart .cart_item .quantity .minus,
	.woocommerce-cart .cart_item .quantity .plus { width: 44px !important; min-width: 44px !important; height: 44px !important; }
	.woocommerce-cart .cart_item .quantity .qty { height: 44px !important; }
	.woocommerce-cart .product-remove a { position: relative; }
	.woocommerce-cart .product-remove a::after { content: ""; position: absolute; inset: -12px -14px; }

	/* ---------- Easier tapping: invisible larger tap areas, so nothing moves on the page ---------- */
	a.malthe-action-link { position: relative; }
	a.malthe-action-link::after { content: ""; position: absolute; inset: -7px -3px; }
	.e-n-menu-toggle { position: relative; }
	.e-n-menu-toggle::after { content: ""; position: absolute; inset: -4px; }
	.elementor-swiper-button::before { content: ""; position: absolute; inset: -4px; }
	.elementor-element-tb_left .elementor-heading-title a { position: relative; }
	.elementor-element-tb_left .elementor-heading-title a::before { content: ""; position: absolute; inset: -12px -6px; }
	.elementor-widget-heading .elementor-heading-title > a { position: relative; }
	.elementor-widget-heading .elementor-heading-title > a::before { content: ""; position: absolute; inset: -10px 0; }
	.wd-product-cats a { position: relative; }
	.wd-product-cats a::before { content: ""; position: absolute; inset: -8px 0; }
	.elementor-widget-button a.elementor-button {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
	}

	/* ---------- Product cards: buttons sit under the photo, at a tappable 40px ---------- */
	.wd-product .wrapp-buttons {
		position: static !important;
		display: block !important;
		margin: 8px 0 10px !important;
		text-align: center;
		transform: none !important;
		opacity: 1 !important;
	}
	.wd-product .wrapp-buttons .wd-buttons { transform: none !important; }
	.wd-product .wrapp-buttons .wd-action-btn,
	.wd-product .wrapp-buttons .wd-action-btn > a { width: 40px !important; height: 40px !important; }

	/* ---------- Back-to-top button: slightly see-through, so it hides less of the page ---------- */
	.scrollToTop.button-show { opacity: .85 !important; }
	body.m-atc-on .scrollToTop { bottom: 80px !important; }

	/* ---------- Small text: nothing under 12px ---------- */
	/* Collection pages: one rule forced every paragraph heading to 10.5px */
	body.page-id-35917 .elementor-element[data-element_type="container"] .elementor-widget-heading p.elementor-heading-title,
	body.page-id-35952 .elementor-element[data-element_type="container"] .elementor-widget-heading p.elementor-heading-title,
	body.page-id-35680 .elementor-element[data-element_type="container"] .elementor-widget-heading p.elementor-heading-title,
	body.page-id-35813 .elementor-element[data-element_type="container"] .elementor-widget-heading p.elementor-heading-title {
		font-size: 12px !important;
	}
	/* Text sized directly on the element */
	[style*="font-size:10px"], [style*="font-size: 10px"],
	[style*="font-size:10.5px"], [style*="font-size: 10.5px"],
	[style*="font-size:11px"], [style*="font-size: 11px"] {
		font-size: 12px !important;
	}
	/* Top bar */
	body .elementor-1190 .elementor-element.elementor-element-tb_left .elementor-heading-title,
	body .elementor-1190 .elementor-element.elementor-element-tb_left .elementor-heading-title a {
		font-size: 12px !important;
	}
	/* Individual small labels */
	[data-id="ba1ec0a"] .elementor-heading-title, [data-id="ba1ec0a"] .elementor-heading-title a,
	[data-id="90172e4"] .elementor-heading-title, [data-id="90172e4"] .elementor-heading-title a,
	[data-id="d0c9632"] .elementor-heading-title, [data-id="d0c9632"] .elementor-heading-title a,
	[data-id="edbc963"] .elementor-heading-title, [data-id="edbc963"] .elementor-heading-title a,
	[data-id="1a88e3b"] .elementor-heading-title, [data-id="1a88e3b"] .elementor-heading-title a,
	[data-id="6423d30"] .elementor-heading-title, [data-id="6423d30"] .elementor-heading-title a,
	[data-id="30d53fd"] .elementor-heading-title, [data-id="30d53fd"] .elementor-heading-title a,
	[data-id="3e53fb3"] .elementor-heading-title, [data-id="b159694"] .elementor-heading-title,
	[data-id="e71497f"] .elementor-heading-title, [data-id="421a490"] .elementor-heading-title,
	[data-id="19c9dd6"] .elementor-heading-title, [data-id="91d11f1"] .elementor-heading-title,
	[data-id="1a9df51"] .elementor-heading-title, [data-id="57ae31e"] .elementor-heading-title,
	[data-id="2383952"] .elementor-heading-title, [data-id="2a2fcd7"] .elementor-heading-title,
	[data-id="6b484eb"] .elementor-heading-title, [data-id="08e9ed9"] .elementor-heading-title,
	[data-id="0567483"] .elementor-heading-title, [data-id="5fe430e"] .elementor-heading-title,
	[data-id="fc23231"] .elementor-heading-title, [data-id="fc23231"] .elementor-heading-title a,
	[data-id="e110cb1"] .elementor-heading-title, [data-id="75e840b"] .elementor-heading-title,
	[data-id="057f920"] .elementor-heading-title, [data-id="75e840a"] .elementor-heading-title,
	[data-id="0be2e81"] .elementor-heading-title, [data-id="b74c5d5"] .elementor-heading-title,
	[data-id="eyebrow_login"] .elementor-heading-title, [data-id="eyebrow_reg"] .elementor-heading-title,
	[data-id="sp_ing_head"] .elementor-heading-title, [data-id="sp_desc_kicker"] .elementor-heading-title,
	[data-id="sp_benefits_kicker"] .elementor-heading-title, [data-id="99f05fe"] .elementor-heading-title,
	[data-id="56df4b7"] .elementor-heading-title, [data-id="df74a6d"] .elementor-heading-title,
	[data-id="01fe499"] .elementor-heading-title, [data-id="a080f99"] .elementor-heading-title,
	[data-id="39b3ddf"] .elementor-button-text, [data-id="d01ba42"] .elementor-button-text,
	[data-id="8f59c32"] .elementor-button-text, [data-id="e28fe4c"] .elementor-button-text,
	[data-id="58d2441"] .elementor-button-text, [data-id="c15682f"] .elementor-button-text,
	[data-id="sp_hero_pills"] .elementor-icon-list-text,
	.frm_forms label.frm_primary_label,
	.malthe-toast-badge-title, a.malthe-toast-btn {
		font-size: 12px !important;
	}

	html body .elementor-element.elementor-element-3e53fb3 p.elementor-heading-title,
	html body .elementor-element.elementor-element-b159694 p.elementor-heading-title,
	html body .elementor-element.elementor-element-e71497f p.elementor-heading-title,
	html body .elementor-element.elementor-element-sp_ing_head p.elementor-heading-title,
	html body .elementor-element.elementor-element-99f05fe p.elementor-heading-title {
		font-size: 12px !important;
	}

	/* ---------- Product pages: smaller title, so the page reaches Add to Cart sooner ---------- */
	html body.single-product .elementor-element.elementor-element-sp_woo_title h1.product_title {
		font-size: 32px !important;
		line-height: 38px !important;
	}

	/* Sticky Add to Cart bar, added by the "Phone fixes" script in functions.php */
	.m-atc-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 900;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid #E4DED3;
		box-shadow: 0 -6px 20px rgba(51, 38, 26, .08);
		transform: translateY(110%);
		transition: transform .2s ease;
	}
	body.m-atc-on .m-atc-bar { transform: none; }
	body.m-atc-on { padding-bottom: 72px; }
	.m-atc-price { font-family: 'Jost', sans-serif; font-size: 16px; line-height: 22px; font-weight: 600; color: #1A1916; white-space: nowrap; }
	.m-atc-bar button.m-atc-btn {
		flex: 0 0 auto;
		min-height: 48px;
		margin: 0;
		padding: 0 24px;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: #B8964A;
		color: #1A1916;
		font-family: 'Jost', sans-serif;
		font-size: 12px;
		font-weight: 500;
		letter-spacing: 2px;
		text-transform: uppercase;
		cursor: pointer;
	}

	/* ---------- Our Story: the Our Mission title box had a fixed height, leaving a large gap ---------- */
	.page-id-36153 .elementor-element.elementor-element-cffea53 { min-height: 0 !important; }

	/* Our Story: center the Our Vision title, matching Our Mission */
	.page-id-36153 .elementor-element.elementor-element-11520bd { width: 100% !important; align-self: center !important; text-align: center !important; }
	.page-id-36153 .elementor-element.elementor-element-11520bd .elementor-heading-title { text-align: center !important; }

	/* ---------- Home: remove doubled spacing between sections; all content stays ---------- */
	.page-id-509 [data-elementor-type="wp-page"] > .e-con > .e-con-inner {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}
	.page-id-509 .elementor-element-1dd7f74 { padding-top: 16px !important; padding-bottom: 16px !important; }
	.page-id-509 .elementor-element-bfa1b0a { padding-top: 8px !important; }
	.page-id-509 .elementor-element-fb6f325 { margin-bottom: 28px !important; }
	.page-id-509 .elementor-element-8dc809e { margin-bottom: 28px !important; }
}

/* Smallest phones: keep the menu button on the same row as the logo and icons */
@media (max-width: 340px) {
	html body .elementor-element.elementor-element-main_bar { gap: 8px !important; }
}
