/* GTV Chat Widget (isolated styles) */
#gtvChatBtn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
  font-size: 22px;
  z-index: 999999;
}

#gtvChatPanel {
  position: fixed;
  right: 18px;
  bottom: 84px;
  width: min(360px, calc(100vw - 36px));
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.20);
  overflow: hidden;
  z-index: 999999;
  display: none;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#gtvChatHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

#gtvChatHeader strong { font-size: 14px; }
#gtvChatHeader button {
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

#gtvChatBody {
  padding: 12px;
  height: calc(100% - 112px);
  overflow: auto;
  background: #fafafa;
}

.gtvMsg {
  margin: 8px 0;
  display: flex;
}

.gtvMsg .bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.gtvBot .bubble {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
}

.gtvUser {
  justify-content: flex-end;
}
.gtvUser .bubble {
  background: #111;
  color: #fff;
}

#gtvChatFooter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(0,0,0,.08);
  background: #fff;
}

#gtvChatInput {
  width: 100%;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.15);
  outline: none;
  font-size: 13px;
}

#gtvChatSend {
  padding: 10px 12px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  background: #111;
  color: #fff;
  font-size: 13px;
}

#gtvWhatsAppRow {
  display: none;
  padding: 10px;
  border-top: 1px solid rgba(0,0,0,.08);
  background: #fff;
}

#gtvWhatsAppRow a {
  display: block;
  text-decoration: none;
  text-align: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.15);
  font-size: 13px;
  color: #111;
}