:root {
  --gm-chat-bg: #1B1B1B;
  --gm-chat-panel: #2B2B2B;
  --gm-chat-panel-alt: #4F8A59;
  --gm-chat-text: #F4F1EC;
  --gm-chat-muted: #A9A9A9;
  --gm-chat-accent: #5A9364;
  --gm-chat-brand: #B08A4A;
  --gm-chat-radius: 18px;
  --gm-chat-shadow: 0 18px 50px rgba(0,0,0,.26);
  --gm-chat-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gm-chat,
.gm-chat * {
  box-sizing: border-box;
}

.gm-chat {
  color: var(--gm-chat-text);
  font-family: var(--gm-chat-font);
  text-align: left;
}

/* Default production mode: contextual helper inside a page, close to the old RQChat feeling. */
.gm-chat--ambient {
  width: min(100%, 920px);
  margin: 18px auto 30px;
  background: transparent;
}

.gm-chat--ambient .gm-chat__shell {
  position: relative;
  width: 100%;
  min-height: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.gm-chat--ambient .gm-chat__messages {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: visible;
}

.gm-chat__row {
  display: flex;
  width: 100%;
  animation: gmChatMessageIn .22s ease both;
}

.gm-chat__row--bot {
  justify-content: flex-start;
}

.gm-chat__row--user {
  justify-content: flex-end;
}

.gm-chat__stack {
  min-width: 0;
  max-width: calc(100% - 46px);
}

.gm-chat__mini-avatar,
.gm-chat__avatar {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.38), transparent 26%),
    linear-gradient(135deg, var(--gm-chat-brand), #7E6136);
  color: #111;
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 6px 16px rgba(0,0,0,.25);
}

.gm-chat__mini-avatar img,
.gm-chat__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gm-chat__mini-avatar {
  width: 31px;
  height: 31px;
  margin: 14px 9px 0 0;
  font-size: 9px;
}

.gm-chat__mini-avatar::after,
.gm-chat__avatar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 8px;
  height: 8px;
  border: 2px solid var(--gm-chat-bg);
  border-radius: 50%;
  background: var(--gm-chat-accent);
}

.gm-chat__ambient-time {
  margin: 0 0 4px 2px;
  color: var(--gm-chat-muted);
  font-size: 10px;
  line-height: 1;
  opacity: .82;
}

.gm-chat__bubble {
  position: relative;
  max-width: min(820px, 100%);
  padding: 8px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.gm-chat--ambient .gm-chat__bubble--bot {
  background: var(--gm-chat-panel);
  color: var(--gm-chat-text);
  border-top-left-radius: 7px;
  box-shadow: 0 7px 20px rgba(0,0,0,.12);
}

.gm-chat--ambient .gm-chat__bubble-text {
  color: var(--gm-chat-text);
}

.gm-chat--ambient .gm-chat__bubble--user {
  max-width: min(360px, 72%);
  margin-right: 1px;
  background: #F1F1F1;
  color: #242424;
  border-top-right-radius: 7px;
  font-size: 12px;
  box-shadow: 0 5px 16px rgba(0,0,0,.10);
}

.gm-chat__user-text {
  color: inherit;
}

.gm-chat__time {
  color: rgba(233,237,239,.48);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.gm-chat--ambient .gm-chat__time--user {
  display: block;
  margin-top: 4px;
  color: rgba(36,36,36,.48);
  text-align: right;
  font-size: 9px;
}

.gm-chat__typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 46px;
  padding: 11px 13px;
}

.gm-chat__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(244,241,236,.72);
  animation: gmChatTyping 1s ease-in-out infinite;
}

.gm-chat__typing span:nth-child(2) { animation-delay: .12s; }
.gm-chat__typing span:nth-child(3) { animation-delay: .24s; }

.gm-chat--ambient .gm-chat__controls {
  margin: 7px 0 0 40px;
  padding: 0;
}

