/* ============================================================================
 * Zenwholesalers concierge
 *
 * Self-contained on purpose: it declares its own --zwc-* tokens rather than
 * reading the article stylesheet's, because style.css is assembled by a build
 * step and this widget must not depend on that file having been rebuilt.
 * Values are the locked Agrezen palette.
 *
 * Flexbox only. No grid.
 * ========================================================================= */

.zw-chat {
  --zwc-brand: #90C52D;
  --zwc-lime:  #DCE25A;
  --zwc-ink:   #181818;
  --zwc-body:  #4E4E4E;
  --zwc-cream: #FAF7F0;
  --zwc-deep:  #394E10;
  --zwc-night: #1E2A08;
  --zwc-amber: #E0A03C;
  --zwc-line:  rgba(24, 24, 24, .10);
  --zwc-hair:  rgba(255, 255, 255, .16);

  --zwc-lift: 0 1px 2px rgba(57,78,16,.07), 0 6px 16px rgba(57,78,16,.10), 0 18px 36px rgba(57,78,16,.10);
  --zwc-pop:  0 2px 6px rgba(57,78,16,.08), 0 14px 30px rgba(57,78,16,.16), 0 36px 70px rgba(57,78,16,.20);

  --zwc-ease: cubic-bezier(.22, 1, .36, 1);
  --zwc-disp: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --zwc-text: "Nunito Sans", system-ui, -apple-system, sans-serif;

  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: var(--zwc-text);
}

.zw-chat *,
.zw-chat *::before,
.zw-chat *::after { box-sizing: border-box; }

.zw-chat :focus-visible {
  outline: 2px solid var(--zwc-brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --- 1. Launcher ---------------------------------------------------------- */

.zw-chat__launcher {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 20px 7px 7px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--zwc-lift);
  cursor: pointer;
  font-family: var(--zwc-disp);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.2px;
  color: var(--zwc-ink);
  transition: transform .34s var(--zwc-ease), box-shadow .34s var(--zwc-ease);
  animation: zwc-enter .5s var(--zwc-ease) both;
}
.zw-chat__launcher:hover { transform: translateY(-2px); box-shadow: var(--zwc-pop); }
.zw-chat__launcher:active { transform: translateY(0); }

.zw-chat__launcher-face,
.zw-chat__avatar {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: visible;
  background: var(--zwc-deep);
}

/* Marise's presence. Two rings, both purely decorative: a slow breath that
   says someone is there, and a ping every nine seconds so the launcher catches
   the eye once without ever becoming a flashing advert. Colour follows the
   desk state, so it goes amber and calm out of hours. */
.zw-chat__launcher-face::before,
.zw-chat__launcher-face::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  pointer-events: none;
}
.zw-chat__launcher-face::before {
  background: radial-gradient(circle, rgba(144, 197, 45, .45), rgba(144, 197, 45, 0) 68%);
  animation: zwc-breathe 3.8s ease-in-out infinite;
}
.zw-chat__launcher-face::after {
  border: 2px solid rgba(144, 197, 45, .6);
  animation: zwc-ping 9s cubic-bezier(.2, .7, .3, 1) infinite;
}
.zw-chat.is-after-hours .zw-chat__launcher-face::before {
  background: radial-gradient(circle, rgba(224, 160, 60, .34), rgba(224, 160, 60, 0) 68%);
  animation-duration: 6s;
}
.zw-chat.is-after-hours .zw-chat__launcher-face::after {
  border-color: rgba(224, 160, 60, .42);
  animation-duration: 14s;
}

/* The photograph needs its own edge to read against whatever is behind it. */
.zw-chat__launcher-face img {
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(57, 78, 16, .28);
}
.zw-chat__launcher:hover .zw-chat__launcher-face img { transform: scale(1.05); }
.zw-chat__launcher-face img { transition: transform .34s var(--zwc-ease); }
.zw-chat__launcher-face img,
.zw-chat__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 32%;
}
.zw-chat__initial {
  font-family: var(--zwc-disp);
  font-size: 18px;
  font-weight: 600;
  color: var(--zwc-lime);
}

/* Presence dot. Lime while the desk is staffed, amber when it is not — the
   same signal the header clock carries, so the two never disagree. */
.zw-chat__status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  background: var(--zwc-amber);
}
.zw-chat.is-open-hours .zw-chat__status { background: var(--zwc-brand); }
.zw-chat__panel .zw-chat__status { border-color: var(--zwc-deep); }

.zw-chat__launcher-x {
  display: none;
  position: relative;
  width: 16px;
  height: 16px;
}
.zw-chat__launcher-x::before,
.zw-chat__launcher-x::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--zwc-ink);
}
.zw-chat__launcher-x::before { transform: rotate(45deg); }
.zw-chat__launcher-x::after  { transform: rotate(-45deg); }

