/* TheWorkwear AI Chat — widget styles. Bubble + header colours come from
   CSS variables set inline by the plugin from the admin settings. */
:root {
  --twwai-bubble: #25d366;
  --twwai-header: #075e54;
  --twwai-accent: #00d96b;       /* fallback; PHP injects current setting */
  --twwai-accent-dark: #1f8a4f;  /* fallback hover/darker shade */
}
#twwai-root { position: fixed; right: 18px; bottom: 18px; z-index: 99998; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

.twwai-bubble {
  width: 54px; height: 54px; border-radius: 50%;          /* v1.34.37 — slightly smaller (was 60) */
  background: var(--twwai-bubble); color: #fff; border: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,.25), 0 4px 12px rgba(0,0,0,.18);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  animation: twwai-pulse-ring 2.2s ease-out infinite;
}
.twwai-bubble svg { width: 26px; height: 26px; }   /* scale icon to match smaller bubble */
.twwai-bubble:hover { transform: translateY(-1px) scale(1.04); filter: brightness(.93); box-shadow: 0 10px 26px rgba(0,0,0,.3), 0 6px 16px rgba(0,0,0,.22); }
.twwai-bubble:focus { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes twwai-pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.18); }
  70%  { box-shadow: 0 0 0 16px rgba(0,0,0,0),  0 4px 12px rgba(0,0,0,.18); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0),     0 4px 12px rgba(0,0,0,.18); }
}

/* v1.34.85 — Chat panel is 90% of viewport height, anchored to bottom-right.
   Leaves clear margin at the top so site nav / admin bar / browser chrome
   never overlap the chat header. Mobile: 95% height edge-to-edge bottom-anchored. */
.twwai-panel {
  display: none; flex-direction: column;
  width: min(96vw, 720px);
  height: 90vh;
  height: 90dvh;
  background: #fff; border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
  overflow: hidden;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
}
/* WP admin bar logged-in: shrink height to leave room */
body.admin-bar .twwai-panel { height: calc(90vh - 48px); height: calc(90dvh - 48px); }
@media (max-width: 782px) {
  body.admin-bar .twwai-panel { height: calc(90vh - 62px); height: calc(90dvh - 62px); }
}
/* v1.34.220.121 — Imran 2026-06-17: sticky site footer was pushing the panel up
   so the header close/min/max buttons scrolled off the top on mobile. Panel is
   now 90dvh, BOTTOM-anchored with a top gap, so the header (and its buttons) is
   always inside the viewport; bottom safe-area inset clears the sticky footer. */
@media (max-width: 768px) {
  /* v1.34.220.122 — Imran 2026-06-17: keep the sticky footer, just make the chat
     shorter (82dvh, was 90) so the panel never gets pushed up and the header
     close/min/max buttons always stay on screen. */
  .twwai-panel {
    width: 100vw !important;
    height: 82vh !important; height: 82dvh !important;
    max-height: 82vh !important; max-height: 82dvh !important;
    border-radius: 14px 14px 0 0 !important;
    left: 0 !important; right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    inset: auto 0 0 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  }
  body.admin-bar .twwai-panel { height: calc(82vh - 46px) !important; height: calc(82dvh - 46px) !important; }
}
.twwai-panel.twwai-open { display: flex; }

/* Compact small state — opt-in via the ⤢ button */
.twwai-panel--small {
  width: min(380px, calc(100vw - 32px)) !important;
  height: min(560px, calc(100vh - 80px)) !important;
  border-radius: 14px !important;
}