.gm-chat__options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.gm-chat__option,
.gm-chat__submit,
.gm-chat__secondary,
.gm-chat__file-button,
.gm-chat__file-remove,
.gm-chat-launch {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform .16s ease, background-color .16s ease, opacity .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.gm-chat__option--selected {
  animation: gmChatChoiceShake .28s ease both;
}

.gm-chat--ambient .gm-chat__option {
  min-height: 23px;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(90,147,100,.88);
  color: #F8FFF8;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.15;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0,0,0,.10);
}

.gm-chat--ambient .gm-chat__option:first-child {
  background: var(--gm-chat-accent);
}

.gm-chat--ambient .gm-chat__option:hover,
.gm-chat--ambient .gm-chat__option:focus-visible {
  transform: translateY(-1px);
  background: #70A878;
  outline: none;
}

.gm-chat__options--actions {
  display: flex;
}

.gm-chat--ambient .gm-chat__option--primary {
  background: var(--gm-chat-accent);
  color: #fff;
  font-weight: 700;
}

.gm-chat--ambient .gm-chat__form {
  display: grid;
  width: min(540px, calc(100% - 8px));
  gap: 9px;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 4px;
  background: #fff;
  color: #202020;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.gm-chat__form-intro {
  font-size: 12px;
  line-height: 1.35;
}

.gm-chat__field {
  display: grid;
  gap: 5px;
}

.gm-chat__label {
  color: rgba(0,0,0,.72);
  font-size: 12px;
  font-weight: 650;
}

.gm-chat__input {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 2px;
  background: #fff;
  color: #1d1d1d;
  font: inherit;
  font-size: 13px;
  outline: none;
}

textarea.gm-chat__input {
  resize: vertical;
}

.gm-chat__input:focus {
  border-color: rgba(90,147,100,.92);
  box-shadow: 0 0 0 2px rgba(90,147,100,.12);
}

.gm-chat__row--success .gm-chat__stack {
  width: min(560px, calc(100% - 46px));
}

.gm-chat__success {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  padding: 14px 15px;
  border: 1px solid rgba(37,211,102,.34);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(37,211,102,.18), rgba(37,211,102,.06)),
    rgba(32,44,51,.98);
  color: #e9edef;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
  animation: gmChatSuccessIn .3s ease both;
}

.gm-chat__success::after {
  content: "";
  position: absolute;
  inset: -35% auto -35% -45%;
  width: 42%;
  transform: rotate(18deg) translateX(0);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  animation: gmChatSuccessSweep .95s ease .08s both;
  pointer-events: none;
}

.gm-chat__success-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #25d366;
  color: #062b18;
  box-shadow: 0 0 0 6px rgba(37,211,102,.12), 0 10px 24px rgba(37,211,102,.18);
  animation: gmChatSuccessPulse .72s ease both;
}

.gm-chat__success-check {
  display: block;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  animation: gmChatSuccessCheck .34s ease .12s both;
}

.gm-chat__success-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.gm-chat__success-title {
  color: #f4fff6;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.22;
}

.gm-chat__success-body {
  margin-top: 4px;
  color: rgba(233,237,239,.84);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.38;
}

.gm-chat__success-note {
  margin-top: 7px;
  color: #b8f1c7;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.28;
}

.gm-chat__success-time {
  position: absolute;
  right: 10px;
  bottom: 7px;
  color: rgba(233,237,239,.48);
  font-size: 10px;
  line-height: 1;
}

.gm-chat__file {
  display: grid;
  gap: 6px;
}

.gm-chat__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.gm-chat__file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.gm-chat__file-button,
.gm-chat__file-remove {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(90,147,100,.12);
  color: var(--gm-chat-accent);
  font-size: 12px;
  font-weight: 700;
}

.gm-chat__file-button:hover,
.gm-chat__file-button:focus-visible,
.gm-chat__file-remove:hover,
.gm-chat__file-remove:focus-visible {
  transform: translateY(-1px);
  background: rgba(90,147,100,.18);
  outline: none;
}

