.support-chat {
  position: fixed;
  right: 1.25rem;
  bottom: 4.75rem;
  z-index: 60;
  font-family: inherit;
}
.support-chat__toggle {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: #1b2744;
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 28, 52, .28);
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
}
.support-chat__toggle svg,
.support-chat__form button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.support-chat__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
}
.support-chat__panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(360px, calc(100vw - 2rem));
  height: min(560px, calc(100vh - 8rem));
  background: #fff;
  color: #1c2434;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(18, 28, 52, .22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.support-chat__panel[hidden] {
  display: none;
}
.support-chat__header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid #eef0f4;
}
.support-chat__avatar,
.support-chat__intro img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #f4f6f8;
  object-fit: contain;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}
.support-chat__avatar img,
.support-chat__intro img {
  width: 70%;
  height: auto;
  border-radius: 0;
  background: transparent;
}
.support-chat__heading { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.support-chat__heading strong { font-size: .95rem; }
.support-chat__heading small { color: #6b7280; }
.support-chat__heading small::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: .35rem;
  border-radius: 999px;
  background: #22c55e;
}
.support-chat__close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}
.support-chat__body {
  flex: 1;
  overflow: auto;
  padding: 1.25rem 1rem 1rem;
}
.support-chat__intro { text-align: center; margin-bottom: 1rem; }
.support-chat__intro h2 { margin: .6rem 0 .25rem; font-size: 1.15rem; }
.support-chat__intro p { margin: 0; color: #6b7280; }
.support-chat__date {
  text-align: center;
  color: #9aa3b2;
  font-size: .78rem;
  margin: .8rem 0;
}
.support-chat__row { display: flex; gap: .45rem; margin: .35rem 0; align-items: flex-end; }
.support-chat__row--customer { justify-content: flex-end; }
.support-chat__bubble {
  max-width: 78%;
  padding: .7rem .85rem;
  border-radius: 16px;
  background: #f1f3f6;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: .92rem;
}
.support-chat__row--customer .support-chat__bubble {
  background: #1b2744;
  color: #fff;
}
.support-chat__mini {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #f4f6f8 center/70% no-repeat;
  flex: 0 0 auto;
}
.support-chat__error { color: #b91c1c; font-size: .8rem; margin: .35rem 0 0; }
.support-chat__closed {
  margin: 0;
  padding: .7rem .9rem;
  background: #fff7ed;
  color: #9a3412;
  font-size: .82rem;
  border-top: 1px solid #ffedd5;
}
.support-chat__closed[hidden] { display: none; }
.support-chat__form {
  display: flex;
  gap: .5rem;
  align-items: flex-end;
  padding: .75rem;
  border-top: 1px solid #eef0f4;
}
.support-chat__form textarea {
  flex: 1;
  resize: none;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: .7rem .9rem;
  max-height: 6rem;
  font: inherit;
}
.support-chat__form button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #1b2744;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.support-chat__form button:disabled { opacity: .6; cursor: default; }
@media (max-width: 640px) {
  .support-chat { right: .75rem; bottom: 4.5rem; }
  .support-chat__panel { height: min(70vh, 560px); width: min(100vw - 1.5rem, 360px); }
  body:has(.ui-pdp-dock) .support-chat { bottom: calc(4.5rem + 68px); }
}
