.juicy-chat {
  --jc-ink: #112126;
  --jc-cream: #fff7ec;
  --jc-pink: #ff2c7d;
  --jc-orange: #ff8b2c;
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 99999;
  font-family: Inter, system-ui, sans-serif;
  color: var(--jc-ink);
}
.juicy-chat__launcher {
  display: inline-flex; align-items: center; gap: 9px; min-height: 52px;
  padding: 0 18px; border: 2px solid var(--jc-ink); border-radius: 999px;
  background: var(--jc-ink); color: #fff; box-shadow: 0 8px 0 rgba(17,33,38,.18);
  font: 800 13px/1 Inter, sans-serif; letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
}
.juicy-chat__launcher-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #65e68a;
  box-shadow: 0 0 0 4px rgba(101,230,138,.16);
}
.juicy-chat__panel {
  position: absolute; right: 0; bottom: 66px; width: min(390px, calc(100vw - 32px));
  max-height: min(650px, calc(100vh - 120px)); overflow: hidden;
  border: 2px solid var(--jc-ink); border-radius: 24px; background: var(--jc-cream);
  box-shadow: 10px 12px 0 rgba(17,33,38,.18);
}
.juicy-chat__header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 20px 20px 18px; color: #fff;
  background: linear-gradient(135deg, var(--jc-pink), var(--jc-orange));
}
.juicy-chat__eyebrow { margin: 0 0 6px; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.juicy-chat__header h2 {
  margin: 0; max-width: 280px; color: #fff; font-family: Anton, Impact, sans-serif;
  font-size: clamp(28px, 5vw, 36px); line-height: .95; font-weight: 400; text-transform: uppercase;
}
.juicy-chat__close {
  flex: 0 0 34px; width: 34px; height: 34px; border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%; background: rgba(255,255,255,.15); color: #fff;
  font-size: 26px; line-height: 26px; cursor: pointer;
}
.juicy-chat__body { max-height: 410px; overflow-y: auto; padding: 18px 18px 8px; }
.juicy-chat__intro { margin: 0 0 14px; font-size: 14px; line-height: 1.5; }
.juicy-chat__quick { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.juicy-chat__quick button {
  border: 1px solid var(--jc-ink); border-radius: 999px; padding: 8px 10px;
  background: #fff; color: var(--jc-ink); font-size: 11px; font-weight: 800; cursor: pointer;
}
.juicy-chat__identity { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.juicy-chat__identity label {
  display: grid; gap: 4px; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
}
.juicy-chat__identity input, .juicy-chat__composer textarea {
  width: 100%; box-sizing: border-box; border: 1px solid var(--jc-ink);
  border-radius: 10px; background: #fff; color: var(--jc-ink); font: inherit;
}
.juicy-chat__identity input { padding: 9px; }
.juicy-chat__composer {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px;
  padding: 10px 14px 14px; border-top: 1px solid rgba(17,33,38,.16);
}
.juicy-chat__composer textarea { min-height: 66px; max-height: 130px; resize: vertical; padding: 10px 11px; font-size: 13px; }
.juicy-chat__composer button {
  align-self: end; min-height: 46px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--jc-ink); color: #fff; font: 900 11px/1 Inter, sans-serif;
  text-transform: uppercase; cursor: pointer;
}
.juicy-chat__composer.is-sending { opacity: .62; pointer-events: none; }
.juicy-chat__status { min-height: 17px; margin: -8px 18px 12px; color: #526065; font-size: 10px; }
.juicy-chat__status.is-error { color: #b51f3b; }
@media (max-width: 600px) {
  .juicy-chat { left: 12px; right: 12px; bottom: 12px; }
  .juicy-chat__launcher { margin-left: auto; display: flex; width: max-content; }
  .juicy-chat__panel { position: fixed; left: 12px; right: 12px; bottom: 76px; width: auto; max-height: calc(100vh - 100px); }
  .juicy-chat__identity { grid-template-columns: 1fr; }
}

.juicy-chat__messages {
  display: grid;
  gap: 10px;
  margin: 0;
  max-height: 250px;
  overflow-y: auto;
}
.juicy-chat__message {
  max-width: 84%;
  padding: 10px 12px;
  border: 1px solid var(--jc-ink);
  border-radius: 16px;
  background: #fff;
  font-size: 13px;
  line-height: 1.45;
}
.juicy-chat__message strong {
  display: block;
  margin: 0 0 4px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.juicy-chat__message p { margin: 0; }
.juicy-chat__message--visitor {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: var(--jc-ink);
  color: #fff;
}
.juicy-chat__message--juicy {
  justify-self: start;
  border-bottom-left-radius: 4px;
  background: #fff;
}
.juicy-chat.is-conversation .juicy-chat__body {
  padding-bottom: 10px;
}
.juicy-chat.is-conversation .juicy-chat__messages {
  min-height: 170px;
  margin-top: 2px;
}
.juicy-chat.is-conversation .juicy-chat__composer {
  border-top: 1px solid rgba(17,33,38,.16);
}
.juicy-chat.is-conversation .juicy-chat__status {
  margin-top: -8px;
}

/* Conversation mode: identity + starter choices are one-time onboarding only. */
.juicy-chat.is-conversation .juicy-chat__intro,
.juicy-chat.is-conversation .juicy-chat__quick,
.juicy-chat.is-conversation .juicy-chat__identity {
  display: none !important;
}
.juicy-chat.is-conversation .juicy-chat__messages {
  margin-top: 0;
  min-height: 260px;
  max-height: 330px;
  padding: 2px 2px 6px;
}
.juicy-chat.is-conversation .juicy-chat__body {
  padding: 14px 14px 4px;
}

.juicy-chat__message-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.juicy-chat__message-meta strong {
  margin: 0;
}
.juicy-chat__message-meta time {
  flex: 0 0 auto;
  font-size: 9px;
  line-height: 1;
  opacity: .62;
  letter-spacing: .02em;
}
.juicy-chat__message--visitor .juicy-chat__message-meta time {
  color: rgba(255,255,255,.72);
}