.gm-chat__file-name {
  min-width: 0;
  overflow: hidden;
  color: rgba(0,0,0,.58);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gm-chat__privacy {
  color: rgba(0,0,0,.55);
  font-size: 10px;
  line-height: 1.35;
}

.gm-chat__submit {
  min-height: 34px;
  padding: 8px 13px;
  border-radius: 3px;
  background: var(--gm-chat-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  justify-self: start;
}

.gm-chat__submit:disabled {
  cursor: wait;
  opacity: .62;
}

.gm-chat__secondary {
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(43,43,43,.94);
  color: var(--gm-chat-text);
  font-size: 12px;
}

.gm-chat__secondary--success {
  border-color: rgba(37,211,102,.28);
  background: rgba(37,211,102,.10);
  color: #d9fdd3;
}

.gm-chat__status {
  min-height: 0;
  margin: 7px 0 0 40px;
  color: var(--gm-chat-muted);
  font-size: 11px;
  line-height: 1.35;
}

.gm-chat__status--success { color: #AEE6BC; }
.gm-chat__status--error { color: #FFB2B2; }
.gm-chat__status--loading { color: var(--gm-chat-accent); }

.gm-chat__trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

/* Card mode is kept for modal preview/admin testing. */
.gm-chat--card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.gm-chat--card .gm-chat__shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  max-height: 760px;
  background:
    radial-gradient(circle at 10% 8%, rgba(200,164,109,.10), transparent 25%),
    linear-gradient(180deg, rgba(9,22,28,.94), #0B141A);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--gm-chat-radius);
  box-shadow: var(--gm-chat-shadow);
  overflow: hidden;
}

.gm-chat__header {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #1F2C33, #17232A);
  border-bottom: 1px solid rgba(0,0,0,.24);
}

.gm-chat__avatar {
  width: 44px;
  height: 44px;
  font-size: 12px;
}

.gm-chat__head-text {
  min-width: 0;
}

.gm-chat__title {
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gm-chat__subtitle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: rgba(233,237,239,.74);
  font-size: 12px;
  line-height: 1.25;
}

.gm-chat__online-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gm-chat-accent);
  box-shadow: 0 0 0 4px rgba(90,147,100,.12);
}

.gm-chat__brand {
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid rgba(200,164,109,.28);
  border-radius: 999px;
  color: var(--gm-chat-brand);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .04em;
  white-space: nowrap;
}

.gm-chat--card .gm-chat__messages {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  min-height: 290px;
  max-height: 560px;
  overflow-y: auto;
  padding: 14px 12px 10px;
}

.gm-chat__day {
  align-self: center;
  margin: 2px 0 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(30,43,50,.88);
  color: rgba(233,237,239,.74);
  font-size: 11px;
  line-height: 1;
}

.gm-chat--card .gm-chat__bubble {
  max-width: min(86%, 360px);
  padding: 9px 11px 18px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(0,0,0,.10);
}

.gm-chat--card .gm-chat__bubble--bot {
  border-top-left-radius: 4px;
  background: #202C33;
  color: #E9EDEF;
}

.gm-chat--card .gm-chat__bubble--user {
  border-top-right-radius: 4px;
  background: #D9FDD3;
  color: #111B21;
  font-weight: 560;
}

.gm-chat__bubble-title {
  margin-bottom: 4px;
  color: #fff;
  font-weight: 760;
  letter-spacing: -.01em;
}

.gm-chat--card .gm-chat__bubble-text {
  color: rgba(233,237,239,.92);
}

.gm-chat--card .gm-chat__time {
  position: absolute;
  right: 8px;
  bottom: 4px;
}

.gm-chat--card .gm-chat__time--user {
  position: static;
  display: inline-block;
  margin-left: 8px;
  color: rgba(17,27,33,.55);
  vertical-align: baseline;
}

.gm-chat__notice {
  margin: 0 12px 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(17,27,33,.72);
  color: rgba(233,237,239,.62);
  font-size: 11px;
  line-height: 1.35;
}

.gm-chat--card .gm-chat__controls {
  flex: 0 0 auto;
  padding: 0 10px 10px;
}

.gm-chat--card .gm-chat__option {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(90,147,100,.24);
  border-radius: 999px;
  background: rgba(32,44,51,.94);
  color: #E9EDEF;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-align: left;
}

.gm-chat--card .gm-chat__option--primary,
.gm-chat--card .gm-chat__submit {
  justify-content: center;
  width: 100%;
  border-color: transparent;
  background: var(--gm-chat-accent);
  color: #052C18;
  font-weight: 800;
  text-align: center;
  border-radius: 999px;
}

.gm-chat__composer {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 8px;
}

.gm-chat__composer-plus,
.gm-chat__composer-send {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(233,237,239,.72);
  font-size: 20px;
}

.gm-chat__composer-send {
  background: var(--gm-chat-accent);
  color: #062B18;
  font-size: 26px;
  line-height: 1;
}

.gm-chat__composer-placeholder {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: #202C33;
  color: rgba(233,237,239,.52);
  font-size: 13px;
}

.gm-chat--card .gm-chat__form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(90,147,100,.16);
  border-radius: 16px;
  background: rgba(32,44,51,.94);
  color: #E9EDEF;
}

.gm-chat--card .gm-chat__label,
.gm-chat--card .gm-chat__form-intro {
  color: rgba(233,237,239,.78);
}

.gm-chat--card .gm-chat__input {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 11px;
  background: #111B21;
  color: #E9EDEF;
}

.gm-chat--card .gm-chat__privacy {
  color: rgba(233,237,239,.50);
}

.gm-chat-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  margin: 4px 6px 4px 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gm-chat-accent), #4F8A59);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.gm-chat-launch::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.18);
}

.gm-chat-launch:hover,
.gm-chat-launch:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.gm-chat-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(8px);
}

.gm-chat-modal__dialog {
  position: relative;
  width: min(440px, 100%);
  max-height: min(92vh, 820px);
  overflow: visible;
}

.gm-chat-modal__close {
  position: absolute;
  top: -13px;
  right: -13px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: #1F2C33;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

.gm-chat--error {
  padding: 18px;
  border-radius: 14px;
  background: #2b1d1d;
  color: #ffdddd;
}

@keyframes gmChatMessageIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gmChatTyping {
  0%, 80%, 100% { opacity: .35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

@keyframes gmChatChoiceShake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-2px); }
  36% { transform: translateX(2px); }
  54% { transform: translateX(-1px); }
  72% { transform: translateX(1px); }
}

