/* LWS QR Chatbot Demo — widget styles
   Accessibility floor: 16px+ text, 1.6 line height, no gray-on-white text. */

.lws-demo-wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 8px;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
}

.lws-demo-banner {
  background: #fff7e0;
  border: 2px solid #e0a800;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: #4a3a00;
}

.lws-demo-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.lws-demo-picker-label {
  font-weight: 700;
  color: #1a1a1a;
}

.lws-demo-pick {
  font-size: 16px;
  line-height: 1.4;
  padding: 8px 16px;
  border: 2px solid #0b5394;
  border-radius: 999px;
  background: #ffffff;
  color: #0b5394;
  cursor: pointer;
  font-weight: 600;
}

.lws-demo-pick:hover,
.lws-demo-pick:focus-visible {
  background: #eaf2fa;
}

.lws-demo-pick.is-active {
  background: #0b5394;
  color: #ffffff;
}

.lws-demo-phone {
  border: 3px solid #1a1a1a;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.lws-demo-header {
  background: #1a1a1a;
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lws-demo-biz {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
}

.lws-demo-number {
  font-size: 16px;
  line-height: 1.4;
  color: #d7e3f4;
}

.lws-demo-messages {
  height: 380px;
  overflow-y: auto;
  padding: 14px;
  background: #f4f6f8;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lws-demo-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.lws-demo-msg.from-biz {
  align-self: flex-start;
  background: #e4e6eb;
  color: #1a1a1a;
  border-bottom-left-radius: 6px;
}

.lws-demo-msg.from-visitor {
  align-self: flex-end;
  background: #0b5394;
  color: #ffffff;
  border-bottom-right-radius: 6px;
}

.lws-demo-msg.is-typing {
  color: #1a1a1a;
  font-style: italic;
}

.lws-demo-msg.is-error {
  align-self: center;
  background: #fdecea;
  color: #8a1f11;
  border: 1px solid #e0a49b;
  font-size: 16px;
}

.lws-demo-inputrow {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 2px solid #e4e6eb;
  background: #ffffff;
}

.lws-demo-inputrow textarea {
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
  padding: 10px 12px;
  border: 2px solid #6b7280;
  border-radius: 12px;
  resize: none;
  color: #1a1a1a;
  background: #ffffff;
}

.lws-demo-inputrow textarea:disabled {
  background: #f0f1f3;
}

.lws-demo-inputrow button {
  font-size: 16px;
  font-weight: 700;
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  background: #0b5394;
  color: #ffffff;
  cursor: pointer;
}

.lws-demo-inputrow button:disabled {
  background: #8fa8c4;
  cursor: not-allowed;
}

.lws-demo-inputrow button:not(:disabled):hover,
.lws-demo-inputrow button:not(:disabled):focus-visible {
  background: #094276;
}

.lws-demo-foot {
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: #3d4652;
  margin-top: 12px;
}

@media (max-width: 480px) {
  .lws-demo-messages {
    height: 320px;
  }
}
