.yeli-bot {
  position: fixed;
  right: 1.25rem;
  bottom: 6.35rem;
  z-index: 25000;
  font-family: "Quicksand", sans-serif;
}

.yeli-bot__launcher-shell {
  display: flex;
  align-items: center;
  min-height: 70px;
  border-radius: 999px;
  background: #056f9d;
  box-shadow: 0 14px 35px rgba(3, 62, 89, 0.3);
  transition: transform 180ms ease, box-shadow 180ms ease, width 180ms ease;
}

.yeli-bot__launcher-shell:hover,
.yeli-bot__launcher-shell:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(3, 62, 89, 0.38);
}

.yeli-bot__launcher {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  min-height: 70px;
  padding: 5px 0.65rem 5px 5px;
  border: 0;
  border-radius: 999px 0 0 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.yeli-bot__retract {
  display: grid;
  width: 34px;
  height: 42px;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  place-items: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-size: 0.72rem;
}

.yeli-bot.is-collapsed .yeli-bot__launcher-shell,
.yeli-bot.is-collapsed .yeli-bot__launcher {
  width: 70px;
  min-width: 70px;
}

.yeli-bot.is-collapsed .yeli-bot__launcher {
  padding: 5px;
  border-radius: 50%;
}

.yeli-bot.is-collapsed .yeli-bot__launcher-label,
.yeli-bot.is-collapsed .yeli-bot__retract {
  display: none;
}

.yeli-bot__launcher:focus-visible,
.yeli-bot__retract:focus-visible,
.yeli-bot__nudge button:focus-visible,
.yeli-bot__reset:focus-visible,
.yeli-bot__close:focus-visible,
.yeli-bot__composer button:focus-visible,
.yeli-bot__suggestions button:focus-visible {
  outline: 3px solid rgba(0, 156, 222, 0.35);
  outline-offset: 3px;
}

.yeli-bot__launcher-icon,
.yeli-bot__avatar {
  display: grid;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #fff;
}

.yeli-bot__launcher-icon img,
.yeli-bot__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.42);
}

.yeli-bot__launcher-icon {
  width: 60px;
  height: 60px;
  font-size: 1.15rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.yeli-bot__launcher-label {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.yeli-bot__nudge {
  position: absolute;
  right: 0;
  bottom: 82px;
  width: min(340px, calc(100vw - 2.5rem));
  padding: 0.45rem;
  border: 1px solid rgba(5, 111, 157, 0.15);
  border-radius: 20px 20px 6px 20px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 45, 61, 0.24);
  animation: yeli-bot-nudge-in 260ms ease both;
}

.yeli-bot__nudge-open {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.7rem;
  width: 100%;
  padding: 0.4rem 1.8rem 0.4rem 0.35rem;
  border: 0;
  background: transparent;
  color: #435762;
  cursor: pointer;
  font: 0.8rem/1.4 "Quicksand", sans-serif;
  text-align: left;
}

.yeli-bot__nudge-open strong {
  display: block;
  margin-bottom: 0.12rem;
  color: #056f9d;
  font-size: 0.86rem;
}

.yeli-bot__nudge-avatar {
  display: block;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 2px solid #bfeafb;
  border-radius: 50%;
  background: #fff;
}

.yeli-bot__nudge-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.42);
}

.yeli-bot__nudge-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: #edf7fb;
  color: #56717e;
  cursor: pointer;
}

.whatsapp-btn {
  right: 1.25rem !important;
  bottom: 1.25rem !important;
  display: grid !important;
  width: 70px !important;
  height: 70px !important;
  padding: 0 !important;
  place-items: center;
  line-height: 1;
}

.yeli-bot__panel {
  position: absolute;
  right: 0;
  bottom: -5.1rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(410px, calc(100vw - 2rem));
  height: min(680px, calc(100vh - 2rem));
  overflow: hidden;
  border: 1px solid rgba(5, 111, 157, 0.14);
  border-radius: 26px;
  background: #f7fbfd;
  box-shadow: 0 28px 80px rgba(15, 45, 61, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 180ms ease, transform 180ms ease;
}

.yeli-bot.is-open .yeli-bot__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.yeli-bot.is-open .yeli-bot__launcher-shell,
.yeli-bot.is-open .yeli-bot__nudge {
  opacity: 0;
  pointer-events: none;
}

.yeli-bot__header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 80px;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, #056f9d 0%, #009cde 100%);
  color: #fff;
}

.yeli-bot__avatar {
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  font-size: 1rem;
}

.yeli-bot__identity { min-width: 0; flex: 1; }
.yeli-bot__title-row { display: flex; align-items: center; gap: 0.45rem; }

.yeli-bot__identity h2 {
  color: #fff;
  font-family: "Quicksand", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.15;
}

.yeli-bot__identity p {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
}

.yeli-bot__status-dot {
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: #5ee58c;
}