@keyframes gmChatSuccessIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes gmChatSuccessPulse {
  0% { transform: scale(.72); box-shadow: 0 0 0 0 rgba(37,211,102,.0), 0 8px 20px rgba(37,211,102,.10); }
  58% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(37,211,102,.14), 0 12px 26px rgba(37,211,102,.20); }
  100% { transform: scale(1); box-shadow: 0 0 0 6px rgba(37,211,102,.12), 0 10px 24px rgba(37,211,102,.18); }
}

@keyframes gmChatSuccessCheck {
  from { opacity: 0; transform: translateY(3px) rotate(-12deg) scale(.7); }
  to { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

@keyframes gmChatSuccessSweep {
  from { transform: rotate(18deg) translateX(0); opacity: 0; }
  22% { opacity: 1; }
  to { transform: rotate(18deg) translateX(430%); opacity: 0; }
}

@media (max-width: 640px) {
  .gm-chat--ambient {
    width: 100%;
    margin: 14px auto 24px;
  }

  .gm-chat__mini-avatar {
    width: 29px;
    height: 29px;
    margin-right: 8px;
  }

  .gm-chat__success {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
  }

  .gm-chat__success-icon {
    width: 36px;
    height: 36px;
  }

  .gm-chat__success-title {
    font-size: 13px;
  }

  .gm-chat__success-body,
  .gm-chat__success-note {
    font-size: 12px;
  }

  .gm-chat--ambient .gm-chat__controls,
  .gm-chat__status {
    margin-left: 37px;
  }

  .gm-chat--ambient .gm-chat__bubble {
    max-width: 100%;
    font-size: 12px;
  }

  .gm-chat--ambient .gm-chat__bubble--user {
    max-width: 78%;
  }

  .gm-chat--ambient .gm-chat__option {
    font-size: 11px;
    padding: 4px 10px;
  }

  .gm-chat--card .gm-chat__shell {
    min-height: 520px;
    max-height: none;
    border-radius: 16px;
  }

  .gm-chat__brand {
    display: none;
  }

  .gm-chat-modal {
    padding: 10px;
    place-items: end center;
  }

  .gm-chat-modal__close {
    top: -8px;
    right: -4px;
  }
}

/* 0.4.0: contextual in-page assistant. This is the old RQChat-like mode: no card, just a message in the page flow. */
.gm-chat--ambient {
  max-width: min(980px, 100%);
  margin: 18px auto 28px;
  color: #f4f1ec;
}

.gm-chat--ambient .gm-chat__shell {
  display: block;
  min-height: 0;
  max-height: none;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gm-chat--ambient .gm-chat__shell::before {
  display: none;
}

.gm-chat--ambient .gm-chat__messages {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.gm-chat--ambient .gm-chat__row {
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.gm-chat--ambient .gm-chat__row--user {
  justify-content: flex-end;
  padding-left: 48px;
}

.gm-chat--ambient .gm-chat__stack {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.gm-chat--ambient .gm-chat__mini-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: 15px;
  border: 2px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(255,255,255,.38), transparent 26%),
    linear-gradient(135deg, var(--gm-chat-brand), #6d5632);
  color: #111;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
}

.gm-chat--ambient .gm-chat__mini-avatar img,
.gm-chat__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gm-chat--ambient .gm-chat__ambient-time {
  margin: 0 0 4px 2px;
  color: rgba(244,241,236,.58);
  font-size: 10px;
  line-height: 1;
}

.gm-chat--ambient .gm-chat__bubble {
  width: fit-content;
  max-width: min(860px, 100%);
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: none;
}

.gm-chat--ambient .gm-chat__bubble--bot {
  border: 1px solid rgba(255,255,255,.05);
  border-top-left-radius: 14px;
  background: #2b2b2b;
  color: #f4f1ec;
}

.gm-chat--ambient .gm-chat__bubble--user {
  border-top-right-radius: 14px;
  background: #d8f7cd;
  color: #172018;
}

.gm-chat--ambient .gm-chat__bubble-text {
  color: inherit;
}

.gm-chat--ambient .gm-chat__time {
  display: none;
}

.gm-chat--ambient .gm-chat__typing {
  min-width: 52px;
  padding: 10px 12px;
}

.gm-chat--ambient .gm-chat__controls {
  padding: 6px 0 0 42px;
}

.gm-chat--ambient .gm-chat__options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.gm-chat--ambient .gm-chat__option {
  min-height: 27px;
  padding: 5px 12px;
  border: 1px solid rgba(128,185,131,.50);
  border-radius: 999px;
  background: #5a9364;
  color: #f7fff7;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.15;
  box-shadow: none;
}

.gm-chat--ambient .gm-chat__option::before {
  content: "- ";
  opacity: .9;
}

.gm-chat--ambient .gm-chat__option:hover,
.gm-chat--ambient .gm-chat__option:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(178,226,181,.75);
  background: #6aa574;
}

.gm-chat--ambient .gm-chat__form {
  max-width: 560px;
  margin-top: 4px;
  border-color: rgba(255,255,255,.08);
  background: rgba(43,43,43,.96);
}

.gm-chat--ambient .gm-chat__status {
  min-height: 0;
  padding: 6px 0 0 42px;
}

.gm-chat-assistant-holder {
  display: flex;
  width: 100%;
  margin: 16px 0;
  pointer-events: none;
}

.gm-chat-assistant-holder--left { justify-content: flex-start; }
.gm-chat-assistant-holder--center { justify-content: center; }
.gm-chat-assistant-holder--right { justify-content: flex-end; }

.gm-chat-assistant-tab {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 154px;
  min-height: 38px;
  padding: 0 24px;
  border: 0;
  background: transparent;
  color: #5a5a5a;
  cursor: pointer;
  font-family: var(--gm-chat-font);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  pointer-events: auto;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.20));
}

.gm-chat-assistant-tab::before,
.gm-chat-assistant-tab::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: skewX(-16deg);
  border: 1px solid rgba(0,0,0,.12);
  background: linear-gradient(180deg, #eeeeee, #cfcfcf);
  z-index: -1;
}

.gm-chat-assistant-tab::after {
  inset: auto 12px -7px 20px;
  height: 9px;
  background: linear-gradient(180deg, #cfcfcf, #b8b8b8);
  opacity: .9;
}

.gm-chat-assistant-tab span {
  position: relative;
  display: inline-block;
}

.gm-chat-assistant-tab:hover,
.gm-chat-assistant-tab:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .gm-chat--ambient {
    margin: 14px 0 22px;
  }

  .gm-chat--ambient .gm-chat__bubble {
    max-width: calc(100vw - 74px);
    font-size: 12.5px;
  }

  .gm-chat--ambient .gm-chat__controls,
  .gm-chat--ambient .gm-chat__status {
    padding-left: 42px;
  }

  .gm-chat--ambient .gm-chat__option {
    max-width: 100%;
  }
}


/* 0.4.1 visual pass: closer to the old RQ/WhatsApp feeling, cleaner avatar and readable form. */
.gm-chat__avatar--fallback {
  color: transparent;
}

.gm-chat__avatar-fallback {
  position: relative;
  display: block;
  width: 62%;
  height: 62%;
}

.gm-chat__avatar-fallback::before,
.gm-chat__avatar-fallback::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.96);
}

