/* Bolha */
#cos-chat-bubble{
  position: fixed;
  right: 20px;
  bottom: 85px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #999999;
  color: #fff;
  display: flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size: 26px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: transform .15s ease, background .15s ease;
  z-index: 9999;
}
#cos-chat-bubble:hover{
  transform: scale(1.06);
  background: #212020;
}

/* Painel */
#cos-chat-panel{
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 340px;
  max-height: 520px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  z-index: 9999;
}

/* Header */
#cos-chat-header{
  background: #212020;
  color: #fff;
  padding: 10px 12px;
  display:flex;
  justify-content: space-between;
  align-items:center;
}
.cos-chat-title{
  font-weight: 700;
  font-size: 14px;
}
#cos-chat-close{
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* Entry */
#cos-chat-entry{
  background: #f7f7f7;
  padding: 14px;
}
.cos-entry-box{
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  padding: 14px;
}
.cos-entry-title{
  font-weight: 800;
  margin-bottom: 10px;
}
.cos-entry-row{
  display:flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.cos-entry-info{
  font-size: 13px;
  color: #222;
}
.cos-entry-hint{
  font-size: 12px;
  color: #666;
}
.cos-label{
  font-size: 12px;
  color: #333;
  font-weight: 700;
}
#cos-guest-name{
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  outline: none;
}
.cos-divider{
  display:flex;
  align-items:center;
  gap: 10px;
  margin: 10px 0 14px;
  color:#888;
  font-size: 12px;
}
.cos-divider:before,
.cos-divider:after{
  content:"";
  flex:1;
  height: 1px;
  background: #e5e5e5;
}
.cos-link{
  color: #212020;
  font-size: 12px;
  text-decoration: underline;
}

/* Botões */
.cos-btn{
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  cursor:pointer;
  text-align:center;
  display:inline-block;
  font-weight: 700;
  font-size: 13px;
}
.cos-btn-primary{
  background: #212020;
  color: #fff;
}
.cos-btn-primary:hover{
  filter: brightness(0.9);
}
.cos-btn-secondary{
  background: #999999;
  color:#fff;
}
.cos-btn-secondary:hover{
  filter: brightness(0.95);
}

/* Corpo do chat */
#cos-chat-body{
  display:flex;
  flex-direction: column;
  height: 420px;
}
#cos-chat-messages{
  flex: 1;
  background: #212020;
  padding: 12px;
  overflow-y: auto;
}
.cos-system{
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  margin: 8px 0;
}

/* Mensagens */
.cos-msg{
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  max-width: 92%;
}
.cos-msg .cos-meta{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  opacity: 0.85;
  margin-bottom: 4px;
}
.cos-msg .cos-text{
  font-size: 13px;
  line-height: 1.35;
  word-wrap: break-word;
}
.cos-msg.other{
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);
}
.cos-msg.me{
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.95);
  margin-left: auto;
}

/* Input */
#cos-chat-input{
  display:flex;
  background: #fff;
  border-top: 1px solid #eee;
}
#cos-message{
  flex: 1;
  border: 0;
  padding: 12px;
  outline:none;
  font-size: 14px;
}
#cos-send{
  background: #212020;
  color:#fff;
  border: 0;
  padding: 0 16px;
  cursor:pointer;
}
#cos-send:hover{
  filter: brightness(0.9);
}

/* Scrollbar */
#cos-chat-messages::-webkit-scrollbar{ width: 6px; }
#cos-chat-messages::-webkit-scrollbar-thumb{
  background:#ccc;
  border-radius: 3px;
}
