.w3f-cs-open,
.w3f-cs-send,
.w3f-cs-chip,
.w3f-cs-close {
  font-family: inherit;
  font-weight: 800;
  color: #163f35;
  background: #fffaf4;
  border: 1px solid #ead7c4;
  border-radius: 14px;
  cursor: pointer;
}
.w3f-cs-open {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  min-width: 88px;
  min-height: 52px;
  padding: 10px 18px;
  font-size: 20px;
  line-height: 1.2;
  box-shadow: 0 8px 24px rgba(22, 63, 53, 0.16);
}
.w3f-cs-panel {
  position: fixed;
  right: 16px;
  bottom: 78px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 24px));
  max-height: min(640px, calc(100vh - 110px));
  padding: 12px;
  background: #fffaf4;
  border: 1px solid #ead7c4;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(22, 63, 53, 0.18);
  color: #1c1915;
  font-size: 18px;
  line-height: 1.45;
}
.w3f-cs-panel[hidden] { display: none; }
.w3f-cs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.w3f-cs-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  color: #163f35;
}
.w3f-cs-close {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 18px;
}
.w3f-cs-log {
  flex: 1;
  overflow: auto;
  margin: 10px 0;
  padding-right: 2px;
}
.w3f-cs-msg {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}
.w3f-cs-msg-bot { background: #fff; border: 1px solid #ead7c4; }
.w3f-cs-msg-user { background: #163f35; color: #fffaf4; }
.w3f-cs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.w3f-cs-chip { min-height: 44px; padding: 8px 12px; font-size: 18px; }
.w3f-cs-form { display: flex; gap: 8px; margin-top: 10px; }
.w3f-cs-form input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid #d9d0c4;
  border-radius: 12px;
  background: #fff;
  color: #1c1915;
  font-size: 18px;
  font-weight: 700;
}
.w3f-cs-send {
  min-height: 48px;
  padding: 8px 14px;
  background: #163f35;
  color: #fffaf4;
  font-size: 18px;
}
.w3f-cs-send:disabled { opacity: 0.6; }
.w3f-cs-hand {
  display: grid;
  gap: 8px;
  margin: 8px 0;
  padding: 10px;
  background: #fff;
  border: 1px solid #ead7c4;
  border-radius: 12px;
}
.w3f-cs-hand label { display: grid; gap: 4px; font-weight: 800; }
.w3f-cs-hand input,
.w3f-cs-hand textarea {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid #d9d0c4;
  border-radius: 12px;
  background: #fff;
  color: #1c1915;
  font: inherit;
  font-size: 18px;
}
.w3f-cs-hand textarea { min-height: 96px; }
.w3f-cs-hint,
.w3f-cs-err { margin: 0; font-size: 18px; }
.w3f-cs-err { color: #8a2b16; }
.w3f-cs-hand button {
  min-height: 48px;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  color: #fffaf4;
  background: #163f35;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.w3f-cs-hand button:disabled { opacity: 0.6; }
@media (max-width: 640px) {
  .w3f-cs-panel { font-size: 18px; }
  .w3f-cs-title { font-size: 22px; }
}
