/* NIFTY web v2 – motion and visual layer on top of the v1 pages (loaded only when config edition = 'v2').
   Calm, warm motion for a pregnancy audience: transform/opacity only, strong ease-out, every effect has a
   reduced-motion variant and hover effects are gated to real pointers. */

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --grad-brand: linear-gradient(90deg, var(--pink), #FF5FA8 45%, var(--blue-2));
}

/* ---------- Reading progress (scroll-driven, JS fallback sets --p) ---------- */
.v2-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1001; pointer-events: none; background: var(--grad-brand); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
@supports (animation-timeline: scroll()) {
  .v2-progress { animation: v2-progress linear both; animation-timeline: scroll(root); }
  @keyframes v2-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------- Header: frosted glass once the page scrolls ---------- */
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would become the containing block
   of the fixed mobile menu (nav would size to the header and overflow the page). */
.ed-v2 .site-header { transition: background-color 250ms ease, box-shadow 250ms ease; }
.ed-v2 .site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); transition: opacity 250ms ease; }
.ed-v2 .site-header.v2-scrolled { background-color: transparent; box-shadow: 0 6px 24px rgba(0, 102, 179, .10); }
.ed-v2 .site-header.v2-scrolled::before { opacity: 1; }
.ed-v2 .logo img { transition: transform 250ms var(--ease-out); transform-origin: 0 50%; }
.ed-v2 .site-header.v2-scrolled .logo img { transform: scale(.88); }

/* ---------- Hero: entrance on first paint (CSS, no flash) + drifting brand blobs ---------- */
.ed-v2 main > section:first-of-type { position: relative; isolation: isolate; }
.ed-v2 main > section:first-of-type h1,
.ed-v2 main > section:first-of-type h1 ~ *,
.ed-v2 main > section:first-of-type .eyebrow { animation: v2-rise 700ms var(--ease-out) both; }
.ed-v2 main > section:first-of-type h1 { animation-delay: 60ms; }
.ed-v2 main > section:first-of-type h1 ~ * { animation-delay: 160ms; }
.ed-v2 main > section:first-of-type h1 ~ * ~ * { animation-delay: 240ms; }
.ed-v2 main > section:first-of-type h1 ~ * ~ * ~ * { animation-delay: 320ms; }
.ed-v2 main > section:first-of-type figure img,
.ed-v2 main > section:first-of-type picture img { animation: v2-zoom-in 900ms var(--ease-out) 120ms both; }
@keyframes v2-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes v2-zoom-in { from { opacity: 0; transform: scale(.96); } }

