/* fl2026 — 2026-12 paketas (inc/dec2026.php). Išjungiama kartu su mu-plugins/fl-dec2026.php. */

/* B8: telefone „Taip pat patiks“ – iškart po užsakymo formos; aprašymai ir priedai – po jo. */
@media (max-width: 860px) {
  .fl-product { display: flex; flex-direction: column; }
  .fl-product > * { order: 6; }
  .fl-product > .fl-product__grid { display: contents; }
  .fl-product__media > * { order: 1; }
  .fl-product__grid > .fl-product__summary { order: 2; margin-top: 20px; }
  .fl-product > .related { order: 3; margin-top: 48px; }
  .fl-product__media > .fl-product__info { order: 4; margin-top: 40px; }
  .fl-product > .fl-addons { order: 5; }
}

/* B5: eilutė po dydžių mygtukais – dažniausiai renkamas dydis. */
.fl-size-note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-70); }

/* Du ar trys dydžiai (pvz., vainikai M ir L) – platesni mygtukai, kad „M (60cm)“ tilptų vienoje eilutėje. */
.fl-swatches--size:has(> .fl-swatch:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fl-swatches--size:has(> .fl-swatch:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* C1: jungiklis tarp vainikų (po kaina). */
.fl-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ink); margin: 14px 0 6px; }
.fl-switch__opt { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.3; }
.fl-switch__opt + .fl-switch__opt { border-left: 1px solid var(--ink); }
.fl-switch__opt strong { font-weight: 600; }
.fl-switch__opt span { font-size: 12.5px; color: var(--ink-70); }
.fl-switch__opt.is-active { background: var(--ink); color: var(--on-ink); }
.fl-switch__opt.is-active span { color: inherit; opacity: .8; }
a.fl-switch__opt:hover { background: rgba(22, 21, 19, .05); }

/* C1: vainikų palyginimo lentelė kategorijoje. */
.fl-compare { margin: 48px 0 8px; }
.fl-compare h2 { font-size: 26px; margin: 0 0 16px; }
.fl-compare__scroll { overflow-x: auto; }
.fl-compare table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.fl-compare th, .fl-compare td { padding: 12px 14px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.fl-compare thead th { font-family: var(--font-heading); font-weight: 400; font-size: 17px; border-bottom: 1px solid var(--ink); }
.fl-compare thead th a { color: inherit; }
.fl-compare thead td { border-bottom: 1px solid var(--ink); }
.fl-compare tbody th { width: 24%; font-weight: 600; white-space: nowrap; }
.fl-compare tbody td { width: 38%; }
@media (max-width: 860px) {
  .fl-compare { margin-top: 36px; }
  .fl-compare h2 { font-size: 22px; }
  .fl-compare table { font-size: 13.5px; }
  .fl-compare th, .fl-compare td { padding: 10px 10px 10px 0; }
  .fl-compare tbody th { white-space: normal; }
}

/* H2 / H3: prekių juosta straipsnio viršuje ir puslapiuose. */
.entry-content .fl-post-products--top { margin: 28px 0 36px; padding: 22px 0 6px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.fl-post-products .fl-strip__title { font-size: 22px; margin: 0; }
.fl-post-products--top .fl-post-products__head { margin-bottom: 16px; }
.entry-content .fl-post-products--top .fl-cards { margin: 0; }
.entry-content .fl-post-products--top .fl-cards ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 20px 14px; }
.fl-post-products--page .fl-strip__title { font-size: 30px; }
.fl-post-products--page .fl-cards { margin: 0; }
@media (max-width: 860px) {
  .entry-content .fl-post-products--top .fl-cards ul.products, .fl-post-products--page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .fl-post-products--top li.product:nth-child(n+3), .fl-post-products--page li.product:nth-child(n+3) { display: none !important; }
  .fl-post-products .fl-strip__title { font-size: 19px; }
  .fl-post-products--page .fl-strip__title { font-size: 24px; }
}

/* E5: pokalbio mygtukas pasitraukia, kai telefone dengia užsakymo formos valdiklį. */
.flc-launch { transition: transform .4s var(--c-ease, ease), opacity .2s; }
body.flc-dodge .flc-launch, body.flc-dodge .flc-nudge { opacity: 0 !important; pointer-events: none !important; }
