/* Loaded only with media="(max-width:1024px)". Fixes measured on pink-pro.com at 375×812. */

/* 1. Duplicate filter UIs: pinkpro-experience (.ppe-filters) AND storefront-ux (.psux-fbar) both render
      a "Filtrat"/"Filtro" button. Keep the storefront-ux bar (it already has Filtro + Rendit in one row). */
body.ppwe:has(.psux-fbar) .ppe-filters{display:none!important}
/* Real children of .psux-fbar: .psux-frow, button.psux-fopen, #psux-fsheet, form.woocommerce-ordering, p.woocommerce-result-count.
   Result: one row "Filtro | Rendit", count below. */
/* !important needed: storefront-ux skin.css sets display:flex!important at ≤767px. */
body.ppwe .psux-fbar{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;align-items:center;position:sticky;top:var(--ppwe-header-h,0px);z-index:20;background:#fff;padding:8px 0}
body.ppwe .psux-fbar>.psux-fopen{order:1;grid-column:1}
body.ppwe .psux-fbar>.woocommerce-ordering{order:2;grid-column:2;margin:0;float:none;width:100%}
body.ppwe .psux-fbar>.woocommerce-result-count{order:3;grid-column:1/-1;margin:0;font-size:13px;color:var(--pp-muted)}
body.ppwe .psux-fbar>.psux-frow{order:4;grid-column:1/-1}
body.ppwe .psux-fbar .psux-fopen,body.ppwe .psux-fbar .woocommerce-ordering select{width:100%;min-height:44px;height:44px;border-radius:999px;font-size:15px}

/* 2. Desktop sidebar must not render inline on phones (it is reachable through the filter drawer). */
@media (max-width:768px){body.ppwe aside.pdsm-side:not(.is-open):not([aria-hidden=false]){display:none}}

/* 3. Login/price gate notice: compact one-liner instead of a tall box pushing products down. */
@media (max-width:768px){
	/* Real markup: <p><b>Çmimet shfaqen pas kyçjes.</b> Bizneset…</p><div.psux-gate__acts><a Kyçu><span.links>…</span></div> */
	body.ppwe .psux-gate{display:grid!important;grid-template-columns:1fr auto;gap:6px 12px;align-items:center;padding:10px 12px!important}
	body.ppwe .psux-gate>p{margin:0!important;font-size:0!important;line-height:1.3}
	body.ppwe .psux-gate>p b{font-size:14px}
	body.ppwe .psux-gate .psux-gate__acts{display:contents}
	body.ppwe .psux-gate .psux-btn--primary{grid-column:2;grid-row:1;min-height:40px;padding:0 18px}
	body.ppwe .psux-gate .psux-gate__links{grid-column:1/-1;display:flex;gap:16px;font-size:13px}
}

/* 4. Bottom nav (.ppe-mbar) is the single sticky bottom element; content and floating widgets sit above it. */
body.ppwe .ppe-mbar{padding-bottom:var(--pp-safe-b);box-shadow:0 -1px 0 var(--pp-line)}
body.ppwe .ppe-mbar a{min-height:48px;min-width:44px}
body.ppwe:has(.ppe-mbar){padding-bottom:calc(64px + var(--pp-safe-b))}
/* reCAPTCHA badge overlapped the bottom bar (top 738 vs 751). Hidden visually; the required
   attribution is printed by the plugin under forms that use reCAPTCHA. */
body.ppwe .grecaptcha-badge{visibility:hidden!important}
/* #pinkpro-chat already sits at bottom:78px (above the bar). Do NOT transform it: a transform turns it into the
   containing block of its fixed children and the chat layer then swallows taps on the cookie "Prano" button (tested). */

/* 5. Cookie banner (.drawer-inner.float_right): its inner .popup-container was wider than the box
      (measured right=604px on a 375px screen), leaking text at the right edge. Contain it and keep it above the bottom bar. */
body.ppwe{overflow-x:clip}
body.ppwe .drawer-inner.float_right{overflow:hidden;max-width:calc(100vw - 24px)}
body.ppwe .drawer-inner.float_right .drawer-content,body.ppwe .drawer-inner.float_right .popup-container{max-width:100%;box-sizing:border-box}

/* 6. Product page: when a sticky add-to-cart bar is present, hide the bottom nav so two sticky bars never stack. */
body.ppwe.single-product:has([class*=sticky-add-to-cart].is-visible,[class*=sticky-atc].is-visible) .ppe-mbar{transform:translateY(100%)}

/* 7. Touch targets & readable sizes. */
body.ppwe .site-header a,body.ppwe .site-header button{min-width:44px;min-height:44px}
body.ppwe input,body.ppwe select,body.ppwe textarea{font-size:16px} /* prevents iOS zoom on focus */