.twwai-head {
  background: var(--twwai-header); color: #fff;
  padding: 12px 14px; display: flex; align-items: center; justify-content: space-between;
}
.twwai-head-title { font-weight: 600; font-size: 15px; }
.twwai-status { color: #5ee8a6; font-size: 11px; margin-left: 6px; }
.twwai-head-actions { display: flex; align-items: center; gap: 6px; }
/* v1.34.26 — Maximised (full viewport) chat panel — opt-in via double-click max */
.twwai-panel--max {
  width: 100vw !important; height: 100vh !important; height: 100dvh !important;
  inset: 0 !important; right: 0 !important; bottom: 0 !important;
  border-radius: 0 !important;
}
.twwai-close, .twwai-min, .twwai-max {
  background: rgba(255,255,255,.12); border: 0; color: #fff;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  transition: background .15s ease, transform .1s ease;
}
.twwai-close:hover, .twwai-min:hover, .twwai-max:hover { background: rgba(255,255,255,.25); }
.twwai-close:active, .twwai-min:active, .twwai-max:active { transform: scale(.92); }
.twwai-close { font-size: 24px; }
.twwai-min { font-size: 26px; font-weight: 600; padding-bottom: 4px; }
.twwai-max { font-size: 16px; font-weight: 600; }

.twwai-body {
  flex: 1; overflow-y: auto; padding: 14px; background: #f5f7fb;
}
.twwai-msg { margin-bottom: 10px; max-width: 92%; display: flex; flex-direction: column; }
.twwai-msg-user { margin-left: auto; align-items: flex-end; }
.twwai-msg-assistant { margin-right: auto; align-items: flex-start; }
.twwai-msg-bubble {
  background: #fff; color: #1a1a1a;
  padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.twwai-msg-bubble strong { font-weight: 600; }
/* v1.34.120 — WhatsApp human-handoff button. Surfaces when AI defers to team. */
.twwai-wa-handoff {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff !important;
  font-weight: 800;
  font-size: 14.5px;
  text-decoration: none !important;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(37,211,102,.32);
  transition: filter .15s ease, transform .12s ease, box-shadow .15s ease;
  cursor: pointer;
}
.twwai-wa-handoff:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37,211,102,.42); }
.twwai-wa-handoff:active { transform: translateY(0); filter: brightness(.96); }
.twwai-msg-bubble em { font-style: italic; }
.twwai-msg-bubble code { background: #f1f3f5; padding: 1px 5px; border-radius: 4px; font-family: ui-monospace, "SF Mono", Monaco, monospace; font-size: 12.5px; }
.twwai-msg-bubble ul, .twwai-msg-bubble ol { margin: 6px 0 6px 18px; padding: 0; }
.twwai-msg-bubble li { margin: 2px 0; }
.twwai-msg-bubble .twwai-h { margin: 8px 0 4px; font-size: 14px; font-weight: 600; }
.twwai-msg-bubble a { color: var(--twwai-header); text-decoration: underline; word-break: break-word; }
.twwai-msg-bubble a:hover { color: #f5b500; }
.twwai-msg-user .twwai-msg-bubble { background: var(--twwai-header); color: #fff; }

.twwai-products { display: grid; gap: 6px; margin-top: 6px; width: 100%; }
.twwai-prod {
  display: grid; grid-template-columns: 48px 1fr; gap: 8px;
  background: #fff; padding: 6px; border-radius: 10px; text-decoration: none;
  align-items: center; color: #1a1a1a; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.twwai-prod img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.twwai-prod-noimg { width:48px; height:48px; display:flex; align-items:center; justify-content:center; background:#eee; border-radius:6px; }
.twwai-prod-name { font-size: 13px; font-weight: 600; }
.twwai-prod-price { font-size: 12px; color: #555; }

.twwai-typing .twwai-msg-bubble { display: inline-flex; gap: 4px; padding: 12px 14px; }
.twwai-dot { width: 6px; height: 6px; background: #999; border-radius: 50%; display: inline-block; animation: twwai-pulse 1.2s infinite ease-in-out; }
.twwai-typing-text { font-size: 12px; color: #6b7280; margin-left: 8px; transition: opacity 0.2s; opacity: 0.8; font-style: italic; }
.twwai-dot:nth-child(2) { animation-delay: .15s; }
.twwai-dot:nth-child(3) { animation-delay: .3s; }
@keyframes twwai-pulse { 0%,80%,100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }

.twwai-attach {
  background: transparent; color: #555; border: 1px solid #d8dbe0; border-radius: 10px;
  width: 38px; cursor: pointer; font-size: 16px;
}
.twwai-attach:hover { background: #f5f7fb; border-color: var(--twwai-header); color: var(--twwai-header); }
.twwai-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid #e8eaef; background: #fff; }
.twwai-input {
  flex: 1; border: 1px solid #d8dbe0; border-radius: 10px; padding: 9px 11px;
  font-size: 14px; resize: none; max-height: 120px; outline: none; font-family: inherit;
}
.twwai-input:focus { border-color: var(--twwai-header); box-shadow: 0 0 0 3px rgba(7,94,84,.15); }
.twwai-send {
  background: var(--twwai-header); color: #fff; border: 0; border-radius: 10px;
  width: 40px; cursor: pointer; font-size: 14px;
}
.twwai-send:disabled { opacity: .5; cursor: not-allowed; }

/* ── v1.34.0 Smart prefill CTA inside chat ── */
.twwai-prefill-wrap {
  margin: 14px 12px 16px;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #075e54;
  box-shadow: 0 4px 14px rgba(7,94,84,.10);
  animation: twwai-prefill-fade .3s ease-out;
}
@keyframes twwai-prefill-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.twwai-prefill-intro {
  font-size: 13.5px; font-weight: 700; color: #075e54;
  line-height: 1.5; margin-bottom: 10px;
}
.twwai-prefill-picks {
  font-size: 12.5px; color: #1a1f2e; font-weight: 600;
  background: #ffffff; padding: 10px 14px; border-radius: 10px;
  margin-bottom: 14px; line-height: 1.45;
  border: 1px solid rgba(7,94,84,.16);
}
/* v1.34.195 — Pill + vibrant. Was a flat-ish 12px rectangle; now a proper
 * rounded pill with a punchier emerald gradient and a soft outer glow.
 * Adds !important on radius + padding so Rey/Astra theme `button { … }`
 * resets can't squash it. */
.twwai-prefill-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 56px;
  padding: 16px 26px !important;
  background: linear-gradient(135deg, #0ea75c 0%, #047857 55%, #064e3b 100%);
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-size: 15.5px; font-weight: 900; letter-spacing: .35px; line-height: 1.2;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow:
    0 10px 28px -6px rgba(14,167,92,.55),
    0 4px 10px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -2px 0 rgba(0,0,0,.08);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.twwai-prefill-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08) saturate(1.12);
  box-shadow:
    0 16px 36px -6px rgba(14,167,92,.65),
    0 6px 14px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -2px 0 rgba(0,0,0,.08);
}
.twwai-prefill-btn:active { transform: translateY(0); filter: brightness(.96); }
.twwai-prefill-fresh {
  display: block; text-align: center; margin-top: 12px;
  font-size: 12px; color: #6b7280; text-decoration: underline;
}
.twwai-prefill-fresh:hover { color: #075e54; }

/* ── v1.34.4 HOME-PAGE HERO BLOCK ── */
/* v1.34.16 — compact wide hero (was 56-64px tall stack, now ~22-28px) */
.twwai-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at top right, rgba(0,217,107,.16), transparent 55%),
              radial-gradient(ellipse at bottom left, rgba(7,94,84,.16), transparent 55%),
              linear-gradient(135deg, #0a0d12 0%, #0f1419 50%, #0a0d12 100%);
  color: #f4f5f7;
  padding: 22px 24px 24px;
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.twwai-hero-inner {
  max-width: 1400px; margin: 0 auto;
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; text-align: left;
}
.twwai-hero-eyebrow {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: var(--twwai-accent); text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(0,217,107,.4);
  border-radius: 999px;
  background: rgba(0,217,107,.08);
  margin-bottom: 6px;
}
.twwai-hero-title {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -.3px;
  margin: 0 0 4px;
  background: linear-gradient(180deg, #ffffff 0%, #d6e3df 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.twwai-hero-subtitle {
  font-size: clamp(13px, 1.2vw, 14px);
  color: #a8b3bd; max-width: 640px; margin: 0;
  line-height: 1.4;
}
/* Bullets + meta line hidden on compact layout */
.twwai-hero-bullets, .twwai-hero-meta { display: none; }
.twwai-hero-cta {
  display: inline-block;
  padding: 12px 24px;
  font-size: 14px; font-weight: 700; letter-spacing: .3px;
  color: #0a0d12;
  background: linear-gradient(135deg, var(--twwai-accent) 0%, var(--twwai-accent-dark) 100%);
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,217,107,.22), 0 2px 6px rgba(0,0,0,.35);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  white-space: nowrap; flex-shrink: 0;
}
.twwai-hero-cta:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 10px 24px rgba(0,217,107,.32), 0 3px 8px rgba(0,0,0,.4); }
.twwai-hero-cta:active { transform: translateY(0); }
/* Sci-fi grid decoration in the corner */
.twwai-hero-decor {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,217,107,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,217,107,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.7) 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.7) 0%, transparent 75%);
}
@media (max-width: 700px) {
  .twwai-hero { padding: 16px 16px 18px; }
  .twwai-hero-inner { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; }
  .twwai-hero-cta { width: 100%; }
}

/* ── BUNDLE WIZARD PROMO BANNER (top of page, sticky) ── */
.twwai-promo-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99997;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 44px 8px 14px; min-height: 36px;
  background: linear-gradient(90deg, var(--twwai-header, #075e54) 0%, var(--twwai-accent-dark) 50%, var(--twwai-header, #075e54) 100%);
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13.5px; font-weight: 600; letter-spacing: .15px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  animation: twwai-promo-shine 6s linear infinite;
  background-size: 200% 100%;
}
@keyframes twwai-promo-shine {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
.twwai-promo-bar:hover { filter: brightness(1.08); }
.twwai-promo-text { display: inline-block; }
.twwai-promo-tc {
  font-size: 11.5px; font-weight: 500; opacity: .88;
  color: #fff; text-decoration: underline;
  padding: 2px 6px; border-radius: 4px;
}
.twwai-promo-tc:hover { background: rgba(255,255,255,.12); }
.twwai-promo-dismiss {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; color: #fff;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: 18px; line-height: 1; cursor: pointer; opacity: .82;
}
.twwai-promo-dismiss:hover { background: rgba(255,255,255,.16); opacity: 1; }
/* Push page content down so banner doesn't cover header */
body.twwai-has-promo { padding-top: 36px !important; }
@media (max-width: 480px) {
  .twwai-promo-bar { font-size: 12px; padding-right: 38px; min-height: 38px; line-height: 1.3; }
  .twwai-promo-tc  { font-size: 10.5px; }
  body.twwai-has-promo { padding-top: 38px !important; }
}

/* T&Cs modal */
.twwai-tc-overlay {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55);
  padding: 20px;
  animation: twwai-tc-fade .18s ease-out;
}
@keyframes twwai-tc-fade { from {opacity:0;} to {opacity:1;} }
.twwai-tc-box {
  background: #fff; color: #1a1f2e;
  border-radius: 14px; padding: 22px 22px 16px;
  max-width: 440px; width: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.twwai-tc-h { font-size: 16px; font-weight: 700; color: var(--twwai-header, #075e54); margin-bottom: 12px; }
.twwai-tc-list { font-size: 13.5px; line-height: 1.55; padding-left: 18px; margin: 0 0 16px; color: #374151; }
.twwai-tc-list li { margin-bottom: 6px; }
.twwai-tc-close {
  display: block; margin-left: auto;
  background: var(--twwai-header, #075e54); color: #fff; border: 0;
  padding: 10px 18px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  cursor: pointer;
}
.twwai-tc-close:hover { filter: brightness(1.1); }

.twwai-foot {
  display: flex; padding: 8px 10px; border-top: 1px solid #e8eaef; background: #fafbfd;
  align-items: center; justify-content: center;
}
.twwai-wa, .twwai-lead-btn {
  font-size: 12px; padding: 6px 10px; border-radius: 8px; cursor: pointer;
  background: #fff; border: 1px solid #d8dbe0; color: #1a1a1a; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.twwai-wa:hover { border-color: #25d366; color: #25d366; }
.twwai-lead-btn:hover { border-color: #f5b500; color: #b88500; }
/* v1.34.42 — Wizard CTA · matches chat header colour as a soft gradient.
   Default falls back to: chat header (dark teal) → accent (lime). Override
   the brand colour via admin colour picker (--twwai-wiz-bg) if you want a
   different palette. Bigger inner glow + crisper border for "cute" feel. */
.twwai-wizard-btn-only,
.twwai-wizard-btn-top,
.twwai-wizard-btn-bottom,
.twwai-wizard-btn-floating {
  --_wiz-start: var(--twwai-wiz-bg, var(--twwai-header, #075e54));
  --_wiz-end:   var(--twwai-accent, #00d96b);
  width: 100%;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 800;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--_wiz-start) 0%, var(--_wiz-end) 100%);
  box-shadow:
    0 4px 14px -4px var(--_wiz-start),
    0 2px 6px rgba(0,0,0,.10),
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.18);
  letter-spacing: .25px;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0,0,0,.22);
}
.twwai-wizard-btn-only:hover,
.twwai-wizard-btn-top:hover,
.twwai-wizard-btn-bottom:hover,
.twwai-wizard-btn-floating:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 8px 22px rgba(0,0,0,.22), 0 3px 8px rgba(0,0,0,.14); }
.twwai-wizard-btn-only:active,
.twwai-wizard-btn-top:active,
.twwai-wizard-btn-bottom:active,
.twwai-wizard-btn-floating:active { transform: translateY(0); filter: brightness(.96); }
.twwai-wizard-btn-sub {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  opacity: .85;
  letter-spacing: .3px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Top bar — sits under the chat header */
.twwai-topbar {
  padding: 10px 12px 0 12px;
  background: linear-gradient(180deg, #fafbfd 0%, transparent 100%);
}
.twwai-topbar .twwai-wizard-btn-top {
  font-size: 13.5px;
  padding: 11px 14px;
  border-radius: 10px;
}

/* Two-tab strip (v1.34.64) — Customer service / Build a quote */
.twwai-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fafbfd;
  border-bottom: 1px solid #e5e7eb;
}
/* v1.34.220.63 — coupon strip below the tabs */
.twwai-coupon-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: linear-gradient(90deg, #064e3b 0%, #047857 100%);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.twwai-cs-badge {
  background: #facc15;
  color: #1f2937;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 11.5px;
}
.twwai-cs-text { flex: 1 1 auto; min-width: 0; }
.twwai-cs-text b { color: #fde68a; letter-spacing: 0.4px; }
.twwai-cs-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.25);
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.twwai-cs-clock { font-variant-numeric: tabular-nums; font-weight: 800; }
.twwai-coupon-strip--done .twwai-cs-timer { background: rgba(255,255,255,0.18); }
@media (max-width: 480px) {
  .twwai-coupon-strip { font-size: 11.5px; padding: 6px 10px; gap: 6px; }
}
.twwai-tab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 9px 8px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: #6b7280;
  transition: all 0.18s;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.twwai-tab-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}
.twwai-tab:hover {
  background: #fff;
  color: #1f2937;
}
.twwai-tab.is-on {
  background: #fff;
  color: var(--twwai-header);
  border-bottom-color: var(--twwai-header);
}
.twwai-tab-icon { font-size: 20px; line-height: 1; flex: 0 0 auto; }
.twwai-tab-lbl { font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.twwai-tab-sub { font-size: 10px; color: #94a3b8; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.twwai-tab.is-on .twwai-tab-sub { color: var(--twwai-accent-dark); font-weight: 600; }

/* v1.34.220.154 — Ask Charlie animated owl: bobs gently, eyes blink, online
   pulse dot, typing dots when active. Respects prefers-reduced-motion. */
.twwai-tab-charlie-ico { position: relative; display: inline-block; width: 34px; height: 34px; animation: twwai-charlie-bob 3.4s ease-in-out infinite; }
.twwai-tab-charlie-ico svg { display: block; overflow: visible; }
.twwai-charlie-eye { transform-origin: center; animation: twwai-charlie-blink 4.2s ease-in-out infinite; }
.twwai-charlie-eye:nth-of-type(2) { animation-delay: .04s; }
.twwai-tab-charlie-pulse { position: absolute; right: -1px; bottom: 1px; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px #fff; animation: twwai-charlie-pulse 2s ease-in-out infinite; }
.twwai-tab-charlie-dots { display: inline-flex; gap: 2px; margin-right: 6px; opacity: 0; transition: opacity .25s ease; vertical-align: middle; }
.twwai-tab-charlie-dots i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .4; }
.twwai-tab-charlie.is-on .twwai-tab-charlie-dots { opacity: 1; }
.twwai-tab-charlie.is-on .twwai-tab-charlie-dots i { animation: twwai-charlie-typing 1.4s ease-in-out infinite; }
.twwai-tab-charlie.is-on .twwai-tab-charlie-dots i:nth-child(2) { animation-delay: .2s; }
.twwai-tab-charlie.is-on .twwai-tab-charlie-dots i:nth-child(3) { animation-delay: .4s; }

@keyframes twwai-charlie-bob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-2px) rotate(1.5deg); }
}
@keyframes twwai-charlie-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  94%, 96%      { transform: scaleY(0.1); }
}
@keyframes twwai-charlie-pulse {
  0%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 0 rgba(34,197,94,.5); }
  70%      { box-shadow: 0 0 0 2px #fff, 0 0 0 7px rgba(34,197,94,0); }
}
@keyframes twwai-charlie-typing {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .twwai-tab-charlie-ico, .twwai-charlie-eye, .twwai-tab-charlie-pulse,
  .twwai-tab-charlie.is-on .twwai-tab-charlie-dots i { animation: none; }
}

/* Bottom bar — sits above the message form */
.twwai-bottombar {
  padding: 8px 12px 4px 12px;
  background: linear-gradient(0deg, #fafbfd 0%, transparent 100%);
}
.twwai-bottombar .twwai-wizard-btn-bottom {
  font-size: 13.5px;
  padding: 11px 14px;
  border-radius: 10px;
}

/* Floating — fixed in panel corner */
.twwai-wizard-btn-floating {
  position: absolute;
  right: 14px;
  bottom: 76px;
  width: auto;
  padding: 10px 18px;
  font-size: 12.5px;
  border-radius: 999px;
  z-index: 5;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}

.twwai-quote-card {
  background: #fff; border: 1px solid #d8dbe0; border-radius: 12px;
  padding: 12px 14px; margin: 8px 0; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.twwai-quote-head { font-weight: 600; font-size: 13px; color: var(--twwai-header); margin-bottom: 6px; }
.twwai-quote-items { font-size: 13px; color: #333; line-height: 1.5; margin-bottom: 6px; }
.twwai-quote-total { font-size: 14px; margin-bottom: 10px; }
.twwai-quote-approve {
  width: 100%; background: #16a34a; color: #fff; border: 0;
  padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer;
}
.twwai-quote-approve:hover { background: #128a3e; }
.twwai-quote-approve:disabled { background: #aaa; cursor: not-allowed; }
.twwai-quote-status { margin-top: 8px; font-size: 13px; color: #444; }

/* Inline "Get a quote by email" form — cute + compact, slides up over chat body */
.twwai-qform {
  position: absolute; left: 0; right: 0; bottom: 0; top: 56px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9f7 100%);
  z-index: 5;
  display: flex; flex-direction: column;
  padding: 12px 14px 12px;
  animation: twwai-qform-in .28s cubic-bezier(.34,1.4,.6,1);
  overflow-y: auto;
}
@keyframes twwai-qform-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.twwai-qform-close {
  position: absolute; top: 7px; right: 8px;
  background: rgba(0,0,0,.04); border: 0; font-size: 18px; line-height: 1;
  color: #777; cursor: pointer; padding: 0; border-radius: 50%;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
}
.twwai-qform-close:hover { background: rgba(0,0,0,.08); color: #222; }
.twwai-qform-head {
  display: flex; align-items: center; gap: 9px;
  margin: 2px 0 11px;
}
.twwai-qform-emoji {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, #dcfce7 0%, #c5f5d5 100%);
  font-size: 16px; flex-shrink: 0;
}
.twwai-qform-h {
  margin: 0; font-size: 14.5px; font-weight: 700; color: #1a1f2e; line-height: 1.1;
}
.twwai-qform-sub {
  margin: 2px 0 0; font-size: 11px; color: #6b7280; line-height: 1; font-weight: 500;
  text-transform: uppercase; letter-spacing: .3px;
}
.twwai-qform-body { display: flex; flex-direction: column; gap: 8px; }
.twwai-qform-row { display: grid; gap: 8px; }
.twwai-qform-row--two { grid-template-columns: 1fr 1fr; }
.twwai-qform-field {
  position: relative; display: flex; align-items: center;
  background: #fff; border: 1.5px solid #e5e7eb; border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
  overflow: hidden;
}
.twwai-qform-field:focus-within {
  border-color: var(--twwai-bubble);
  box-shadow: 0 0 0 3px rgba(37,211,102,.15);
}
.twwai-qform-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; align-self: stretch; flex-shrink: 0;
  font-size: 14px; color: #6b7280;
  background: #fafbfc;
  border-right: 1px solid #f1f3f5;
}
.twwai-qform-ico--ta { align-self: flex-start; padding-top: 9px; }
.twwai-qform-field input,
.twwai-qform-field textarea {
  flex: 1; border: 0; outline: 0;
  padding: 9px 11px; font-size: 13.5px; font-family: inherit;
  background: transparent; color: #1a1a1a;
  width: 100%; box-sizing: border-box; resize: none;
}
.twwai-qform-field input::placeholder,
.twwai-qform-field textarea::placeholder {
  color: #9ca3af; font-size: 13px;
}
.twwai-qform-field--ta textarea { resize: vertical; min-height: 56px; max-height: 100px; padding-top: 9px; padding-bottom: 9px; }
.twwai-qform-actions {
  display: flex; gap: 6px; margin-top: 3px;
}
.twwai-qform-cancel {
  flex: 0 0 auto; background: transparent; border: 0;
  color: #6b7280; font-weight: 600; padding: 9px 14px; border-radius: 9px;
  cursor: pointer; font-size: 13px;
}
.twwai-qform-cancel:hover { background: rgba(0,0,0,.04); color: #1a1f2e; }
.twwai-qform-submit {
  flex: 1; background: linear-gradient(135deg, var(--twwai-bubble) 0%, var(--twwai-header) 100%);
  color: #fff; border: 0; font-weight: 700; padding: 9px 14px; border-radius: 9px;
  cursor: pointer; font-size: 13.5px; letter-spacing: .2px;
  box-shadow: 0 4px 12px rgba(7,94,84,.25);
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}
.twwai-qform-submit:hover { filter: brightness(1.06); box-shadow: 0 6px 16px rgba(7,94,84,.3); transform: translateY(-1px); }
.twwai-qform-submit:active { transform: translateY(0); }
.twwai-qform-submit:disabled { opacity: .65; cursor: progress; transform: none; box-shadow: none; }
.twwai-qform-status { font-size: 12px; margin-top: 4px; min-height: 16px; color: #374151; }
.twwai-qform-error { color: #b91c1c; font-weight: 600; }
.twwai-panel { position: relative; } /* ensure qform anchors correctly */

/* v1.34.23 — Teaser tooltip next to chat icon. SLIM tooltip-style (was wide bubble) */
.twwai-teaser {
  position: absolute; right: 70px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 5px;
  background: #fff; color: #1a1a1a;
  padding: 6px 24px 6px 10px; border-radius: 16px;
  font-size: 12px; font-weight: 600; line-height: 1.15;
  white-space: nowrap;            /* tooltip — never wrap */
  max-width: 160px;               /* keeps it compact */
  overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(0,0,0,.16), 0 2px 4px rgba(0,0,0,.08);
  cursor: pointer;
  opacity: 0; transform: translateX(8px) scale(.96);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.twwai-teaser--in { opacity: 1; transform: translateX(0) scale(1); pointer-events: auto; }
.twwai-teaser:hover { box-shadow: 0 7px 16px rgba(0,0,0,.2), 0 3px 6px rgba(0,0,0,.1); }
.twwai-teaser::after {
  content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  border-left: 6px solid #fff;
}
.twwai-teaser-icon { color: var(--twwai-bubble); display: inline-flex; flex-shrink: 0; }
.twwai-teaser-icon svg { width: 14px; height: 14px; }
.twwai-teaser-text { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.twwai-teaser-close {
  position: absolute; right: 3px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border: 0; background: transparent;
  color: #aaa; font-size: 15px; line-height: 1; cursor: pointer;
  border-radius: 50%; padding: 0;
}
.twwai-teaser-close:hover { background: #f0f0f0; color: #555; }
@media (max-width: 600px) {
  .twwai-teaser { right: 62px; max-width: 130px; font-size: 11.5px; padding: 5px 22px 5px 9px; }
  .twwai-teaser-text { font-size: 11.5px; }
}

/* "Instant Quote" pill — premium glossy CTA. Sits below header on tablet +
   desktop, no clash with cart/search icons. Mobile uses the menu-drawer CTA.
   High-specificity + !important on critical props because Rey/Elementor
   themes aggressively reset <button> padding + border-radius. */
body button.twwai-quote-pill,
.twwai-quote-pill {
  position: fixed !important; top: 110px !important; right: 22px !important; z-index: 99997 !important;
  display: none; align-items: center !important; gap: 14px !important;
  background:
    linear-gradient(135deg, #34e074 0%, #25d366 35%, #128c7e 75%, #075e54 100%) !important;
  background-size: 200% 200% !important;
  background-position: 0% 50% !important;
  color: #fff !important; border: 0 !important;
  padding: 14px 28px 14px 14px !important;
  border-radius: 999px !important;
  min-height: 60px !important; box-sizing: content-box !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 15px !important; font-weight: 700 !important; letter-spacing: .3px !important;
  text-transform: none !important; text-decoration: none !important;
  box-shadow:
    0 12px 28px rgba(7,94,84,.35),
    0 4px 10px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.25) !important;
  cursor: pointer !important; line-height: 1 !important;
  overflow: hidden !important; isolation: isolate;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, background-position .6s ease;
  animation: twwai-pill-gradient 6s ease-in-out infinite;
}
/* Animated subtle hue shift across the gradient */
@keyframes twwai-pill-gradient {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
/* Soft pulsing glow halo behind the pill */
.twwai-quote-pill::before {
  content: ''; position: absolute; inset: -6px; z-index: -1;
  border-radius: inherit;
  background: radial-gradient(closest-side, rgba(37,211,102,.55) 0%, rgba(37,211,102,0) 75%);
  filter: blur(8px); opacity: .9;
  animation: twwai-pill-pulse 2.6s ease-in-out infinite;
}
@keyframes twwai-pill-pulse {
  0%, 100% { transform: scale(1);    opacity: .55; }
  50%      { transform: scale(1.08); opacity: .9; }
}
/* Glossy shine sweep across the surface */
.twwai-quote-pill::after {
  content: ''; position: absolute; top: 0; left: -75%;
  width: 50%; height: 100%; pointer-events: none;
  background: linear-gradient(115deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.35) 45%,
    rgba(255,255,255,.55) 50%,
    rgba(255,255,255,.35) 55%,
    rgba(255,255,255,0) 100%);
  transform: skewX(-18deg);
  animation: twwai-pill-shine 4.5s ease-in-out infinite;
}
@keyframes twwai-pill-shine {
  0%   { left: -75%; }
  35%  { left: 130%; }
  100% { left: 130%; }
}
/* Icon ball — frosted-white circle holding the WhatsApp icon */
.twwai-quote-pill .twwai-pill-ico {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  width: 38px !important; height: 38px !important; border-radius: 50% !important;
  background: rgba(255,255,255,.95) !important;
  color: #25d366 !important; flex-shrink: 0 !important;
  padding: 0 !important; margin: 0 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.18), inset 0 -1px 1px rgba(0,0,0,.06) !important;
}
.twwai-quote-pill .twwai-pill-ico svg { width: 22px !important; height: 22px !important; }
.twwai-quote-pill .twwai-pill-text {
  display: inline-flex !important; flex-direction: column !important; gap: 4px !important; text-align: left !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.18);
}
.twwai-quote-pill .twwai-pill-title { font-size: 15px !important; font-weight: 700 !important; letter-spacing: .3px !important; line-height:1 !important; }
.twwai-quote-pill .twwai-pill-sub   { font-size: 11px !important; font-weight: 500 !important; opacity: .9 !important; letter-spacing: .5px !important; text-transform: uppercase !important; line-height:1 !important; }
/* Visible from tablet (≥768px) upwards */
@media (min-width: 768px) { .twwai-quote-pill { display: inline-flex; } }
.twwai-quote-pill--mobile { display: inline-flex !important; }
.twwai-quote-pill:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 18px 36px rgba(7,94,84,.42),
    0 8px 16px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.3);
}
.twwai-quote-pill:hover::before { animation-duration: 1.4s; opacity: 1; }
.twwai-quote-pill:active { transform: translateY(-1px) scale(1.0); }
.twwai-quote-pill:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@media (max-width: 600px) {
  .twwai-quote-pill { top: auto; bottom: 95px; right: 12px; padding: 10px 18px 10px 10px; }
  .twwai-quote-pill .twwai-pill-sub { display: none; }
  .twwai-quote-pill .twwai-pill-ico { width: 28px; height: 28px; }
}

@media (max-width: 600px) {
  #twwai-root { right: 10px; bottom: 10px; }
  .twwai-panel {
    width: calc(100vw - 20px);
    height: 75vh;            /* keep it ~75% screen height — never the whole viewport */
    max-height: 600px;
    border-radius: 14px;
  }
  .twwai-head { padding: 10px 12px; }
  .twwai-head-title { font-size: 13px; }
  .twwai-body { padding: 10px; }
  .twwai-msg-bubble { font-size: 13.5px; padding: 8px 11px; }
  .twwai-form { padding: 8px; }
  .twwai-input { font-size: 13.5px; padding: 8px 10px; }
  .twwai-foot { padding: 6px 8px; }
  .twwai-wa, .twwai-lead-btn { font-size: 11.5px; padding: 5px 8px; }
}

/* ─── v1.34.27 — Breathing gradient backgrounds (drop class on any Elementor section) ─── */

/* Variant 1 · SUBTLE BREATH — slow, dark base, accent sweeps through */
.twwai-breathing-bg {
  background: linear-gradient(135deg,
    #0a0d12 0%,
    var(--twwai-header, #075e54) 25%,
    var(--twwai-accent-dark, #1f8a4f) 50%,
    var(--twwai-header, #075e54) 75%,
    #0a0d12 100%
  );
  background-size: 400% 400%;
  animation: twwai-breathe 18s ease-in-out infinite;
}

/* Variant 2 · VIBRANT PULSE — brighter, accent dominant, faster */
.twwai-breathing-bg-vibrant {
  background: linear-gradient(120deg,
    var(--twwai-accent-dark, #1f8a4f) 0%,
    var(--twwai-accent, #00d96b) 20%,
    var(--twwai-header, #075e54) 50%,
    var(--twwai-accent, #00d96b) 80%,
    var(--twwai-accent-dark, #1f8a4f) 100%
  );
  background-size: 300% 300%;
  animation: twwai-breathe 12s ease-in-out infinite;
}

/* Variant 3 · AURORA — multi-stop ambient drift */
.twwai-breathing-bg-aurora {
  background: linear-gradient(115deg,
    #0a0d12 0%,
    var(--twwai-header, #075e54) 18%,
    var(--twwai-accent, #00d96b) 35%,
    #1a2540 55%,
    var(--twwai-accent-dark, #1f8a4f) 72%,
    var(--twwai-header, #075e54) 88%,
    #0a0d12 100%
  );
  background-size: 500% 500%;
  animation: twwai-breathe 22s ease-in-out infinite;
}

/* Shared keyframe — slides the oversized gradient slowly across */
@keyframes twwai-breathe {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Reduced-motion users get a static gradient — accessibility */
@media (prefers-reduced-motion: reduce) {
  .twwai-breathing-bg,
  .twwai-breathing-bg-vibrant,
  .twwai-breathing-bg-aurora {
    animation: none;
    background-size: 100% 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   v1.34.34 — Lure system (Sticky bar + Exit-intent)
   ═══════════════════════════════════════════════════════════════════ */

/* ── D · Sticky bottom bar — v1.34.37 centered layout + bubble lift ── */
/* v1.34.192 — Hard-suppress sticky bar on any WooCommerce transactional page,
 * even if JS already injected it. Belt-and-braces against custom-slug sites
 * (/basket/, /secure-checkout/) where the pathname regex misses. */
body.woocommerce-cart .twwai-sticky-bar,
body.woocommerce-checkout .twwai-sticky-bar,
body.woocommerce-account .twwai-sticky-bar,
body.woocommerce-order-received .twwai-sticky-bar,
body.woocommerce-thankyou .twwai-sticky-bar,
body.woocommerce-page.page-checkout .twwai-sticky-bar,
body.woocommerce-page.page-cart .twwai-sticky-bar {
  display: none !important;
}

/* v1.34.193 — Also hide chat orb + preview bubble on transactional pages.
 * Conversion-critical: customer needs the action buttons fully clear, not
 * a 56px green orb hovering over Proceed to Checkout. */
body.woocommerce-cart .twwai-bubble,
body.woocommerce-checkout .twwai-bubble,
body.woocommerce-order-received .twwai-bubble,
body.woocommerce-cart .twwai-teaser,
body.woocommerce-cart .twwai-preview-msg,
body.woocommerce-checkout .twwai-teaser,
body.woocommerce-checkout .twwai-preview-msg,
body.woocommerce-order-received .twwai-teaser,
body.woocommerce-order-received .twwai-preview-msg {
  display: none !important;
}

/* v1.34.193 — Cart drawer / off-canvas overlay open?
 * Hide EVERYTHING: sticky bar, orb, preview bubble, teaser. They sit at
 * z-index 99996+ and crash into the drawer's Proceed-to-Checkout button.
 * JS adds .twwai-overlay-active on <html> via MutationObserver when any
 * Rey/Astra/Flatsome/generic side panel is open. */
html.twwai-overlay-active .twwai-sticky-bar,
html.twwai-overlay-active .twwai-bubble,
html.twwai-overlay-active .twwai-teaser,
html.twwai-overlay-active .twwai-preview-msg,
html.twwai-overlay-active .twwai-bubble-tail {
  display: none !important;
}

.twwai-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99996;
  display: flex; align-items: center; gap: 20px;
  padding: 14px 60px 14px 26px;            /* v1.34.41 — right padding for absolute close button */
  justify-content: center;                 /* v1.34.37 — centered */
  background: linear-gradient(90deg,
    #0a0d12 0%,
    var(--twwai-header, #075e54) 35%,
    var(--twwai-accent-dark, #1f8a4f) 75%,
    var(--twwai-accent, #00d96b) 100%);
  color: #fff;
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .15px;
  box-shadow: 0 -6px 22px rgba(0,0,0,.24);
  border-top: 1px solid rgba(255,255,255,.08);
  transform: translateY(100%);
  transition: transform .35s ease;
  -webkit-font-smoothing: antialiased;
}
.twwai-sticky-bar--in { transform: translateY(0); }
.twwai-sticky-bar--gone { transform: translateY(100%); pointer-events: none; }
.twwai-sb-text {
  flex: 0 0 auto;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .2px;
  white-space: nowrap;
  text-align: center;
}
.twwai-sb-inner {
  display: flex; align-items: center; gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
/* v1.34.36 — Professional split-digit countdown clock */
/* v1.34.41 — flex 0 0 auto so message+timer sit at TRUE centre (was left-hugging
   because flex:1 1 auto made the counter eat all leftover space). Close button
   moves to absolute-right so it doesn't fight the centred group. */
.twwai-sb-counter {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  border-left: 1px solid rgba(255,255,255,.20);
  border-right: 1px solid rgba(255,255,255,.20);
  white-space: nowrap;
}
.twwai-sb-counter-label {
  font-weight: 700;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  letter-spacing: .25px;
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
}
.twwai-sb-clock {
  display: inline-flex; align-items: baseline; gap: 3px;
  font-variant-numeric: tabular-nums;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, 'Roboto Mono', monospace;
}
.twwai-sb-digit {
  display: inline-block;
  background: linear-gradient(180deg, #0a0d12 0%, #1a2530 100%);
  color: #ffeb3b;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  padding: 7px 11px;
  border-radius: 12px;
  letter-spacing: 1px;
  min-width: 34px;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.45),
    0 2px 6px rgba(0,0,0,.45);
  text-shadow: 0 0 8px rgba(255,235,59,.5);
  transition: color .2s ease, text-shadow .2s ease, transform .2s ease;
}
.twwai-sb-colon {
  color: #ffeb3b;
  font-weight: 900;
  font-size: 18px;
  text-shadow: 0 0 8px rgba(255,235,59,.45);
  animation: twwai-sb-colon-blink 1s steps(2, end) infinite;
}
@keyframes twwai-sb-colon-blink {
  50% { opacity: .35; }
}
.twwai-sb-clock--alert .twwai-sb-digit {
  color: #ff5252;
  text-shadow: 0 0 10px rgba(255,82,82,.6);
  animation: twwai-sb-digit-pulse 1s ease-in-out infinite;
}
.twwai-sb-clock--alert .twwai-sb-colon {
  color: #ff5252;
  text-shadow: 0 0 10px rgba(255,82,82,.6);
}
@keyframes twwai-sb-digit-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.twwai-sb-digit--off {
  color: #6b7c89 !important;
  text-shadow: none !important;
  animation: none !important;
}
/* v1.34.191 — Sticky bar CTA: fully-round pill, theme-proof. Themes (Rey, Astra,
 * Flatsome) tend to set border-radius on `button` element directly which wins
 * vs class selector. We escalate to !important on radius+padding only, leave
 * colours non-important so per-site brand tokens still flow through. */
.twwai-sticky-bar button.twwai-sb-cta,
.twwai-sb-cta {
  background: #ffffff;
  color: var(--twwai-header, #075e54);
  border: 0 !important;
  padding: 12px 26px !important;
  font-size: 14.5px;
  font-weight: 900;
  font-family: inherit;
  border-radius: 999px !important;
  cursor: pointer;
  letter-spacing: .45px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,.22), inset 0 -2px 0 rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease;
  text-transform: uppercase;
  line-height: 1;
}
.twwai-sticky-bar button.twwai-sb-cta:hover,
.twwai-sb-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.32), inset 0 -2px 0 rgba(0,0,0,.06);
}
.twwai-sb-close {
  /* v1.34.41 — pinned to right edge so it doesn't unbalance the centred message */
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: 0;
  color: rgba(255,255,255,.85);
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.twwai-sb-close:hover { background: rgba(255,255,255,.25); color: #fff; }

/* v1.34.65 — Mobile: KEEP the wizard message visible (Imran 2026-06-16). The bar
   must always carry its "Try our bundle wizard & save 10%" line; the timer is the
   piece that yields space on small screens, not the message. */
@media (max-width: 900px) {
  .twwai-sticky-bar {
    padding: 9px 12px;
    gap: 8px;
    justify-content: space-between;
  }
  .twwai-sb-text {
    display: block;                  /* was hidden — restore the message on mobile */
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12.5px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .twwai-sb-counter {
    border-left: 0; border-right: 0;
    padding: 0;
    gap: 6px;
    flex: 0 0 auto;
  }
  .twwai-sb-counter-label {
    font-size: 11px;
    letter-spacing: 0;
  }
  .twwai-sb-digit {
    font-size: 14px;
    padding: 4px 5px;
    min-width: 24px;
  }
  .twwai-sb-colon { font-size: 14px; }
  .twwai-sb-cta {
    flex: 0 0 auto;
    font-size: 11.5px;
    padding: 7px 11px;
    letter-spacing: .2px;
  }
  .twwai-sb-close { width: 24px; height: 24px; font-size: 15px; }
}
@media (max-width: 600px) {
  /* Phones — message + tap-CTA are the priority; drop the countdown to make room. */
  .twwai-sb-counter { display: none; }
  .twwai-sb-text { font-size: 12px; white-space: normal; }
}

/* Ensure chat bubble sits ABOVE the sticky bar regardless */
#twwai-root { z-index: 99998 !important; transition: bottom .35s ease; }

/* v1.34.37 — When sticky bar is visible, lift the chat bubble above it */
body.twwai-sb-shown #twwai-root { bottom: 70px; }    /* desktop */
@media (max-width: 900px) {
  body.twwai-sb-shown #twwai-root { bottom: 62px; }  /* mobile bar slightly smaller */
}

/* Pulse animation for the countdown timer in last 5 min */
@keyframes twwai-sb-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: .85; }
}

/* ── C · Exit-intent modal ── */
.twwai-exit-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(10,13,18,.72);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
}
.twwai-exit-overlay--in { opacity: 1; }
.twwai-exit-modal {
  background: linear-gradient(135deg, #0f1419 0%, #1a2530 100%);
  color: #f4f5f7;
  border-radius: 20px;
  padding: 28px 30px 24px;
  max-width: 720px;
  width: calc(100% - 36px);
  position: relative;
  box-shadow: 0 30px 70px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.06);
  transform: translateY(20px) scale(.96);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  font-family: 'Inter', system-ui, sans-serif;
}
/* v1.34.147 — wider + less tall per Imran 2026-06-14.
   max-width 580 → 720, padding-top 320 → 200, min-height 600 → 440,
   max-width on --bg 580 → 720 so the hero photo zone is proportional. */
.twwai-exit-modal--bg {
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding-top: 200px;
  min-height: 440px;
  max-width: 720px;
}
.twwai-exit-modal--bg .twwai-exit-x {
  background: rgba(15,23,42,0.6);
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.twwai-exit-modal--bg .twwai-exit-title {
  text-shadow: 0 2px 8px rgba(0,0,0,0.55);
}
.twwai-exit-modal--bg .twwai-exit-body {
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.twwai-exit-overlay--in .twwai-exit-modal { transform: translateY(0) scale(1); opacity: 1; }
.twwai-exit-x {
  position: absolute; top: 12px; right: 14px;
  background: transparent; border: 0;
  color: #6b7c89; font-size: 24px; line-height: 1; cursor: pointer; padding: 4px;
}
.twwai-exit-x:hover { color: #fff; }
.twwai-exit-eyebrow {
  font-size: 13px; font-weight: 900; letter-spacing: 2.5px;
  color: var(--twwai-accent, #00d96b);
  margin-bottom: 14px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}
.twwai-exit-title {
  font-size: 38px; font-weight: 900; line-height: 1.08;
  margin-bottom: 14px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
.twwai-exit-body {
  font-size: 19px; color: #ffffff; line-height: 1.5;
  margin-bottom: 18px;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}
.twwai-exit-body b { color: var(--twwai-accent, #00d96b); font-weight: 800; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }

/* v1.34.129 — FOMO timer + textbox + mystery-code reveal */
.twwai-exit-timer-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin-bottom: 14px;
  background: rgba(255, 60, 60, 0.12);
  border: 1px solid rgba(255, 100, 100, 0.35);
  border-radius: 10px;
}
.twwai-exit-timer-label {
  font-size: 13px; font-weight: 600; color: #ffb4b4; text-transform: uppercase; letter-spacing: 1px;
}
.twwai-exit-timer {
  font-size: 22px; font-weight: 900; color: #fff;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 60, 60, 0.85);
  padding: 4px 12px; border-radius: 6px;
  box-shadow: 0 0 14px rgba(255, 60, 60, 0.55);
}
.twwai-exit-timer--warn { animation: twwai-pulse 1s ease-in-out infinite; }
.twwai-exit-timer--out { background: #444; box-shadow: none; }
@keyframes twwai-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 22px rgba(255, 60, 60, 0.8); }
}
.twwai-exit-textarea {
  width: 100%; box-sizing: border-box;
  background: rgba(255, 255, 255, 0.98);
  color: #0f1419;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 17px; font-family: inherit; font-weight: 500;
  margin-bottom: 14px;
  resize: vertical; min-height: 64px;
  transition: border-color .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.twwai-exit-textarea:focus {
  outline: none;
  border-color: var(--twwai-accent, #00d96b);
  box-shadow: 0 0 0 4px rgba(0, 217, 107, 0.18);
}
.twwai-exit-reveal {
  margin-top: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(0, 217, 107, 0.15) 0%, rgba(0, 150, 90, 0.08) 100%);
  border: 1px solid rgba(0, 217, 107, 0.45);
  border-radius: 12px;
  animation: twwai-reveal .5s ease-out;
}
@keyframes twwai-reveal {
  from { opacity: 0; transform: translateY(-8px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.twwai-exit-reveal-label {
  font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--twwai-accent, #00d96b); margin-bottom: 10px;
}
.twwai-exit-reveal-codes {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.twwai-exit-reveal-code {
  flex: 1; min-width: 130px;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 12px; border-radius: 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.twwai-exit-reveal-tier {
  font-size: 11.5px; color: #b0bbc5; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px;
}
.twwai-exit-reveal-code code {
  font-size: 18px; font-weight: 800; color: #fff;
  background: rgba(0, 217, 107, 0.25);
  padding: 4px 10px; border-radius: 5px;
  letter-spacing: 1px;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  text-align: center;
}
.twwai-exit-reveal-hint {
  margin-top: 10px; font-size: 12.5px; color: #b0bbc5; font-style: italic;
}
.twwai-exit-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.twwai-exit-primary {
  flex: 1; min-width: 180px;
  background: linear-gradient(135deg, var(--twwai-accent, #00d96b) 0%, var(--twwai-accent-dark, #1f8a4f) 100%);
  color: #0a0d12;
  border: 0;
  padding: 15px 18px;
  font-size: 15.5px;
  font-weight: 800;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,217,107,.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.twwai-exit-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,217,107,.38); }
/* v1.34.133 — "Ask a question" direct-to-chat button. Distinct from the green
   discount CTA: uses the brand header (WhatsApp/teal) gradient so it reads as
   "talk to the team" rather than "claim a discount". */
.twwai-exit-ask {
  flex: 1; min-width: 160px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--twwai-header, #075e54);
  background-image: linear-gradient(135deg, var(--twwai-header, #075e54) 0%, var(--twwai-accent-dark, #128c7e) 100%);
  color: #fff;
  border: 0;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(7,94,84,.30);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.twwai-exit-ask:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(7,94,84,.40); filter: brightness(1.06); }
.twwai-exit-dismiss {
  background: transparent;
  color: #8893a0;
  border: 1px solid #2a3540;
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
}
.twwai-exit-dismiss:hover { color: #fff; border-color: #4a5560; }
.twwai-exit-sig {
  margin-top: 18px;
  font-size: 12px;
  color: #6b7c89;
  text-align: right;
  font-style: italic;
}
@media (max-width: 600px) {
  .twwai-exit-modal { padding: 26px 22px 22px; }
  .twwai-exit-title { font-size: 22px; }
  .twwai-exit-body { font-size: 13.5px; }
}

/* v1.34.53 — checkout CTA button rendered after wizard success message */
.twwai-msg-checkout-btn {
  display: block;
  margin: 10px 0 4px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #075e54 0%, #00d96b 100%);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  letter-spacing: .3px;
  box-shadow: 0 4px 14px -4px #075e54, 0 2px 6px rgba(0,0,0,.12);
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
  transition: transform .15s ease, filter .15s ease;
}
.twwai-msg-checkout-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.twwai-msg-checkout-btn:active { transform: translateY(0); filter: brightness(.94); }

/* v1.34.88 — back-to-wizard chip redesigned to MATCH chat theme.
   Brand gradient header colours + bigger + animated shimmer + clear CTA. */
.twwai-back-to-wizard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 8px 0 14px;
  padding: 14px 18px;
  background: var(--twwai-header, #075e54);
  background-image: linear-gradient(135deg, var(--twwai-header, #075e54) 0%, var(--twwai-accent-dark, #128c7e) 50%, var(--twwai-accent, #00d96b) 100%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  color: #fff;
  border: 0;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: .2px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 14px rgba(7, 94, 84, .28), 0 1px 2px rgba(0, 0, 0, .08);
  transition: background-position .35s ease, transform .12s ease, box-shadow .15s ease;
  position: relative;
  overflow: hidden;
}
.twwai-back-to-wizard:before {
  content: '🎯';
  font-size: 16px;
}
.twwai-back-to-wizard:after {
  content: '→';
  font-size: 18px;
  margin-left: 4px;
  transition: transform .15s ease;
}
.twwai-back-to-wizard:hover {
  background-position: 100% 0%;
  box-shadow: 0 6px 18px rgba(7, 94, 84, .36), 0 2px 4px rgba(0, 0, 0, .12);
  transform: translateY(-1px);
}
.twwai-back-to-wizard:hover:after { transform: translateX(3px); }
.twwai-back-to-wizard:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(7, 94, 84, .25); }

/* ═══════════════════════════════════════════════════════════════════
 * v1.34.188 — Global button polish layer (Imran 2026-06-14)
 * One pass over every button in the chat + bottom bar so the dark-on-dark
 * "BUILD A QUOTE" and similar dodgy buttons all get:
 *   - bigger touch target (min 44px)
 *   - generous padding
 *   - rounded 999px corners
 *   - GUARANTEED white text on dark backgrounds (no muddy dark-text-on-green)
 *   - smooth hover/active states
 * ═══════════════════════════════════════════════════════════════════ */
.twwai-wizard-btn,
.twwai-wizard-btn-only,
.twwai-wizard-btn-top,
.twwai-wizard-btn-bottom,
.twwai-wizard-btn-floating,
.twwai-back-to-wizard,
.twwai-tc-close,
.twwai-promo-bar,
.twwai-wa-handoff,
button[class*="twwai-cta"],
button[class*="twwai-action"],
button[class*="twwai-build"] {
  /* Better dimensions */
  min-height: 48px !important;
  padding: 14px 24px !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  letter-spacing: .3px !important;
  /* Cute rounded */
  border-radius: 999px !important;
  /* Always-readable text on dark gradient */
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
  /* Better shadow */
  box-shadow: 0 4px 16px rgba(0,0,0,.18), 0 2px 4px rgba(0,0,0,.10) !important;
  /* Smooth */
  transition: transform .18s cubic-bezier(.4,0,.2,1), box-shadow .18s ease, filter .18s ease !important;
}
.twwai-wizard-btn:hover,
.twwai-wizard-btn-only:hover,
.twwai-wizard-btn-top:hover,
.twwai-wizard-btn-bottom:hover,
.twwai-wizard-btn-floating:hover,
.twwai-back-to-wizard:hover,
.twwai-tc-close:hover,
.twwai-wa-handoff:hover,
button[class*="twwai-cta"]:hover,
button[class*="twwai-action"]:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.10) !important;
  box-shadow: 0 8px 26px rgba(0,0,0,.24), 0 3px 8px rgba(0,0,0,.14) !important;
}
.twwai-wizard-btn:active,
.twwai-wizard-btn-only:active,
.twwai-wizard-btn-top:active,
.twwai-wizard-btn-bottom:active,
.twwai-wizard-btn-floating:active,
.twwai-back-to-wizard:active,
.twwai-tc-close:active,
.twwai-wa-handoff:active,
button[class*="twwai-cta"]:active,
button[class*="twwai-action"]:active {
  transform: translateY(0) !important;
  filter: brightness(.95) !important;
}
/* "Build a quote" specifically — was the worst offender (dark on dark) */
.twwai-build-quote-btn,
button[class*="build"][class*="quote"],
.twwai-wizard-btn-only:has(+ .twwai-build-label) {
  background: linear-gradient(135deg, var(--twwai-header, #075e54) 0%, var(--twwai-accent, #00d96b) 100%) !important;
  color: #fff !important;
  text-transform: none !important;
}
/* Sub-label inside wizard buttons — slightly softer + clearly white */
.twwai-wizard-btn-sub {
  color: rgba(255,255,255,.88) !important;
  font-size: 11px !important;
  margin-top: 3px !important;
}

/* ═══════════════════════════════════════════════════════════════════
 * v1.34.188 — Help (?) icon in header → links to webprintsigns.co.uk
 * Small floating chip in the chat header, opens the WPS landing in a
 * new tab. Subtle, doesn't compete with brand identity.
 * ═══════════════════════════════════════════════════════════════════ */
.twwai-help-link {
  background: rgba(255,255,255,.12);
  border: 0;
  color: rgba(255,255,255,.85);
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 14px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, transform .12s ease;
  margin-right: 4px;
}
.twwai-help-link:hover {
  background: rgba(255,255,255,.22);
  color: #fff;
  transform: scale(1.08);
  text-decoration: none;
}
.twwai-help-link:focus { outline: 2px solid #fff; outline-offset: 2px; }

/* v1.34.220.155 — Inline lead-capture mini-form. Sits in chat body as a card.
   Step-by-step (Name → Email → Mobile). Auto-focus, validation, skip option. */
.twwai-leadform { padding: 6px 12px; animation: twwai-lf-in .35s ease both; }
.twwai-leadform.twwai-leadform-done { opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .25s ease; }
.twwai-leadform-card {
  background: linear-gradient(135deg, #f7faf8 0%, #e8f5ec 100%);
  border: 1.5px solid #c7e8d2;
  border-radius: 18px;
  padding: 14px 16px 12px;
  box-shadow: 0 6px 20px rgba(15,122,62,.10);
}
.twwai-leadform-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.twwai-leadform-emoji { font-size: 18px; line-height: 1; }
.twwai-leadform-title { font-weight: 700; font-size: 14px; color: #0a3d22; flex: 1; line-height: 1.2; }
.twwai-leadform-step { font-size: 11px; font-weight: 600; color: #0f7a3e; background: #fff; padding: 4px 10px; border-radius: 999px; border: 1px solid #c7e8d2; white-space: nowrap; }
.twwai-leadform-body { margin-bottom: 10px; }
.twwai-leadform-input {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px; font-size: 15px; font-family: inherit;
  border: 1.5px solid #d4d4d8; border-radius: 12px;
  background: #fff; color: #111; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.twwai-leadform-input:focus { border-color: #0f7a3e; box-shadow: 0 0 0 3px rgba(15,122,62,.12); }
.twwai-leadform-err { color: #c11313; font-size: 12px; min-height: 14px; margin-top: 4px; font-weight: 500; }
/* v1.34.220.159 — pill-shaped buttons + centred actions row */
.twwai-leadform-actions { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 4px; }
.twwai-leadform-skip {
  background: #fff !important; border: 1.5px solid #e5e7eb !important; color: #64748b !important; cursor: pointer;
  font-size: 13px !important; font-weight: 600 !important;
  padding: 10px 22px !important; border-radius: 999px !important;
  transition: border-color .15s ease, color .15s ease, transform .12s ease;
  font-family: inherit !important;
}
.twwai-leadform-skip:hover { border-color: #cbd5e1 !important; color: #1a1a1a !important; transform: translateY(-1px); }
.twwai-leadform-next {
  background: linear-gradient(135deg, #16a34a 0%, #0a5e30 100%) !important;
  border: 0 !important; color: #fff !important; cursor: pointer;
  font-size: 14px !important; font-weight: 700 !important;
  padding: 12px 28px !important; border-radius: 999px !important;
  box-shadow: 0 6px 16px rgba(15,122,62,.30) !important;
  transition: transform .12s ease, box-shadow .12s ease;
  font-family: inherit !important;
  white-space: nowrap;
}
.twwai-leadform-next:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15,122,62,.40) !important; }
.twwai-leadform-progress { display: flex; gap: 4px; margin-top: 10px; justify-content: center; }
.twwai-leadform-progress i {
  width: 16px; height: 3px; border-radius: 999px;
  background: #d4d4d8; transition: background .2s ease;
}
.twwai-leadform-progress i.on { background: linear-gradient(90deg, #22c55e, #0f7a3e); }
.twwai-leadform-thanks .twwai-msg-bubble {
  background: linear-gradient(135deg, #f7faf8 0%, #e8f5ec 100%) !important;
  color: #0a3d22 !important; font-weight: 600;
}
@keyframes twwai-lf-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 480px) {
  .twwai-leadform-card { padding: 12px 14px; }
  .twwai-leadform-title { font-size: 13px; }
  .twwai-leadform-input { font-size: 16px; padding: 14px; } /* iOS no zoom */
}
