/* GardenPergola Online chat (widget + full-screen page). Wood palette of the site. */
#gzc-root, #gzc-root * { box-sizing: border-box; }
#gzc-root [hidden], .gzc-lb[hidden] { display: none !important; }
#gzc-root { --gz-dark: #3b281c; --gz-wood: #6b4a32; --gz-acc: #cd8f5c; --gz-bg: #faf6f1; --gz-line: #e8ddd2; --gz-text: #2b1f17;
  font-family: inherit; font-size: 15px; line-height: 1.45; color: var(--gz-text); }

/* launcher */
.gzc-launch { position: fixed; right: 26px; bottom: 26px; z-index: 99990; display: flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 11px; border: 0; border-radius: 999px; cursor: pointer; color: #fff; font: inherit; font-weight: 700; font-size: 14px;
  background: linear-gradient(145deg, #6b4a32, #3b281c); box-shadow: 0 18px 45px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .2s ease, box-shadow .2s ease; animation: gzcPulse 7s infinite; }
.gzc-launch:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(0,0,0,.55); }
.gzc-launch:focus-visible { outline: 3px solid var(--gz-acc); outline-offset: 3px; }
.gzc-launch-ic { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #8a6244, #5a3f2c); }
.gzc-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #c0392b;
  color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
@keyframes gzcPulse { 0% { box-shadow: 0 0 0 0 rgba(90,63,44,.55); } 70% { box-shadow: 0 0 0 16px rgba(90,63,44,0); } 100% { box-shadow: 0 0 0 0 rgba(90,63,44,0); } }
@media (prefers-reduced-motion: reduce) { .gzc-launch { animation: none; } .gzc-dots i { animation: none !important; } }
body.modal-open .gzc-launch { display: none; }

/* panel */
.gzc-panel { position: fixed; right: 24px; bottom: 24px; z-index: 99991; width: 390px; height: min(640px, calc(100vh - 48px));
  display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(30,18,10,.35); border: 1px solid rgba(0,0,0,.06); }
.gzc-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; color: #fff;
  background: linear-gradient(135deg, #4a3324, #24170f); flex-shrink: 0; }
.gzc-av { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: linear-gradient(145deg, var(--gz-acc), #9a6238); position: relative; }
.gzc-av::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 10px; height: 10px; border-radius: 50%; background: #3ecf6e; border: 2px solid #2a1b12; }
.gzc-wait .gzc-av::after { background: #f0b429; }
.gzc-titles { flex: 1; min-width: 0; }
.gzc-title { font-weight: 800; font-size: 16px; color: #fff; }
.gzc-sub { font-size: 12.5px; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gzc-tools { display: flex; gap: 2px; }
.gzc-ib { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gzc-ib:hover, .gzc-ib:focus-visible { background: rgba(255,255,255,.12); color: #fff; outline: none; }
.gzc-body { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--gz-bg); }

/* form */
.gzc-form { padding: 18px 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.gzc-intro { margin: 0 0 4px; color: #5a4636; font-size: 14.5px; }
.gzc-field { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13px; color: var(--gz-dark); }
.gzc-field input { font: inherit; font-size: 16px; font-weight: 400; padding: 11px 13px; border: 1px solid #d6c7b8; border-radius: 10px; background: #fff; color: var(--gz-text); width: 100%; }
.gzc-field input:focus { outline: none; border-color: var(--gz-acc); box-shadow: 0 0 0 3px rgba(205,143,92,.22); }
.gzc-field input.gzc-bad { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.15); }
.gzc-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #5a4636; cursor: pointer; }
.gzc-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--gz-wood); }
.gzc-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.gzc-err { color: #b03a2e; font-size: 13.5px; min-height: 1em; }
.gzc-err-c { padding: 0 14px 6px; background: #fff; }
.gzc-err:empty { display: none; }
.gzc-btn { font: inherit; font-weight: 700; font-size: 15px; padding: 13px 18px; border: 0; border-radius: 12px; cursor: pointer; color: #fff;
  background: linear-gradient(145deg, #7a563a, #3b281c); min-height: 48px; }
.gzc-btn:disabled { opacity: .7; cursor: progress; }
.gzc-btn:focus-visible { outline: 3px solid var(--gz-acc); outline-offset: 2px; }

/* messages */
.gzc-list { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.gzc-msg { display: flex; flex-direction: column; max-width: 86%; }
.gzc-client { align-self: flex-end; align-items: flex-end; }
.gzc-ai, .gzc-admin { align-self: flex-start; align-items: flex-start; }
.gzc-system { align-self: center; max-width: 94%; }
.gzc-who { font-size: 11.5px; font-weight: 700; color: #8a6a52; margin: 0 0 3px 4px; text-transform: uppercase; letter-spacing: .04em; }
.gzc-admin .gzc-who { color: #2f7a4a; }
.gzc-bubble { padding: 10px 13px; border-radius: 16px; background: #fff; border: 1px solid var(--gz-line); word-wrap: break-word; overflow-wrap: anywhere; }
.gzc-client .gzc-bubble { background: linear-gradient(145deg, #6b4a32, #4a3324); color: #fff; border: 0; border-bottom-right-radius: 5px; }
.gzc-ai .gzc-bubble { border-bottom-left-radius: 5px; }
.gzc-admin .gzc-bubble { border-bottom-left-radius: 5px; background: #eef7f0; border-color: #cfe6d6; }
.gzc-text { white-space: pre-wrap; }
.gzc-bubble > * + .gzc-text { margin-top: 8px; }
.gzc-a { color: #9a5b2c; font-weight: 600; text-decoration: underline; }
.gzc-client .gzc-a { color: #ffe2c6; }
.gzc-time { font-size: 11px; color: #a08b7a; margin: 3px 6px 0; }
.gzc-sys { font-size: 13px; color: #6b5444; background: #f3e7da; border: 1px dashed #dcc5ae; padding: 8px 12px; border-radius: 12px; text-align: center; }
.gzc-up .gzc-bubble { opacity: .7; font-style: italic; }
.gzc-img { display: block; border-radius: 10px; overflow: hidden; line-height: 0; background: #eee; max-width: 240px; }
.gzc-img img { display: block; max-width: 100%; height: auto; }
.gzc-file { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; text-decoration: none; min-width: 200px; max-width: 260px;
  background: rgba(255,255,255,.95); border: 1px solid var(--gz-line); color: var(--gz-text); }
.gzc-client .gzc-file { color: var(--gz-text); }
.gzc-fic { color: #c0392b; flex-shrink: 0; display: flex; }
.gzc-file-text .gzc-fic { color: #5a6b7a; }
.gzc-fmeta { display: flex; flex-direction: column; min-width: 0; }
.gzc-fname { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gzc-finfo { font-size: 12px; color: #8a7666; }
.gzc-fsnip { font-size: 12px; color: #5a4636; margin-top: 3px; font-family: ui-monospace, Consolas, monospace; max-height: 3.2em; overflow: hidden; }
.gzc-fdl { font-size: 12px; font-weight: 700; color: #9a5b2c; margin-top: 2px; }
.gzc-bubble audio { max-width: 240px; }
.gzc-typing { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #8a7666; padding: 0 16px 6px; }
.gzc-dots { display: inline-flex; gap: 3px; background: #fff; border: 1px solid var(--gz-line); border-radius: 12px; padding: 7px 9px; }
.gzc-dots i { width: 6px; height: 6px; border-radius: 50%; background: #b39780; animation: gzcDot 1.2s infinite ease-in-out; }
.gzc-dots i:nth-child(2) { animation-delay: .15s; } .gzc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes gzcDot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.gzc-hint { margin: 0 12px 8px; padding: 9px 12px; font-size: 12.5px; color: #5a4636; background: #fff8ec; border: 1px solid #f0dcc0; border-radius: 10px; }
.gzc-link { border: 0; background: none; color: #9a5b2c; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }
.gzc-bar { display: flex; gap: 8px; padding: 0 12px 8px; }
.gzc-chip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; padding: 8px 12px; min-height: 36px;
  border-radius: 999px; border: 1px solid #d9c3ad; background: #fff; color: var(--gz-wood); cursor: pointer; }
.gzc-chip:hover { background: #fbf1e6; }
.gzc-comp { display: flex; align-items: flex-end; gap: 6px; padding: 10px; background: #fff; border-top: 1px solid var(--gz-line);
  padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.gzc-attach { color: var(--gz-wood) !important; }
.gzc-attach:hover { background: #f5ebe1 !important; }
.gzc-input { flex: 1; font: inherit; font-size: 16px; resize: none; border: 1px solid #d6c7b8; border-radius: 14px; padding: 10px 12px; max-height: 140px;
  min-height: 44px; background: #fdfbf8; color: var(--gz-text); }
.gzc-input:focus { outline: none; border-color: var(--gz-acc); box-shadow: 0 0 0 3px rgba(205,143,92,.2); }
.gzc-send { width: 44px; height: 44px; border: 0; border-radius: 50%; flex-shrink: 0; cursor: pointer; color: #fff;
  background: linear-gradient(145deg, var(--gz-acc), #8f5a32); display: flex; align-items: center; justify-content: center; }
.gzc-send:focus-visible { outline: 3px solid var(--gz-dark); outline-offset: 2px; }
.gzc-toast { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); background: #2b1f17; color: #fff; padding: 8px 14px; border-radius: 10px; font-size: 13px; }
.gzc-panel { position: fixed; }
.gzc-expired { padding: 30px 20px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.gzc-lb { position: fixed; inset: 0; z-index: 100000; background: rgba(15,10,6,.88); display: flex; align-items: center; justify-content: center; padding: 20px; }
.gzc-lb img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.gzc-lb-x { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.12) !important; color: #fff !important; width: 44px; height: 44px; border: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* phones: the widget becomes full screen */
@media (max-width: 600px) {
  .gzc-launch { right: 14px; bottom: 14px; padding: 9px 16px 9px 9px; font-size: 13px; gap: 9px; }
  .gzc-launch-ic { width: 32px; height: 32px; }
  .gzc-panel { right: 0; bottom: 0; left: 0; top: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
  html.gzc-open, html.gzc-open body { overflow: hidden; }
  .gzc-msg { max-width: 90%; }
}

/* full-screen page /chat/<token> */
body.gzc-page { margin: 0; background: #efe6dc; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.gzc-full .gzc-panel-page { position: static; width: 100%; max-width: 820px; height: 100vh; height: 100dvh; margin: 0 auto; border-radius: 0; box-shadow: 0 0 60px rgba(0,0,0,.12); }
@media (min-width: 900px) { .gzc-full .gzc-panel-page { height: calc(100dvh - 40px); margin: 20px auto; border-radius: 18px; } }

/* the shop theme styles every <button> (padding 16px 42px, uppercase …): reset inside the chat */
#gzc-root button, .gzc-lb button { padding: 0; margin: 0; min-width: 0; min-height: 0; line-height: 1.2; text-transform: none; letter-spacing: normal; box-shadow: none; }
#gzc-root svg, .gzc-lb svg { flex: none; display: block; }
#gzc-root .gzc-launch { padding: 11px 20px 11px 11px; box-shadow: 0 18px 45px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06); }
#gzc-root .gzc-btn { padding: 13px 18px; min-height: 48px; }
#gzc-root .gzc-chip { padding: 8px 12px; min-height: 36px; }
#gzc-root .gzc-ib, #gzc-root .gzc-send { width: 44px; height: 44px; padding: 0; }
#gzc-root .gzc-titles .gzc-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { #gzc-root .gzc-launch { padding: 9px 16px 9px 9px; } }

/* GP Girts r2: headset launcher icon + one-time tooltip (desktop only, see chat.js tipOnce) */
#gzc-root .gzc-launch-ic svg { width: 22px; height: 22px; }
.gzc-tip { position: fixed; right: 26px; bottom: 94px; z-index: 99990; display: flex; align-items: center; gap: 6px; max-width: 260px;
  padding: 8px 6px 8px 14px; border-radius: 14px; background: #fff; color: var(--gz-text); font-weight: 600; font-size: 14px;
  box-shadow: 0 10px 30px rgba(30,18,10,.25); border: 1px solid var(--gz-line); }
.gzc-tip::after { content: ""; position: absolute; right: 34px; bottom: -7px; width: 12px; height: 12px; background: #fff;
  border-right: 1px solid var(--gz-line); border-bottom: 1px solid var(--gz-line); transform: rotate(45deg); }
#gzc-root .gzc-tip-x { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #7a6656; font-size: 20px; cursor: pointer; }
#gzc-root .gzc-tip-x:hover { background: var(--gz-bg); }
html.gzc-open .gzc-tip, body.modal-open .gzc-tip { display: none; }
@media (max-width: 600px) { .gzc-tip { display: none; } }
/* /GP Girts r2 */
