/* ═══════════════════════════════════════════════════════════
   Donaxyl — WPBakery / Salient markup
   Rows are sections (.band …), their content wrapper is the
   .shell (added server-side, inc/rows.php). Everything below only
   makes the builder's wrappers transparent to the design.
   ═══════════════════════════════════════════════════════════ */

/* ─────────────── rows ─────────────── */
.wpb_row{position:relative}
.wpb_row > .row-bg-wrap{display:none}

/* rows without a design layout: WPBakery's 12-column widths */
.row_col_wrap_12:not(.hero-grid,.split,.treat-grid),
.row_col_wrap_12_inner:not(.trust-head,.compare-head){
  display:grid;grid-template-columns:repeat(12,minmax(0,1fr));
  gap:clamp(24px,4vw,56px);align-items:center;
}
.wpb_column{grid-column:1/-1;min-width:0}
/* front-end editor: each column sits in a .vc_element wrapper (it carries the width class) */
:where(.row_col_wrap_12,.row_col_wrap_12_inner) > .vc_element{grid-column:1/-1;min-width:0}
@media (min-width:901px){
  .vc_col-sm-1{grid-column:span 1}  .vc_col-sm-2{grid-column:span 2}
  .vc_col-sm-3{grid-column:span 3}  .vc_col-sm-4{grid-column:span 4}
  .vc_col-sm-5{grid-column:span 5}  .vc_col-sm-6{grid-column:span 6}
  .vc_col-sm-7{grid-column:span 7}  .vc_col-sm-8{grid-column:span 8}
  .vc_col-sm-9{grid-column:span 9}  .vc_col-sm-10{grid-column:span 10}
  .vc_col-sm-11{grid-column:span 11}
}
/* in a design layout the grid tracks come from styles.css */
:is(.hero-grid,.split,.treat-grid,.trust-head,.compare-head) > :is(.wpb_column,.vc_element){grid-column:auto}

/* the inner row sits flush in its column */
.inner_row{margin:0}

/* ─────────────── columns & text blocks ─────────────── */
.vc_column-inner,.wpb_wrapper{position:relative}

/* Text Blocks follow each other like paragraphs (the SmPC block keeps its own gap) */
.wpb_text_column + .wpb_text_column:not(.smpc){margin-top:1.1em}
.ticklist + .wpb_text_column{margin-top:clamp(26px,3vw,40px)}

/* In the original the drawings are grid items (they shrink-wrap and centre on
   mobile); their column wrapper takes that role here. */
.wpb_wrapper:has(> :is(.split-art,.trust-art,.compare-art)){display:grid}

/* the test unfolds without dragging the page: the next section stays the scroll anchor */
.dx-full{overflow-anchor:none}

/* The header stays in view (EE client; on LT it hides going down, see main.js),
   so the test fills the screen below it and snaps to its bottom edge.
   --hdr is the header's height, set by main.js. */
.quiz-band{min-height:calc(100svh - var(--hdr,0px));scroll-margin-top:calc(var(--hdr,0px) - 96px)}
@media (max-width:900px){
  .quiz-band{scroll-margin-top:calc(var(--hdr,0px) - 90px)}
}

/* ─────────────── mobile order ───────────────
   The original puts the hero drawing above the text; here the
   drawing sits in its own column, so the column moves.        */
@media (max-width:900px){
  .hero-grid > .wpb_column:has(.hero-art){order:-1}
}

/* ─────────────── photo frames ───────────────
   Photos (in place of the original's drawings) sit in an oval or a circle,
   or are shown whole ("uncropped", for illustrations), a little smaller.
   The oval follows the image's own proportions; the circle crops it square.
   The drawings' artboard trims (negative margins, overhang) don't apply. */
:is(.is-oval,.is-circle) img{border-radius:50%;object-fit:cover}
.is-circle img{aspect-ratio:1}
.hero-art:is(.is-oval,.is-circle,.is-plain) img{--w:min(27.2vw,368px,calc((100svh - 220px) * .64));margin:0}
.trust-art:is(.is-oval,.is-circle,.is-plain) img{margin-block:0}
/* photos at 80% of their column (EE client: they drew the eye away from the text) */
:is(.split-art,.quiz-art,.trust-art):is(.is-oval,.is-circle) img{width:80%;margin-inline:auto}
.compare-art:is(.is-oval,.is-circle,.is-plain){justify-items:center}
.compare-art:is(.is-oval,.is-circle) img{width:min(100%,420px);margin-left:0}
.is-plain{justify-items:center}
.is-plain img{width:min(100%,240px);margin-left:0}
/* in the test a whole image keeps the oval's 4:5 box, so the test doesn't change height;
   the drawing itself stays its earlier size (padding is a share of the column width) */
.quiz-art.is-plain img{width:80%;margin-inline:auto;aspect-ratio:4/5;object-fit:contain;padding:2%}
/* desktop (EE client, 2026-11-17): section and test images 70% of the column (was 80%); in the test results
   the image starts level with the main text (not centred lower in the column), and a whole
   image sits at the top of its 4:5 box */