/* Open state: the launcher steps aside. It used to contract into an X, which
   put a second dismiss control outside a panel that already has one. */
.zw-chat[data-state="open"] .zw-chat__launcher { display: none; }

/* --- 2. Nudge ------------------------------------------------------------- */

.zw-chat__nudge {
  position: relative;
  max-width: 268px;
  margin-bottom: -2px;
  padding: 14px 34px 14px 16px;
  border-radius: 16px 16px 4px 16px;
  background: #fff;
  box-shadow: var(--zwc-lift);
  animation: zwc-nudge .46s var(--zwc-ease) both;
}
.zw-chat__nudge[hidden] { display: none; }
.zw-chat__nudge-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--zwc-ink);
}
.zw-chat__nudge.is-typing { padding-right: 22px; }
.zw-chat__nudge-dots { display: inline-flex; align-items: center; gap: 5px; padding: 3px 0; }
.zw-chat__nudge-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--zwc-brand);
  opacity: .3;
  animation: zwc-dot 1.3s ease-in-out infinite;
}
.zw-chat__nudge-dots i:nth-child(2) { animation-delay: .18s; }
.zw-chat__nudge-dots i:nth-child(3) { animation-delay: .36s; }
.zw-chat__nudge-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 19px;
  line-height: 1;
  color: #9A9A9A;
  cursor: pointer;
  transition: color .2s var(--zwc-ease);
}
.zw-chat__nudge-close:hover { color: var(--zwc-ink); }

/* --- 3. Panel ------------------------------------------------------------- */

.zw-chat__panel {
  display: flex;
  flex-direction: column;
  width: 386px;
  max-width: calc(100vw - 32px);
  height: min(636px, calc(100vh - 132px));
  border-radius: 20px;
  background: var(--zwc-cream);
  box-shadow: var(--zwc-pop);
  overflow: hidden;
  transform-origin: 100% 100%;
  animation: zwc-panel .38s var(--zwc-ease) both;
}
.zw-chat__panel[hidden] { display: none; }

/* --- 4. Header + the clock strip (the signature) -------------------------- */

.zw-chat__head {
  flex: none;
  padding: 16px 16px 0;
  background: var(--zwc-deep);
  color: #fff;
}
.zw-chat.is-after-hours .zw-chat__head { background: var(--zwc-night); }

.zw-chat__head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.zw-chat__id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.zw-chat__avatar {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, .1);
  animation: zwc-pop .44s var(--zwc-ease) .07s both;
}
.zw-chat__avatar img { box-shadow: 0 0 0 2px rgba(255, 255, 255, .22); }
.zw-chat__id-text { animation: zwc-rise .44s var(--zwc-ease) .14s both; }
.zw-chat__id-text { display: flex; flex-direction: column; min-width: 0; }
.zw-chat__name {
  font-family: var(--zwc-disp);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.3px;
  line-height: 1.25;
}
.zw-chat__role {
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .62);
}
.zw-chat__role b {
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--zwc-lime);
}

.zw-chat__hactions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.zw-chat__hbtn {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  transition: background .24s var(--zwc-ease), transform .24s var(--zwc-ease);
}
.zw-chat__hbtn:hover { background: rgba(255, 255, 255, .2); }
/* The theme sets a global svg fill, which beats a fill="none" on the <svg>
   element and turned the reset arrow into a solid blob. Pin it on the path. */
.zw-chat__hbtn svg,
.zw-chat__hbtn svg path { fill: none; stroke: currentColor; }
.zw-chat__close:hover { transform: rotate(90deg); }
.zw-chat__reset:hover { transform: rotate(-40deg); }
.zw-chat__sound[aria-pressed="false"] { opacity: .5; }
.zw-chat__sound[aria-pressed="false"] .zw-chat__sound-off { display: block; }
.zw-chat__sound .zw-chat__sound-off { display: none; }
.zw-chat__sound[aria-pressed="false"] .zw-chat__sound-on { display: none; }

/* The strip a US buyer reads before deciding whether to wait for a reply. */
.zw-chat__clock {
  animation: zwc-rise .46s var(--zwc-ease) .22s both;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 9px 2px 10px;
  border-top: 1px solid var(--zwc-hair);
  font-size: 11.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.zw-chat__clock-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--zwc-amber);
}
.zw-chat.is-open-hours .zw-chat__clock-dot {
  background: var(--zwc-brand);
  box-shadow: 0 0 0 0 rgba(144, 197, 45, .6);
  animation: zwc-pulse 2.6s ease-out infinite;
}
.zw-chat__clock-time {
  font-family: var(--zwc-disp);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: #fff;
}
.zw-chat__clock-place { color: rgba(255, 255, 255, .5); }
.zw-chat__clock-state {
  margin-left: auto;
  font-weight: 700;
  color: var(--zwc-lime);
}
.zw-chat.is-after-hours .zw-chat__clock-state { color: var(--zwc-amber); }

