:root {
  --re-chat-green: #00bd77;
  --re-chat-green-strong: #07513c;
  --re-chat-forest: #07513c;
  --re-chat-forest-deep: #043b2d;
  --re-chat-brand-primary: #00bd77;
  --re-chat-brand-ink: #043b2d;
  --re-chat-focus: #007a4c;
  --re-chat-ink: #102e29;
  --re-chat-muted: #5d716c;
  --re-chat-paper: #f4f8f6;
  --re-chat-line: #d7e5df;
  --re-chat-danger: #a92828;
  --re-chat-warning: #8a5b08;
}

html.re-chat-modal-open,
html.re-chat-modal-open body {
  overflow: hidden !important;
}

.re-chat,
.re-chat * {
  box-sizing: border-box;
  text-transform: none;
  letter-spacing: normal;
}

.re-chat {
  position: fixed;
  inset: auto max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) auto;
  z-index: 2147483000;
  color: var(--re-chat-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  text-rendering: optimizeLegibility;
}

.re-chat button,
.re-chat input,
.re-chat textarea {
  margin: 0;
  font: inherit !important;
  line-height: inherit;
}

.re-chat button {
  appearance: none;
  cursor: pointer;
}

.re-chat button:focus-visible,
.re-chat input:focus-visible,
.re-chat textarea:focus-visible,
.re-chat a:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px var(--re-chat-focus) !important;
}

.re-chat__launcher {
  position: relative;
  isolation: isolate;
  min-width: 326px;
  min-height: 74px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 9px 15px 9px 9px !important;
  border: 1px solid rgba(4, 59, 45, .32) !important;
  border-radius: 22px !important;
  color: var(--re-chat-brand-ink) !important;
  background: var(--re-chat-brand-primary) !important;
  box-shadow: 0 18px 46px rgba(0, 99, 66, .28), 0 4px 12px rgba(4, 59, 45, .14) !important;
  text-align: left;
  transition: transform .22s ease, box-shadow .22s ease, opacity .16s ease;
}

.re-chat__launcher::after {
  position: absolute;
  z-index: -1;
  inset: -1px;
  border: 2px solid rgba(0, 189, 119, .72);
  border-radius: inherit;
  content: "";
  animation: re-chat-attention 4.8s ease-out infinite;
  pointer-events: none;
}

.re-chat__launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 52px rgba(5, 44, 39, .34), 0 4px 12px rgba(5, 44, 39, .18) !important;
}

