/* Zdrowotka Nowa 1.9.66 — karta produktu, opinie i desktopowe polecenia. */

/* Jedno podsumowanie i jeden przycisk opinii. Formularz Customer Reviews zachowuje
   własną walidację, ale jego powtórzony nagłówek i panel statystyk nie konkurują z motywem. */
body.zdn-theme .zdn-reviews .cr-summaryBox-wrap{display:none!important}
/* Przycisk wtyczki zostaje technicznym wyzwalaczem jej formularza, ale nie jest
   drugim widocznym CTA ani elementem kolejności klawiatury. */
body.zdn-theme .zdn-reviews .cr-ajax-reviews-add-review.zdn-review-plugin-trigger{position:fixed!important;left:-10000px!important;top:0!important;width:1px!important;height:1px!important;min-width:1px!important;min-height:1px!important;padding:0!important;border:0!important;opacity:0!important;overflow:hidden!important}
body.zdn-theme .zdn-reviews--compact :is(.cr-count-row,.cr-ajax-search,.cr-ajax-reviews-sort-div,.cr-voting-cont,.cr-show-more-review-spinner){display:none!important}
body.zdn-theme .zdn-reviews .comment_container :is(img.avatar,.cr-std-avatar){display:none!important}
/* The review plugin keeps a 70px avatar gutter even when avatars are hidden. */
body.zdn-theme .zdn-reviews .cr-comment-text{margin-left:0!important;width:100%!important}
body.zdn-theme .zdn-review-initials{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:#edf5e9;color:#2e7d32;font-size:13px;font-weight:700;letter-spacing:.02em}
body.zdn-theme .zdn-reviews .comment-text .meta{position:relative}
body.zdn-theme .zdn-reviews .comment-text .meta .zdn-review-initials{margin-bottom:2px}

/* Na szerokim ekranie dwa dodatki pozostają dwiema prostymi decyzjami, ale każdy
   dostaje pełną szerokość kolumny: nazwa nie walczy z ceną i przyciskiem. */
@media(min-width:768px) and (max-width:992px){
 body.zdn-theme .zdn-fbt-quick-items{grid-template-columns:1fr}
}
@media(min-width:993px){
 body.zdn-theme .zdn-fbt{padding:18px}
 body.zdn-theme .zdn-fbt-quick-items{grid-template-columns:1fr;gap:10px}
 body.zdn-theme .zdn-fbt-quick-item{grid-template-columns:76px minmax(0,1fr);gap:14px;padding:11px 13px}
 body.zdn-theme .zdn-fbt-quick-name{font-size:14px;line-height:1.4}
 body.zdn-theme .zdn-fbt-quick-buy{justify-content:flex-start;gap:16px}
 body.zdn-theme .zdn-fbt-quick-add{min-width:96px}
}

/* Mobile: odzyskujemy przestrzeń pionową z ramek i odstępów. Powierzchnia samego
   zdjęcia pozostaje praktycznie tej samej wielkości dzięki mniejszemu paddingowi. */
@media(max-width:767px){
 body.zdn-theme .zd-breadcrumb{padding:8px 0!important;flex-wrap:nowrap!important;overflow-x:auto;white-space:nowrap;scrollbar-width:none}
 body.zdn-theme .zd-breadcrumb::-webkit-scrollbar{display:none}
 body.zdn-theme .zd-product-hero{gap:10px!important}
 body.zdn-theme .zd-gallery-main{height:232px!important;padding:4px!important;margin-bottom:8px!important}
 body.zdn-theme .zd-product-title{font-size:22px!important;line-height:1.25!important}
 body.zdn-theme .zdn-product-brands{min-height:0;margin:2px 0 6px}
 body.zdn-theme .zd-product-rating{margin:6px 0!important}
 body.zdn-theme .zd-purchase-block{margin:12px 0 8px!important}
 body.zdn-theme .zdn-reviews .comment-text .meta{align-items:center!important}
 body.zdn-theme .zdn-reviews .comment-text .meta .zdn-review-initials{margin:0 2px 0 0}
}

/* Short review lists: restrained cards, manually swiped; the plugin owns long lists. */
body.zdn-theme .zdn-review-nav[hidden]{display:none!important}
body.zdn-theme .zdn-review-nav{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin:0 0 13px}
.zdn-review-hint{display:none;margin-right:auto;color:#687268;font-size:13px}
.zdn-review-count{min-width:48px;text-align:center;color:#576259;font-size:13px;font-variant-numeric:tabular-nums}
body.zdn-theme .zdn-review-nav button{width:40px;height:40px;padding:0;border:1px solid #cbd7c8;border-radius:50%;background:#fff;color:#235b33;font:24px/1 Arial,sans-serif;cursor:pointer}
body.zdn-theme .zdn-review-nav button:hover{background:#f3f7f0;border-color:#7d9d79}
body.zdn-theme .zdn-review-nav button:focus-visible{outline:2px solid #2e7d32;outline-offset:2px}
body.zdn-theme .zdn-review-nav button:disabled{opacity:.38;cursor:default;background:#fff}
body.zdn-theme .zdn-review-carousel #comments>ol.commentlist{display:flex!important;gap:14px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px 2px 14px!important;max-width:100%;-webkit-overflow-scrolling:touch}
body.zdn-theme .zdn-review-carousel #comments>ol.commentlist::-webkit-scrollbar{display:none}
body.zdn-theme .zdn-review-carousel #comments>ol.commentlist>li.review{box-sizing:border-box;display:flex!important;flex:0 0 calc((100% - 14px)/2);min-width:0;scroll-snap-align:start}
body.zdn-theme .zdn-review-carousel #comments>ol.commentlist>li.review>.comment_container{box-sizing:border-box;display:flex;width:100%;height:100%;padding:18px!important;border:1px solid #dce5d8!important;border-radius:8px;background:#fff!important}
body.zdn-theme .zdn-review-carousel :is(.comment-text,.cr-comment-text){display:flex!important;flex-direction:column;gap:12px;min-width:0;line-height:1.55}
body.zdn-theme .zdn-review-carousel .crstar-rating-svg{order:0;margin:0!important}
body.zdn-theme .zdn-review-carousel .description{order:1;font-size:15px;line-height:1.55;overflow-wrap:anywhere}
body.zdn-theme .zdn-review-carousel .description p:last-child{margin-bottom:0}
body.zdn-theme .zdn-review-carousel .meta{order:2;display:flex!important;flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0!important;margin-top:auto!important;padding-top:12px;border-top:1px solid #e5eae3;border-bottom:0!important}
body.zdn-theme .zdn-review-carousel .woocommerce-review__verified{display:none!important}
body.zdn-theme .zdn-review-carousel .woocommerce-review__author{color:#26352a!important}
body.zdn-theme .zdn-review-carousel .cr-comment-text{flex:1;margin:0!important;padding:0!important;width:100%!important}
@media(max-width:767px){
 .zdn-review-hint{display:inline}
 body.zdn-theme .zdn-review-carousel #comments>ol.commentlist>li.review{flex-basis:min(81vw,310px)}
 body.zdn-theme .zdn-review-carousel #comments>ol.commentlist>li.review>.comment_container{padding:16px!important}
}
@media(prefers-reduced-motion:reduce){body.zdn-theme .zdn-review-carousel #comments>ol.commentlist{scroll-behavior:auto!important}}

/* Galeria produktu: ręczna nawigacja bez automatycznego przewijania. */
body.zdn-theme .zdn-gallery-frame{position:relative}
body.zdn-theme .zdn-gallery-frame .zd-gallery-main{touch-action:pan-y}
body.zdn-theme .zdn-gallery-navigation{position:absolute;inset:0 0 10px;pointer-events:none}
body.zdn-theme .zdn-gallery-navigation button{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #d7dfd3;border-radius:50%;background:rgba(255,255,255,.96);box-shadow:0 2px 9px rgba(30,55,35,.09);color:#285b34;font:28px/1 Arial,sans-serif;cursor:pointer;pointer-events:auto}
body.zdn-theme .zdn-gallery-prev{left:8px}
body.zdn-theme .zdn-gallery-next{right:8px}
body.zdn-theme .zdn-gallery-navigation button:hover{background:#f3f8f0;border-color:#80a17a}
body.zdn-theme .zdn-gallery-navigation button:focus-visible{outline:2px solid #2e7d32;outline-offset:2px}
body.zdn-theme .zdn-gallery-count{position:absolute;right:10px;bottom:9px;min-width:44px;padding:4px 9px;border:1px solid #e0e6de;border-radius:20px;background:rgba(255,255,255,.96);color:#455347;text-align:center;font-size:12px;font-variant-numeric:tabular-nums}
body.zdn-theme .zd-gallery-main img.zdn-gallery-switching{animation:zdn-gallery-enter .18s ease-out both}
@keyframes zdn-gallery-enter{from{opacity:.48}to{opacity:1}}
@media(max-width:767px){body.zdn-theme .zdn-gallery-navigation{bottom:8px}body.zdn-theme .zdn-gallery-navigation button{width:44px;height:44px;font-size:28px}body.zdn-theme .zdn-gallery-prev{left:4px}body.zdn-theme .zdn-gallery-next{right:4px}}
/* 1.9.84: powiększona galeria — ciemne, nieprzezroczyste tło nad całą stroną (także nad dolnym paskiem i paskiem „Do koszyka”),
   strzałki nad zdjęciem, licznik nad dolną krawędzią z bezpiecznym marginesem, przycisk zamknięcia 44×44 px. */
body.zdn-theme .zd-lightbox{z-index:1000001!important;background:rgba(0,0,0,.92)!important;padding:0!important}
body.zdn-theme .zd-lightbox-img-wrap{position:relative;z-index:1;max-width:calc(100vw - 24px);max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px)}
body.zdn-theme .zd-lightbox-img{max-width:calc(100vw - 24px);max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px)}
body.zdn-theme .zd-lightbox-close{z-index:3;top:calc(8px + env(safe-area-inset-top));right:8px;display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:30px;line-height:1;opacity:1}
body.zdn-theme :is(.zd-lightbox-prev,.zd-lightbox-next){z-index:3;width:44px;height:44px;padding:0;border:1px solid rgba(255,255,255,.55);background:rgba(0,0,0,.6);font-size:30px}
body.zdn-theme .zd-lightbox-counter{z-index:3;bottom:calc(16px + env(safe-area-inset-bottom));padding:5px 12px;border-radius:20px;background:rgba(0,0,0,.6);color:#fff;font-size:14px;font-variant-numeric:tabular-nums}
@media(max-width:767px){body.zdn-theme .zd-lightbox-prev{left:6px}body.zdn-theme .zd-lightbox-next{right:6px}body.zdn-theme .zd-lightbox-counter{bottom:calc(84px + env(safe-area-inset-bottom))}body.zdn-theme :is(.zd-lightbox-img-wrap,.zd-lightbox-img){max-height:calc(100vh - 230px);max-height:calc(100dvh - 230px)}}
@media(prefers-reduced-motion:reduce){body.zdn-theme .zd-lightbox{transition:none!important}}
@media(prefers-reduced-motion:reduce){body.zdn-theme .zd-gallery-main img.zdn-gallery-switching{animation:none}}
