/* =====================================================================
   CF - bigger tap areas on phones, nothing moves  (16 Nov, re-measured 27 Nov 2026)

   Mobile-speed plan, step 3. On a 390 px product page these were smaller
   than a finger (measured with tests/pages/mobile-perf.js). Each one gets
   a larger invisible touch area; the letters, colours and spacing stay
   exactly where they were (checked pixel by pixel at 390 and 1440 px).

   How, without moving anything:
   - inline text links: padding above/below an inline element does not
     change the line, so only the touch area grows. Left/right padding is
     cancelled by the same negative margin.
   - size guide and "Javite nam se ispod": a transparent ::before/::after
     laid over the area around them.
   - colour swatches: they already had a transparent ::before as the hit
     area (cf-pdp2.css); it is made taller.
   Each area stops halfway to the next tappable thing, so no two overlap
   (the sizes under "Vodic za velicine", the cookie buttons, the e-mail
   field, the footer headings).

   Phones only (below 768 px). The file is auto-loaded on every page and
   comes before custom.css, so every rule carries enough weight to win.
   ===================================================================== */

@media (max-width: 767.98px){

  /* Colour swatches on a product page: 17 x 34 drawn, 33 x 34 hit area
     (the 16 px gap shared out) -> 33 x 44. 9 px up over the "Boja:" label,
     1 px down: below sits "Vodic za velicine". Wider would overlap the
     next swatch. */
  html.cf-pdp2 body .productdetails-view[data-cf-pdp2] .cf2-col .cf-swatch:not(#cf-n):not(#cf-n):not(#cf-n)::before{
    top: -9px; bottom: -1px;
  }

  /* "Vodic za velicine" (size guide), 96 x 20 -> 128 x 32: a transparent
     ::before 12 px up to the swatch area, 24 px left, 8 px right. It
     stops 8 px above the button's bottom edge, because the size buttons
     (S/M, M/L ...) start 4-5 px above that edge on some products and must
     keep every pixel they had. */
  html body .productdetails-view .product-field.cf-has-sg .cf-sgbtn.cf-sgbtn::before{
    content: "";
    position: absolute;
    top: -12px; bottom: 8px; left: -24px; right: -8px;
  }

  /* "Javite nam se ispod" (jumps to the "javite nam se" form lower on the
     page), 106 x 14. The link falls on line 1 or line 2 of its sentence
     depending on the product, so the touch area is the whole sentence
     "Trazite drugu boju ili velicinu? ... Javite nam se ispod." plus 7 px
     above and 9 px below: 366 x 48 (366 x 32 where the sentence is one
     line). That stays clear of the size buttons (8.5 px above) and the
     add-to-cart button (11 px below). */
  html.cf-pdp2 body .productdetails-view[data-cf-pdp2] .cf2-col > .cf2-avail:not(#cf-n):not(#cf-n){
    position: relative;
  }
  html.cf-pdp2 body .productdetails-view[data-cf-pdp2] .cf2-col > .cf2-avail a:not(#cf-n)::after{
    content: "";
    position: absolute;
    top: -7px; bottom: -9px; left: 0; right: 0;
  }

  /* "Politici kolacica" in the cookie notice, 81 x 14 -> 93 x 44: up over
     the line above, down to halfway to ODBIJ SVE / POSTAVKE. */
  html body #cf-cc-pop-d.cfc-txt a{
    padding: 21px 6px 9px !important;
    margin: 0 -6px !important;
  }

  /* "Zastitu privatnosti" under the newsletter field, 94 x 14 -> 106 x 44:
     4 px up (the e-mail field is 8 px above), 26 px down (the footer
     headings start 35 px below). */
  html body .cf-newsfoot-fine a{
    padding: 4px 6px 26px !important;
    margin: 0 -6px !important;
  }

  /* Footer phone and e-mail. Their lines are 18 px apart, so they share
     that gap: the phone grows up (to 2 px under PRATITE NAS), the e-mail
     grows down. Phone 101 x 14 -> 113 x 40, e-mail 119 x 14 -> 131 x 44. */
  html body .bottom-section .cf-ffold__contact a[href^="tel:"]{
    padding: 24px 6px 2px !important;
    margin: 0 -6px !important;
  }
  html body .bottom-section .cf-ffold__contact a[href^="mailto:"]{
    padding: 2px 6px 28px !important;
    margin: 0 -6px !important;
  }
}

/* Left as they are, on purpose:
   - product names under card photos: no longer small (27 Nov).
   - menu group labels (ODJECA, ZA NJU ...): 11 px since 21 Nov and not
     links, so no rule here.
   - card labels on product photos (Novo, No.97, 10 px): a design choice
     of the card label setup, not touched here.
   - the hidden newsletter field (163 x 22, 5000 px off screen): a trap
     for spam bots, never seen or tapped by people.
   - the payment logos in the footer: one of them links to "#" (nowhere). */