.yeli-bot__reset,
.yeli-bot__close {
  display: grid;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}

.yeli-bot__reset {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.yeli-bot__messages {
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem 1rem 1rem;
  scrollbar-color: rgba(5, 111, 157, 0.28) transparent;
  scrollbar-width: thin;
}

.yeli-bot__message { display: flex; margin-bottom: 0.85rem; }
.yeli-bot__message--user { justify-content: flex-end; }

.yeli-bot__bubble {
  max-width: 86%;
  padding: 0.78rem 0.9rem;
  border-radius: 8px 18px 18px 18px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(36, 70, 87, 0.08);
  color: #2b3a42;
}

.yeli-bot__message--user .yeli-bot__bubble {
  border-radius: 18px 18px 8px 18px;
  background: #056f9d;
  color: #fff;
}

.yeli-bot__bubble p {
  color: inherit;
  font-family: "Quicksand", sans-serif;
  font-size: 0.88rem;
  line-height: 1.48;
  white-space: pre-wrap;
}

.yeli-bot__bubble p + p { margin-top: 0.5rem; }

.yeli-bot__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.3rem 0 1rem;
}

.yeli-bot__suggestions button {
  padding: 0.55rem 0.78rem;
  border: 1px solid rgba(0, 156, 222, 0.35);
  border-radius: 999px;
  background: #fff;
  color: #056f9d;
  font-family: "Quicksand", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.yeli-bot__typing .yeli-bot__bubble {
  display: flex;
  gap: 0.28rem;
  align-items: center;
  min-height: 42px;
}

.yeli-bot__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7d9aa8;
  animation: yeli-bot-bounce 1.15s infinite ease-in-out;
}

.yeli-bot__typing span:nth-child(2) { animation-delay: 140ms; }
.yeli-bot__typing span:nth-child(3) { animation-delay: 280ms; }

.yeli-bot__property-list {
  display: grid;
  gap: 0.7rem;
  margin: -0.25rem 0 1rem;
}

.yeli-bot__property {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  min-height: 86px;
  overflow: hidden;
  border: 1px solid rgba(5, 111, 157, 0.12);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(36, 70, 87, 0.07);
}

.yeli-bot__property-media {
  position: relative;
  display: grid;
  width: 86px;
  height: 100%;
  min-height: 86px;
  place-items: center;
  background: #e6f5fb;
  color: #009cde;
}

.yeli-bot__property-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yeli-bot__property-copy {
  display: grid;
  align-content: center;
  gap: 0.18rem;
  min-width: 0;
  padding: 0.65rem 0.75rem;
}

.yeli-bot__property-copy strong,
.yeli-bot__property-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yeli-bot__property-copy strong { color: #1f2a37; font-size: 0.78rem; }
.yeli-bot__property-copy span { color: #647782; font-size: 0.7rem; }
.yeli-bot__property-copy b { color: #056f9d; font-size: 0.77rem; }
.yeli-bot__property-copy .yeli-bot__property-action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.15rem;
  color: #056f9d;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.yeli-bot__property-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.yeli-bot__property-action--advisor { color: #1a9c5c !important; }

.yeli-bot__composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: end;
  gap: 0.55rem;
  margin: 0 0.75rem;
  padding: 0.55rem;
  border: 1px solid rgba(5, 111, 157, 0.17);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(36, 70, 87, 0.08);
}

.yeli-bot__composer textarea {
  width: 100%;
  height: 42px;
  min-height: 42px;
  max-height: 110px;
  padding: 0.6rem 0.55rem;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1f2a37;
  font: 0.84rem/1.4 "Quicksand", sans-serif;
}

.yeli-bot__composer button {
  display: grid;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: #009cde;
  color: #fff;
  cursor: pointer;
}

.yeli-bot__composer button:disabled { cursor: wait; opacity: 0.55; }
.yeli-bot__notice { padding: 0.6rem 1rem 0.7rem; color: #7b8b93; font-size: 0.62rem; text-align: center; }

@keyframes yeli-bot-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

@keyframes yeli-bot-nudge-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
  body.yeli-bot-open { overflow: hidden; }
  .yeli-bot { right: 1.25rem; bottom: 6.35rem; }
  .yeli-bot__launcher-shell { max-width: calc(100vw - 2.5rem); }
  .yeli-bot__launcher-label { overflow: hidden; text-overflow: ellipsis; }
  .yeli-bot__panel { position: fixed; inset: 0; width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .yeli-bot__header { padding-top: max(1rem, env(safe-area-inset-top)); }
  .yeli-bot__notice { padding-bottom: max(0.7rem, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .yeli-bot__launcher,
  .yeli-bot__launcher-shell,
  .yeli-bot__nudge,
  .yeli-bot__panel,
  .yeli-bot__typing span { animation: none; transition: none; }
}