@media (min-width:901px){
  :is(.split-art,.quiz-art,.trust-art):is(.is-oval,.is-circle) img,
  .quiz-art.is-plain img{width:70%}
  .quiz-grid > .quiz-head ~ .quiz-art{align-self:start;padding-top:8px}
  .quiz-head ~ .quiz-art.is-plain img{object-position:50% 0}
}
@media (max-width:900px){
  .hero-art:is(.is-oval,.is-circle,.is-plain){max-width:min(160px,19.2svh)}
  .hero-art:is(.is-oval,.is-circle,.is-plain) img{margin:0}
  :is(.split-art,.quiz-art,.trust-art,.compare-art):is(.is-oval,.is-circle),.quiz-art.is-plain{max-width:300px}
  .is-plain img{width:min(100%,200px)}
  .quiz-art.is-plain img{width:80%}
}

/* italics are slanted by the browser (the font has no italic), so the last
   letter leans into the next word: a hair of space after it */
.compare-row em{padding-right:.08em}

/* ─────────────── footer small print ───────────────
   Reference list with a heading (unnumbered), and the patient leaflet
   with its sub-headings and lists — same scale and tone as .smpc p. */
.refs-title{margin-top:clamp(40px,5vw,66px)}
.refs-title + .refs{margin-top:0}
.refs--plain li::before{content:"•"}

.smpc h3{margin-top:1.4em;font-size:.68rem;font-weight:700;color:var(--ink);letter-spacing:.01em}
.band .smpc p,
.smpc :is(ul,ol) li{font-size:.62rem;line-height:1.55;color:var(--ink-60);text-wrap:pretty}
.band .smpc p + p,
.smpc :is(h3,p,ul,ol) + :is(p,ul,ol){margin-top:.6em}
.smpc ul{list-style:disc;padding-left:1.2em}
.smpc ol{list-style:decimal;padding-left:1.4em}
.smpc li + li{margin-top:.15em}
.smpc-names{columns:2 260px;column-gap:clamp(20px,3vw,40px)}

/* collapsible leaflet (built by main.js initLeaflet): the heading is the toggle */
.smpc.is-collapsible > .smpc-title{margin:0}
.smpc-toggle{
  display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;
  padding:4px 0;border:0;background:none;color:inherit;font:inherit;letter-spacing:inherit;text-align:left;cursor:pointer;
}
.smpc-toggle-icon{
  flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;
  background:var(--cream);color:var(--ink);
  transition:background-color .3s,color .3s,transform .45s var(--e-out);
}
.smpc-toggle:hover .smpc-toggle-icon{background:var(--blue);color:#fff}
.smpc-toggle:focus-visible{outline:2px solid var(--blue);outline-offset:4px;border-radius:8px}
.smpc.is-open .smpc-toggle-icon{transform:rotate(180deg)}
.smpc-panel{display:grid;grid-template-rows:0fr;transition:grid-template-rows .55s var(--e-out)}
.smpc.is-open .smpc-panel{grid-template-rows:1fr}
.smpc-inner{min-height:0;overflow:hidden}
.smpc-inner > :first-child{margin-top:.8em}
@media (prefers-reduced-motion:reduce){
  .smpc-panel,.smpc-toggle-icon{transition:none}
}
.smpc-names li{break-inside:avoid}

/* footer link with the menu item CSS class "is-blue" (Pakendi infoleht), like .btn--blue */
.footer-links a.is-blue{background:var(--blue);color:#fff;font-weight:600;transition:transform .45s var(--e-out),background-color .3s}
.footer-links a.is-blue:hover{background:var(--navy)}

/* ─────────────── footer (Global Section) ─────────────── */
.site-footer .nectar-global-section,
.site-footer .nectar-global-section > .container{display:block}

/* ─────────────── Cookiebot cookie declaration (privacy §4) ───────────────
   Cookiebot's table is table-layout:fixed, so the LT table rules (nowrap, min-widths) make text overlap. */
.cookie-declaration .CookieDeclarationType{border:0;padding:0;margin:1.4em 0;overflow-x:auto}
.page-body .cookie-declaration td:first-child{word-break:normal;overflow-wrap:normal}
.page-body .cookie-declaration table{table-layout:auto;min-width:0;margin:.8em 0 0;border-radius:12px;overflow:hidden;background:var(--tan-soft)}
.page-body .cookie-declaration th,
.page-body .cookie-declaration td{white-space:normal;min-width:0;overflow-wrap:break-word;padding:10px 12px}
.page-body .cookie-declaration td{border-top:1px solid rgba(20,20,26,.1);border-bottom:0}
.page-body .cookie-declaration th{border-bottom:0}

/* ─────────────── WPBakery front-end editor ───────────────
   Everything is shown at once (no scroll reveal), so nothing hides while editing. */
.dx-editor .reveal{opacity:1;transform:none}
.dx-editor .tick{opacity:1;transform:none}

/* logged-in editors: Salient's admin-bar offset is gone with its CSS */
.admin-bar .site-header{top:var(--wp-admin--admin-bar--height,32px)}
