:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #18212b;
  background: #f4f2ed;
  line-height: 1.45;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: radial-gradient(circle at 12% 8%, #fff8d8 0, #f4f2ed 42%), #f4f2ed;
}
.widget {
  width: min(100%, 430px);
  height: min(720px, calc(100vh - 64px));
  min-height: 560px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e7e4dc;
  border-radius: 26px;
  box-shadow: 0 24px 70px #2520141c;
}
.widget-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 22px 22px 18px;
  background: #1e2a35;
  color: #fff;
}
.brand-mark {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #f5b800;
  color: #1e2a35;
  font-size: 25px;
  font-weight: 800;
}
.brand-copy { min-width: 0; }
.eyebrow {
  margin: 0;
  color: #f5b800;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.widget h1 { margin: 1px 0 2px; font-size: 20px; line-height: 1.2; }
.availability { margin: 0; color: #dbe7e5; font-size: 13px; }
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #64cf8e;
  box-shadow: 0 0 0 3px #64cf8e22;
}
.welcome {
  margin: 18px 18px 5px;
  padding: 15px 16px;
  border-radius: 16px 16px 16px 4px;
  background: #fff7d6;
  color: #3b3a31;
  font-size: 14px;
}
.welcome p { margin: 0; }
.welcome-title { margin-bottom: 5px !important; font-weight: 750; color: #1e2a35; }
.messages { flex: 1; overflow: auto; padding: 8px 18px 15px; }
.bubble {
  max-width: 86%;
  margin: 8px 0;
  padding: 11px 13px;
  border-radius: 16px;
  font-size: 14px;
  white-space: pre-wrap;
}
.bubble.customer { margin-left: auto; background: #1e2a35; color: #fff; border-bottom-right-radius: 5px; }
.bubble.agent { background: #f0f2ef; color: #243029; border-bottom-left-radius: 5px; }
.bubble time { display: block; margin-top: 5px; opacity: .55; font-size: 11px; }
.composer { padding: 13px 16px 10px; border-top: 1px solid #ece9e2; background: #fff; }
.composer textarea {
  width: 100%;
  resize: none;
  border: 1px solid #ddd9cf;
  border-radius: 14px;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.composer textarea:focus { border-color: #f0b500; box-shadow: 0 0 0 3px #f0b50022; }
.composer-row { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.hint { font-size: 11px; color: #7b817d; }
.send { border: 0; border-radius: 999px; padding: 9px 14px; background: #f5b800; color: #1e2a35; font-weight: 750; cursor: pointer; }
.send:hover { background: #e4a900; }
.widget-foot { padding: 0 18px 15px; color: #85877f; font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 480px) {
  .page-shell { padding: 0; }
  .widget { height: 100vh; min-height: 100vh; border: 0; border-radius: 0; }
}