/* --- 5. Conversation ------------------------------------------------------ */

.zw-chat__log {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(24,24,24,.18) transparent;
}
.zw-chat__log::-webkit-scrollbar { width: 8px; }
.zw-chat__log::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(24, 24, 24, .16) padding-box;
}

.zw-chat__msg {
  position: relative;
  max-width: 86%;
  padding: 12px 15px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.6;
  animation: zwc-msg .32s var(--zwc-ease) both;
}
.zw-chat__msg b { font-weight: 700; }

/* Speech bubbles proper: a tail on the speaker's side, and Marise's face
   beside the first bubble of each of her turns so the conversation has a
   person in it rather than a column of anonymous cards. */
.zw-chat__msg--bot {
  align-self: flex-start;
  margin-left: 34px;
  max-width: calc(88% - 34px);
  background: #fff;
  color: var(--zwc-body);
  box-shadow: 0 1px 2px rgba(57, 78, 16, .06), 0 3px 10px rgba(57, 78, 16, .05);
}
.zw-chat__msg--bot b { color: var(--zwc-ink); }

.zw-chat__msg--bot::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 14px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-left: 0;
  border-right-color: #fff;
}
.zw-chat__msg--bot::after {
  content: "";
  position: absolute;
  left: -34px;
  bottom: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--zwc-deep);
  background-image: var(--zwc-avatar);
  background-size: cover;
  background-position: 50% 32%;
  box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(57, 78, 16, .2);
}

/* One face and one tail per turn: hide them on continuation bubbles. */
.zw-chat__msg--bot + .zw-chat__msg--bot {
  margin-top: -4px;
}
.zw-chat__msg--bot + .zw-chat__msg--bot::before,
.zw-chat__msg--bot + .zw-chat__msg--bot::after { display: none; }

.zw-chat__msg--you {
  align-self: flex-end;
  background: var(--zwc-deep);
  color: rgba(255, 255, 255, .95);
}
.zw-chat__msg--you::before {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 12px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-right: 0;
  border-left-color: var(--zwc-deep);
}
.zw-chat__msg--you + .zw-chat__msg--you { margin-top: -4px; }
.zw-chat__msg--you + .zw-chat__msg--you::before { display: none; }

.zw-chat__typing {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 34px;
  padding: 15px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(57, 78, 16, .06);
}
.zw-chat__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--zwc-brand);
  opacity: .3;
  animation: zwc-dot 1.3s ease-in-out infinite;
}
.zw-chat__typing span:nth-child(2) { animation-delay: .18s; }
.zw-chat__typing span:nth-child(3) { animation-delay: .36s; }

/* --- 6. In-message actions ------------------------------------------------ */

/* Not pills in a row. A short list of what she can actually do next, which is
   what a receptionist offers you. */
.zw-chat__opts {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 2px 0 4px;
  animation: zwc-msg .34s var(--zwc-ease) .06s both;
}
.zw-chat__opt {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--zwc-line);
  border-radius: 12px;
  background: #fff;
  font-family: var(--zwc-text);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  color: var(--zwc-ink);
  cursor: pointer;
  transition: border-color .24s var(--zwc-ease), transform .24s var(--zwc-ease), box-shadow .24s var(--zwc-ease);
}
.zw-chat__opt::before {
  content: "";
  flex: none;
  width: 4px;
  height: 15px;
  border-radius: 2px;
  background: var(--zwc-lime);
  transition: background .24s var(--zwc-ease);
}
.zw-chat__opt:hover {
  border-color: var(--zwc-brand);
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(57, 78, 16, .08);
}
.zw-chat__opt:hover::before { background: var(--zwc-brand); }

.zw-chat__cta {
  margin-left: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  padding: 11px 20px;
  border-radius: 15px;
  background: var(--zwc-deep);
  font-family: var(--zwc-disp);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #fff !important;
  transition: background .24s var(--zwc-ease), transform .24s var(--zwc-ease);
  animation: zwc-msg .34s var(--zwc-ease) .1s both;
}
.zw-chat__cta:hover { background: var(--zwc-brand); transform: translateY(-2px); color: #fff !important; }
.zw-chat__cta::after { content: "\2192"; }

/* --- 7. Result cards (live site search) ----------------------------------- */

.zw-chat__hits {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: zwc-msg .34s var(--zwc-ease) .06s both;
}
.zw-chat__hit {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 14px;
  border: 1px solid var(--zwc-line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none !important;
  transition: border-color .24s var(--zwc-ease), transform .24s var(--zwc-ease);
}
.zw-chat__hit:hover { border-color: var(--zwc-brand); transform: translateX(2px); }
.zw-chat__hit-kind {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--zwc-brand);
}
.zw-chat__hit-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--zwc-ink);
}

