.mx-greeting {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: min(330px, calc(100vw - 28px));
  font-family: inherit;
  color: #17251f;
}
.mx-greeting[hidden] { display: none !important; }

.mx-greeting__bubble {
  position: relative;
  width: calc(100% - 16px);
  padding: 17px 18px;
  background: #fff;
  border: 1px solid #e3ebe6;
  border-radius: 19px 19px 5px 19px;
  box-shadow: 0 10px 35px rgba(20, 48, 35, .17);
  animation: mxHelloIn .35s ease-out;
}
.mx-greeting__bubble::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: -9px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-right: 1px solid #e3ebe6;
  border-bottom: 1px solid #e3ebe6;
  transform: rotate(45deg);
}
.mx-greeting__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.mx-greeting__status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25b76a;
}
.mx-greeting__name {
  font-size: 12px;
  font-weight: 700;
  color: #236748;
  letter-spacing: .3px;
}
.mx-greeting__close {
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  width: 27px;
  height: 27px;
  background: #f1f4f2;
  color: #33433a;
  font-size: 19px;
  cursor: pointer;
}
.mx-greeting__message {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}
.mx-greeting__message strong {
  display: block;
  margin-bottom: 3px;
  font-size: 17px;
  color: #173b32;
}
.mx-greeting__person {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: 142px;
  padding-right: 5px;
}
.mx-greeting__avatar {
  display: block;
  width: 116px;
  height: 142px;
  filter: drop-shadow(0 6px 8px rgba(20, 48, 35, .15));
  cursor: pointer;
  transform-origin: bottom center;
  transition: transform .2s ease;
}
.mx-greeting__avatar:hover { transform: translateY(-4px); }
.mx-greeting__avatar:focus-visible {
  outline: 2px solid #25a56a;
  outline-offset: 4px;
  border-radius: 18px;
}
.mx-greeting__hint {
  margin: 0 0 5px 0;
  padding: 8px 11px;
  border-radius: 12px;
  background: #173b32;
  color: #fff;
  font-size: 11px;
  box-shadow: 0 4px 12px #173b3225;
}
@keyframes mxHelloIn {
  from { opacity: 0; transform: translateY(9px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 600px) {
  .mx-greeting { right: 12px; bottom: 82px; width: min(300px, calc(100vw - 24px)); }
  .mx-greeting__person { min-height: 116px; }
  .mx-greeting__avatar { width: 94px; height: 116px; }
  .mx-greeting__bubble { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .mx-greeting__bubble { animation: none; }
  .mx-greeting__avatar { transition: none; }
}

/* MAXINPRO FEMALE AGENT + QUICK MENU */
.mx-greeting {
  width: min(365px, calc(100vw - 24px));
  right: 18px;
  bottom: 88px;
  gap: 0;
}
.mx-greeting__bubble {
  width: 100%;
  box-sizing: border-box;
  border-radius: 20px;
  padding: 17px 18px;
}
.mx-greeting__bubble::after { display: none; }
.mx-greeting__person {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 142px;
  height: 220px;
  min-height: 0;
  pointer-events: none;
}
.mx-greeting__avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,.14));
  pointer-events: auto;
}
.mx-greeting__bubble {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  padding-bottom: 17px;
}
.mx-greeting__message { padding-right: 0; }
.mx-greeting__actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-right: 80px;
}
.mx-greeting__action {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #b9d8c5;
  border-radius: 24px;
  background: #fff;
  color: #173b32;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
}
.mx-greeting__action:hover {
  background: #edf7f0;
  border-color: #39885e;
}
.mx-greeting__action-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 50%;
  background: #2e8b57;
  color: #fff;
  font-size: 15px;
}
.mx-greeting__action--sell { border-color: #f4c4a0; }
.mx-greeting__action--sell .mx-greeting__action-icon {
  background: #ed7a26;
}
.mx-greeting__action--contact .mx-greeting__action-icon {
  background: #25a85a;
}
.mx-greeting__action-label { flex: 1; }
.mx-greeting__action-arrow { font-size: 19px; font-weight: 400; }
.mx-greeting__bubble .mx-greeting__message strong { font-size: 19px; }

@media (max-width: 600px) {
  .mx-greeting {
    right: 12px;
    bottom: 82px;
    width: min(340px, calc(100vw - 24px));
  }
  .mx-greeting__person {
    width: 112px;
    height: 174px;
    right: -2px;
  }
  .mx-greeting__actions { padding-right: 58px; }
  .mx-greeting__action { min-height: 39px; padding: 7px 9px; }
  .mx-greeting__bubble { padding: 14px; }
}

/* MAXINPRO AVATAR VISIBILITY FIX */
.mx-greeting {
  width: min(420px, calc(100vw - 24px)) !important;
  right: 18px !important;
  bottom: 90px !important;
  align-items: stretch !important;
  overflow: visible !important;
}

.mx-greeting__bubble {
  position: relative !important;
  z-index: 2 !important;
  width: calc(100% - 90px) !important;
  margin-right: 90px !important;
  box-sizing: border-box !important;
}

.mx-greeting__person {
  position: absolute !important;
  z-index: 3 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 170px !important;
  height: 250px !important;
  min-height: 0 !important;
  overflow: visible !important;
  pointer-events: none !important;
}

.mx-greeting__avatar {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: bottom center !important;
  pointer-events: auto !important;
}

.mx-greeting__actions {
  padding-right: 0 !important;
}

@media (max-width: 600px) {
  .mx-greeting {
    width: calc(100vw - 24px) !important;
    right: 12px !important;
    bottom: 82px !important;
  }

  .mx-greeting__bubble {
    width: calc(100% - 66px) !important;
    margin-right: 66px !important;
    padding: 12px !important;
  }

  .mx-greeting__person {
    width: 125px !important;
    height: 190px !important;
    right: 0 !important;
    bottom: 0 !important;
  }

  .mx-greeting__actions {
    padding-right: 0 !important;
  }

  .mx-greeting__action {
    font-size: 11px !important;
    padding: 7px !important;
  }
}