.re-chat__launcher[aria-expanded="true"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.re-chat__launcher-brand {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 7px 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.re-chat__launcher-logo {
  width: 62px;
  height: auto;
  display: block;
}

.re-chat__launcher-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.re-chat__launcher-copy strong {
  overflow: hidden;
  color: var(--re-chat-brand-ink);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.re-chat__launcher-copy small,
.re-chat__availability {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(4, 59, 45, .88);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}

.re-chat__launcher-copy i,
.re-chat__availability i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--re-chat-forest-deep);
  box-shadow: 0 0 0 4px rgba(149, 168, 162, .12);
}

.re-chat[data-availability="online"] .re-chat__launcher-copy i,
.re-chat[data-availability="online"] .re-chat__availability i {
  background: var(--re-chat-forest-deep);
  box-shadow: 0 0 0 4px rgba(4, 59, 45, .16);
}

.re-chat[data-availability="offline"] .re-chat__launcher-copy i,
.re-chat[data-availability="offline"] .re-chat__availability i {
  background: #ffbf47;
  box-shadow: 0 0 0 4px rgba(255, 191, 71, .14);
}

.re-chat__unread {
  min-width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border: 2px solid var(--re-chat-brand-primary);
  border-radius: 999px;
  color: var(--re-chat-brand-ink);
  background: var(--re-chat-brand-primary);
  font-size: 12px;
  font-weight: 850;
}

.re-chat__unread[hidden],
.re-chat__panel[hidden],
.re-chat__status[hidden],
.re-chat__emoji-picker[hidden] {
  display: none !important;
}

.re-chat__panel {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  width: min(432px, calc(100vw - 48px));
  height: min(748px, calc(100dvh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(7, 59, 50, .12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(5, 44, 39, .28), 0 5px 22px rgba(5, 44, 39, .12);
}

.re-chat__header {
  position: relative;
  min-height: 98px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 16px 15px;
  color: var(--re-chat-brand-ink);
  background: var(--re-chat-brand-primary);
}

.re-chat__identity {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.re-chat__logo {
  width: 94px;
  height: auto;
  flex: 0 0 auto;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.re-chat__identity-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  overflow: hidden;
}

.re-chat__identity-copy strong {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: block;
  overflow: hidden;
  color: var(--re-chat-brand-ink);
  font-size: 16px;
  font-weight: 780;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.re-chat__sector {
  overflow: hidden;
  color: rgba(4, 59, 45, .72);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.re-chat__availability {
  min-height: 25px;
  width: fit-content;
  max-width: 100%;
  margin-top: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(4, 59, 45, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
}

.re-chat__presence-avatar {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(4, 59, 45, .34);
  border-radius: 50%;
  background: #fff;
}

.re-chat__presence-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.re-chat__availability-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.re-chat__header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.re-chat__header-actions button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0 !important;
  border: 1px solid rgba(4, 59, 45, .2) !important;
  border-radius: 12px !important;
  color: var(--re-chat-brand-ink) !important;
  background: rgba(255, 255, 255, .26) !important;
  font-size: 21px;
  font-weight: 500;
  transition: background-color .16s ease, transform .16s ease;
}

.re-chat__header-actions button:hover {
  background: rgba(255, 255, 255, .45) !important;
  transform: translateY(-1px);
}

.re-chat__sound[data-enabled="true"] {
  color: var(--re-chat-brand-ink) !important;
  border-color: var(--re-chat-focus) !important;
  background: rgba(255, 255, 255, .5) !important;
}

.re-chat__status {
  position: relative;
  z-index: 2;
  padding: 9px 18px;
  border-bottom: 1px solid var(--re-chat-line);
  color: #34534b;
  background: #eef6f2;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}

.re-chat__status[data-tone="warning"] {
  color: var(--re-chat-warning);
  background: #fff7df;
}

.re-chat__status[data-tone="error"] {
  color: var(--re-chat-danger);
  background: #fff0ef;
}

.re-chat__status[data-tone="success"] {
  color: #075b3d;
  background: #e9f8f0;
}

.re-chat__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--re-chat-paper);
}

.re-chat__welcome,
.re-chat__form {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 24px 22px 20px;
}

.re-chat__welcome-heading,
.re-chat__intro {
  display: grid;
  gap: 6px;
}

.re-chat__eyebrow {
  color: var(--re-chat-forest);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.re-chat__welcome h2,
.re-chat__intro h2 {
  margin: 0;
  color: var(--re-chat-ink);
  font-size: 24px;
  font-weight: 780;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.re-chat__welcome-heading p,
.re-chat__intro p {
  margin: 0;
  color: var(--re-chat-muted);
  font-size: 13px;
  line-height: 1.5;
}

.re-chat__departments {
  display: grid;
  gap: 10px;
}

.re-chat__department {
  width: 100%;
  min-height: 86px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px 14px !important;
  border: 1px solid var(--re-chat-line) !important;
  border-radius: 16px !important;
  color: var(--re-chat-ink) !important;
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(18, 64, 53, .045) !important;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.re-chat__department:hover {
  border-color: var(--re-chat-brand-primary) !important;
  box-shadow: 0 10px 26px rgba(0, 189, 119, .11) !important;
  transform: translateY(-1px);
}

.re-chat__department-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--re-chat-green-strong);
  background: #e4f3ed;
  font-size: 21px;
  font-weight: 850;
}

.re-chat__department > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.re-chat__department strong {
  color: var(--re-chat-ink);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.25;
}

.re-chat__department small {
  color: var(--re-chat-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.re-chat__department-status {
  width: fit-content;
  margin-top: 2px;
  color: #667a73;
  font-size: 10px;
  font-style: normal;
  font-weight: 720;
}

.re-chat__department-status[data-online="true"] {
  color: var(--re-chat-green-strong);
}

.re-chat__department-arrow {
  color: var(--re-chat-green-strong);
  font-size: 20px;
}

.re-chat__privacy-note,
.re-chat__capability-wait {
  margin: auto 0 0;
  padding: 13px 14px;
  border-radius: 13px;
  color: var(--re-chat-muted);
  background: #edf5f1;
  font-size: 11px;
  line-height: 1.5;
}

.re-chat__back {
  align-self: flex-start;
  padding: 3px 0 !important;
  border: 0 !important;
  color: var(--re-chat-forest) !important;
  background: transparent !important;
  font-size: 12px;
  font-weight: 750;
}

.re-chat__form > label:not(.re-chat__consent),
.re-chat__contact-grid label,
.re-chat__survey-form > label {
  display: grid;
  gap: 6px;
  color: #294940;
  font-size: 12px;
  font-weight: 730;
}

.re-chat__contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.re-chat input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.re-chat textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #c9d9d2 !important;
  border-radius: 12px !important;
  color: var(--re-chat-ink) !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(7, 59, 50, .03) !important;
}

.re-chat input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  min-height: 46px;
  padding: 10px 12px !important;
}

.re-chat textarea {
  padding: 11px 12px !important;
  resize: vertical;
}

.re-chat input::placeholder,
.re-chat textarea::placeholder {
  color: #85958f;
  opacity: 1;
}

.re-chat__hint,
.re-chat__security {
  margin: -10px 0 0;
  color: #6e7f79;
  font-size: 10px;
  line-height: 1.4;
}

.re-chat__consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 9px;
  color: var(--re-chat-muted);
  font-size: 11px;
  line-height: 1.45;
}

.re-chat__consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--re-chat-brand-primary);
}

.re-chat a {
  color: var(--re-chat-forest) !important;
  font-weight: 750;
  text-decoration-color: var(--re-chat-brand-primary);
  text-decoration-thickness: 2px;
}

.re-chat__form-error,
.re-chat__chat-error,
.re-chat__survey-form p[role="alert"] {
  min-height: 0;
  margin: 0;
  color: var(--re-chat-danger);
  font-size: 11px;
  font-weight: 700;
}

.re-chat__primary {
  min-height: 50px;
  padding: 11px 17px !important;
  border: 1px solid var(--re-chat-brand-primary) !important;
  border-radius: 14px !important;
  color: var(--re-chat-brand-ink) !important;
  background: var(--re-chat-brand-primary) !important;
  box-shadow: 0 9px 20px rgba(0, 189, 119, .18) !important;
  font-size: 13px;
  font-weight: 780;
}

.re-chat button:disabled,
.re-chat textarea:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.re-chat__conversation {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.re-chat__attendant {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--re-chat-line);
  background: #fff;
}

.re-chat__avatar,
.re-chat__message-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 8px 5px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(0, 189, 119, .18);
  background: var(--re-chat-green-strong);
}

.re-chat__avatar img,
.re-chat__message-avatar img {
  width: 100%;
  height: auto;
  display: block;
}

.re-chat__avatar--photo {
  padding: 0;
}

.re-chat__avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.re-chat__attendant > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.re-chat__attendant strong {
  overflow: hidden;
  color: var(--re-chat-ink);
  font-size: 13px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.re-chat__attendant small {
  color: var(--re-chat-muted);
  font-size: 10px;
}

.re-chat__queue {
  min-height: 34px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--re-chat-line);
  color: var(--re-chat-muted);
  background: #edf6f2;
  font-size: 10px;
  font-weight: 650;
  text-align: center;
}

.re-chat__registration {
  max-height: 44%;
  overflow: auto;
  padding: 12px 13px;
  border-bottom: 1px solid var(--re-chat-line);
  background: #f4f8f6;
  scrollbar-width: thin;
}

.re-chat__registration[hidden] {
  display: none;
}

.re-chat__registration-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #c9ded4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(9, 71, 57, .08);
}

.re-chat__registration-heading {
  display: grid;
  gap: 3px;
}

.re-chat__registration-heading span {
  color: var(--re-chat-forest);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.re-chat__registration-heading h3,
.re-chat__registration-card h4 {
  margin: 0;
  color: var(--re-chat-ink);
  font-weight: 790;
  line-height: 1.25;
}

.re-chat__registration-heading h3 {
  font-size: 18px;
}

.re-chat__registration-card h4 {
  font-size: 13px;
}

.re-chat__registration-message,
.re-chat__registration-security,
.re-chat__registration-progress-label {
  margin: 0;
  color: var(--re-chat-muted);
  font-size: 10px;
  line-height: 1.5;
}

.re-chat__registration-warning {
  margin: 0;
  padding: 10px 11px;
  border-radius: 11px;
  color: #78560a;
  background: #fff6d9;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
}

.re-chat__registration-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 9px;
  color: #3d5d54;
  font-size: 10px;
  line-height: 1.5;
}

.re-chat__registration-consent input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--re-chat-green-strong);
}

