.chatcove {
  --cc-brand: #6d28d9;
  position: fixed;
  bottom: 22px;
  z-index: 9999;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.chatcove.bottom-right { right: 22px; }
.chatcove.bottom-left { left: 22px; }

.cc-launcher {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: var(--cc-brand);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  display: grid;
  place-items: center;
}
.cc-launcher svg { width: 26px; height: 26px; }
.cc-launcher:hover { transform: translateY(-2px); }

.cc-panel {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 28px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border: 1px solid #e4e6ef;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chatcove.bottom-left .cc-panel { right: auto; left: 0; }

.cc-head {
  background: var(--cc-brand);
  color: #fff;
  padding: 14px 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
}

.cc-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f6f7fb;
}
.cc-row { display: flex; max-width: 85%; }
.cc-row.cc-guest { align-self: flex-end; }
.cc-bubble {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.cc-row.cc-agent .cc-bubble {
  background: #fff;
  border: 1px solid #e4e6ef;
  border-bottom-left-radius: 4px;
}
.cc-row.cc-guest .cc-bubble {
  background: var(--cc-brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.cc-compose {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e4e6ef;
  background: #fff;
}
.cc-compose input {
  flex: 1;
  border: 1px solid #e4e6ef;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 14px;
  outline: none;
}
.cc-compose input:focus { border-color: var(--cc-brand); }
.cc-compose button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--cc-brand);
  color: #fff;
  cursor: pointer;
}