.v2-blobs { position: absolute; inset: -80px 0 0; z-index: -1; overflow: hidden; pointer-events: none; }
.v2-blobs i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.v2-blobs i:nth-child(1) { width: 420px; height: 420px; left: -80px; top: 40px; background: #FFD1E6; animation: v2-drift-a 22s ease-in-out infinite alternate; }
.v2-blobs i:nth-child(2) { width: 360px; height: 360px; right: 8%; top: -40px; background: #CFE6FF; animation: v2-drift-b 26s ease-in-out infinite alternate; }
.v2-blobs i:nth-child(3) { width: 260px; height: 260px; left: 38%; top: 280px; background: #FBE3F0; animation: v2-drift-a 30s ease-in-out -8s infinite alternate-reverse; }
@keyframes v2-drift-a { to { transform: translate(90px, 60px) scale(1.12); } }
@keyframes v2-drift-b { to { transform: translate(-110px, 70px) scale(.92); } }

/* gentle breathing of the hero photo and rotating "99 %" style badges */
.ed-v2 .v2-float { animation: v2-float 7s ease-in-out infinite alternate; }
@keyframes v2-float { from { transform: translateY(-6px); } to { transform: translateY(6px); } }
.ed-v2 .v2-spin { animation: v2-spin 40s linear infinite; }
@keyframes v2-spin { to { transform: rotate(360deg); } }

/* Star badges (99 % / poistený): pop in, then only the star shape turns slowly behind upright text. */
.ed-v2 [class*="-badge"].v2-has-star { animation: v2-badge-in 800ms var(--ease-out) 450ms both; }
.ed-v2 [class*="-badge"].v2-has-star + [class*="-badge"].v2-has-star { animation-delay: 600ms; }
.v2-star { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-position: center; background-repeat: no-repeat; animation: v2-spin 60s linear infinite; }
@keyframes v2-badge-in { from { opacity: 0; transform: scale(.9) rotate(-8deg); } }

/* ---------- Scroll reveal (JS marks .v2-rv, then .is-in once) ---------- */
.v2-rv { opacity: 0; transform: translateY(22px); transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out); transition-delay: var(--d, 0ms); }
.v2-rv.v2-rv-img { transform: scale(.965); }
.v2-rv.is-in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.ed-v2 .btn, .ed-v2 .btn-outline, .ed-v2 .btn-order, .ed-v2 .tt-buy, .ed-v2 [class*="-cta-btn"], .ed-v2 .dr-btn {
  position: relative; overflow: hidden; isolation: isolate;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out);
}
.ed-v2 .btn:active, .ed-v2 .btn-outline:active, .ed-v2 .btn-order:active, .ed-v2 .tt-buy:active, .ed-v2 [class*="-cta-btn"]:active, .ed-v2 .dr-btn:active { transform: scale(.97); }
/* light sweep across pink buttons */
.ed-v2 .btn::after, .ed-v2 .btn-order::after, .ed-v2 .tt-buy::after, .ed-v2 [class*="-cta-btn"]::after, .ed-v2 .dr-btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%);
  transform: translateX(-110%);
}
.ed-v2 .tt-buy::after { z-index: 0; }
.ed-v2 .btn-order img { transition: transform 300ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .ed-v2 .btn:hover, .ed-v2 .btn-order:hover, .ed-v2 [class*="-cta-btn"]:hover, .ed-v2 .dr-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(237, 6, 119, .28); }
  .ed-v2 .btn-outline:hover { transform: translateY(-2px); }
  .ed-v2 .btn:hover::after, .ed-v2 .btn-order:hover::after, .ed-v2 .tt-buy:hover::after, .ed-v2 [class*="-cta-btn"]:hover::after, .ed-v2 .dr-btn:hover::after { transform: translateX(110%); transition: transform 700ms var(--ease-out); }
  .ed-v2 .btn-order:hover img { transform: rotate(-10deg) translateX(-1px); }

  /* CTA cards (page-specific *-cta-card) lift, their illustration nods */
  .ed-v2 [class*="-cta-card"] { transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out); }
  .ed-v2 [class*="-cta-card"]:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 102, 179, .14); }
  .ed-v2 [class*="-cta-card"] img { transition: transform 400ms var(--ease-out); }
  .ed-v2 [class*="-cta-card"]:hover img { transform: rotate(-6deg) scale(1.06); }
  /* feature icons bob on hover */
  .ed-v2 [class*="-features"] li img, .ed-v2 [class*="-features"] li svg { transition: transform 300ms var(--ease-out); }
  .ed-v2 [class*="-features"] li:hover img, .ed-v2 [class*="-features"] li:hover svg { transform: translateY(-4px) scale(1.08); }

  /* cards lift */
  .ed-v2 .card, .ed-v2 .tt-card { transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), opacity 250ms ease, filter 250ms ease; }
  .ed-v2 .card:hover, .ed-v2 .tt-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(0, 102, 179, .16); }
  .ed-v2 .tt-card[data-twins-ok="0"]:hover { transform: none; }
  .ed-v2 [data-mode-active="twins"] .tt-card[data-twins-ok="0"]:hover { box-shadow: 0 10px 30px rgba(0, 102, 179, .14); }
  .ed-v2 .tt-card:hover .tt-name img { transform: scale(1.04); }

  /* images in content soften-zoom */
  .ed-v2 main figure { overflow: hidden; }
  .ed-v2 main figure img { transition: transform 600ms var(--ease-out); }
  .ed-v2 main > section:not(:first-of-type) figure:hover img { transform: scale(1.03); }

  /* footer + nav links: underline slides in */
  .ed-v2 .site-footer a:not(.logo), .ed-v2 .sub-menu a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 250ms var(--ease-out), color 200ms ease; }
  .ed-v2 .site-footer a:not(.logo):hover, .ed-v2 .sub-menu a:hover { background-size: 100% 1px; }
}
.ed-v2 .tt-name img { transition: transform 300ms var(--ease-out); }

