/* GrowthFlint Project Desk v3.7.6 - Viewport-safe human support motion + instant-send polish.
 * First-party presentation only. Project Desk remains the backend/session/
 * WhatsApp/payment authority. All interactive states are scoped so Elementor,
 * theme or WordPress global button styles cannot leak into the widget.
 */

.gfpd-webchat,
.gfpd-webchat * { box-sizing:border-box; }

.gfpd-webchat {
  --wc-bg:#070707;
  --wc-panel:#0d0d0f;
  --wc-surface:#121214;
  --wc-surface-2:#171719;
  --wc-surface-3:#1c1c1f;
  --wc-border:rgba(255,255,255,.10);
  --wc-border-strong:rgba(255,255,255,.18);
  --wc-text:#f7f5f1;
  --wc-muted:#aaa59e;
  --wc-soft:#7c7771;
  --wc-accent:#ff5d1f;
  --wc-accent-2:#ff9a30;
  --wc-accent-soft:rgba(255,93,31,.12);
  --wc-accent-soft-2:rgba(255,154,48,.08);
  --wc-focus:rgba(255,93,31,.28);
  --wc-user:#f4f1eb;
  --wc-user-text:#111113;
  --wc-danger:#ff6b5f;
  --wc-shadow:0 34px 90px rgba(0,0,0,.52),0 12px 30px rgba(0,0,0,.30);
  position:fixed;
  right:max(22px,env(safe-area-inset-right));
  bottom:max(20px,env(safe-area-inset-bottom));
  z-index:99920;
  font-family:var(--gf3-font-body,"Manrope",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif);
  color:var(--wc-text);
  pointer-events:none;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

html[data-gf-theme="light"] .gfpd-webchat,
html[data-pf7-theme="light"] .gfpd-webchat,
html[data-pf-theme="light"] .gfpd-webchat {
  --wc-bg:#fbfaf7;
  --wc-panel:#fffdf9;
  --wc-surface:#f6f2eb;
  --wc-surface-2:#eee9e1;
  --wc-surface-3:#e8e1d8;
  --wc-border:rgba(24,20,16,.10);
  --wc-border-strong:rgba(24,20,16,.18);
  --wc-text:#171310;
  --wc-muted:#625d57;
  --wc-soft:#8a837b;
  --wc-accent:#e94b14;
  --wc-accent-2:#ff852a;
  --wc-accent-soft:rgba(233,75,20,.09);
  --wc-accent-soft-2:rgba(255,133,42,.06);
  --wc-focus:rgba(233,75,20,.22);
  --wc-user:#171310;
  --wc-user-text:#fffaf4;
  --wc-shadow:0 32px 82px rgba(50,35,24,.18),0 9px 28px rgba(50,35,24,.10);
}

.gfpd-webchat[hidden],
.gfpd-webchat [hidden] { display:none!important; }

/* Hard reset against Elementor/theme/global button leaks. */
.gfpd-webchat button,
.gfpd-webchat input,
.gfpd-webchat textarea {
  font-family:inherit!important;
  text-transform:none!important;
  letter-spacing:normal!important;
  text-shadow:none!important;
}
.gfpd-webchat button {
  -webkit-appearance:none!important;
  appearance:none!important;
  margin:0!important;
  text-decoration:none!important;
  cursor:pointer!important;
  outline:0;
}
.gfpd-webchat button::before,
.gfpd-webchat button::after { box-sizing:border-box; }
.gfpd-webchat button:hover,
.gfpd-webchat button:focus,
.gfpd-webchat button:active { text-decoration:none!important; }

.gfpd-webchat[data-gfpd-launcher-state="pending"] { opacity:0;visibility:hidden;transform:translateY(12px) scale(.96); }
.gfpd-webchat[data-gfpd-launcher-state="ready"] { opacity:1;visibility:visible;transform:none;transition:opacity .28s ease,transform .32s cubic-bezier(.16,1,.3,1); }

/* Launcher - compact product control, not a promotional pill. */
.gfpd-webchat__launcher {
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  width:68px!important;
  height:68px!important;
  min-width:68px!important;
  min-height:68px!important;
  padding:0!important;
  border:1px solid rgba(255,93,31,.52)!important;
  border-radius:21px!important;
  background:linear-gradient(145deg,#111113,#080809)!important;
  background-image:linear-gradient(145deg,#111113,#080809)!important;
  color:#fff!important;
  box-shadow:0 20px 52px rgba(0,0,0,.40),0 0 0 1px rgba(255,255,255,.035) inset!important;
  pointer-events:auto!important;
  cursor:pointer!important;
  isolation:isolate;
  overflow:hidden!important;
  transform:translateZ(0);
  backface-visibility:hidden;
  will-change:transform,box-shadow;
  transition:transform .28s cubic-bezier(.16,1,.3,1),border-color .22s ease,box-shadow .28s ease!important;
}
.gfpd-webchat__launcher::before {
  content:"";
  position:absolute;
  inset:-1px;
  z-index:-1;
  border-radius:inherit;
  background:radial-gradient(circle at 20% 10%,rgba(255,154,48,.20),transparent 42%),#0b0b0c!important;
  opacity:1;
}
.gfpd-webchat__launcher::after {
  content:"";
  position:absolute;
  top:-30%;
  bottom:-30%;
  left:-55%;
  width:34%;
  border-radius:40%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.30),transparent)!important;
  transform:rotate(16deg) translateX(-220%);
  opacity:0;
  pointer-events:none;
}
.gfpd-webchat__launcher > * { pointer-events:none!important; }
.gfpd-webchat__launcher-icon {
  position:relative;
  display:block;
  width:52px;
  height:52px;
  border-radius:16px;
  overflow:hidden;
  background:#0a0a0b;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}
.gfpd-webchat__launcher-icon img { display:block;width:100%;height:100%;object-fit:cover;transform:scale(1);transition:transform .28s cubic-bezier(.16,1,.3,1),filter .22s ease; }
.gfpd-webchat__badge {
  position:absolute;
  top:5px;
  left:5px;
  display:grid;
  place-items:center;
  min-width:19px;
  height:19px;
  padding:0 4px;
  border:2px solid #0b0b0c;
  border-radius:7px;
  background:linear-gradient(135deg,var(--wc-accent),var(--wc-accent-2));
  color:#17110d;
  font:900 9px/1 "Manrope",sans-serif;
}
.gfpd-webchat__badge[hidden] { display:none!important; }

.gfpd-webchat__launcher:hover {
  cursor:pointer!important;
  background:linear-gradient(145deg,#151516,#09090a)!important;
  background-image:linear-gradient(145deg,#151516,#09090a)!important;
  border-color:rgba(255,93,31,.92)!important;
  color:#fff!important;
  transform:translateY(-5px) scale(1.045)!important;
  box-shadow:0 30px 76px rgba(0,0,0,.50),0 0 0 5px var(--wc-accent-soft),0 0 32px rgba(255,93,31,.16)!important;
}
.gfpd-webchat__launcher:hover .gfpd-webchat__launcher-icon img { transform:scale(1.055);filter:saturate(1.05) contrast(1.02); }
.gfpd-webchat__launcher:hover::after { opacity:1;animation:gfpdChatSheen .72s cubic-bezier(.16,1,.3,1); }
.gfpd-webchat__launcher:focus-visible { outline:3px solid var(--wc-focus)!important;outline-offset:4px; }
.gfpd-webchat__launcher:active { transform:translateY(-1px) scale(.98)!important;background:#0b0b0c!important;color:#fff!important; }
.gfpd-webchat.is-open .gfpd-webchat__launcher,
.gfpd-webchat.is-closing .gfpd-webchat__launcher { opacity:0;visibility:hidden;transform:scale(.88)!important;pointer-events:none; }

/* Main panel */
.gfpd-webchat__panel {
  position:fixed;
  right:max(18px,env(safe-area-inset-right));
  bottom:max(16px,env(safe-area-inset-bottom));
  top:auto;
  display:flex;
  flex-direction:column;
  width:min(440px,calc(100vw - 36px));
  height:min(710px,calc(100dvh - 32px));
  max-height:calc(100dvh - 32px);
  min-height:0;
  border:1px solid var(--wc-border-strong);
  border-radius:26px;
  background:radial-gradient(700px 280px at 18% -14%,rgba(255,93,31,.13),transparent 56%),var(--wc-panel);
  box-shadow:var(--wc-shadow);
  overflow:hidden;
  pointer-events:auto;
  opacity:0;
  visibility:hidden;
  transform:translate3d(0,18px,0) scale(.972);
  transform-origin:100% 100%;
  backface-visibility:hidden;
  will-change:transform,opacity;
  transition:opacity .28s ease,transform .38s cubic-bezier(.16,1,.3,1),visibility 0s linear .38s;
}
.gfpd-webchat.is-open .gfpd-webchat__panel {
  opacity:1;
  visibility:visible;
  transform:translate3d(0,0,0) scale(1);
  transition:opacity .28s ease,transform .38s cubic-bezier(.16,1,.3,1),visibility 0s linear 0s;
}
.gfpd-webchat.is-closing .gfpd-webchat__panel {
  opacity:0;
  visibility:visible;
  transform:translate3d(0,14px,0) scale(.975);
}
body.admin-bar .gfpd-webchat__panel {
  height:min(710px,calc(100dvh - 70px));
  max-height:calc(100dvh - 70px);
}

.gfpd-webchat__head {
  position:relative;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:94px;
  padding:17px 18px 16px;
  border-bottom:1px solid var(--wc-border);
  background:linear-gradient(180deg,rgba(255,255,255,.026),transparent);
}
.gfpd-webchat__head-brand { display:flex;align-items:center;gap:12px;min-width:0; }
.gfpd-webchat__head-icon {
  display:block;width:50px;height:50px;flex:0 0 50px;border-radius:15px;overflow:hidden;background:#0a0a0b;
  box-shadow:0 0 0 1px rgba(255,93,31,.30),0 9px 22px rgba(0,0,0,.22);
}
.gfpd-webchat__head-icon img { display:block;width:100%;height:100%;object-fit:cover; }
.gfpd-webchat__head-copy { min-width:0;display:flex;flex-direction:column;gap:2px; }
.gfpd-webchat__eyebrow { color:var(--wc-accent);font-size:9.5px;font-weight:850;letter-spacing:.11em;line-height:1.2;text-transform:uppercase; }
.gfpd-webchat__head-copy strong { color:var(--wc-text);font-family:var(--gf3-font-display,"Sora",sans-serif);font-size:18px;font-weight:760;letter-spacing:-.045em;line-height:1.13;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.gfpd-webchat__head-copy small { display:flex;align-items:center;gap:7px;color:var(--wc-muted);font-size:10.5px;font-weight:600;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.gfpd-webchat__online-dot { width:7px;height:7px;flex:0 0 7px;border-radius:2px;background:var(--wc-accent);box-shadow:0 0 0 4px var(--wc-accent-soft); }

.gfpd-webchat__close {
  display:grid!important;place-items:center!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;flex:0 0 40px!important;padding:0!important;
  border:1px solid var(--wc-border)!important;border-radius:13px!important;background:transparent!important;background-image:none!important;color:var(--wc-muted)!important;
  box-shadow:none!important;cursor:pointer!important;transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease!important;
}
.gfpd-webchat__close > * { pointer-events:none!important; }
.gfpd-webchat__close svg { width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round; }
.gfpd-webchat__close:hover { cursor:pointer!important;background:var(--wc-accent)!important;background-image:none!important;border-color:var(--wc-accent)!important;color:#15100d!important;box-shadow:0 9px 22px rgba(255,93,31,.18)!important;transform:translateY(-1px) scale(1.035)!important; }
.gfpd-webchat__close:focus-visible { outline:3px solid var(--wc-focus)!important;outline-offset:2px; }
.gfpd-webchat__close:active { background:var(--wc-accent-2)!important;color:#15100d!important;transform:translateY(0)!important; }

.gfpd-webchat__status { flex:0 0 auto;min-height:0;padding:0 18px;color:var(--wc-muted);font-size:10.5px;font-weight:650;line-height:1.35;transition:padding .2s ease,min-height .2s ease; }
.gfpd-webchat__status:not(:empty) { min-height:34px;padding-top:10px;padding-bottom:7px;border-bottom:1px solid var(--wc-border);animation:gfpdChatStatusIn .2s ease both; }

/* Identity */
.gfpd-webchat__identity {
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  padding:18px 20px 22px;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,93,31,.58) transparent;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.gfpd-webchat__identity::-webkit-scrollbar,.gfpd-webchat__messages::-webkit-scrollbar { width:7px; }
.gfpd-webchat__identity::-webkit-scrollbar-thumb,.gfpd-webchat__messages::-webkit-scrollbar-thumb { border-radius:99px;background:rgba(255,93,31,.54); }

.gfpd-webchat__welcome { padding:18px;border:1px solid var(--wc-border);border-radius:18px;background:linear-gradient(145deg,var(--wc-surface),rgba(255,255,255,.016));margin-bottom:17px; }
.gfpd-webchat__welcome-kicker { display:block;color:var(--wc-accent);font-size:9px;font-weight:850;letter-spacing:.115em;text-transform:uppercase;margin-bottom:7px; }
.gfpd-webchat__welcome h3 { margin:0;color:var(--wc-text);font-family:var(--gf3-font-display,"Sora",sans-serif);font-size:22px;font-weight:760;letter-spacing:-.05em;line-height:1.09; }
.gfpd-webchat__welcome p { margin:9px 0 0;color:var(--wc-muted);font-size:12px;line-height:1.55; }
.gfpd-webchat__capabilities { display:grid;grid-template-columns:1fr;gap:0;margin-top:14px;border-top:1px solid var(--wc-border); }
.gfpd-webchat__capabilities span { display:flex;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid var(--wc-border);color:var(--wc-muted);font-size:10.5px;font-weight:650; }
.gfpd-webchat__capabilities span:last-child { border-bottom:0;padding-bottom:0; }
.gfpd-webchat__capabilities b { display:grid;place-items:center;width:24px;height:24px;border:1px solid rgba(255,93,31,.26);border-radius:7px;background:var(--wc-accent-soft);color:var(--wc-accent);font-size:8px;font-weight:900; }

.gfpd-webchat__identity form { display:grid;gap:13px; }
.gfpd-webchat__identity label:not(.gfpd-webchat__check) { display:grid;gap:7px;color:var(--wc-text);font-size:11px;font-weight:780; }
.gfpd-webchat__label-row { display:flex;align-items:center;justify-content:space-between;gap:10px; }
.gfpd-webchat__optional { color:var(--wc-soft);font-size:9.5px;font-style:normal;font-weight:650; }
.gfpd-webchat input,.gfpd-webchat textarea {
  width:100%;border:1px solid var(--wc-border-strong)!important;border-radius:14px!important;background:rgba(5,5,6,.42)!important;background-image:none!important;color:var(--wc-text)!important;
  box-shadow:none!important;outline:none!important;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease!important;
}
html[data-gf-theme="light"] .gfpd-webchat input,html[data-gf-theme="light"] .gfpd-webchat textarea { background:rgba(255,255,255,.72)!important; }
.gfpd-webchat input { min-height:54px;padding:0 14px;font-size:15px;font-weight:560; }
.gfpd-webchat textarea { padding:12px 13px;font-size:14px;font-weight:560;line-height:1.45;resize:none; }
.gfpd-webchat input::placeholder,.gfpd-webchat textarea::placeholder { color:var(--wc-soft)!important;opacity:1; }
.gfpd-webchat input:hover,.gfpd-webchat textarea:hover { border-color:rgba(255,93,31,.34)!important; }
.gfpd-webchat input:focus,.gfpd-webchat textarea:focus { border-color:rgba(255,93,31,.88)!important;box-shadow:0 0 0 4px var(--wc-focus)!important;background:var(--wc-surface)!important; }

.gfpd-webchat__check { display:grid!important;grid-template-columns:22px 1fr;align-items:start;gap:9px;color:var(--wc-muted)!important;font-size:10.5px!important;font-weight:590!important;line-height:1.45!important;cursor:pointer; }
.gfpd-webchat__check input { -webkit-appearance:none!important;appearance:none!important;width:20px!important;height:20px!important;min-height:20px!important;margin:0!important;padding:0!important;border:1px solid var(--wc-border-strong)!important;border-radius:6px!important;background:transparent!important;display:grid;place-items:center; }
.gfpd-webchat__check input:checked { border-color:var(--wc-accent)!important;background:var(--wc-accent)!important;box-shadow:0 0 0 3px var(--wc-accent-soft)!important; }
.gfpd-webchat__check input:checked::after { content:"";width:8px;height:4px;border-left:2px solid #17110d;border-bottom:2px solid #17110d;transform:rotate(-45deg) translateY(-1px); }
.gfpd-webchat__check input:focus-visible { outline:3px solid var(--wc-focus)!important;outline-offset:2px; }
@media (hover:hover) and (pointer:fine){.gfpd-webchat__check:hover input{border-color:rgba(255,93,31,.52)!important;box-shadow:0 0 0 3px rgba(255,93,31,.08)!important;}}
.gfpd-webchat__hp { position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important; }

.gfpd-webchat__primary {
  position:relative!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;width:100%!important;min-height:58px!important;padding:8px 9px 8px 17px!important;
  border:0!important;border-radius:15px!important;background:linear-gradient(100deg,var(--wc-accent),var(--wc-accent-2))!important;background-image:linear-gradient(100deg,var(--wc-accent),var(--wc-accent-2))!important;
  color:#17110d!important;font-size:13px!important;font-weight:850!important;line-height:1!important;box-shadow:0 12px 26px rgba(255,93,31,.15)!important;overflow:hidden!important;
  transition:transform .2s cubic-bezier(.16,1,.3,1),box-shadow .2s ease,filter .2s ease!important;
}
.gfpd-webchat__primary::before { content:"";position:absolute;top:-70%;bottom:-70%;left:-25%;width:18%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.42),transparent)!important;transform:rotate(16deg) translateX(-420%);pointer-events:none; }
.gfpd-webchat__primary svg { position:relative;width:42px;height:42px;flex:0 0 42px;padding:11px;border-radius:12px;background:rgba(20,14,10,.72);fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
@media (hover:hover) and (pointer:fine) {
  .gfpd-webchat__primary:hover { background:linear-gradient(100deg,#ff6a24,#ffa238)!important;background-image:linear-gradient(100deg,#ff6a24,#ffa238)!important;color:#17110d!important;transform:translateY(-2px)!important;box-shadow:0 17px 36px rgba(255,93,31,.23)!important;filter:saturate(1.03)!important; }
  .gfpd-webchat__primary:hover::before { animation:gfpdChatSheen .72s cubic-bezier(.16,1,.3,1); }
}
.gfpd-webchat__primary:focus-visible { outline:3px solid var(--wc-focus)!important;outline-offset:2px; }
.gfpd-webchat__primary:active { transform:translateY(0)!important;filter:none!important; }

.gfpd-webchat__security-note { display:grid;grid-template-columns:22px 1fr;gap:10px;margin-top:17px;padding:13px 14px;border:1px solid rgba(255,93,31,.27);border-radius:15px;background:var(--wc-accent-soft);color:var(--wc-muted);font-size:10.5px;line-height:1.5; }
.gfpd-webchat__security-note svg { width:19px;height:19px;fill:none;stroke:var(--wc-accent);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }


/* Conversation */
.gfpd-webchat__conversation { flex:1 1 auto;min-height:0;display:flex;flex-direction:column;background:var(--wc-bg); }
.gfpd-webchat__conversation-top { flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 16px;border-bottom:1px solid var(--wc-border);background:rgba(255,255,255,.018); }
.gfpd-webchat__conversation-top>div { min-width:0;display:flex;flex-direction:column;gap:2px; }
.gfpd-webchat__conversation-top strong { font-size:11.5px;font-weight:820;color:var(--wc-text); }
.gfpd-webchat__conversation-top span { color:var(--wc-muted);font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.gfpd-webchat__human-link {
  display:inline-flex!important;align-items:center!important;gap:7px!important;flex:0 0 auto!important;padding:7px 9px!important;border:1px solid var(--wc-border)!important;border-radius:10px!important;background:transparent!important;background-image:none!important;color:var(--wc-muted)!important;font-size:9.5px!important;font-weight:780!important;box-shadow:none!important;transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease!important;
}
.gfpd-webchat__human-link svg { width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
@media (hover:hover) and (pointer:fine){.gfpd-webchat__human-link:hover{background:var(--wc-accent-soft)!important;border-color:rgba(255,93,31,.46)!important;color:var(--wc-accent)!important;transform:translateY(-1px)!important;}}
.gfpd-webchat__human-link:focus-visible { outline:3px solid var(--wc-focus)!important;outline-offset:2px; }

.gfpd-webchat__messages { flex:1 1 auto;min-height:0;overflow-y:auto;padding:17px 15px 12px;scrollbar-width:thin;scrollbar-color:rgba(255,93,31,.55) transparent;scroll-behavior:smooth;overscroll-behavior:contain;-webkit-overflow-scrolling:touch; }
.gfpd-webchat__empty { min-height:100%;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:8px 2px 18px; }
.gfpd-webchat__empty-kicker { margin-bottom:7px;color:var(--wc-accent)!important;font-size:8.5px!important;font-weight:850!important;letter-spacing:.12em;text-transform:uppercase; }
.gfpd-webchat__empty>strong { color:var(--wc-text);font-family:var(--gf3-font-display,"Sora",sans-serif);font-size:21px;font-weight:760;letter-spacing:-.045em;line-height:1.15; }
.gfpd-webchat__empty>span:not(.gfpd-webchat__empty-kicker) { margin-top:7px;color:var(--wc-muted);font-size:11px;line-height:1.5;max-width:350px; }

.gfpd-webchat__msg-row { display:flex;align-items:flex-end;gap:8px;margin:0 0 13px; }
.gfpd-webchat__msg-row.is-in { justify-content:flex-end; }
.gfpd-webchat__msg-row.is-out { justify-content:flex-start; }
.gfpd-webchat__msg-avatar { width:29px;height:29px;flex:0 0 29px;border-radius:10px;overflow:hidden;border:1px solid rgba(255,93,31,.28);background:#0b0b0c; }
.gfpd-webchat__msg-avatar img { width:100%;height:100%;display:block;object-fit:cover; }
.gfpd-webchat__bubble { max-width:82%;padding:10px 12px;border-radius:15px;font-size:11.5px;line-height:1.5;overflow-wrap:anywhere; }
.gfpd-webchat__bubble.is-in { border:1px solid rgba(255,255,255,.08);border-bottom-right-radius:5px;background:var(--wc-user);color:var(--wc-user-text); }
.gfpd-webchat__msg-row.is-pending .gfpd-webchat__bubble.is-in { opacity:.78;transform:translateY(2px); }
.gfpd-webchat__msg-row.is-pending .gfpd-webchat__bubble small { opacity:.72; }
.gfpd-webchat__bubble.is-out { border:1px solid var(--wc-border);border-bottom-left-radius:5px;background:var(--wc-surface);color:var(--wc-text); }
.gfpd-webchat__bubble small { display:block;margin-top:6px;font-size:8px;opacity:.60; }
.gfpd-webchat__support-meta { display:block;margin-bottom:5px;color:var(--wc-accent);font-size:8px;font-weight:850;letter-spacing:.08em;text-transform:uppercase; }


.gfpd-webchat__composer { flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:8px;align-items:end;padding:10px 12px;border-top:1px solid var(--wc-border);background:rgba(9,9,10,.94);backdrop-filter:blur(14px); }
html[data-gf-theme="light"] .gfpd-webchat__composer { background:rgba(255,253,249,.94); }
.gfpd-webchat__input-shell { min-width:0; }
.gfpd-webchat__composer textarea { min-height:46px;max-height:118px;border-radius:13px!important;padding:12px 12px!important; }
.gfpd-webchat__send {
  position:relative!important;display:grid!important;place-items:center!important;width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;padding:0!important;border:0!important;border-radius:13px!important;
  background:linear-gradient(135deg,var(--wc-accent),var(--wc-accent-2))!important;background-image:linear-gradient(135deg,var(--wc-accent),var(--wc-accent-2))!important;color:#17110d!important;box-shadow:none!important;overflow:hidden!important;
  transition:transform .18s cubic-bezier(.16,1,.3,1),box-shadow .18s ease,opacity .18s ease!important;
}
.gfpd-webchat__send::before { content:"";position:absolute;top:-80%;bottom:-80%;left:-30%;width:22%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.40),transparent)!important;transform:rotate(18deg) translateX(-420%); }
.gfpd-webchat__send svg { width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round; }
.gfpd-webchat__send:disabled { opacity:.36!important;cursor:not-allowed!important;filter:grayscale(.22)!important; }
@media (hover:hover) and (pointer:fine){.gfpd-webchat__send:hover:not(:disabled){background:linear-gradient(135deg,#ff6b24,#ffa238)!important;color:#17110d!important;transform:translateY(-2px)!important;box-shadow:0 11px 26px rgba(255,93,31,.22)!important;}.gfpd-webchat__send:hover:not(:disabled)::before{animation:gfpdChatSheen .65s cubic-bezier(.16,1,.3,1);}}
.gfpd-webchat__send:focus-visible { outline:3px solid var(--wc-focus)!important;outline-offset:2px; }

.gfpd-webchat__privacy { flex:0 0 auto;padding:7px 14px 10px;color:var(--wc-soft);font-size:8.4px;line-height:1.4;background:var(--wc-bg); }
.gfpd-webchat__privacy a { color:var(--wc-muted);text-decoration:underline;text-decoration-color:rgba(255,93,31,.42);text-underline-offset:2px; }
@media (hover:hover) and (pointer:fine){.gfpd-webchat__privacy a:hover{color:var(--wc-accent);}}

.gfpd-webchat.is-busy .gfpd-webchat__primary,
.gfpd-webchat.is-obscured { opacity:0!important;visibility:hidden!important;pointer-events:none!important; }
body.gfpd-webchat-open { overflow:hidden!important;overscroll-behavior:none; }

@keyframes gfpdChatOpen { from{opacity:0;transform:translateY(18px) scale(.972)} to{opacity:1;transform:none} }
@keyframes gfpdChatClose { from{opacity:1;transform:none} to{opacity:0;transform:translateY(14px) scale(.975)} }
@keyframes gfpdChatSheen { from{transform:rotate(16deg) translateX(-420%)} to{transform:rotate(16deg) translateX(650%)} }
@keyframes gfpdChatStatusIn { from{opacity:.25} to{opacity:1} }

@media (max-width:680px) {
  .gfpd-webchat { right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom)); }
  .gfpd-webchat__launcher { width:62px!important;height:62px!important;min-width:62px!important;min-height:62px!important;border-radius:19px!important; }
  .gfpd-webchat__launcher-icon { width:48px;height:48px;border-radius:15px; }
  .gfpd-webchat__panel { position:fixed;right:8px;left:8px;bottom:max(8px,env(safe-area-inset-bottom));width:auto;height:min(760px,calc(100dvh - 16px));max-height:calc(100dvh - 16px);min-height:0;border-radius:23px;transform-origin:50% 100%; }
  .gfpd-webchat__head { min-height:86px;padding:14px; }
  .gfpd-webchat__head-icon { width:46px;height:46px;flex-basis:46px;border-radius:14px; }
  .gfpd-webchat__head-copy strong { font-size:17px; }
  .gfpd-webchat__head-copy small { font-size:9.5px;max-width:245px; }
  .gfpd-webchat__identity { padding:15px 16px max(20px,env(safe-area-inset-bottom)); }
  .gfpd-webchat__welcome { padding:16px;margin-bottom:15px; }
  .gfpd-webchat__welcome h3 { font-size:20px; }
  .gfpd-webchat input,.gfpd-webchat textarea { font-size:16px!important; }
  .gfpd-webchat__conversation-top { padding:10px 12px; }
  .gfpd-webchat__messages { padding:14px 12px 10px; }
  .gfpd-webchat__composer { padding:9px 10px max(9px,env(safe-area-inset-bottom)); }
  .gfpd-webchat__privacy { padding-bottom:max(8px,env(safe-area-inset-bottom)); }
}

@media (max-width:782px) {
  body.admin-bar .gfpd-webchat__panel { height:min(760px,calc(100dvh - 62px));max-height:calc(100dvh - 62px); }
}

@media (max-width:420px) {
  .gfpd-webchat__head-copy small { max-width:200px; }
  .gfpd-webchat__head-copy strong { font-size:16px; }
  .gfpd-webchat__close { width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important; }
  .gfpd-webchat__bubble { max-width:88%; }
}

@media (prefers-reduced-motion:reduce) {
  .gfpd-webchat *, .gfpd-webchat *::before, .gfpd-webchat *::after { animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important; }
}

/* Final pseudo-element isolation from theme button systems. */
.gfpd-webchat__close::before,.gfpd-webchat__close::after,
.gfpd-webchat__human-link::before,.gfpd-webchat__human-link::after,
.gfpd-webchat__primary::after,.gfpd-webchat__send::after { content:none!important;display:none!important; }
.gfpd-webchat__close,.gfpd-webchat__human-link { filter:none!important; }