.gm-chat__avatar-fallback::before {
  top: 6%;
  width: 38%;
  height: 38%;
  border-radius: 50%;
}

.gm-chat__avatar-fallback::after {
  bottom: 4%;
  width: 74%;
  height: 42%;
  border-radius: 999px 999px 30% 30%;
}

.gm-chat--ambient .gm-chat__mini-avatar,
.gm-chat--ambient .gm-chat__avatar {
  width: 38px;
  height: 38px;
  margin-top: 14px;
  border: 2px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}

.gm-chat--ambient .gm-chat__mini-avatar::after,
.gm-chat--ambient .gm-chat__avatar::after {
  width: 10px;
  height: 10px;
  right: 1px;
  bottom: 1px;
  border-width: 2px;
  border-color: #111b21;
  background: #25d366;
}

.gm-chat--ambient .gm-chat__ambient-time {
  margin: 0 0 6px 3px;
  color: rgba(233,237,239,.68);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .01em;
}

.gm-chat--ambient .gm-chat__bubble {
  position: relative;
  width: auto;
  max-width: min(680px, 100%);
  padding: 10px 13px 11px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.46;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.gm-chat--ambient .gm-chat__bubble--bot {
  border: 1px solid rgba(255,255,255,.05);
  border-top-left-radius: 6px;
  background: #2a2f33;
  color: #e9edef;
}

.gm-chat--ambient .gm-chat__bubble--user {
  max-width: min(440px, 82%);
  border-top-right-radius: 6px;
  background: #d9fdd3;
  color: #111b21;
}

.gm-chat--ambient .gm-chat__bubble--bot::before,
.gm-chat--ambient .gm-chat__bubble--user::before {
  content: "";
  position: absolute;
  top: 10px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
}

.gm-chat--ambient .gm-chat__bubble--bot::before {
  left: -5px;
  background: #2a2f33;
  border-left: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.gm-chat--ambient .gm-chat__bubble--user::before {
  right: -5px;
  background: #d9fdd3;
}

.gm-chat--ambient .gm-chat__bubble-text {
  color: inherit;
}

.gm-chat--ambient .gm-chat__time--user {
  display: block;
  margin-top: 6px;
  color: rgba(17,27,33,.56);
  text-align: right;
  font-size: 10px;
  line-height: 1;
}

.gm-chat--ambient .gm-chat__controls {
  padding: 8px 0 0 46px;
}

.gm-chat--ambient .gm-chat__options {
  gap: 8px;
}

.gm-chat--ambient .gm-chat__option {
  min-height: 30px;
  padding: 6px 13px;
  border: 1px solid rgba(91,177,115,.38);
  background: rgba(90,147,100,.94);
  color: #f7fff7;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.2;
}

.gm-chat--ambient .gm-chat__option:hover,
.gm-chat--ambient .gm-chat__option:focus-visible {
  background: #69a674;
}

.gm-chat--ambient .gm-chat__form {
  display: grid;
  width: min(520px, calc(100% - 4px));
  gap: 12px;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  background: #202c33;
  color: #e9edef;
  box-shadow: 0 16px 34px rgba(0,0,0,.20);
}

.gm-chat--ambient .gm-chat__form-intro {
  color: #e9edef;
  font-size: 13px;
  line-height: 1.45;
}

.gm-chat--ambient .gm-chat__field {
  gap: 6px;
}

.gm-chat--ambient .gm-chat__label {
  color: rgba(233,237,239,.92);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.gm-chat--ambient .gm-chat__input {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: #111b21;
  color: #e9edef;
  font-size: 14px;
  line-height: 1.35;
}

.gm-chat--ambient .gm-chat__input::placeholder {
  color: rgba(233,237,239,.42);
}

.gm-chat--ambient textarea.gm-chat__input {
  min-height: 108px;
  resize: vertical;
}

.gm-chat--ambient .gm-chat__input:focus {
  border-color: rgba(37,211,102,.72);
  box-shadow: 0 0 0 3px rgba(37,211,102,.12);
}

.gm-chat--ambient .gm-chat__file-button,
.gm-chat--ambient .gm-chat__file-remove {
  background: rgba(37,211,102,.12);
  color: #d9fdd3;
}

.gm-chat--ambient .gm-chat__file-button:hover,
.gm-chat--ambient .gm-chat__file-button:focus-visible,
.gm-chat--ambient .gm-chat__file-remove:hover,
.gm-chat--ambient .gm-chat__file-remove:focus-visible {
  background: rgba(37,211,102,.18);
}

.gm-chat--ambient .gm-chat__file-name {
  color: rgba(233,237,239,.58);
}

.gm-chat--ambient .gm-chat__privacy {
  color: rgba(233,237,239,.62);
  font-size: 11px;
  line-height: 1.42;
}

.gm-chat--ambient .gm-chat__submit {
  width: 100%;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #25d366;
  color: #0b2315;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(37,211,102,.16);
}

.gm-chat--ambient .gm-chat__submit:hover,
.gm-chat--ambient .gm-chat__submit:focus-visible {
  transform: translateY(-1px);
  background: #31da70;
  outline: none;
}

.gm-chat--ambient .gm-chat__status {
  padding: 8px 0 0 46px;
  color: rgba(233,237,239,.72);
  font-size: 12px;
  line-height: 1.38;
}

.gm-chat--ambient .gm-chat__status--success { color: #b8f1c7; }
.gm-chat--ambient .gm-chat__status--error { color: #ffb9b9; }
.gm-chat--ambient .gm-chat__status--loading { color: #8ed8a1; }

@media (max-width: 640px) {
  .gm-chat--ambient .gm-chat__mini-avatar,
  .gm-chat--ambient .gm-chat__avatar {
    width: 34px;
    height: 34px;
    margin-top: 12px;
  }

  .gm-chat--ambient .gm-chat__bubble {
    max-width: calc(100vw - 84px);
    font-size: 13px;
  }

  .gm-chat--ambient .gm-chat__bubble--user {
    max-width: min(300px, 84%);
  }

  .gm-chat--ambient .gm-chat__controls,
  .gm-chat--ambient .gm-chat__status {
    padding-left: 42px;
  }

  .gm-chat--ambient .gm-chat__form {
    width: 100%;
    padding: 12px;
  }
}


/* 0.4.3 redesign: clean WhatsApp-like messenger, no theme font pollution, no title/answer chaos. */
.gm-chat,
.gm-chat * {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.gm-chat {
  --gm-chat-wa-bg: #0b141a;
  --gm-chat-wa-header: #202c33;
  --gm-chat-wa-in: #2d3d46;
  --gm-chat-wa-out: #d9fdd3;
  --gm-chat-wa-text: #e9edef;
  --gm-chat-wa-muted: rgba(233,237,239,.60);
  --gm-chat-wa-green: #25d366;
}

.gm-chat__bubble-title,
.gm-chat__bubble-text,
.gm-chat__option,
.gm-chat__title,
.gm-chat__subtitle,
.gm-chat__label,
.gm-chat__input,
.gm-chat__file-button,
.gm-chat__file-remove,
.gm-chat__submit {
  font-variant-ligatures: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Modal/card mode */
.gm-chat--card {
  width: min(420px, calc(100vw - 28px));
  max-width: 420px;
  margin: 0 auto;
}

.gm-chat--card .gm-chat__shell {
  min-height: 0;
  max-height: min(82vh, 680px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: var(--gm-chat-wa-bg);
  box-shadow: 0 24px 74px rgba(0,0,0,.44);
}

.gm-chat--card .gm-chat__header {
  min-height: 60px;
  padding: 10px 14px;
  gap: 10px;
  background: var(--gm-chat-wa-header);
  border-bottom: 1px solid rgba(0,0,0,.18);
}

.gm-chat--card .gm-chat__avatar {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255,255,255,.12);
  background: #111b21;
  box-shadow: none;
}

.gm-chat--card .gm-chat__avatar::after {
  width: 10px;
  height: 10px;
  right: 0;
  bottom: 0;
  border: 2px solid var(--gm-chat-wa-header);
  background: var(--gm-chat-wa-green);
}

.gm-chat--card .gm-chat__title {
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
}

.gm-chat--card .gm-chat__subtitle {
  margin-top: 3px;
  color: var(--gm-chat-wa-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
}

.gm-chat--card .gm-chat__online-dot {
  width: 7px;
  height: 7px;
  background: var(--gm-chat-wa-green);
  box-shadow: none;
}

.gm-chat--card .gm-chat__brand {
  display: none;
}

.gm-chat--card .gm-chat__messages {
  flex: 0 1 auto;
  gap: 8px;
  min-height: 0;
  max-height: min(52vh, 440px);
  overflow-y: auto;
  padding: 12px 12px 8px;
  background:
    radial-gradient(circle at 12% 8%, rgba(37,211,102,.045), transparent 28%),
    linear-gradient(180deg, #0b141a, #0a1217);
}

.gm-chat__day {
  align-self: center;
  margin: 2px 0 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(32,44,51,.90);
  color: rgba(233,237,239,.66);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
}

.gm-chat--card .gm-chat__row {
  display: flex;
  width: 100%;
}

.gm-chat--card .gm-chat__row--bot { justify-content: flex-start; }
.gm-chat--card .gm-chat__row--user { justify-content: flex-end; }

.gm-chat--card .gm-chat__bubble {
  position: relative;
  max-width: min(86%, 340px);
  padding: 8px 10px 18px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 400 !important;
  line-height: 1.42;
  box-shadow: 0 2px 7px rgba(0,0,0,.12);
}

.gm-chat--card .gm-chat__bubble--bot {
  border-top-left-radius: 4px;
  background: var(--gm-chat-wa-in);
  color: var(--gm-chat-wa-text);
}

.gm-chat--card .gm-chat__bubble--user {
  border-top-right-radius: 4px;
  background: var(--gm-chat-wa-out);
  color: #111b21;
  font-weight: 400 !important;
}

.gm-chat--card .gm-chat__bubble-text {
  color: inherit;
  font-size: inherit;
  font-weight: 400 !important;
  line-height: inherit;
}

.gm-chat--card .gm-chat__time {
  position: absolute;
  right: 8px;
  bottom: 5px;
  color: rgba(233,237,239,.50);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
}

.gm-chat--card .gm-chat__time--user {
  display: inline-block;
  position: static;
  margin-left: 6px;
  color: rgba(17,27,33,.52);
  font-size: 10px;
}

.gm-chat--card .gm-chat__row--success .gm-chat__stack {
  width: 100%;
  max-width: 100%;
}

.gm-chat--card .gm-chat__success {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  padding: 13px 12px 16px;
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(37,211,102,.22), rgba(37,211,102,.07)),
    #17252c;
  box-shadow: 0 10px 24px rgba(0,0,0,.20);
}

.gm-chat--card .gm-chat__success-icon {
  width: 38px;
  height: 38px;
}

.gm-chat--card .gm-chat__success-title {
  font-size: 13px;
}

.gm-chat--card .gm-chat__success-body,
.gm-chat--card .gm-chat__success-note {
  font-size: 12px;
}

.gm-chat--card .gm-chat__notice,
.gm-chat--card .gm-chat__composer {
  display: none !important;
}

.gm-chat--card .gm-chat__controls {
  padding: 8px 12px 12px;
  background: var(--gm-chat-wa-bg);
}

.gm-chat--card .gm-chat__options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}

.gm-chat--card .gm-chat__option {
  width: auto;
  max-width: 100%;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(37,211,102,.42);
  border-radius: 999px;
  background: var(--gm-chat-wa-green);
  color: #062b18;
  font-size: 13px;
  font-weight: 650 !important;
  line-height: 1.2;
  text-align: left;
  box-shadow: 0 8px 18px rgba(37,211,102,.14);
}

.gm-chat--card .gm-chat__option:hover,
.gm-chat--card .gm-chat__option:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(37,211,102,.58);
  background: #31da70;
  outline: none;
}

.gm-chat--card .gm-chat__option:disabled {
  cursor: default;
  opacity: .94;
}

.gm-chat--card .gm-chat__option--selected {
  background: #20c85e;
  animation: gmChatChoiceShake .28s ease both;
}

.gm-chat--card .gm-chat__option--primary,
.gm-chat--card .gm-chat__submit {
  width: 100%;
  justify-content: center;
  border-color: transparent;
  background: var(--gm-chat-wa-green);
  color: #062b18;
  font-weight: 650 !important;
  text-align: center;
}

.gm-chat--card .gm-chat__form {
  display: grid;
  gap: 11px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  background: var(--gm-chat-wa-in);
  color: var(--gm-chat-wa-text);
  box-shadow: none;
}

.gm-chat--card .gm-chat__form-intro {
  color: rgba(233,237,239,.86);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.38;
}

.gm-chat--card .gm-chat__field {
  display: grid;
  gap: 6px;
}

.gm-chat--card .gm-chat__label {
  color: rgba(233,237,239,.86);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.gm-chat--card .gm-chat__input {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  background: #111b21;
  color: var(--gm-chat-wa-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.gm-chat--card .gm-chat__input::placeholder {
  color: rgba(233,237,239,.42);
}

.gm-chat--card textarea.gm-chat__input {
  min-height: 96px;
  resize: vertical;
}

.gm-chat--card .gm-chat__input:focus {
  border-color: rgba(37,211,102,.68);
  box-shadow: 0 0 0 3px rgba(37,211,102,.11);
  outline: none;
}

.gm-chat--card .gm-chat__file-row {
  gap: 8px;
}

.gm-chat--card .gm-chat__file-button,
.gm-chat--card .gm-chat__file-remove {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(37,211,102,.26);
  background: rgba(37,211,102,.12);
  color: #d9fdd3;
  font-size: 12px;
  font-weight: 700 !important;
}

.gm-chat--card .gm-chat__file-button:hover,
.gm-chat--card .gm-chat__file-button:focus-visible,
.gm-chat--card .gm-chat__file-remove:hover,
.gm-chat--card .gm-chat__file-remove:focus-visible {
  background: rgba(37,211,102,.18);
  outline: none;
}

.gm-chat--card .gm-chat__file-name {
  color: rgba(233,237,239,.58);
}

.gm-chat--card .gm-chat__privacy {
  color: rgba(233,237,239,.58);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}

.gm-chat--card .gm-chat__submit {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
}

.gm-chat-modal {
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(5px);
}

.gm-chat-modal__close {
  top: -12px;
  right: -12px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.14);
  background: #202c33;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 8px 22px rgba(0,0,0,.30);
}

/* Ambient inline mode: keep the old RQ feeling, but with readable typography. */
.gm-chat--ambient .gm-chat__mini-avatar,
.gm-chat--ambient .gm-chat__avatar {
  background: #111b21;
}

.gm-chat--ambient .gm-chat__bubble {
  font-size: 13px;
  font-weight: 400 !important;
  line-height: 1.42;
}

.gm-chat--ambient .gm-chat__bubble-text {
  font-weight: 400 !important;
}

.gm-chat--ambient .gm-chat__option {
  font-size: 12px;
  font-weight: 500 !important;
}

@media (max-width: 640px) {
  .gm-chat--card {
    width: min(100%, calc(100vw - 18px));
  }

  .gm-chat--card .gm-chat__shell {
    max-height: min(86vh, 720px);
    border-radius: 16px;
  }

  .gm-chat--card .gm-chat__messages {
    max-height: min(56vh, 470px);
  }

  .gm-chat--card .gm-chat__bubble {
    max-width: 88%;
    font-size: 13.5px;
  }

  .gm-chat--card .gm-chat__option {
    font-size: 12.5px;
  }
}


/* 0.4.4 avatar centering fix: image is a ready-made round avatar, not a texture to crop. */
.gm-chat__mini-avatar,
.gm-chat__avatar,
.gm-chat--card .gm-chat__avatar,
.gm-chat--ambient .gm-chat__mini-avatar,
.gm-chat--ambient .gm-chat__avatar {
  overflow: visible;
}

.gm-chat__mini-avatar img,
.gm-chat__avatar img,
.gm-chat--card .gm-chat__avatar img,
.gm-chat--ambient .gm-chat__mini-avatar img,
.gm-chat--ambient .gm-chat__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: 50% 50% !important;
  transform: none !important;
  border-radius: 50%;
}

.gm-chat--card .gm-chat__avatar {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.gm-chat--ambient .gm-chat__mini-avatar,
.gm-chat--ambient .gm-chat__avatar {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.gm-chat--card .gm-chat__avatar::after,
.gm-chat--ambient .gm-chat__mini-avatar::after,
.gm-chat--ambient .gm-chat__avatar::after {
  right: 0;
  bottom: 0;
  z-index: 2;
}