/* --- 8. Lead form --------------------------------------------------------- */

.zw-chat__form {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px;
  border: 1px solid var(--zwc-line);
  border-radius: 14px;
  background: #fff;
  animation: zwc-msg .34s var(--zwc-ease) both;
}
.zw-chat__form input,
.zw-chat__form textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--zwc-line);
  border-radius: 10px;
  background: var(--zwc-cream);
  font-family: var(--zwc-text);
  font-size: 14px;
  color: var(--zwc-ink);
  transition: border-color .24s var(--zwc-ease), background .24s var(--zwc-ease);
}
.zw-chat__form textarea { min-height: 66px; resize: vertical; }
.zw-chat__form input:focus,
.zw-chat__form textarea:focus { border-color: var(--zwc-brand); background: #fff; outline: none; }
.zw-chat__form-hp { position: absolute; left: -9999px; opacity: 0; }
.zw-chat__form-send {
  padding: 11px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--zwc-brand);
  font-family: var(--zwc-disp);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background .24s var(--zwc-ease), transform .24s var(--zwc-ease);
}
.zw-chat__form-send:hover { background: var(--zwc-deep); transform: translateY(-1px); }
.zw-chat__form-send[disabled] { opacity: .55; cursor: default; transform: none; }
.zw-chat__form-err { margin: 0; font-size: 12.5px; color: #B4451F; }

/* --- 9. Persistent tray + composer ---------------------------------------- */

.zw-chat__asks {
  flex: none;
  display: flex;
  gap: 7px;
  padding: 8px 16px 4px;
}
.zw-chat__asks:empty { display: none; }
.zw-chat__ask {
  flex: 1 1 0;
  padding: 9px 10px;
  border: 1px solid var(--zwc-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .8);
  font-family: var(--zwc-text);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--zwc-deep);
  cursor: pointer;
  transition: border-color .24s var(--zwc-ease), background .24s var(--zwc-ease);
}
.zw-chat__ask:hover { border-color: var(--zwc-brand); background: #fff; }

.zw-chat__composer {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 10px 16px;
  border-top: 1px solid var(--zwc-line);
  background: #fff;
}
.zw-chat__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 0;
  border: 0;
  background: none;
  font-family: var(--zwc-text);
  font-size: 14.5px;
  color: var(--zwc-ink);
}
.zw-chat__input:focus { outline: none; }
.zw-chat__input::placeholder { color: #A4A4A4; }
.zw-chat__send {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--zwc-brand);
  color: #fff;
  cursor: pointer;
  transition: background .24s var(--zwc-ease), transform .24s var(--zwc-ease);
}
.zw-chat__send:hover { background: var(--zwc-deep); transform: scale(1.06); }

