/* Zdrowotka Nowa 1.9.103 — „Kupujesz bezpiecznie” (inc/nowa-trust.php) i rząd „Zapisz / Zapytaj” pod przyciskiem zakupu.
   Wygląd zatwierdzony przez właściciela (podgląd v3, 16.10.2026). Selektory z „html body.zdn-theme” tam, gdzie
   nowa-system.css / nowa-alignment.css ustawiają przyciski z !important. */

/* ── Rząd pod przyciskiem: ♡ Zapisz na później + Zapytaj o produkt ── */
html body.zdn-theme .zdn-sec-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 0}
html body.zdn-theme .zdn-sec-row:not(:has(.zdn-save-product)){grid-template-columns:1fr}
html body.zdn-theme .zdn-sec-row .zdn-save-product{margin:0!important;padding:0!important;min-width:0}
html body.zdn-theme .zdn-sec-row .zd-wl-btn svg{width:20px!important;height:20px!important;flex:none}
html body.zdn-theme .zdn-sec-row .zd-wl-btn{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:100%!important;height:auto!important;min-height:48px!important;margin:0!important;padding:6px 10px!important;border:1px solid #d5dfcf!important;border-radius:12px!important;background:#fff!important;color:#1f2a20!important;font-size:15px!important;font-weight:600!important;line-height:1.2!important;white-space:normal!important;text-align:center!important;box-sizing:border-box!important}
html body.zdn-theme #zdAskAboutProduct.zdn-ask-btn{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:100%!important;height:auto!important;min-height:48px!important;margin:0!important;padding:6px 10px!important;border:1px solid #d5dfcf!important;border-radius:12px!important;background:#fff!important;color:#1f2a20!important;font-size:15px!important;font-weight:600!important;line-height:1.2!important;white-space:normal;text-align:center!important;cursor:pointer;box-sizing:border-box}
html body.zdn-theme #zdAskAboutProduct.zdn-ask-btn>span.zdn-ask-ico{position:relative;display:inline-flex!important;width:auto!important;height:auto!important;background:none!important;color:#2E7D32}
html body.zdn-theme #zdAskAboutProduct.zdn-ask-btn>span.zdn-ask-ico svg{display:block!important;stroke:currentColor!important}
html body.zdn-theme #zdAskAboutProduct.zdn-ask-btn .zdn-ask-ico i{position:absolute;top:-2px;right:-3px;width:9px;height:9px;border-radius:50%;background:#43A047;box-shadow:0 0 0 2px #fff;display:none}
html body.zdn-theme #zdAskAboutProduct.zdn-ask-btn.is-online .zdn-ask-ico i{display:block}
html body.zdn-theme #zdAskAboutProduct.zdn-ask-btn>span:nth-child(2)>span.zdn-ask-long{display:inline!important}
html body.zdn-theme .zdn-sec-row :is(.zd-wl-btn,#zdAskAboutProduct):focus-visible{outline:3px solid rgba(46,125,50,.4)!important;outline-offset:2px}
/* 1.9.106: 390–429 px — pełne „Zapisz na później” / „Zapytaj o produkt” w jednej linii (14 px, ciaśniej) */
@media (min-width:390px) and (max-width:429px){
 html body.zdn-theme .zdn-sec-row .zd-wl-btn,html body.zdn-theme #zdAskAboutProduct.zdn-ask-btn{padding:6px 8px!important;gap:6px!important;font-size:14px!important}
}
/* 1.9.104: krótkie etykiety do 389 px (na 375 px „Zapisz na później” wychodziło poza przycisk) */
@media (max-width:389px){
 html body.zdn-theme #zdAskAboutProduct.zdn-ask-btn>span:nth-child(2)>span.zdn-ask-long{display:none!important}
 html body.zdn-theme .zdn-sec-row .zd-wl-btn .zd-wl-btn-label{font-size:0!important}
 html body.zdn-theme .zdn-sec-row .zd-wl-btn [data-label-default]::after{content:"Zapisz";font-size:15px}
 html body.zdn-theme .zdn-sec-row .zd-wl-btn [data-label-active]::after{content:"Zapisane";font-size:15px}
}

/* ── Pod „Często kupowane razem”: jedna linijka do bloku niżej ── */
html body.zdn-theme .zt-mini{display:flex;align-items:center;gap:8px;margin:14px 0 0;color:#4f5d51;font-size:14px;line-height:1.35;text-decoration:none}
.zt-mini .zdn-ti:first-child{color:#2E7D32;flex:none}
.zt-mini span{text-decoration:underline;text-decoration-color:#c9d6c1;text-underline-offset:3px}
.zt-mini .zdn-ti:last-child{color:#8a968b;flex:none}

/* ── Blok „Kupujesz bezpiecznie” ── */
.zt{margin:8px 0 0;padding:20px 0 8px;display:grid;gap:18px;scroll-margin-top:130px}
.zt,.zt>*,.zt-ask,.zt-at,.zt-stats li,.zt-pay li{min-width:0}
.zt h2{margin:0!important;font-size:22px!important;line-height:1.2!important;font-weight:800!important;color:#1f2a20!important;letter-spacing:-.01em}
.zt ul{list-style:none!important;margin:0!important;padding:0!important}
.zt li{margin:0!important;padding:0!important;list-style:none!important}
.zt li::before,.zt li::marker{content:none!important}
.zt-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.zt-stats li,.zt-stats a{display:flex;flex-direction:column;align-items:center;text-align:center;color:#4a574c;font-size:15px;line-height:1.25;text-decoration:none}
.zt-c{display:flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:50%;background:#EAF3E7;color:#2E7D32;margin-bottom:10px}
.zt-stats b{font-size:21px;font-weight:800;color:#1f2a20;line-height:1.2;font-variant-numeric:tabular-nums}
.zt-u{text-decoration:underline;text-decoration-color:#b9cbb5;text-underline-offset:3px}
.zt-lbl{margin:6px 0 0!important;font-size:13.5px!important;font-weight:800!important;letter-spacing:.07em;text-transform:uppercase;color:#4a574c!important}
.zt-pay{display:grid;grid-template-columns:repeat(var(--zt-cols,3),minmax(0,1fr));gap:10px}
.zt-pay a{display:flex;flex-direction:column;align-items:center;text-align:center;height:100%;box-sizing:border-box;padding:16px 6px 14px;border:1px solid #E6ECE2;border-radius:16px;background:#F6F8F3;color:#4a574c;font-size:13.5px;line-height:1.3;text-decoration:none;transition:border-color .15s,background .15s}
.zt-pay a:hover{border-color:#c8dcc4;background:#F1F6EE}
.zt-pay a:focus-visible,.zt-stats a:focus-visible{outline:3px solid rgba(46,125,50,.4);outline-offset:2px;border-radius:12px}
.zt-pay a span:last-child{white-space:nowrap}
.zt-pi{display:flex;align-items:center;justify-content:center;height:48px;margin-bottom:8px}
.zt-pi img{height:34px;width:auto;display:block;border-radius:7px}
.zt-r{width:48px;border-radius:50%;background:#fff;border:1px solid #E6ECE2;color:#2E7D32}
.zt-pay b{font-size:16px;font-weight:800;color:#1f2a20;line-height:1.2}

/* Karta pytania */
html body.zdn-theme .zt-ask{display:flex!important;align-items:center;gap:14px;width:100%;margin:6px 0 0!important;padding:14px 16px!important;border:1px solid #E3E9DE!important;border-radius:16px!important;background:#fff!important;color:#1f2a20!important;font:inherit!important;text-align:left!important;cursor:pointer;box-shadow:0 1px 2px rgba(31,42,32,.04);box-sizing:border-box}
html body.zdn-theme .zt-ask:focus-visible{outline:3px solid rgba(46,125,50,.4)!important;outline-offset:2px}
.zt-ai{color:#2E7D32;display:flex;flex:none}
.zt-at{display:grid;gap:3px;flex:1}
.zt-at b{font-size:16px;font-weight:800;line-height:1.25}
.zt-st{display:flex;align-items:center;gap:7px;font-size:14px;color:#3f4b41}
.zt-st .nw{white-space:nowrap}
.zt-st i{width:9px;height:9px;border-radius:50%;background:#43A047;flex:none}
.zt-st.is-offline i{background:#b8c2b5}
.zt-ch{color:#8a968b;display:flex;flex:none}

@media (max-width:374px){.zt-at b{font-size:15px}.zt-st{font-size:13px}html body.zdn-theme .zt-ask{gap:10px;padding:12px!important}}
@media (max-width:359px){.zt-pay a span:last-child{white-space:normal}.zt-pay{gap:6px}.zt-pay b{font-size:14.5px}.zt-pay a{font-size:12.5px}.zt-stats b{font-size:18px}.zt-c{width:50px;height:50px}}
@media (prefers-reduced-motion:reduce){.zt-pay a{transition:none}}

/* /koszyk/: w ramce podsumowania, oddzielony linią */
.zdn-cp-summary .zt{margin:18px 0 0;padding:18px 0 0;border-top:1px solid #e3e9de}
.zdn-cp-summary .zt h2{font-size:19px!important}

/* ── Koszyk boczny: linijka pod „Przejdź do kasy” ── */
.zdn-cart-pay{display:flex;align-items:center;justify-content:center;gap:6px;margin:8px 0 0!important;font-size:13px!important;line-height:1.3;color:#4a574c!important;text-align:center;white-space:nowrap}
.zdn-cart-pay .zdn-ti{color:#2E7D32;flex:none}

/* ── /koszyk/ na telefonie: bez dodatkowych 64 px przed stopką (miejsce pod dolny pasek daje już body) ── */
@media (max-width:767px){html body.woocommerce-cart main.zdn-cartpage-wrap{padding-bottom:0!important}}

/* ═══ 1.9.104 — po ocenie klientek i projektantki ═══ */

/* Stan magazynu: spokojna szara pigułka przy 2–3 szt., pomarańczowa tylko przy ostatniej sztuce. */
html body.zdn-theme .zdn-stock.is-few{background:#F1F4EE;color:#4a574c}
html body.zdn-theme .zdn-stock.is-last{background:#fdf1e0;color:#b45309}

/* Karta produktu na telefonie: bez pływającego dymka czatu (zasłaniał cenę, „Zapytaj”, „+ Dodaj”, kafelki);
   pytanie o produkt jest pod przyciskiem zakupu i w bloku „Kupujesz bezpiecznie”. */
@media (max-width:767px){html body.single-product #zk-contact{display:none!important}}

/* Karta produktu: bez popupu newslettera (wyskakiwał na cały ekran po ok. 50 s czytania). Na innych stronach bez zmian. */
html body.single-product #zw-newsletter-popup{display:none!important}
html body.single-product.zw-np-lock{overflow:visible!important}

/* Galeria na telefonie: miniatury w jednym przewijanym rzędzie (było 4 + 1 — piąta sama w drugim rzędzie). */
@media (max-width:767px){
 html body.zdn-theme .zd-gallery-thumbs{flex-wrap:nowrap!important;overflow-x:auto;gap:8px!important;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;padding-bottom:2px}
 html body.zdn-theme .zd-gallery-thumbs::-webkit-scrollbar{display:none}
 html body.zdn-theme .zd-gallery-thumb{flex:0 0 60px!important;width:60px!important;height:60px!important;scroll-snap-align:start}
}

/* „Kupujesz bezpiecznie” o ok. 1/3 niższy — ten sam wygląd, mniejsze kółka, liczby i kafelki. */
.zt{gap:14px}
.zt h2{font-size:20px!important}
.zt-c{width:44px;height:44px;margin-bottom:6px}
.zt-c .zdn-ti{width:20px;height:20px}
.zt-stats li,.zt-stats a{font-size:14px}
.zt-stats b{font-size:18px;font-weight:700}
.zt-lbl{margin:2px 0 0!important;font-size:12.5px!important}
.zt-pay{gap:8px}
.zt-pay a{padding:12px 6px 10px;border-radius:14px;font-size:13px}
.zt-pi{height:36px;margin-bottom:6px}
.zt-pi img{height:26px;border-radius:6px}
.zt-r{width:36px}
.zt-r .zdn-ti{width:18px;height:18px}
.zt-pay b{font-size:15px;font-weight:700}
html body.zdn-theme .zt-ask{margin:2px 0 0!important;padding:12px 14px!important;border-radius:14px!important}
.zt-at b{font-size:15px;font-weight:700}
@media (max-width:359px){.zt-stats b{font-size:16px}.zt-c{width:40px;height:40px}.zt-pay b{font-size:14px}}
/* dociśnięte (cel ok. 1/3 niżej niż w 1.9.103) */
.zt{gap:12px;padding-top:14px}
.zt h2{font-size:19px!important}
.zt-c{width:40px;height:40px;margin-bottom:4px}
.zt-c .zdn-ti{width:19px;height:19px}
.zt-stats b{font-size:17px}
.zt-stats li,.zt-stats a{font-size:13.5px;line-height:1.2}
.zt-pay a{padding:10px 6px 9px}
.zt-pi{height:30px;margin-bottom:4px}
.zt-pi img{height:22px}
.zt-r{width:30px}
.zt-r .zdn-ti{width:16px;height:16px}
.zt-pay b{font-size:14.5px}
html body.zdn-theme .zt-ask{padding:10px 14px!important}
.zt-at b{font-size:14.5px}
.zt-st{font-size:13.5px}
/* 1.9.106: nagłówek chowany przy przewijaniu także na /koszyk/ i /kasa/ (telefon) — skrypt w nowa.js */
@media (max-width:767px){
 html body.zdn-theme.woocommerce-cart #masthead.site-header,html body.zdn-theme.woocommerce-checkout #masthead.site-header{transition:transform .2s ease-out}
 html body.zdn-theme.woocommerce-cart.zdn-hdr-hide #masthead.site-header,html body.zdn-theme.woocommerce-checkout.zdn-hdr-hide #masthead.site-header{transform:translateY(calc(-100% - 2px))}
}
@media (prefers-reduced-motion:reduce){html body.zdn-theme.woocommerce-cart #masthead.site-header,html body.zdn-theme.woocommerce-checkout #masthead.site-header{transition:none}}

/* 1.9.114: ikony zaufania w tej samej mięcie co inne informacje (#EEF5EA; było #EAF3E7) */
html body.zdn-theme .zt-c{background:#EEF5EA!important}

/* ═══ 1.9.141: etykiety „w 5 sekund” pod tytułem (inc/nowa-pdp-extra.php) ═══ */
html body.zdn-theme .zdn-facts{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 4px;padding:0;list-style:none}
html body.zdn-theme .zdn-facts li{display:inline-flex;align-items:center;gap:5px;margin:0;padding:4px 10px 4px 8px;border:1px solid #E3DFD3;border-radius:999px;background:#F7F4EC;color:#202920;font-size:13px;font-weight:600;line-height:1.3}
html body.zdn-theme .zdn-facts li::before{content:"";width:13px;height:13px;flex:none;background:#2E7D32;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat}

/* ═══ 1.9.141: „Wyślij” po prawej, w jednej linii z pigułką „Wszystkie: <kategoria>” (rząd „Zapisz / Zapytaj” bez zmian) ═══ */
html body.zdn-theme .zdn-pill-row{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0 2px}
html body.zdn-theme .zdn-pill-row .zdn-cat-pill{margin:0;min-width:0}
html body.zdn-theme .zdn-share-btn{flex:none;margin-left:auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 14px;border:1px solid #CFC8B8;border-radius:999px;background:#fff;color:#202920;font-size:14px;font-weight:600;cursor:pointer}
html body.zdn-theme .zdn-share-btn:hover{border-color:#202920;color:#202920}
html body.zdn-theme .zdn-share-btn:focus-visible{outline:3px solid rgba(46,125,50,.4);outline-offset:2px}
html body.zdn-theme .zdn-share-msg{position:absolute;right:0;top:calc(100% + 4px);font-size:13px;color:#202920;font-weight:600}
html body.zdn-theme .zdn-share-msg:empty{display:none}
@media(max-width:359px){html body.zdn-theme .zdn-share-lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}html body.zdn-theme .zdn-share-btn{width:44px;padding:0}}
/* 1.9.141: linijka dostawy zawsze w dwóch wierszach („U Ciebie zwykle …” / „Paczkomat …”) — na komputerze dłuższy tekst łamał się w środku kwoty. */
html body.zdn-theme .zdn-ship .zdn-ship-sep{display:none}
html body.zdn-theme .zdn-ship .zdn-ship-line{display:block}
