/* Professional Account landing + thank-you pages: phone/tablet layout (Lovable mobile design).
 * Loaded only on those two pages (functions.php). */

/* Grids stacked to one column: each row as tall as its content (Elementor gave every row an equal
 * share, which left big empty gaps, e.g. under the hero badge and around the video). */
@media (max-width: 1024px) {
	body.ppa-lp .e-grid,
	body.ppa-ty .e-grid { grid-template-rows: auto !important; }
}

@media (max-width: 767px) {
	/* Application sections on phones: heading, intro, checklist and help phone, then the form, then the badge (Lovable mobile design) */
	body.ppa-lp .e-grid:has(> .ppa-hero-left) { row-gap: 14px !important; }
	body.ppa-lp .ppa-hero-left { display: contents !important; }
	body.ppa-lp .ppa-hero-left > .elementor-element:nth-child(1) { order: 1; }
	body.ppa-lp .ppa-hero-left > .elementor-element:nth-child(2) { order: 2; }
	body.ppa-lp .ppa-hero-left > .elementor-element:nth-child(3) { order: 3; }
	body.ppa-lp .e-grid:has(> .ppa-hero-left) > .ppa-form { order: 6; margin: 14px 0 14px; }
	body.ppa-lp .ppa-hero-left > .elementor-element:nth-child(4) { order: 4; }
	body.ppa-lp .ppa-hero-left > .elementor-element:nth-child(5) { order: 5; }
	body.ppa-lp .ppa-hero-left > .elementor-element:nth-child(n+6) { order: 7; margin-top: 8px; }

	/* Buttons full width, like the design */
	body.ppa-lp .ppa-btn,
	body.ppa-ty .ppa-btn { width: 100% !important; max-width: 100% !important; }
	body.ppa-lp .ppa-btn .elementor-button,
	body.ppa-ty .ppa-btn .elementor-button { width: 100% !important; justify-content: center; }
	body.ppa-lp .ppa-linkbtn, body.ppa-lp .ppa-linkbtn .elementor-button { width: auto !important; }
	body.ppa-lp .ppa-underline-btn, body.ppa-lp .ppa-underline-btn .elementor-button { width: auto !important; }
}