/* ---------- Accordions: chevron + content fade (height animated in JS) ---------- */
.ed-v2 .acc summary { transition: color 200ms ease; }
.ed-v2 .acc summary::after, .ed-v2 .tt-more summary::after { transition: transform 250ms var(--ease-out); }
.ed-v2 .acc[open] > .acc-body, .ed-v2 .tt-more[open] > :not(summary) { animation: v2-fade 260ms var(--ease-out); }
@keyframes v2-fade { from { opacity: 0; transform: translateY(-4px); } }
@media (hover: hover) and (pointer: fine) { .ed-v2 .acc summary:hover { color: var(--pink); } }

/* ---------- Typy testov: sliding pill on the twins switch, count pop ---------- */
.ed-v2 .tt-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; }
.ed-v2 .tt-switch::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--pink); box-shadow: 0 6px 16px rgba(237, 6, 119, .3); transition: transform 320ms var(--ease-in-out); }
.ed-v2 [data-mode-active="twins"] .tt-switch::before { transform: translateX(100%); }
.ed-v2 .tt-switch button { position: relative; z-index: 1; }
.ed-v2 .tt-switch button[aria-checked="true"] { background: transparent; }
.ed-v2 .tt-counts:not([hidden]) .tt-num b { animation: v2-pop 360ms var(--ease-out); }
@keyframes v2-pop { from { opacity: 0; transform: translateY(6px) scale(.96); } }
.ed-v2 .tt-switch-note:not([hidden]) { animation: v2-fade 260ms var(--ease-out); }
.ed-v2 .tt-tag { background-size: 200% 100%; }
.ed-v2 .tone-pink .tt-tag { background-image: linear-gradient(90deg, #E57AA8, #F09AC0, #E57AA8); animation: v2-sheen 8s ease-in-out infinite; }
@keyframes v2-sheen { 50% { background-position: 100% 0; } }

/* numbers counting up stay steady in width */
.v2-count { font-variant-numeric: tabular-nums; }

/* ---------- Centered section headings: a short brand line draws in under them ---------- */
.v2-uline::after { content: ""; display: block; width: 64px; height: 4px; margin: 14px auto 0; border-radius: 4px; background: var(--grad-brand); transform: scaleX(0); transition: transform 700ms var(--ease-out) 250ms; }
.v2-uline.is-shown::after { transform: scaleX(1); }

/* ---------- Pointer spotlight on cards (decorative, real pointers only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .v2-spot { position: relative; isolation: isolate; }
  .v2-spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity 300ms ease;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .55), transparent 60%); }
  .v2-spot:hover::before { opacity: 1; }
  .tt-card.v2-spot::before { background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 136, 213, .08), transparent 65%); }
}

/* ---------- Back to top ---------- */
.v2-top { position: fixed; right: 26px; bottom: 96px; z-index: 900; width: 50px; height: 50px; border: 0; border-radius: 50%; background: #fff; color: var(--pink); box-shadow: 0 10px 26px rgba(0, 102, 179, .22); display: grid; place-items: center; opacity: 0; transform: translateY(10px) scale(.95); pointer-events: none; transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
.v2-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.v2-top svg { width: 50px; height: 50px; position: absolute; inset: 0; transform: rotate(-90deg); }
.v2-top svg circle { fill: none; stroke: var(--pink); stroke-width: 2.5; stroke-dasharray: 138.2; stroke-dashoffset: calc(138.2 * (1 - var(--p, 0))); }
.v2-top span { font-size: 20px; line-height: 1; font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .v2-top:hover { transform: translateY(-3px); } }
.has-cc .v2-top { bottom: 96px; }
@media (max-width: 767px) { .v2-top { right: 22px; bottom: 88px; width: 44px; height: 44px; } .v2-top svg { width: 44px; height: 44px; } }

/* ---------- Round 2 (Owner 10. 11.): more life – small things keep moving, calmly ---------- */
/* pink words in headings: slow colour flow */
.ed-v2 .h-pink, .ed-v2 h1 .pink, .ed-v2 h2 .pink { background: linear-gradient(90deg, var(--pink), #FF5FA8, var(--blue-2), var(--pink)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: v2-flow 9s linear infinite; }
@keyframes v2-flow { to { background-position: 300% 0; } }
/* logo: a soft heartbeat every few seconds (scale property, so the scroll shrink keeps working) */
.ed-v2 .logo img { animation: v2-beat 7s ease-in-out 2.5s infinite; }
@keyframes v2-beat { 0%, 12%, 100% { scale: 1; } 4% { scale: 1.06; } 8% { scale: .99; } }
/* main calls to action: an idle shine every few seconds */
.ed-v2 .btn-order::after, .ed-v2 main > section:first-of-type .btn::after, .ed-v2 [class*="-cta-btn"]::after { animation: v2-shine 6s var(--ease-out) 2s infinite; }
@keyframes v2-shine { 0% { transform: translateX(-110%); } 18%, 100% { transform: translateX(110%); } }
/* feature / step icons float a little, each on its own beat */
.ed-v2 [class*="-features"] li img, .ed-v2 [class*="-steps"] li img, .ed-v2 [class*="-icon"] img, .ed-v2 [class*="-ico"] img { animation: v2-bob 4.5s ease-in-out infinite alternate; }
.ed-v2 li:nth-child(2n) > img, .ed-v2 li:nth-child(2n) [class*="-ico"] img { animation-delay: -1.5s; }
.ed-v2 li:nth-child(3n) > img, .ed-v2 li:nth-child(3n) [class*="-ico"] img { animation-delay: -3s; }
@keyframes v2-bob { from { translate: 0 -3px; } to { translate: 0 4px; } }
/* scroll parallax (JS sets --py on .v2-par; the translate property composes with reveal/hover transforms) */
.v2-par { translate: 0 var(--py, 0px); will-change: translate; }
/* floating bubbles behind some sections */
.v2-bub-host { position: relative; isolation: isolate; }
.v2-bubbles { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.v2-bubbles i { position: absolute; bottom: -40px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .9), rgba(237, 6, 119, .16) 60%, rgba(237, 6, 119, .05)); opacity: 0; animation: v2-bubble linear infinite; }
.v2-bubbles i:nth-child(2n) { background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .9), rgba(0, 136, 213, .16) 60%, rgba(0, 136, 213, .05)); }
@keyframes v2-bubble { 0% { opacity: 0; transform: translateY(0) scale(.8); } 12% { opacity: .9; } 85% { opacity: .7; } 100% { opacity: 0; transform: translateY(var(--rise, -520px)) translateX(var(--sway, 30px)) scale(1.05); } }
/* section eyebrows: a tiny dot pulses before them */
.ed-v2 .eyebrow::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--pink); vertical-align: middle; animation: v2-dot 2.4s ease-in-out infinite; }
@keyframes v2-dot { 50% { scale: 1.6; opacity: .45; } }
@media (prefers-reduced-motion: reduce) {
  .ed-v2 .h-pink, .ed-v2 h1 .pink, .ed-v2 h2 .pink, .ed-v2 .logo img, .ed-v2 .btn-order::after, .ed-v2 main > section:first-of-type .btn::after, .ed-v2 [class*="-cta-btn"]::after,
  .ed-v2 [class*="-features"] li img, .ed-v2 [class*="-steps"] li img, .ed-v2 [class*="-icon"] img, .ed-v2 [class*="-ico"] img, .ed-v2 .eyebrow::before { animation: none; }
  .v2-par { translate: none; }
  .v2-bubbles { display: none; }
}

