.tgp-chat{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:1100;
  font-family:var(--font-body);
  letter-spacing:0;
}
.tgp-chat-launcher{
  position:relative;
  display:flex;
  min-height:52px;
  align-items:center;
  gap:9px;
  padding:0 18px;
  border:1px solid rgba(255,255,255,.32);
  border-radius:8px;
  background:#2563EB;
  color:#FFFFFF;
  box-shadow:0 16px 36px rgba(15,23,42,.24);
  font:800 .82rem/1 var(--font-body);
  cursor:pointer;
  transition:transform .2s ease,background .2s ease,box-shadow .2s ease;
}
.tgp-chat-launcher:hover,.tgp-chat-launcher:focus-visible{
  background:#1D4ED8;
  box-shadow:0 18px 42px rgba(37,99,235,.32);
  transform:translateY(-2px);
}
.tgp-chat-launcher .dashicons{width:20px;height:20px;font-size:20px}
.tgp-chat-presence{
  position:absolute;
  top:-4px;
  right:-4px;
  width:13px;
  height:13px;
  border:3px solid #FFFFFF;
  border-radius:50%;
  background:#14B8A6;
}
.tgp-chat[data-enabled="0"] .tgp-chat-presence{background:#94A3B8}
.tgp-chat.is-open .tgp-chat-launcher{display:none}
.tgp-chat-panel{
  position:relative;
  width:min(382px,calc(100vw - 32px));
  height:min(610px,calc(100vh - 44px));
  overflow:hidden;
  border:1px solid #CBD5E1;
  border-radius:8px;
  background:#FFFFFF;
  box-shadow:0 24px 70px rgba(15,23,42,.26);
}
.tgp-chat-panel[hidden]{display:none}
.tgp-chat-header{
  display:flex;
  min-height:72px;
  align-items:center;
  gap:11px;
  padding:12px 14px;
  border-top:4px solid #F97316;
  background:#0F172A;
  color:#FFFFFF;
}
.tgp-chat-avatar{
  display:flex;
  width:40px;
  height:40px;
  flex:0 0 40px;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:#14B8A6;
  color:#FFFFFF;
  font-size:22px;
}
.tgp-chat-identity{min-width:0;flex:1}
.tgp-chat-identity strong{
  display:block;
  overflow:hidden;
  color:#FFFFFF;
  font-family:var(--font-head);
  font-size:.89rem;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.tgp-chat-identity small{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:4px;
  color:#CBD5E1;
  font-size:.68rem;
  line-height:1.25;
}
.tgp-chat-online{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:#2DD4BF;
}
.tgp-chat-icon-btn{
  display:inline-flex;
  width:34px;
  height:34px;
  flex:0 0 34px;
  align-items:center;
  justify-content:center;
  padding:0;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#CBD5E1;
  cursor:pointer;
}
.tgp-chat-icon-btn:hover,.tgp-chat-icon-btn:focus-visible{background:#1E293B;color:#FFFFFF}
.tgp-chat-status{
  min-height:29px;
  padding:7px 16px;
  border-bottom:1px solid #BAE6FD;
  background:#F0F9FF;
  color:#0369A1;
  font-size:.66rem;
  font-weight:800;
  text-align:center;
}
.tgp-chat-status.is-disabled{border-color:#E2E8F0;background:#F8FAFC;color:#64748B}
.tgp-chat-messages{
  height:340px;
  overflow-y:auto;
  padding:17px 15px 8px;
  background:#F8FAFC;
  scrollbar-color:#CBD5E1 transparent;
}
.tgp-chat-message{display:flex;margin-bottom:12px}
.tgp-chat-message.is-user{justify-content:flex-end}
.tgp-chat-bubble{
  max-width:86%;
  padding:10px 12px;
  border:1px solid #DBEAFE;
  border-radius:8px;
  background:#FFFFFF;
  color:#334155;
  font-size:.78rem;
  line-height:1.55;
  white-space:pre-line;
}
.tgp-chat-message.is-user .tgp-chat-bubble{
  border-color:#0F172A;
  background:#0F172A;
  color:#FFFFFF;
}
.tgp-chat-actions{
  display:flex;
  min-height:76px;
  max-height:104px;
  gap:7px;
  overflow-x:auto;
  align-content:flex-start;
  flex-wrap:wrap;
  padding:9px 12px;
  border-top:1px solid #E2E8F0;
  background:#FFFFFF;
}
.tgp-chat-action{
  display:inline-flex;
  min-height:31px;
  align-items:center;
  padding:6px 10px;
  border:1px solid #93C5FD;
  border-radius:6px;
  background:#FFFFFF;
  color:#1D4ED8;
  font:700 .67rem/1.25 var(--font-body);
  text-decoration:none;
  cursor:pointer;
}
.tgp-chat-action:hover,.tgp-chat-action:focus-visible{border-color:#2563EB;background:#EFF6FF;color:#1D4ED8}
.tgp-chat-action.is-whatsapp{border-color:#16A34A;background:#16A34A;color:#FFFFFF}
.tgp-chat-action.is-whatsapp:hover,.tgp-chat-action.is-whatsapp:focus-visible{background:#15803D;color:#FFFFFF}
.tgp-chat-action.is-checkout{border-color:#2563EB;background:#2563EB;color:#FFFFFF}
.tgp-chat-action.is-checkout:hover,.tgp-chat-action.is-checkout:focus-visible{background:#1D4ED8;color:#FFFFFF}
.tgp-chat-action.is-subscription{border-color:#0F766E;background:#0F766E;color:#FFFFFF}
.tgp-chat-action.is-subscription:hover,.tgp-chat-action.is-subscription:focus-visible{background:#115E59;color:#FFFFFF}
.tgp-chat-composer{
  display:flex;
  min-height:64px;
  align-items:center;
  gap:8px;
  padding:9px 11px;
  border-top:1px solid #E2E8F0;
  background:#FFFFFF;
}
.tgp-chat-composer input{
  min-width:0;
  height:42px;
  flex:1;
  padding:0 12px;
  border:1px solid #CBD5E1;
  border-radius:6px;
  background:#FFFFFF;
  color:#0F172A;
  font:500 .76rem/1 var(--font-body);
}
.tgp-chat-composer input:focus{border-color:#2563EB;box-shadow:0 0 0 3px rgba(37,99,235,.12);outline:0}
.tgp-chat-composer button{
  display:flex;
  width:42px;
  height:42px;
  flex:0 0 42px;
  align-items:center;
  justify-content:center;
  padding:0;
  border:0;
  border-radius:6px;
  background:#F97316;
  color:#FFFFFF;
  cursor:pointer;
}
.tgp-chat-composer button:hover,.tgp-chat-composer button:focus-visible{background:#EA580C}
.tgp-chat-composer :disabled{cursor:not-allowed;opacity:.52}
.tgp-chat-settings{
  position:absolute;
  inset:0;
  z-index:3;
  overflow-y:auto;
  padding:18px;
  background:#FFFFFF;
  color:#334155;
}
.tgp-chat-settings[hidden]{display:none}
.tgp-chat-settings-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:15px;
}
.tgp-chat-settings-title strong{color:#0F172A;font:800 .95rem/1.3 var(--font-head)}
.tgp-chat-settings-title .tgp-chat-icon-btn{color:#475569}
.tgp-chat-settings>label:not(.tgp-chat-toggle-row){
  display:block;
  margin-bottom:12px;
  color:#475569;
  font-size:.7rem;
  font-weight:800;
}
.tgp-chat-settings input[type="text"],
.tgp-chat-settings input[type="number"],
.tgp-chat-settings textarea{
  width:100%;
  margin-top:5px;
  padding:9px 10px;
  border:1px solid #CBD5E1;
  border-radius:6px;
  background:#FFFFFF;
  color:#0F172A;
  font:500 .75rem/1.45 var(--font-body);
}
.tgp-chat-toggle-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px;
  padding:11px 12px;
  border-left:4px solid #14B8A6;
  background:#ECFEFF;
  color:#0F172A;
  font-size:.75rem;
  font-weight:800;
}
.tgp-chat-toggle-row input{width:18px;height:18px;accent-color:#14B8A6}
.tgp-chat-save{
  width:100%;
  min-height:42px;
  border:0;
  border-radius:6px;
  background:#2563EB;
  color:#FFFFFF;
  font:800 .76rem/1 var(--font-body);
  cursor:pointer;
}
.tgp-chat-settings-result{margin:9px 0 0;color:#0369A1;font-size:.68rem;line-height:1.4}
@media(max-width:900px){
  .tgp-chat{right:12px;bottom:86px}
  .tgp-chat-panel{height:min(590px,calc(100vh - 108px))}
}
@media(max-width:480px){
  .tgp-chat{left:10px;right:10px}
  .tgp-chat-launcher{
    width:52px;
    min-height:52px;
    justify-content:center;
    margin-left:auto;
    padding:0;
  }
  .tgp-chat-launcher-label{display:none}
  .tgp-chat-panel{width:100%}
  .tgp-chat-messages{height:calc(min(590px,100vh - 108px) - 281px)}
  .tgp-chat-actions{max-height:144px;overflow-y:auto}
}
@media(prefers-reduced-motion:reduce){
  .tgp-chat-launcher{transition:none}
}