/* She has closed the conversation. */
.zw-chat__input[disabled] { color: #A4A4A4; }
.zw-chat__send[disabled],
.zw-chat__send[disabled]:hover { background: #CFCFCF; cursor: default; transform: none; }

.zw-chat__foot {
  flex: none;
  margin: 0;
  padding: 0 16px 11px;
  background: #fff;
  font-size: 11px;
  line-height: 1.5;
  color: #9A9A9A;
}
.zw-chat__foot a { color: var(--zwc-body); text-decoration: underline; }
.zw-chat__foot a:hover { color: var(--zwc-brand); }

/* --- 10. Motion ----------------------------------------------------------- */

@keyframes zwc-enter { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes zwc-nudge { from { opacity: 0; transform: translateY(10px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes zwc-panel { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes zwc-msg   { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes zwc-dot   { 0%, 60%, 100% { opacity: .28; } 30% { opacity: 1; } }
@keyframes zwc-pop   { from { opacity: 0; transform: scale(.72); } to { opacity: 1; transform: none; } }
@keyframes zwc-rise  { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes zwc-breathe {
  0%, 100% { transform: scale(1);    opacity: .5; }
  50%      { transform: scale(1.14); opacity: .9; }
}
@keyframes zwc-ping {
  0%   { transform: scale(1);   opacity: .6; }
  14%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes zwc-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(144, 197, 45, .55); }
  70%  { box-shadow: 0 0 0 7px rgba(144, 197, 45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(144, 197, 45, 0); }
}

/* --- 11. Mobile ----------------------------------------------------------- */

@media (max-width: 600px) {
  .zw-chat { right: 14px; bottom: 14px; left: 14px; align-items: flex-end; }

  .zw-chat__launcher { padding: 7px; }
  .zw-chat__launcher-label { display: none; }

  .zw-chat__nudge { max-width: 250px; }

  .zw-chat__panel {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 88vh;
    height: 88dvh;
    border-radius: 20px 20px 0 0;
  }
  .zw-chat__head { padding-top: 18px; }
  .zw-chat__msg { max-width: 90%; font-size: 15px; }
  /* 16px stops iOS Safari zooming the viewport on focus. */
  .zw-chat__input,
  .zw-chat__form input,
  .zw-chat__form textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .zw-chat *,
  .zw-chat *::before,
  .zw-chat *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .zw-chat__launcher-face::before,
  .zw-chat__launcher-face::after { animation: none; opacity: .45; transform: none; }
  .zw-chat__hit:hover,
  .zw-chat__cta:hover,
  .zw-chat__launcher:hover,
  .zw-chat__send:hover { transform: none; }
}

/* Print and the theme's own overlays should never see it. */
@media print { .zw-chat { display: none; } }

/* --- 12. Added feature set ------------------------------------------------ */

/* Unread count on the launcher. */
.zw-chat__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #C0392B;
  font-family: var(--zwc-disp);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  animation: zwc-pop .34s var(--zwc-ease) both;
}
.zw-chat__launcher { position: relative; }

/* One timestamp per turn, quiet enough to ignore. */
.zw-chat__time {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  opacity: .55;
}
.zw-chat__msg--you .zw-chat__time { text-align: right; }

/* Consent and privacy, inside the enquiry form. */
.zw-chat__opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--zwc-body);
  cursor: pointer;
}
.zw-chat__opt input { flex: none; width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--zwc-brand); }
.zw-chat__privacy {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #8A8A82;
}
.zw-chat__privacy a { color: var(--zwc-body); text-decoration: underline; }
.zw-chat__privacy a:hover { color: var(--zwc-brand); }

/* "Did you mean …" on a mistyped email domain. */
.zw-chat__form-sug {
  margin: 0;
  font-size: 12.5px;
  color: var(--zwc-deep);
}
.zw-chat__form-sug button {
  padding: 2px 7px;
  border: 1px solid var(--zwc-brand);
  border-radius: 7px;
  background: var(--zwc-cream);
  font-family: var(--zwc-text);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--zwc-deep);
  cursor: pointer;
}
.zw-chat__form-sug button:hover { background: var(--zwc-lime); }

/* Was that any help? */
.zw-chat__rate {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 34px;
  padding: 9px 13px;
  border: 1px solid var(--zwc-line);
  border-radius: 12px;
  background: #fff;
  animation: zwc-msg .34s var(--zwc-ease) both;
}
.zw-chat__rate-q { font-size: 12.5px; color: var(--zwc-body); }
.zw-chat__rate-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--zwc-line);
  border-radius: 50%;
  background: var(--zwc-cream);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .24s var(--zwc-ease), transform .24s var(--zwc-ease);
}
.zw-chat__rate-btn:hover { border-color: var(--zwc-brand); transform: scale(1.1); }

/* --- 13. WhatsApp and callback -------------------------------------------- */

.zw-chat__wa {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 2px 34px;
  padding: 11px 18px;
  border-radius: 15px;
  background: #25D366;
  font-family: var(--zwc-disp);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #08351A !important;
  transition: background .24s var(--zwc-ease), transform .24s var(--zwc-ease);
  animation: zwc-msg .34s var(--zwc-ease) both;
}
.zw-chat__wa:hover { background: #1EBE5A; transform: translateY(-2px); color: #08351A !important; }

.zw-chat__slots {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: 34px;
  animation: zwc-msg .34s var(--zwc-ease) .06s both;
}
.zw-chat__slot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 13px;
  border: 1px solid var(--zwc-line);
  border-radius: 12px;
  background: #fff;
  font-family: var(--zwc-text);
  text-align: left;
  cursor: pointer;
  transition: border-color .24s var(--zwc-ease), transform .24s var(--zwc-ease);
}
.zw-chat__slot:hover { border-color: var(--zwc-brand); transform: translateX(2px); }
.zw-chat__slot-ast {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--zwc-ink);
}
.zw-chat__slot-ast em {
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--zwc-brand);
}
.zw-chat__slot-loc { font-size: 12px; color: var(--zwc-body); }
