/* Baltic Agro Koduaed – print (panel P-116, 2026-10-17). Loaded on every page with media="print" (low priority, never
   blocks rendering; inc/assets.php handle ba-print). Prints the content: logo, title, product facts, description,
   usage, "Toote andmed" and "Juhendid" (with the documents' URLs), article text; leaves out the site frame, navigation,
   tab buttons, store finder, thumbnails, buttons, footer and consent banner. The page URL is printed at the end
   (footer.php .ba-print-url). */

@page { margin: 14mm 12mm 16mm; }

html, body.ba-design-new { background: #fff !important; color: #000 !important; }
body.ba-design-new { font-size: 11pt; line-height: 1.45; }
.ba-design-new *, .ba-design-new *::before, .ba-design-new *::after {
	box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important;
}
.ba-view { opacity: 1 !important; transform: none !important; }
.ba-site { display: block; min-height: 0; }
.ba-container { max-width: none; padding-left: 0; padding-right: 0; }

/* ---- Site frame and interactive parts: not printed ---- */
.ba-skip-link, .ba-utility, .ba-header__end, .ba-mmenu, .ba-crumbs, .ba-footer, .ba-side, .ba-blog-chips,
.ba-tabs, .ba-ptabs .ba-tabs, #muugikohad, .ba-wherebuy, .ba-product__actions, .ba-gallery__thumbs, .ba-gallery__zoombtn,
.ba-doc__open, .ba-related, .ba-article-aside, .ba-article-nav, .ba-pagination, .ba-archive__toolbar,
.ba-archive__chips, .ba-lightbox, .ba-drawer, .ba-textpage__actions, .ba-searchform, .ba-sort,
.cmplz-cookiebanner, #cmplz-cookiebanner-container, .cmplz-soft-cookiewall, #cmplz-manage-consent, .cmplz-manage-consent,
button, video, iframe, .wpb_video_widget { display: none !important; }

/* ---- Header: the logo only, at the top of the first page ---- */
.ba-header { position: static !important; background: none !important; border: 0 !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ba-header__inner { padding: 0 0 6mm; }
.ba-site .ba-logo--header { height: 13mm; width: auto; }

/* ---- Text ---- */
.ba-design-new h1, .ba-design-new h2, .ba-design-new h3, .ba-design-new h4 { color: #000; break-after: avoid; page-break-after: avoid; }
.ba-page-title { font-size: 20pt; margin: 0 0 4mm; }
.ba-prose, .ba-product__desc, .ba-article-body { font-size: 11pt; line-height: 1.5; color: #000; }
p, li, dd { orphans: 3; widows: 3; }
.ba-design-new a { color: #000; text-decoration: underline; }
/* URLs of documents and of other sites (never of the site's own product/category links). */
.ba-main a[href*=".pdf"]::after,
.ba-main a[href^="http"]:not([href*="://koduaed.balticagro.ee"]):not([href*="://staging-koduaed.balticagro.ee"])::after {
	content: " (" attr(href) ")"; font-size: 9pt; font-weight: 400; word-break: break-all;
}
.ba-main a.ba-card__link::after, .ba-main a.ba-btn::after { content: none !important; }

/* ---- Product page: everything one after another; small pack shot ---- */
.ba-shop__layout, .ba-product__top { display: block !important; }
.ba-product__top .ba-gallery { max-width: 6cm; margin: 0 0 5mm; }
.ba-product__top .ba-gallery__main { border: 0; aspect-ratio: auto; }
.ba-site .ba-product__top .ba-gallery__main img { max-height: 6cm; width: auto; height: auto; padding: 0; }
.ba-product__facts { gap: 2mm; }
.ba-fact { border: 1px solid #777; background: none; color: #000; }
.ba-product__usage { border: 1px solid #999; background: none; }
/* All tab panels except the store finder, with their headings. */
.ba-js .ba-tabpanel:not(.is-active), .ba-tabpanel { display: block !important; margin: 6mm 0 0 !important; }
html.ba-js body .ba-tabpanel__title, body .ba-tabpanel__title {
	position: static !important; width: auto; height: auto; margin: 0 0 3mm; overflow: visible; clip: auto; clip-path: none; white-space: normal;
	font-size: 14pt;
}
.ba-specs { border: 1px solid #999; }
/* Documents: label, then its URL on a line of its own. */
.ba-doc { display: block !important; border: 1px solid #999; padding: 3mm 4mm; }
.ba-doc .ba-badge-pdf { border: 1px solid #000; background: none; color: #000; margin-right: 2mm; }
.ba-main a.ba-doc::after { display: block; margin-top: 1mm; }
.ba-specs th { background: none; }

/* ---- Articles ---- */
.ba-article-hero img { max-height: 8cm; width: auto; }
.ba-article-lede { font-size: 12.5pt; }

/* ---- Keep boxes together ---- */
.ba-card, .ba-row, .ba-doc, .ba-docs li, .ba-product__usage, .ba-product__packs, .ba-specs tr, .ba-prose table, .ba-prose tr, figure, img,
.vc_message_box, .ba-panel { break-inside: avoid; page-break-inside: avoid; }

/* ---- Page URL at the end (footer.php) ---- */
.ba-print-url { display: block !important; margin: 8mm 0 0; padding-top: 3mm; border-top: 1px solid #999; font-size: 9pt; color: #333; word-break: break-all; }