/* How it works: outline step icons (uploaded SVGs) drawn as grey strokes */
body.ppa-lp .ppa-stepicon svg { fill: none !important; stroke: #555 !important; width: 22px; height: 22px; }
body.ppa-lp .ppa-stepicon svg * { fill: none !important; stroke: #555 !important; }
body.ppa-lp .ppa-stepicon svg circle { fill: #555 !important; }

/* ---- phone details from the Lovable mobile design ---- */
@media (max-width: 767px) {
	/* 20px side margins like the design (was 16px) */
	body.ppa-lp .e-parent { --padding-left: 20px !important; --padding-right: 20px !important; }

	/* header: just "Log in" on the right, frosted white bar */
	body.ppa-lp .ppa-header { background-color: rgba(255, 255, 255, .88) !important; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
	body.ppa-lp .ppa-login p { font-size: 0 !important; }
	body.ppa-lp .ppa-login a { font-size: 14px !important; font-weight: 600; color: #111 !important; text-decoration: none !important; }

	/* "Because Running Your Business..." box */
	body.ppa-lp .e-con:has(> .ppa-pills) { --padding-top: 28px !important; --padding-bottom: 28px !important; --padding-left: 24px !important; --padding-right: 24px !important; border-radius: 20px !important; }
	body.ppa-lp .ppa-pills .elementor-icon-list-item { padding: 14px 16px !important; border-radius: 12px !important; }
	body.ppa-lp .ppa-pills .elementor-icon-list-icon { width: auto !important; height: auto !important; border: 0 !important; min-width: 22px; }
	body.ppa-lp .ppa-pills .elementor-icon-list-icon svg, body.ppa-lp .ppa-pills .elementor-icon-list-icon i { width: 22px !important; height: 22px !important; font-size: 22px !important; --e-icon-list-icon-size: 22px; }
}
@media (max-width: 767px) { body.ppa-lp .ppa-pills .elementor-icon-list-icon, body.ppa-lp .ppa-pills .elementor-icon-list-icon svg { flex-shrink: 0 !important; min-width: 22px !important; } }

/* ---- phone font sizes: Lovable keeps body text, buttons, cards and stats the same size as on
 * desktop and only scales the headings down (measured from the Lovable mobile screenshots) ---- */
@media (max-width: 767px) {
	/* section titles 28.8px */
	body.ppa-lp :is(.elementor-element-28f8feb, .elementor-element-32041d0, .elementor-element-b11bf17, .elementor-element-fb60652, .elementor-element-3a455bd, .elementor-element-46a3234, .elementor-element-b55fce4) .elementor-heading-title { font-size: 28.8px !important; }
	/* "Because Running Your Business..." box: title 24, text and points 16 (as desktop) */
	body.ppa-lp .elementor-element-8f26e7c .elementor-heading-title { font-size: 24px !important; line-height: 1.2 !important; }
	body.ppa-lp .elementor-element-e3e7641 :is(p, .elementor-widget-container) { font-size: 16px !important; }
	body.ppa-lp .ppa-pills .elementor-icon-list-text { font-size: 16px !important; font-weight: 600 !important; line-height: 1.45 !important; }
}

/* ---- all widths: sizes measured from the current Lovable design ---- */
/* section intro paragraphs 18px (the video intro was 16) */
body.ppa-lp .elementor-element-345ea9e :is(p, .elementor-widget-container) { font-size: 18px !important; line-height: 1.6 !important; }
/* "Who it's for" cards: title 20, text 15, footnote 17 */
body.ppa-lp :is(.elementor-element-cb1c65c, .elementor-element-add4c84, .elementor-element-50df700) .elementor-heading-title { font-size: 20px !important; }
body.ppa-lp :is(.elementor-element-5c105d6, .elementor-element-3654841, .elementor-element-96e07fc) :is(p, .elementor-widget-container) { font-size: 15px !important; }
body.ppa-lp .elementor-element-c9f141f :is(p, .elementor-widget-container) { font-size: 17px !important; }

/* Registration form: a long licence file name must not widen its column (the grid used plain 1fr,
 * which grows to fit the name and squeezed the other fields). Columns now share the width evenly
 * and the name is cut off with "...". */
body.ppa-lp .ppa-form form.register { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
body.ppa-lp .ppa-form form.register > *, body.ppa-lp .ppa-form .afreg_extra_fields > * { min-width: 0; }
body.ppa-lp .ppa-form .ppa-file { min-width: 0; max-width: 100%; overflow: hidden; }
body.ppa-lp .ppa-form .ppa-file-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767px) {
	body.ppa-lp .ppa-form form.register { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Form error messages (shown by professional-account.js instead of the browser pop-up) */
body.ppa-lp .ppa-form .ppa-error { display: block; margin-top: 6px; font-size: 12px; font-weight: 500; line-height: 1.4; color: #DC0C2B; }
body.ppa-lp .ppa-form .ppa-invalid,
body.ppa-lp .ppa-form form input.input-text.ppa-invalid,
body.ppa-lp .ppa-form form select.ppa-invalid, body.ppa-lp .ppa-form form .ppa-file.ppa-invalid { border-color: #DC0C2B !important; box-shadow: 0 0 0 3px rgba(220, 12, 43, .08) !important; }
body.ppa-lp .ppa-form p.wpmem-checkbox .ppa-error { flex-basis: 100%; }

/* newsletter tick box is required (WP-Members): show its red * */
body.ppa-lp .ppa-form form p.wpmem-checkbox label .required { display: inline !important; color: #DC0C2B !important; margin-left: 2px; }
body.ppa-lp .ppa-form form p.wpmem-checkbox { flex-wrap: wrap; }

/* server-side error box at the top of the form (e.g. "... is a required field."): plain readable text */
body.ppa-lp .ppa-form .woocommerce-error { display: block !important; margin: 0 0 20px !important; padding: 14px 18px !important; text-align: left !important; }
body.ppa-lp .ppa-form .woocommerce-error li { display: block !important; margin: 0 !important; padding: 0 !important; font-size: 14px !important; line-height: 1.5 !important; text-align: left !important; }
body.ppa-lp .ppa-form .woocommerce-error li + li { margin-top: 6px !important; }
body.ppa-lp .ppa-form .woocommerce-error li * { display: inline !important; margin: 0 !important; padding: 0 !important; font-size: inherit !important; }
body.ppa-lp .ppa-form .woocommerce-error::before { content: none !important; }
body.ppa-lp .ppa-form form p.wpmem-checkbox label { flex: 1 1 0; min-width: 0; }
body.ppa-lp .ppa-form form p.wpmem-checkbox .ppa-error { flex-basis: 100%; padding-left: 28px; }
body.ppa-lp .ppa-form form label.ppa-invalid { border: 0 !important; box-shadow: none !important; }

/* Phone and "What brought you to our website and this page?" each on their own full-width row,
 * so the long question fits on one line and the two fields no longer sit at different heights */
/* Phone number and "What brought you here?" side by side (both forms); the two labels get the
 * same height so the two boxes line up even when the question wraps to two lines. */
body.ppa-lp .ppa-form #afreg_additionalshowhide_26841,
body.ppa-lp .ppa-form form.register p:has(#afreg_additional_8224) { grid-column: auto !important; }
body.ppa-lp .ppa-form label[for="afreg_additional_26841"],
body.ppa-lp .ppa-form label[for="afreg_additional_8224"] { min-height: 2.7em; display: block !important; white-space: normal; }
@media (max-width: 767px) {
	body.ppa-lp .ppa-form label[for="afreg_additional_26841"],
	body.ppa-lp .ppa-form label[for="afreg_additional_8224"] { min-height: 0; }
}

/* Upload box: keep the hidden file input inside the box. It was positioned against a block far
 * below, so opening the file picker focused it there and scrolled the page down. */
body.ppa-lp .ppa-form .ppa-file, body.ppa-lp .ppa-form #afreg_additionalshowhide_16455 > label.ppa-file { position: relative !important; }
body.ppa-lp .ppa-form .ppa-file input[type=file] { position: absolute !important; inset: 0 !important; left: 0 !important; bottom: auto !important; width: 100% !important; height: 100% !important; opacity: 0 !important; cursor: pointer; }

/* Newsletter tick box: clean checkbox (the theme drew its own tick on top of the browser's) */
body.ppa-lp .ppa-form form input[type=checkbox] {
	-webkit-appearance: none !important; appearance: none !important; position: relative !important; left: auto !important; top: auto !important;
	width: 18px !important; height: 18px !important; min-width: 18px; margin: 1px 0 0 0 !important; padding: 0 !important;
	border: 1.5px solid #BDBDBD !important; border-radius: 4px !important; background: #fff !important; box-shadow: none !important; outline: none !important; cursor: pointer;
	transition: background .15s, border-color .15s; }
body.ppa-lp .ppa-form form input[type=checkbox]:hover { border-color: #DC0C2B !important; }
body.ppa-lp .ppa-form form input[type=checkbox]:checked { background: #DC0C2B !important; border-color: #DC0C2B !important; }
body.ppa-lp .ppa-form form input[type=checkbox]::before { content: none !important; }
body.ppa-lp .ppa-form form input[type=checkbox]::after { content: "" !important; display: none; position: absolute !important; left: 5px !important; top: 1.5px !important; width: 5px !important; height: 10px !important;
	border: solid #fff !important; border-width: 0 2px 2px 0 !important; background: none !important; transform: rotate(45deg) !important; }
body.ppa-lp .ppa-form form input[type=checkbox]:checked::after { display: block !important; }
body.ppa-lp .ppa-form form input[type=checkbox]:focus-visible { box-shadow: 0 0 0 3px rgba(220, 12, 43, .15) !important; }
body.ppa-lp .ppa-form form p.wpmem-checkbox { padding-left: 0 !important; align-items: flex-start !important; }
body.ppa-lp .ppa-form form p.wpmem-checkbox { gap: 10px !important; } body.ppa-lp .ppa-form form p.wpmem-checkbox label { padding-left: 0 !important; margin: 0 !important; }

/* "Why professionals choose Pearlon" cards: no outline (it showed as a thin dark line around the photos on the white background). The thin border stays only on the dark "Who it's for" cards. */
body.ppa-lp .elementor-element-090fa80 .ppa-card { border: 0 !important; }

/* FAQ: open/close instantly (no sliding), no browser scroll jumps */
body.ppa-lp .ppa-faq .e-n-accordion-item > .e-con { transition: none !important; animation: none !important; }
body.ppa-lp .ppa-faq { overflow-anchor: none; }

/* Side-cart bubble (Side Cart plugin) not needed on the landing and thank-you pages */
body.ppa-ads.ppa-lp .xoo-wsc-basket, body.ppa-ads.ppa-ty .xoo-wsc-basket,
body.ppa-ads.ppa-lp .xoo-wsc-modal, body.ppa-ads.ppa-ty .xoo-wsc-modal { display: none !important; }

/* Form submit buttons don't move up/down on hover (only the colour changes) */
body.ppa-lp .ppa-form button[type=submit], body.ppa-lp .ppa-form button[type=submit]:hover, body.ppa-lp .ppa-form button[type=submit]:active { transform: none !important; }

/* "Proudly Canadian" badge on phones: flag + 50+ on the left, text on the right (as in the design) */
@media (max-width: 767px) {
	body.ppa-lp .ppa-badge { --flex-direction: row !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; gap: 16px !important; --padding-top: 20px !important; --padding-bottom: 20px !important; --padding-left: 18px !important; --padding-right: 18px !important; }
	body.ppa-lp .ppa-badge > .e-con:first-child { width: 84px !important; --width: 84px !important; flex: 0 0 84px !important; }
	body.ppa-lp .ppa-badge > .ppa-badge-text { width: auto !important; --width: auto !important; flex: 1 1 0 !important; min-width: 0; padding-left: 16px !important; }
	body.ppa-lp .ppa-badge .ppa-flag img { width: 44px !important; }
	body.ppa-lp .ppa-badge > .e-con:first-child .elementor-heading-title { white-space: nowrap; }
}
@media (max-width: 767px) {
	/* badge text sizes from the Lovable mobile screenshot */
	body.ppa-lp .ppa-badge .ppa-badge-text .elementor-heading-title { font-size: 16px !important; line-height: 1.25 !important; }
	body.ppa-lp .ppa-badge .ppa-badge-text .elementor-widget-text-editor:nth-of-type(2) :is(p, .elementor-widget-container) { font-size: 12px !important; }
	body.ppa-lp .ppa-badge .ppa-badge-text .elementor-widget-text-editor :is(p, .elementor-widget-container) { font-size: 12px !important; line-height: 1.45 !important; }
	body.ppa-lp .ppa-badge > .e-con:first-child .elementor-heading-title { font-size: 26px !important; }
	body.ppa-lp .ppa-badge > .e-con:first-child .elementor-widget-heading:last-child .elementor-heading-title { font-size: 8px !important; }
	body.ppa-lp .ppa-badge > .e-con:first-child { width: 76px !important; --width: 76px !important; flex: 0 0 76px !important; }
	body.ppa-lp .ppa-badge > .ppa-badge-text { padding-left: 14px !important; }
}

/* ---- "More Than Products" video: photo cover, red play button, caption on the photo (Lovable design) ---- */
body.ppa-lp .ppa-vcard { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); }
body.ppa-lp .ppa-video .elementor-wrapper, body.ppa-lp .ppa-video .elementor-custom-embed-image-overlay { border-radius: 16px; overflow: hidden; }
body.ppa-lp .ppa-video .elementor-custom-embed-image-overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.6)); pointer-events: none; }
body.ppa-lp .ppa-video .elementor-custom-embed-play { z-index: 2; }
body.ppa-lp .ppa-video .elementor-custom-embed-play i, body.ppa-lp .ppa-video .elementor-custom-embed-play svg { display: none; }
body.ppa-lp .ppa-video .elementor-custom-embed-play::before { content: ""; display: block; width: 72px; height: 72px; border-radius: 50%; background: #DC0C2B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") 56% 50% / 42px no-repeat; box-shadow: 0 10px 28px rgba(220, 12, 43, .4); transition: transform .2s; }
body.ppa-lp .ppa-video .elementor-custom-embed-image-overlay:hover .elementor-custom-embed-play::before { transform: scale(1.06); }
body.ppa-lp .ppa-vcaption { position: absolute !important; left: 24px; right: 24px; bottom: 20px; z-index: 3; width: auto !important; pointer-events: none; transition: opacity .2s; }
body.ppa-lp .ppa-vcard.is-playing .ppa-vcaption { opacity: 0; }
@media (max-width: 767px) {
	body.ppa-lp .ppa-video .elementor-custom-embed-play::before { width: 56px; height: 56px; background-size: 30px; }
	body.ppa-lp .ppa-vcaption { left: 16px; right: 16px; bottom: 14px; }
	body.ppa-lp .ppa-vcaption .elementor-heading-title { font-size: 13px !important; line-height: 1.35 !important; }
}

/* "Why professionals choose Pearlon" on phones: no second "Proudly Canadian" badge (it's already
 * shown in the application section above), and the heading uses the full width */
@media (max-width: 767px) {
	body.ppa-lp .elementor-element-090fa80 .ppa-badge { display: none !important; }
	body.ppa-lp .elementor-element-090fa80 .e-grid:has(> .ppa-badge) { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 1024px) {
	/* heading set to 65% width in Elementor for desktop; full width once the section stacks */
	body.ppa-lp .elementor-element.elementor-element-28f8feb { width: 100% !important; max-width: 100% !important; --container-widget-width: 100% !important; }
}

/* Tablet/phone: nothing in a stacked grid may be wider than the screen ("Less Time Sourcing" text
 * column is set to 107% width in Elementor for desktop, which pushed it past the right edge) */
@media (max-width: 1024px) {
	body.ppa-lp .e-grid > .elementor-element { max-width: 100% !important; }
	body.ppa-lp .elementor-element.elementor-element-08624b2 { width: 100% !important; --width: 100% !important; }
}

/* "Proudly Canadian" badge never wider than its column (it's 420px in Elementor; between ~1025 and
 * 1180px wide the "Why professionals" column is narrower, so the badge ran past the right edge) */
body.ppa-lp .elementor-element.ppa-badge { max-width: 100% !important; }
body.ppa-lp .elementor-element-090fa80 .elementor-element.ppa-badge { width: min(420px, 100%) !important; --width: min(420px, 100%) !important; }

/* No sideways scrolling on any screen: blocks with a fixed px width in Elementor (thank-you page
 * heading 760px, text 576px, video 680px) shrink to the screen; the reference pill can wrap */
body.ppa-lp .elementor-element, body.ppa-ty .elementor-element { max-width: 100% !important; }
body.ppa-ty .ppa-ref { max-width: 100%; flex-wrap: wrap; justify-content: center; white-space: normal; }
body.ppa-ty .ppa-ref code { word-break: break-all; }
html:has(body.ppa-ty), html:has(body.ppa-lp) { overflow-x: clip; }

/* "Find Out What Pearlon Can Offer" box: dark with a deep-red glow in the top-right corner (Lovable
 * design). Drawn as a gradient so it shows on every screen size; the background screenshot set in
 * Elementor only showed the glow on wide screens and was cut off on phones. */
body.ppa-lp .elementor-element.elementor-element-acf68af {
	background-color: #121212 !important;
	background-image:
		radial-gradient(120% 90% at 100% 0%, rgba(155, 13, 34, .55) 0%, rgba(155, 13, 34, .18) 35%, rgba(155, 13, 34, 0) 62%),
		linear-gradient(160deg, #1a1a1a 0%, #111 100%) !important;
	background-size: cover !important; background-repeat: no-repeat !important; background-position: center !important;
}

/* "Find Out What Pearlon…" box: side margins on every screen size (it touched the screen edges
 * below 1440px), centred at max 1136px wide like the rest of the page */
body.ppa-lp .elementor-element.elementor-element-acf68af {
	margin-left: max(20px, calc((100% - 1136px) / 2)) !important;
	margin-right: max(20px, calc((100% - 1136px) / 2)) !important;
	width: auto !important; max-width: none !important;
}
@media (max-width: 767px) {
	body.ppa-lp .elementor-element.elementor-element-acf68af { margin-top: 8px !important; margin-bottom: 48px !important; border-radius: 20px !important; }
}

/* Application sections on phones, matched to the Lovable mobile screenshot: heading on two lines,
 * smaller intro, darker intro grey on the light section */
@media (max-width: 767px) {
	body.ppa-lp :is(.elementor-element-fa544be, .elementor-element-e061140) .elementor-heading-title { font-size: 28px !important; line-height: 1.12 !important; letter-spacing: -0.5px !important; }
	body.ppa-lp :is(.elementor-element-83ad0fb, .elementor-element-b070f58) :is(p, .elementor-widget-container) { font-size: 16px !important; line-height: 1.6 !important; }
	body.ppa-lp .elementor-element-b070f58 :is(p, .elementor-widget-container) { color: #6b6b6b !important; }
	body.ppa-lp :is(.elementor-element-be12a43, .elementor-element-cba49b7) .elementor-icon-list-text { font-size: 13.5px !important; }
	body.ppa-lp :is(.elementor-element-7780293, .elementor-element-def04bf) .elementor-icon-list-text { font-size: 13px !important; }
}

/* FAQ: answers open/close instantly (no sliding height animation that moves the page) */
body.ppa-lp .ppa-faq details, body.ppa-lp .ppa-faq details > * { transition: none !important; animation: none !important; }
html:has(body.ppa-lp) { scroll-behavior: auto !important; }

/* Tablet (768-1024px): the 5 "Why professionals" cards flow as 2 + 2 + 1 (last one full width),
 * like the Lovable tablet view, instead of 2 + 1 (with an empty gap) + 2. The two card rows are
 * merged into one grid for this width only. */
@media (min-width: 600px) and (max-width: 1024px) {
	body.ppa-lp .elementor-element-090fa80 > .e-con-inner:has(> .elementor-element-b065b78),
	body.ppa-lp .elementor-element-090fa80:has(> .elementor-element-b065b78) {
		display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 20px !important; row-gap: 20px !important;
	}
	body.ppa-lp .elementor-element-090fa80 :is(.elementor-element-0abd3ab, .elementor-element-2fac67a) { grid-column: 1 / -1 !important; }
	body.ppa-lp .elementor-element-090fa80 :is(.elementor-element-b065b78, .elementor-element-32bee66) { display: contents !important; }
	body.ppa-lp .elementor-element-32bee66 > .ppa-card:last-child { grid-column: 1 / -1 !important; }
	body.ppa-lp .elementor-element-32bee66 > .ppa-card:last-child .ppa-cover img { aspect-ratio: 21 / 9 !important; height: auto !important; }
}

/* Light application section: intro text in the design's darker grey on every screen size */
body.ppa-lp .elementor-element-b070f58 :is(p, .elementor-widget-container) { color: #666 !important; }

/* FAQ: the browser must not scroll the page by itself when an answer opens/closes */
html:has(body.ppa-lp), html:has(body.ppa-lp) body { overflow-anchor: none; }

/* Tablet: all "Why professionals" card photos the same height (the Customer Service photo has a
 * taller fixed height set for desktop, which made that card longer than Delivery next to it) */
@media (min-width: 600px) and (max-width: 1024px) {
	body.ppa-lp .elementor-element-090fa80 .ppa-card .ppa-cover img { height: auto !important; aspect-ratio: 16 / 9 !important; object-fit: cover !important; }
	body.ppa-lp .elementor-element-32bee66 > .ppa-card:last-child .ppa-cover img { aspect-ratio: 21 / 9 !important; }
}
@media (max-width: 599px) {
	/* phones: same photo height on all five cards too */
	body.ppa-lp .elementor-element-090fa80 .ppa-card .ppa-cover img { height: auto !important; aspect-ratio: 4 / 3 !important; object-fit: cover !important; }
}

/* Tablet too: no second "Proudly Canadian" badge in "Why professionals choose Pearlon" */
@media (max-width: 1024px) {
	body.ppa-lp .elementor-element-090fa80 .ppa-badge { display: none !important; }
	body.ppa-lp .elementor-element-090fa80 .e-grid:has(> .ppa-badge) { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Tablet: "Your Supplier Should Make Business Easier." on two balanced lines like the design
 * ("Your Supplier Should / Make Business Easier.") instead of one long line + "Easier." */
@media (min-width: 768px) and (max-width: 1024px) {
	body.ppa-lp .elementor-element-28f8feb .elementor-heading-title { max-width: 480px; text-wrap: balance; }
}
@media (max-width: 767px) {
	body.ppa-lp .elementor-element-28f8feb .elementor-heading-title { text-wrap: balance; }
}

/* Application sections between tablet and small laptop (768-1199px): the form column has a fixed
 * 630-680px width in Elementor, which left only ~180-280px for the heading ("Professio…" was cut
 * off at ~1000px). Here the text goes on top and the form underneath, at full width. */
@media (min-width: 768px) and (max-width: 1199px) {
	body.ppa-lp .e-grid:has(> .ppa-hero-left) { grid-template-columns: minmax(0, 1fr) !important; row-gap: 40px !important; }
	body.ppa-lp .e-grid:has(> .ppa-hero-left) > .ppa-hero-left { width: 100% !important; max-width: 720px; position: static !important; }
	body.ppa-lp .e-grid:has(> .ppa-hero-left) > .ppa-form { width: 100% !important; max-width: none !important; }
	body.ppa-lp :is(.elementor-element-fa544be, .elementor-element-e061140) .elementor-heading-title { font-size: 46px !important; line-height: 1.08 !important; }
}

/* Under 600px the "Why professionals" cards go one per row (Elementor kept 2 narrow columns up
 * to 767px, which left a gap next to the third card); 600-1024px use the 2 + 2 + 1 tablet layout */
@media (max-width: 599px) {
	body.ppa-lp .elementor-element-090fa80 :is(.elementor-element-b065b78, .elementor-element-32bee66) { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Menu version: the newsletter block is part of the site footer; no white strip above it */
body.ppa-site .footer-newletter { margin-top: 0 !important; }