.re-chat__registration-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.re-chat__registration-action,
.re-chat__review-section button,
.re-chat__email-status + button {
  min-height: 40px;
  padding: 8px 12px !important;
  border: 1px solid #c7d9d1 !important;
  border-radius: 11px !important;
  color: var(--re-chat-forest) !important;
  background: #fff !important;
  font-size: 10px;
  font-weight: 760;
}

.re-chat__registration-actions .re-chat__primary {
  flex: 1 1 150px;
  min-height: 42px;
}

.re-chat__registration-card progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  accent-color: var(--re-chat-green-strong);
}

.re-chat__registration-form {
  display: grid;
  gap: 11px;
}

.re-chat__registration-field {
  display: grid;
  gap: 5px;
  color: #294940;
  font-size: 10px;
  font-weight: 730;
}

.re-chat__registration-field small {
  color: var(--re-chat-muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.4;
}

.re-chat__registration-field .re-chat__field-error,
.re-chat__registration-error {
  color: var(--re-chat-danger);
  font-weight: 700;
}

.re-chat__registration-error {
  min-height: 0;
  margin: 0;
  font-size: 10px;
}

.re-chat__registration-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.re-chat__registration-options label {
  position: relative;
}

.re-chat__registration-options input {
  position: absolute;
  opacity: 0;
}

.re-chat__registration-options span {
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 7px 12px;
  border: 1px solid #c9d9d2;
  border-radius: 11px;
  color: var(--re-chat-ink);
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.re-chat__registration-options input:checked + span {
  color: var(--re-chat-brand-ink);
  border-color: var(--re-chat-brand-primary);
  background: var(--re-chat-brand-primary);
}

.re-chat__registration-options input:focus-visible + span {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--re-chat-brand-primary);
}

.re-chat__review-section {
  display: grid;
  gap: 7px;
  padding: 11px;
  border: 1px solid var(--re-chat-line);
  border-radius: 13px;
  background: var(--re-chat-paper);
}

.re-chat__review-section > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.re-chat__review-section button {
  min-height: 34px;
  padding: 5px 9px !important;
}

.re-chat__review-section dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(85px, .8fr) minmax(0, 1.2fr);
  gap: 5px 9px;
  font-size: 9px;
  line-height: 1.4;
}

