#sc-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: inherit;
}

.sc-bubble-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #2c3e50;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  position: relative;
  transition: transform 0.15s ease;
}
.sc-bubble-btn:hover {
  transform: scale(1.06);
}

.sc-badge {
  display: none;
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e74c3c;
  color: #fff;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  font-size: 11px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-weight: 600;
}

.sc-panel {
  display: none;
  flex-direction: column;
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 340px;
  max-width: 90vw;
  height: 440px;
  max-height: 70vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.sc-header {
  background: #2c3e50;
  color: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 14px;
}

.sc-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.sc-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background: #f4f6f8;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sc-empty {
  color: #888;
  font-size: 13px;
  text-align: center;
  margin-top: 30px;
}

.sc-row {
  display: flex;
}
.sc-row.sc-user {
  justify-content: flex-end;
}
.sc-row.sc-admin {
  justify-content: flex-start;
}

.sc-bubble {
  max-width: 78%;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.35;
  word-wrap: break-word;
}
.sc-row.sc-user .sc-bubble {
  background: #2c3e50;
  color: #fff;
  border-bottom-right-radius: 2px;
}
.sc-row.sc-admin .sc-bubble {
  background: #fff;
  color: #222;
  border: 1px solid #e0e0e0;
  border-bottom-left-radius: 2px;
}

.sc-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  padding: 1px 6px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.sc-row.sc-admin .sc-tag {
  background: #eef1f4;
  color: #2c3e50;
}

.sc-meta {
  font-size: 10px;
  opacity: 0.7;
  margin-top: 3px;
}

.sc-input-row {
  display: flex;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid #e5e5e5;
  background: #fff;
}

.sc-input {
  flex: 1;
  resize: none;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  max-height: 80px;
}
.sc-input:focus {
  outline: none;
  border-color: #2c3e50;
}

.sc-send {
  background: #2c3e50;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13px;
  cursor: pointer;
}
.sc-send:hover {
  background: #1f2c38;
}
