/* CHATWEB1 (4. 12. 2026) — bublina „Napíšte nám“ na webe; vzhľad = Studio (StudioChatWidget, NAPISTENAM2): zelený kruh 56 px
 * s ikonou človeka, PC karta 384 px nad bublinou, telefón (≤ 699 px) okno cez celú obrazovku. Výšku nad spodkom (--gg-chat-b)
 * počíta chat-web.js (uhne sa pevným pásom Do košíka / Kúpiť, cookies, „Chcem návrh zadarmo“). Farby = zelená Studia. */
.gg-chat { --gg-chat-g: #059669; --gg-chat-gd: #047857; --gg-chat-b: 20px; font-family: inherit; }
.gg-chat__fab { position: fixed; z-index: 58; right: 20px; bottom: calc(var(--gg-chat-b) + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: var(--gg-chat-g); color: #fff;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1), 0 0 0 1px rgb(0 0 0 / .05); cursor: pointer; transition: bottom .2s ease, transform .1s; }
.gg-chat__fab[hidden] { display: none; }
.gg-chat__fab:hover { background: var(--gg-chat-gd); }
.gg-chat__fab:active { transform: scale(.95); }
.gg-chat__fab:focus-visible, .gg-chat button:focus-visible, .gg-chat textarea:focus-visible, .gg-chat input:focus-visible { outline: 3px solid #34d399; outline-offset: 2px; }
.gg-chat__ic { width: 24px; height: 24px; }

.gg-chat__panel { position: fixed; z-index: 73; right: 20px; bottom: calc(var(--gg-chat-b) + 68px + env(safe-area-inset-bottom, 0px)); width: 384px; max-width: calc(100vw - 40px);
  height: 600px; max-height: calc(100dvh - var(--gg-chat-b) - 68px - 88px); display: flex; flex-direction: column; overflow: hidden; background: #fff; color: #111827;
  border-radius: 16px; box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25), 0 0 0 1px #e5e7eb; overscroll-behavior: contain; }
.gg-chat__panel[hidden] { display: none; }
.gg-chat__top { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--gg-chat-g); color: #fff; }
.gg-chat__av { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgb(255 255 255 / .15); }
.gg-chat__av .gg-chat__ic { width: 20px; height: 20px; }
.gg-chat__tt { min-width: 0; flex: 1; }
.gg-chat__h { font-size: 14px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gg-chat__sub { font-size: 11px; line-height: 1.35; color: #d1fae5; }
.gg-chat__x { flex: none; display: inline-flex; padding: 6px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; }
.gg-chat__x:hover { background: #10b981; }
.gg-chat__body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
.gg-chat__team { flex: none; margin: 0; font-size: 12px; font-weight: 500; color: #065f46; }
.gg-chat__list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 12px; background: #f9fafb; }
.gg-chat__note { margin: auto; font-size: 14px; color: #6b7280; text-align: center; }
.gg-chat__retry { align-self: center; min-height: 40px; padding: 0 14px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.gg-chat__msg { max-width: 82%; padding: 8px 14px; border-radius: 16px; font-size: 14px; line-height: 1.4; }
.gg-chat__msg--me { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--gg-chat-g); color: #fff; }
.gg-chat__msg--team { align-self: flex-start; border-bottom-left-radius: 4px; background: #fff; color: #1f2937; box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 0 0 1px #e5e7eb; }
.gg-chat__txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.gg-chat__meta { margin-top: 4px; font-size: 10px; color: #9ca3af; }
.gg-chat__msg--me .gg-chat__meta { color: #d1fae5; }
.gg-chat__ok { align-self: flex-end; max-width: 90%; margin: 0; font-size: 12px; color: #065f46; text-align: right; }
.gg-chat__send { flex: none; display: flex; align-items: flex-end; gap: 8px; margin: 0; }
.gg-chat__send[hidden], .gg-chat__gate[hidden], .gg-chat__err[hidden], .gg-chat__hint[hidden] { display: none; }
.gg-chat__ta { flex: 1; min-width: 0; resize: none; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 12px; font: inherit; font-size: 16px; line-height: 1.35; color: inherit; background: #fff; }
.gg-chat__btn { flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--gg-chat-g); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.gg-chat__btn:hover { background: var(--gg-chat-gd); }
.gg-chat__btn:disabled { opacity: .6; cursor: default; }
.gg-chat__btn--wide { width: 100%; margin-top: 4px; }
.gg-chat__err { flex: none; margin: 0; font-size: 12px; color: #dc2626; }
.gg-chat__hint { flex: none; margin: 0; font-size: 11px; color: #9ca3af; }
.gg-chat__gate { flex: none; margin: 0; padding: 12px; border: 1px solid #a7f3d0; border-radius: 12px; background: rgb(236 253 245 / .6); }
.gg-chat__gh { margin: 0; font-size: 14px; font-weight: 600; color: #111827; }
.gg-chat__gl { margin: 4px 0 8px; font-size: 12px; color: #4b5563; }
.gg-chat__f { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.gg-chat__f label { font-size: 12px; font-weight: 500; color: #374151; }
.gg-chat__f input { min-height: 44px; padding: 0 12px; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: inherit; }
.gg-chat__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.gg-chat__priv { margin: 0 0 6px; font-size: 11px; color: #6b7280; }
.gg-chat__priv a { color: inherit; text-decoration: underline; }
.gg-chat__cancel { width: 100%; min-height: 44px; margin-top: 2px; border: 0; border-radius: 8px; background: transparent; color: #6b7280; font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.gg-chat__cancel:hover { background: #f3f4f6; color: #374151; }

@media (max-width: 699px) {
  .gg-chat__fab { right: 16px; }
  .gg-chat__panel { inset: 0; width: auto; max-width: none; height: auto; max-height: none; border-radius: 0; z-index: 90; box-shadow: none; padding-top: env(safe-area-inset-top, 0px); }
}
@media (prefers-reduced-motion: reduce) { .gg-chat__fab { transition: none; } }
