.wcsc-chatbot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.wcsc-chatbot-root {
  font-family: inherit;
  z-index: 9999;
}

.wcsc-chatbot-box {
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(0,0,0,.12);
}

.wcsc-chatbot-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #101828;
  color: #fff;
}

.wcsc-chatbot-head strong {
  display: block;
  font-size: 15px;
}

.wcsc-chatbot-head span {
  display: block;
  opacity: .75;
  font-size: 11px;
}

.wcsc-chatbot-toggle {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.wcsc-chatbot-messages {
  display: flex;
  flex-direction: column;
  gap: 9px;
  height: 340px;
  max-height: 52vh;
  overflow: auto;
  padding: 14px;
  background: #f6f7f9;
}

.wcsc-chatbot-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  white-space: normal;
}

.wcsc-chatbot-msg.bot {
  align-self: flex-start;
  background: #fff;
  color: #101828;
  border: 1px solid rgba(0,0,0,.08);
}

.wcsc-chatbot-msg.user {
  align-self: flex-end;
  background: #0f766e;
  color: #fff;
}

.wcsc-chatbot-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.08);
}

.wcsc-chatbot-input {
  flex: 1;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 10px;
  font-size: 13px;
}

.wcsc-chatbot-form button {
  padding: 10px 13px;
  border: 0;
  border-radius: 10px;
  background: #0f766e;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.wcsc-chatbot-bubble {
  display: none;
}

.wcsc-chatbot-floating .wcsc-chatbot-box {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 82px;
  width: min(380px, calc(100vw - 28px));
}

.wcsc-chatbot-floating.is-open .wcsc-chatbot-box {
  display: block;
}

.wcsc-chatbot-floating .wcsc-chatbot-bubble {
  display: flex;
  position: fixed;
  right: 18px;
  bottom: 20px;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  padding: 13px 16px;
  border: 0;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
  font-weight: 800;
}

.wcsc-chatbot-inline .wcsc-chatbot-bubble {
  display: none;
}

@media (max-width: 980px) {
  .wcsc-chatbot-layout {
    grid-template-columns: 1fr;
  }

  .wcsc-chatbot-inline .wcsc-chatbot-box {
    margin-top: 14px;
  }
}
