:root{
  --spitaweb-primary:#00a884;
  --spitaweb-z:999999;
}
.spitaweb-chatbot-float{
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: var(--spitaweb-z);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.spitaweb-chatbot-float[data-pos="left"]{ left:18px; right:auto; }

.spitaweb-chatbot-btn{
  border: none;
  background: var(--spitaweb-primary);
  color: #fff;
  padding: 12px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}
.spitaweb-chatbot-btn:hover{ filter: brightness(.98); }

.spitaweb-chatbot-panel{
  width: min(380px, calc(100vw - 36px));
  height: 520px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  position: absolute;
  bottom: 58px;
  right: 0;
  display: none;
}
.spitaweb-chatbot-float[data-pos="left"] .spitaweb-chatbot-panel{ left:0; right:auto; }

.spitaweb-chatbot-float[data-open="1"] .spitaweb-chatbot-panel{ display: block; }

.spitaweb-chatbot-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 12px;
  background: rgba(0,0,0,.04);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.spitaweb-chatbot-title{
  font-weight: 800;
  font-size: 14px;
}
.spitaweb-chatbot-close{
  border:none;
  background: transparent;
  cursor:pointer;
  font-size: 18px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 8px;
}
.spitaweb-chatbot-close:hover{ background: rgba(0,0,0,.06); }

.spitaweb-chatbot-iframe{
  width: 100%;
  height: calc(100% - 46px);
  border: 0;
  background: #fff;
}

.spitaweb-chatbot-inline{
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0,0,0,.18);
  background:#fff;
}
.spitaweb-chatbot-inline .spitaweb-chatbot-iframe{
  height: 100%;
}