.re-chat__review-section dt {
  color: var(--re-chat-muted);
}

.re-chat__review-section dd {
  margin: 0;
  color: var(--re-chat-ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.re-chat__registration-processing,
.re-chat__email-status {
  padding: 11px 12px;
  border-radius: 12px;
  color: #31564c;
  background: #e9f5ef;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.5;
}

.re-chat__email-status--falha {
  color: var(--re-chat-danger);
  background: #fff0ef;
}

.re-chat a.re-chat__activation-link {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border-radius: 11px;
  color: var(--re-chat-brand-ink) !important;
  border: 1px solid var(--re-chat-brand-primary);
  background: var(--re-chat-brand-primary);
  text-decoration: none;
}

.re-chat__messages {
  flex: 1;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 16px 15px 20px;
  overscroll-behavior: contain;
  scrollbar-color: #bdd1c8 transparent;
  scrollbar-width: thin;
}

.re-chat__empty {
  margin: auto 28px;
  display: grid;
  gap: 5px;
  color: var(--re-chat-muted);
  font-size: 12px;
  text-align: center;
}

.re-chat__empty strong {
  color: var(--re-chat-ink);
  font-size: 14px;
}

.re-chat__message-row {
  max-width: 86%;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.re-chat__message-row--visitor {
  align-self: flex-end;
}

.re-chat__message-row--agent {
  align-self: flex-start;
}

.re-chat__message-row--system {
  max-width: 100%;
  align-self: center;
}

.re-chat__message-avatar {
  width: 28px;
  height: 28px;
  padding: 6px 4px;
  border-radius: 9px;
}

.re-chat__message {
  min-width: 72px;
  display: grid;
  gap: 6px;
  padding: 11px 13px 8px;
  border: 1px solid var(--re-chat-line);
  border-radius: 16px 16px 16px 5px;
  color: var(--re-chat-ink);
  background: #fff;
  box-shadow: 0 5px 16px rgba(18, 64, 53, .05);
}

.re-chat__message--visitor {
  border: 1px solid var(--re-chat-brand-primary);
  border-radius: 16px 16px 5px 16px;
  color: var(--re-chat-brand-ink);
  background: var(--re-chat-brand-primary);
}

.re-chat__message--system {
  border: 0;
  border-radius: 999px;
  color: #436159;
  background: #e8f2ed;
  box-shadow: none;
  text-align: center;
}

.re-chat__message p {
  margin: 0;
  color: inherit;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.48;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.re-chat__message small {
  color: #7a8b85;
  font-size: 9px;
  font-weight: 550;
  line-height: 1.2;
  text-align: right;
}

.re-chat__message--visitor small {
  color: rgba(4, 59, 45, .72);
}

.re-chat__message-attachment {
  display: block;
  padding: 7px 8px;
  border-radius: 9px;
  color: inherit;
  background: rgba(7, 59, 50, .07);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.re-chat__message--visitor .re-chat__message-attachment {
  background: rgba(255, 255, 255, .13);
}

.re-chat__chat-error {
  padding: 0 16px 7px;
  background: #fff;
}

.re-chat__pending-files {
  max-height: 162px;
  display: grid;
  gap: 7px;
  overflow: auto;
  padding: 0 12px;
  background: #fff;
}

.re-chat__pending-files:empty {
  display: none;
}

.re-chat__file {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px solid var(--re-chat-line);
  border-radius: 12px;
  background: var(--re-chat-paper);
}

.re-chat__file img,
.re-chat__file video,
.re-chat__file-icon {
  width: 46px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: #dfece6;
  object-fit: cover;
  font-size: 9px;
  font-weight: 800;
}

.re-chat__file > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.re-chat__file strong,
.re-chat__file small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.re-chat__file strong {
  color: var(--re-chat-ink);
  font-size: 10px;
}

.re-chat__file small {
  color: var(--re-chat-muted);
  font-size: 9px;
}

.re-chat__file button {
  min-height: 34px;
  padding: 5px 8px !important;
  border: 0 !important;
  color: var(--re-chat-forest) !important;
  background: transparent !important;
  font-size: 9px;
  font-weight: 750;
}

.re-chat__file progress {
  position: absolute;
  right: 8px;
  bottom: 3px;
  left: 63px;
  width: calc(100% - 72px);
  height: 3px;
  accent-color: var(--re-chat-brand-primary);
}

.re-chat__composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  padding: 9px 11px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--re-chat-line);
  background: #fff;
}

.re-chat__composer-main {
  min-width: 0;
  display: grid;
  overflow: visible;
  border: 1px solid #cbdad4;
  border-radius: 14px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.re-chat__composer-main:focus-within {
  border-color: var(--re-chat-brand-primary);
  box-shadow: 0 0 0 3px rgba(0, 189, 119, .14);
}

.re-chat__composer textarea {
  height: 44px;
  min-height: 44px;
  max-height: 112px;
  display: block;
  padding: 10px 5px 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  resize: none;
  overflow-y: hidden;
}

.re-chat__composer textarea:focus,
.re-chat__composer textarea:focus-visible {
  outline: 0 !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}

.re-chat__composer-actions {
  min-height: 48px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: end;
  gap: 2px;
  padding: 2px 4px 0;
}

.re-chat__tool {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 9px !important;
  color: #416159 !important;
  background: transparent !important;
  font-size: 18px;
}

.re-chat__tool:hover:not(:disabled),
.re-chat__tool[aria-expanded="true"] {
  color: var(--re-chat-forest) !important;
  background: #e7f5ee !important;
}

.re-chat__tool svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.re-chat__shortcut {
  min-height: 16px;
  padding: 0 10px 5px;
  color: #83928d;
  font-size: 8.5px;
  line-height: 1.2;
  text-align: right;
}

.re-chat__send {
  min-width: 76px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px !important;
  border: 1px solid var(--re-chat-brand-primary) !important;
  border-radius: 14px !important;
  color: var(--re-chat-brand-ink) !important;
  background: var(--re-chat-brand-primary) !important;
  box-shadow: 0 7px 16px rgba(0, 189, 119, .18) !important;
  font-size: 11px;
  font-weight: 780;
}

.re-chat__send i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--re-chat-brand-ink);
  background: rgba(255, 255, 255, .56);
  font-style: normal;
  font-size: 13px;
}

.re-chat__emoji-picker {
  position: absolute;
  z-index: 5;
  right: 12px;
  bottom: 112px;
  left: 12px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--re-chat-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(5, 44, 39, .22);
}

.re-chat__emoji-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.re-chat__emoji-tools input {
  min-height: 38px !important;
  padding: 7px 10px !important;
}

.re-chat__emoji-tools button {
  width: 38px;
  height: 38px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: var(--re-chat-ink) !important;
  background: #edf5f1 !important;
}

.re-chat__emoji-categories {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.re-chat__emoji-categories button {
  min-height: 32px;
  padding: 5px 9px !important;
  border: 1px solid var(--re-chat-line) !important;
  border-radius: 999px !important;
  color: var(--re-chat-muted) !important;
  background: #fff !important;
  font-size: 9px;
  white-space: nowrap;
}

.re-chat__emoji-categories button[aria-selected="true"] {
  color: var(--re-chat-brand-ink) !important;
  border-color: var(--re-chat-brand-primary) !important;
  background: var(--re-chat-brand-primary) !important;
}

.re-chat__emoji-grid {
  max-height: 142px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  overflow-y: auto;
}

.re-chat__emoji-grid button {
  min-width: 36px;
  min-height: 36px;
  padding: 2px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  font-size: 20px;
}

.re-chat__emoji-grid button:hover {
  background: #edf5f1 !important;
}

.re-chat__emoji-grid p {
  grid-column: 1 / -1;
  margin: 12px 0;
  color: var(--re-chat-muted);
  font-size: 11px;
  text-align: center;
}

.re-chat__survey {
  border-top: 1px solid var(--re-chat-line);
  background: #fff;
}

.re-chat__survey:empty {
  display: none;
}

.re-chat__survey-form {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.re-chat__survey-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.re-chat__survey-form legend {
  margin-bottom: 7px;
  color: var(--re-chat-ink);
  font-size: 12px;
  font-weight: 780;
}

.re-chat__scores {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.re-chat__scores label {
  position: relative;
}

.re-chat__scores input {
  position: absolute;
  opacity: 0;
}

.re-chat__scores span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--re-chat-line);
  border-radius: 10px;
  color: var(--re-chat-ink);
  background: var(--re-chat-paper);
  font-size: 11px;
  font-weight: 780;
  cursor: pointer;
}

.re-chat__scores input:checked + span {
  color: var(--re-chat-brand-ink);
  border-color: var(--re-chat-brand-primary);
  background: var(--re-chat-brand-primary);
}

.re-chat__scores input:focus-visible + span {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--re-chat-brand-primary);
}

.re-chat__survey-success {
  margin: 0;
  padding: 15px;
  color: var(--re-chat-forest);
  font-weight: 750;
  text-align: center;
}

.re-chat__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

@keyframes re-chat-attention {
  0%, 72%, 100% { opacity: 0; transform: scale(1); }
  78% { opacity: .75; }
  94% { opacity: 0; transform: scale(1.06); }
}

@media (max-width: 600px) {
  .re-chat {
    inset: auto max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) auto;
  }

  .re-chat__launcher {
    min-width: min(352px, calc(100vw - 24px));
    min-height: 70px;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px 13px 8px 8px !important;
    border-radius: 21px !important;
  }

  .re-chat__launcher-brand {
    min-height: 52px;
  }

  .re-chat__launcher-logo {
    width: 58px;
  }

  .re-chat__panel {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .re-chat__header {
    min-height: calc(96px + env(safe-area-inset-top));
    padding: max(15px, env(safe-area-inset-top)) 12px 13px;
  }

  .re-chat__logo {
    width: 58px;
  }

  .re-chat__identity {
    gap: 8px;
  }

  .re-chat__identity-copy strong {
    font-size: 13px;
  }

  .re-chat__registration {
    max-height: 40%;
  }

  .re-chat__header-actions {
    gap: 3px;
  }

  .re-chat__header-actions button {
    width: 44px;
    height: 44px;
  }

  .re-chat__welcome,
  .re-chat__form {
    padding: 21px 17px max(20px, env(safe-area-inset-bottom));
  }

  .re-chat__contact-grid {
    grid-template-columns: 1fr;
  }

  .re-chat__messages {
    padding-inline: 11px;
  }

  .re-chat__message-row {
    max-width: 91%;
  }

  .re-chat__shortcut {
    max-width: none;
  }

  .re-chat__emoji-grid {
    grid-template-columns: repeat(7, 1fr);
  }
}

@media (max-width: 370px) {
  .re-chat__launcher {
    min-width: calc(100vw - 20px);
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

  .re-chat__launcher-logo {
    width: 53px;
  }

  .re-chat__launcher-copy strong {
    font-size: 12px;
  }

  .re-chat__logo {
    width: 54px;
  }

  .re-chat__identity {
    gap: 7px;
  }

  .re-chat__identity-copy strong {
    font-size: 12px;
  }

  .re-chat__sector {
    font-size: 10px;
  }

  .re-chat__header-actions button {
    width: 44px;
    height: 44px;
  }

  .re-chat__send span {
    display: none;
  }

  .re-chat__send {
    min-width: 52px;
  }

  .re-chat__shortcut { font-size: 7.8px; }
}

@media (max-height: 680px) and (min-width: 601px) {
  .re-chat__panel {
    height: calc(100dvh - 28px);
    bottom: 14px;
  }

  .re-chat__header {
    min-height: 88px;
    padding-block: 13px;
  }

  .re-chat__welcome,
  .re-chat__form {
    padding-block: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .re-chat *,
  .re-chat *::before,
  .re-chat *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .re-chat__launcher::after {
    display: none;
  }
}