/* ---------- Reduced motion: keep fades, drop movement and loops ---------- */
@media (prefers-reduced-motion: reduce) {
  .v2-blobs i, .ed-v2 .v2-float, .ed-v2 .v2-spin, .v2-star, .ed-v2 .tone-pink .tt-tag { animation: none; }
  .ed-v2 [class*="-badge"].v2-has-star { animation: v2-fade-only 300ms ease both; }
  .ed-v2 main > section:first-of-type h1, .ed-v2 main > section:first-of-type h1 ~ *, .ed-v2 main > section:first-of-type .eyebrow,
  .ed-v2 main > section:first-of-type figure img { animation: v2-fade-only 300ms ease both; }
  @keyframes v2-fade-only { from { opacity: 0; } }
  .v2-rv, .v2-rv.v2-rv-img { transform: none; transition: opacity 300ms ease; }
  .ed-v2 .card:hover, .ed-v2 .tt-card:hover, .ed-v2 .btn:hover, .ed-v2 .btn-order:hover, .v2-top:hover { transform: none; }
  .ed-v2 .tt-switch::before { transition: none; }
  .v2-uline::after { transition: none; transform: none; }
  .v2-progress { animation: none; }
}

/* ---------- "Máte otázky?" bubble (inc/ask.php + assets/v2/ask.js) ---------- */
.ask { position: fixed; right: 22px; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 950; font-family: var(--font); }
.ask-fab { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 24px 0 8px; border-radius: 999px; background: var(--pink); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 14px 34px rgba(237, 6, 119, .35); animation: ask-in 600ms var(--ease-out) 900ms both; transition: transform 200ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease; }
.ask-fab:hover { color: #fff; }
.ask-fab:active { transform: scale(.97); }
.ask-fab-ic { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.ask-fab-ic svg { position: absolute; width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: opacity 200ms ease, transform 250ms var(--ease-out); }
.ask-fab-ic circle { fill: #fff; stroke: none; }
.ask-i-chat { animation: ask-wiggle 9s ease-in-out 4s infinite; }
.ask-i-x { opacity: 0; transform: rotate(-90deg) scale(.6); }
.ask.is-open .ask-i-chat { opacity: 0; transform: rotate(90deg) scale(.6); animation: none; }
.ask.is-open .ask-i-x { opacity: 1; transform: none; }
/* soft pulse rings around the bubble */
.ask-fab::before, .ask-fab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--pink); opacity: 0; pointer-events: none; animation: ask-ring 4s var(--ease-out) 2s infinite; }
.ask-fab::after { animation-delay: 2.6s; }
.ask.is-open .ask-fab::before, .ask.is-open .ask-fab::after { animation: none; }
@keyframes ask-in { from { opacity: 0; transform: translateY(16px) scale(.92); } }
@keyframes ask-ring { 0% { opacity: .5; transform: scale(1); } 45%, 100% { opacity: 0; transform: scale(1.12, 1.35); } }
@keyframes ask-wiggle { 0%, 8%, 100% { transform: rotate(0); } 2% { transform: rotate(-12deg); } 4% { transform: rotate(10deg); } 6% { transform: rotate(-6deg); } }
@media (hover: hover) and (pointer: fine) { .ask-fab:hover { background: var(--pink-hover); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(237, 6, 119, .4); } }

.ask-teaser { position: absolute; right: 0; bottom: 74px; width: max-content; max-width: 260px; margin: 0; padding: 12px 16px; border-radius: 16px 16px 4px 16px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.45; box-shadow: 0 14px 34px rgba(0, 102, 179, .18); cursor: pointer; opacity: 0; transform: translateY(8px) scale(.96); transform-origin: 100% 100%; transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
.ask-teaser span { display: block; font-weight: 700; color: var(--pink); }
.ask-teaser.is-on { opacity: 1; transform: none; }

.ask-panel { position: absolute; right: 0; bottom: 76px; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow: auto; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(19, 22, 26, .2), 0 0 0 1px rgba(0, 102, 179, .06); opacity: 0; transform: translateY(10px) scale(.96); transform-origin: 100% 100%; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.ask.is-open .ask-panel { opacity: 1; transform: none; }
.ask-head { position: relative; display: flex; gap: 12px; align-items: center; padding: 20px 56px 18px 20px; color: #fff; background: linear-gradient(120deg, var(--pink), #FF5FA8 60%, #F58FC0); overflow: hidden; }
.ask-head::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -90px; border-radius: 50%; background: rgba(255, 255, 255, .14); animation: v2-drift-a 12s ease-in-out infinite alternate; pointer-events: none; }
.ask-head h2 { margin: 0; color: #fff; font-size: 20px; line-height: 1.2; }
.ask-head p { margin: 2px 0 0; font-size: 13px; opacity: .92; }
.ask-avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--pink); }
.ask-avatar svg { width: 22px; height: 22px; }
.ask-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; cursor: pointer; display: grid; place-items: center; z-index: 1; transition: background-color 200ms ease, transform 200ms var(--ease-out); }
.ask-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (hover: hover) and (pointer: fine) { .ask-x:hover { background: rgba(255, 255, 255, .35); transform: rotate(90deg); } }
.ask-form { display: grid; gap: 12px; padding: 18px 20px 20px; }
.ask-form[hidden], .ask-done[hidden] { display: none; }
.ask-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ask-f { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ask-f input, .ask-f textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: 500 15px/1.4 var(--font); transition: border-color 200ms ease, box-shadow 200ms ease; }
.ask-f textarea { resize: vertical; min-height: 84px; }
.ask-f input:focus, .ask-f textarea:focus { outline: 0; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(237, 6, 119, .12); }
.ask-f.has-err input, .ask-f.has-err textarea { border-color: #C8102E; }
.ask-f small, .ask-err { color: #C8102E; font-size: 12px; font-weight: 600; margin: 0; }
.ask-f.has-err { animation: ask-shake 360ms var(--ease-out); }
@keyframes ask-shake { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.ask-note { margin: -2px 0 0; font-size: 12px; color: var(--muted); }
.ask-note a { color: var(--blue); }
.ask-send { width: 100%; gap: 10px; border-radius: 999px; }
.ask-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ask-send:hover svg { transform: translateX(4px); } }
.ask.is-sending .ask-send { opacity: .7; cursor: progress; }
.ask-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ask-done { padding: 28px 24px 30px; text-align: center; outline: 0; }
.ask-done h3 { margin: 12px 0 6px; font-size: 20px; color: var(--ink); }
.ask-done p { margin: 0; color: var(--muted); }
.ask-done a { color: var(--pink); font-weight: 700; }
.ask-check { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--bg-pink); animation: ask-pop 500ms var(--ease-out) both; }
.ask-check svg { width: 34px; height: 34px; fill: none; stroke: var(--pink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: ask-draw 450ms var(--ease-out) 250ms forwards; }
@keyframes ask-pop { from { opacity: 0; transform: scale(.7); } }
@keyframes ask-draw { to { stroke-dashoffset: 0; } }
@media (max-width: 767px) {
  .ask { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
  .ask-fab { height: 56px; padding: 0 6px; }
  .ask-fab-l { display: none; }
  .ask-panel { right: -4px; bottom: 70px; }
  .ask-teaser { bottom: 68px; }
  .ask-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ask-fab, .ask-fab::before, .ask-fab::after, .ask-i-chat, .ask-head::after, .ask-f.has-err, .ask-check, .ask-check svg { animation: none; }
  .ask-check svg { stroke-dashoffset: 0; }
  .ask-panel, .ask-teaser { transform: none; }
}

/* Keep the V2 cookie controls clear of the existing fixed question and top buttons. */
.ed-v2 .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
.ed-v2 .footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 .5em; }
.ed-v2 .footer-legal a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.ed-v2 .footer-legal a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 767px) { .ed-v2 .footer-bottom { padding-bottom: 112px; } }
