/* EduGenaro Chat V2 — isolated responsive layer */
.egme-profile-v21 .egme-chat-dock{
  position:fixed!important;
  left:auto!important;
  right:18px!important;
  bottom:14px!important;
  width:auto!important;
  transform:none!important;
  z-index:100050!important;
  pointer-events:none!important;
}
.egme-profile-v21 .egme-chat-launcher{
  pointer-events:auto!important;
  min-width:48px!important;
  min-height:48px!important;
}
.egme-profile-v21 .egme-chat-panel{
  pointer-events:auto!important;
  position:absolute!important;
  right:0!important;
  bottom:60px!important;
  width:372px!important;
  height:min(620px,calc(100vh - 100px))!important;
  max-width:calc(100vw - 28px)!important;
  max-height:none!important;
  display:none!important;
  flex-direction:column!important;
  overflow:hidden!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 22px 70px rgba(15,23,42,.28)!important;
}
.egme-profile-v21 .egme-chat-dock.is-expanded .egme-chat-panel{
  display:flex!important;
}
.egme-profile-v21 .egme-chat-panel-head{
  flex:0 0 auto!important;
  min-height:58px!important;
  padding:14px 16px!important;
}
.egme-profile-v21 .egme-float-chat-tabs{
  flex:0 0 auto!important;
  padding:10px!important;
}
.egme-profile-v21 .egme-float-chat-section{
  min-height:0!important;
  flex:1 1 auto!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
}
.egme-profile-v21 .egme-float-chat-section.is-active{
  display:block!important;
}
.egme-profile-v21 .egme-chat-search-wrap{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin:10px 12px 6px!important;
  padding:10px 13px!important;
  border-radius:999px!important;
  background:#f0f2f5!important;
  border:1px solid #e3e6ea!important;
}
.egme-profile-v21 .egme-chat-search{
  width:100%!important;
  min-width:0!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  font-size:14px!important;
}
.egme-profile-v21 .egme-chat-contacts,
.egme-profile-v21 .egme-chat-groups-list{
  padding:6px 9px 14px!important;
}
.egme-profile-v21 .egme-chat-contacts a,
.egme-profile-v21 .egme-chat-groups-list a{
  min-height:62px!important;
}
.egme-profile-v21 .egme-chat-empty{
  min-height:260px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  padding:30px 22px!important;
}
.egme-profile-v21 .egme-chat-window{
  width:372px!important;
  max-width:calc(100vw - 28px)!important;
  height:min(620px,calc(100vh - 100px))!important;
  display:flex!important;
  flex-direction:column!important;
}
.egme-profile-v21 .egme-chat-window .egme-chat-messages{
  height:auto!important;
  flex:1 1 auto!important;
}

@media (min-width:701px) and (max-width:1100px){
  .egme-profile-v21 .egme-chat-panel,
  .egme-profile-v21 .egme-chat-window{
    width:400px!important;
    height:min(680px,calc(100vh - 84px))!important;
  }
}

@media (max-width:700px){
  .egme-profile-v21 .egme-chat-dock{
    left:8px!important;
    right:8px!important;
    bottom:8px!important;
  }
  .egme-profile-v21 .egme-chat-launcher{
    margin-left:auto!important;
  }
  .egme-profile-v21 .egme-chat-panel,
  .egme-profile-v21 .egme-chat-window{
    position:fixed!important;
    left:8px!important;
    right:8px!important;
    top:8px!important;
    bottom:8px!important;
    width:auto!important;
    height:auto!important;
    max-width:none!important;
    max-height:none!important;
    border-radius:20px!important;
  }
  .egme-profile-v21 .egme-chat-empty{
    min-height:45vh!important;
  }
}

/* v3.0.0 - Navegación interna del chat */
.egme-profile-v21 .egme-chat-window>header{display:grid!important;grid-template-columns:40px minmax(0,1fr) 40px!important;align-items:center!important;gap:6px!important;padding:12px 10px!important}
.egme-profile-v21 .egme-chat-window>header strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.egme-profile-v21 .egme-chat-back{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:25px;line-height:1;cursor:pointer}
.egme-profile-v21 .egme-chat-back:hover{background:rgba(255,255,255,.22);transform:translateX(-2px)}
.egme-profile-v21 .egme-chat-window>header>a{display:grid;place-items:center;width:36px;height:36px;margin-left:auto}
@media(max-width:700px){.egme-profile-v21 .egme-chat-window>header{padding:12px!important}.egme-profile-v21 .egme-chat-back{width:40px;height:40px}}
.egme-presence-select{margin-left:auto;max-width:145px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.12);color:inherit;border-radius:999px;padding:6px 10px;font-size:12px}.egme-presence-select option{color:#111;background:#fff}.egme-live-time{display:block;font-size:10px;opacity:.65;margin-top:3px}.egme-live-typing{padding:8px 12px;color:#667085;font-size:13px;font-style:italic}.egme-status-dot.is-dnd,.egme-contact-avatar i.is-dnd{background:#7c3aed!important}.egme-status-dot.is-away,.egme-contact-avatar i.is-away{background:#f59e0b!important}.egme-status-dot.is-offline,.egme-contact-avatar i.is-offline{background:#9ca3af!important}


/* EduGenaro 3.2 - EduMojis, insignias y logros */
.egme-chat-window form{position:relative;display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:end}
.egme-chat-window form textarea{grid-column:2;min-width:0}
.egme-chat-window form>button:last-child{grid-column:3}
.egme-edumoji{position:relative;grid-column:1}
.egme-edumoji-toggle{width:42px;height:42px;border:0;border-radius:50%;background:#f5eef1;font-size:22px;cursor:pointer}
.egme-edumoji-panel{position:absolute;left:0;bottom:50px;width:300px;max-width:82vw;background:#fff;border:1px solid #e9dbe1;border-radius:18px;box-shadow:0 18px 50px rgba(33,18,28,.22);padding:12px;z-index:100500}
.egme-edumoji-tabs{display:flex;gap:6px;margin-bottom:10px}.egme-edumoji-tabs button{flex:1;border:0;border-radius:999px;padding:8px;background:#f3edf0;font-weight:800;cursor:pointer}.egme-edumoji-tabs button.is-active{background:#a8244c;color:#fff}
.egme-edumoji-grid{display:none;grid-template-columns:repeat(6,1fr);gap:6px}.egme-edumoji-grid.is-active{display:grid}.egme-edumoji-grid button{border:0;background:#faf7f8;border-radius:10px;font-size:24px;padding:7px;cursor:pointer}.egme-edumoji-grid button:hover{transform:scale(1.08);background:#f2e4ea}.egme-edumoji-locked{grid-column:1/-1;text-align:center;padding:16px}.egme-edumoji-locked p{font-size:13px;color:#667085}.egme-edumoji-locked a{display:inline-block;background:#a8244c;color:#fff;text-decoration:none;border-radius:999px;padding:9px 14px;font-weight:800}
@media(max-width:600px){.egme-edumoji-panel{position:fixed;left:4vw;right:4vw;bottom:88px;width:auto;max-width:none}.egme-edumoji-grid{grid-template-columns:repeat(6,1fr)}}


/* v3.8.8 — ÚNICAMENTE restaurar chat flotante sin tocar el muro */
html body > .egme-chat-dock,
html body > .egme-chat-dock.egme-chat-dock{
  position:fixed!important;
  left:auto!important;
  right:18px!important;
  top:auto!important;
  bottom:18px!important;
  margin:0!important;
  width:auto!important;
  height:auto!important;
  max-width:calc(100vw - 24px)!important;
  transform:none!important;
  translate:none!important;
  contain:none!important;
  z-index:2147483000!important;
  pointer-events:none!important;
}
html body > .egme-chat-dock .egme-chat-launcher,
html body > .egme-chat-dock .egme-chat-panel,
html body > .egme-chat-dock .egme-chat-window{
  pointer-events:auto!important;
}
html body > .egme-chat-dock .egme-chat-panel{
  position:absolute!important;
  right:0!important;
  left:auto!important;
  top:auto!important;
  bottom:60px!important;
}
@media(max-width:700px){
  html body > .egme-chat-dock,
  html body > .egme-chat-dock.egme-chat-dock{
    left:8px!important;
    right:8px!important;
    bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;
    max-width:none!important;
  }
  html body > .egme-chat-dock .egme-chat-launcher{margin-left:auto!important}
  html body > .egme-chat-dock .egme-chat-panel,
  html body > .egme-chat-dock .egme-chat-window{
    position:fixed!important;
    left:8px!important;
    right:8px!important;
    top:8px!important;
    bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;
    width:auto!important;
    height:auto!important;
  }
}


/* v4.0.6 — SOLO botón Enviar visible y dentro del chat */
html body .egme-chat-window form{
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr) 48px!important;
  gap:8px!important;
  align-items:end!important;
  width:100%!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
html body .egme-chat-window form textarea[name="message"]{
  min-width:0!important;
  width:100%!important;
  box-sizing:border-box!important;
}
html body .egme-chat-window form .egme-chat-send-button{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  align-items:center!important;
  justify-content:center!important;
  width:48px!important;
  min-width:48px!important;
  height:44px!important;
  padding:0!important;
  border:0!important;
  border-radius:12px!important;
  background:var(--egme-profile-tone,#9c1f5a)!important;
  color:#fff!important;
  font-size:20px!important;
  cursor:pointer!important;
  position:static!important;
  transform:none!important;
}
@media(max-width:700px){
  html body .egme-chat-window form{grid-template-columns:40px minmax(0,1fr) 46px!important;gap:6px!important}
  html body .egme-chat-window form .egme-chat-send-button{width:46px!important;min-width:46px!important}
}

/* v4.0.8 — Botón Enviar visible en TODOS los chats, sin alterar el resto */
html body .egme-chat-window form button[type="submit"],
html body .egme-chat-window form .egme-chat-send-button,
html body .egme-inline-chat-view form button[type="submit"],
html body .egme-group-chat form button[type="submit"],
html body .egme-chat-form button[type="submit"]{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 48px!important;
  width:48px!important;
  min-width:48px!important;
  height:44px!important;
  min-height:44px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:12px!important;
  background:var(--egme-profile-tone,#9c1f5a)!important;
  color:#fff!important;
  font-size:20px!important;
  line-height:1!important;
  cursor:pointer!important;
  position:static!important;
  inset:auto!important;
  transform:none!important;
  z-index:2!important;
  overflow:hidden!important;
}
html body .egme-chat-window form button[type="submit"]::before,
html body .egme-inline-chat-view form button[type="submit"]::before,
html body .egme-group-chat form button[type="submit"]::before,
html body .egme-chat-form button[type="submit"]::before{
  content:"➤";
}
html body .egme-chat-window form button[type="submit"] span,
html body .egme-inline-chat-view form button[type="submit"] span,
html body .egme-group-chat form button[type="submit"] span,
html body .egme-chat-form button[type="submit"] span{
  display:none!important;
}
html body .egme-chat-window form,
html body .egme-inline-chat-view form,
html body .egme-group-chat form,
html body .egme-chat-form{
  box-sizing:border-box!important;
  max-width:100%!important;
  overflow:visible!important;
}
@media(max-width:700px){
  html body .egme-chat-window form button[type="submit"],
  html body .egme-inline-chat-view form button[type="submit"],
  html body .egme-group-chat form button[type="submit"],
  html body .egme-chat-form button[type="submit"]{
    flex-basis:46px!important;
    width:46px!important;
    min-width:46px!important;
  }
}

/* v4.0.9 — corrección definitiva: formulario compacto y botón visible */
html body .egme-chat-window form{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  max-width:100%!important;
  padding:10px!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
html body .egme-chat-window form [data-egme-edumoji]{
  flex:0 0 42px!important;
  width:42px!important;
  min-width:42px!important;
}
html body .egme-chat-window form textarea[name="message"]{
  flex:1 1 auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  height:46px!important;
  min-height:46px!important;
  max-height:110px!important;
  margin:0!important;
  resize:none!important;
  box-sizing:border-box!important;
}
html body .egme-chat-window form .egme-chat-send-button{
  display:inline-flex!important;
  flex:0 0 48px!important;
  width:48px!important;
  min-width:48px!important;
  max-width:48px!important;
  height:46px!important;
  min-height:46px!important;
  margin:0!important;
  padding:0!important;
  align-items:center!important;
  justify-content:center!important;
  position:relative!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  border:0!important;
  border-radius:12px!important;
  background:#9c1f5a!important;
  color:#fff!important;
  font-size:22px!important;
  line-height:1!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  z-index:20!important;
}
html body .egme-chat-window form .egme-chat-send-button::before,
html body .egme-chat-window form .egme-chat-send-button::after{content:none!important;display:none!important}
@media(max-width:700px){
  html body .egme-chat-window form{gap:6px!important;padding:8px!important}
  html body .egme-chat-window form [data-egme-edumoji]{flex-basis:36px!important;width:36px!important;min-width:36px!important}
  html body .egme-chat-window form .egme-chat-send-button{flex-basis:44px!important;width:44px!important;min-width:44px!important;max-width:44px!important}
}

/* v4.1.0 — SOLO CHAT: navegación estable, cabecera visible y mensajes legibles */
html body > .egme-chat-dock .egme-chat-window{
  background:#fff!important;
  overflow:hidden!important;
  border-radius:18px!important;
  box-shadow:0 18px 60px rgba(0,0,0,.30)!important;
}
html body > .egme-chat-dock .egme-chat-window>header{
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr) 42px!important;
  align-items:center!important;
  gap:8px!important;
  min-height:62px!important;
  padding:10px 12px!important;
  background:#18212b!important;
  color:#fff!important;
  border:0!important;
  visibility:visible!important;
  opacity:1!important;
}
html body > .egme-chat-dock .egme-chat-window>header strong{
  display:block!important;
  color:#fff!important;
  font-size:16px!important;
  text-align:left!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  visibility:visible!important;
  opacity:1!important;
}
html body > .egme-chat-dock .egme-chat-window>header .egme-chat-back,
html body > .egme-chat-dock .egme-chat-window>header a[aria-label="Cerrar chat"]{
  display:grid!important;
  place-items:center!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:12px!important;
  background:#b91f55!important;
  color:#fff!important;
  font-size:22px!important;
  line-height:1!important;
  text-decoration:none!important;
  cursor:pointer!important;
  visibility:visible!important;
  opacity:1!important;
}
html body > .egme-chat-dock .egme-chat-window>header a[aria-label="Cerrar chat"]{justify-self:end!important}
html body > .egme-chat-dock .egme-chat-window .egme-chat-messages{
  min-height:0!important;
  flex:1 1 auto!important;
  overflow-y:auto!important;
  background:#f4f6f8!important;
  padding:12px!important;
  overscroll-behavior:contain!important;
}
html body > .egme-chat-dock .egme-chat-window .egme-chat-messages .is-me{
  align-self:flex-end!important;
  background:#a61e46!important;
  color:#fff!important;
}
html body > .egme-chat-dock .egme-chat-window .egme-chat-messages .is-them{
  align-self:flex-start!important;
  background:#fff!important;
  color:#20242a!important;
  border:1px solid #e6e8eb!important;
}
html body > .egme-chat-dock .egme-chat-window .egme-chat-messages .egme-live-time{
  color:inherit!important;
  opacity:.7!important;
}
html body > .egme-chat-dock .egme-chat-window form{
  flex:0 0 auto!important;
  background:#fff!important;
  border-top:1px solid #e5e7eb!important;
}
html body > .egme-chat-dock .egme-chat-panel-head{
  background:#18212b!important;
  color:#fff!important;
}
@media(max-width:700px){
  html body > .egme-chat-dock .egme-chat-window>header{min-height:58px!important;padding:8px 10px!important}
}


/* v4.1.1 — SOLO CHAT: estado interno estable y selectores compatibles con cualquier contenedor */
html body .egme-chat-dock .egme-chat-hidden{display:none!important}
html body .egme-chat-dock .egme-chat-window:not(.egme-chat-hidden){
  display:flex!important;flex-direction:column!important;background:#fff!important;overflow:hidden!important;
  border-radius:18px!important;box-shadow:0 18px 60px rgba(0,0,0,.30)!important;
}
html body .egme-chat-dock .egme-chat-window:not(.egme-chat-hidden)>header{
  display:grid!important;grid-template-columns:42px minmax(0,1fr) 42px!important;align-items:center!important;
  gap:8px!important;flex:0 0 62px!important;min-height:62px!important;height:62px!important;padding:10px 12px!important;
  background:#18212b!important;color:#fff!important;border:0!important;visibility:visible!important;opacity:1!important;
  position:relative!important;z-index:30!important;
}
html body .egme-chat-dock .egme-chat-window>header strong{
  display:block!important;color:#fff!important;font-size:16px!important;text-align:left!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;visibility:visible!important;opacity:1!important;
}
html body .egme-chat-dock .egme-chat-window>header .egme-chat-back,
html body .egme-chat-dock .egme-chat-window>header a[aria-label="Cerrar chat"]{
  display:grid!important;place-items:center!important;width:40px!important;height:40px!important;min-width:40px!important;
  padding:0!important;margin:0!important;border:0!important;border-radius:12px!important;background:#b91f55!important;
  color:#fff!important;font-size:22px!important;line-height:1!important;text-decoration:none!important;cursor:pointer!important;
  visibility:visible!important;opacity:1!important;position:static!important;transform:none!important;
}
html body .egme-chat-dock .egme-chat-window>header a[aria-label="Cerrar chat"]{justify-self:end!important}
html body .egme-chat-dock .egme-chat-window .egme-chat-messages{
  display:flex!important;flex-direction:column!important;gap:9px!important;min-height:0!important;flex:1 1 auto!important;
  overflow-y:auto!important;background:#f4f6f8!important;padding:12px!important;overscroll-behavior:contain!important;
}
html body .egme-chat-dock .egme-chat-window .egme-chat-messages>.is-me,
html body .egme-chat-dock .egme-chat-window .egme-chat-messages>.is-them{
  display:block!important;width:max-content!important;max-width:82%!important;padding:10px 12px!important;border-radius:15px!important;
  font-size:15px!important;line-height:1.35!important;visibility:visible!important;opacity:1!important;word-break:break-word!important;
}
html body .egme-chat-dock .egme-chat-window .egme-chat-messages>.is-me{
  align-self:flex-end!important;background:#a61e46!important;color:#fff!important;border-bottom-right-radius:5px!important;
}
html body .egme-chat-dock .egme-chat-window .egme-chat-messages>.is-them{
  align-self:flex-start!important;background:#fff!important;color:#20242a!important;border:1px solid #e2e5e9!important;border-bottom-left-radius:5px!important;
}
html body .egme-chat-dock .egme-chat-window .egme-chat-messages small{display:block!important;color:inherit!important;opacity:.72!important;font-size:10px!important;margin-top:3px!important}
html body .egme-chat-dock .egme-chat-window form{flex:0 0 auto!important;background:#fff!important;border-top:1px solid #e5e7eb!important;z-index:20!important}
html body .egme-chat-dock .egme-message-pending{opacity:.72!important}
html body .egme-chat-dock.is-expanded .egme-chat-panel:not(.egme-chat-hidden){display:flex!important}
@media(max-width:700px){
  html body .egme-chat-dock .egme-chat-window:not(.egme-chat-hidden)>header{flex-basis:58px!important;min-height:58px!important;height:58px!important;padding:8px 10px!important}
}

/* v4.1.2 — estado de mensajes sin leer y cierre estable */
.egme-chat-close-button{width:40px;height:40px;border:0;border-radius:12px;background:#c51e58;color:#fff;font-size:22px;font-weight:900;display:grid;place-items:center;cursor:pointer}
.egme-chat-contacts a[data-chat-name]{position:relative}
.egme-contact-unread{margin-left:auto;min-width:23px;height:23px;padding:0 6px;border-radius:999px;background:#e11d48;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:900}
.egme-contact-unread[hidden]{display:none!important}


/* v4.1.3 — SOLO CHAT: volver a la lista sin cerrar, envío estable y contactos legibles */
html body .egme-chat-dock .egme-chat-panel:not(.egme-chat-hidden){display:flex!important;flex-direction:column!important}
html body .egme-chat-dock .egme-chat-panel.egme-chat-hidden{display:none!important}
html body .egme-chat-dock .egme-chat-window.egme-chat-hidden{display:none!important}
html body .egme-chat-dock .egme-chat-contacts a[data-chat-name]{display:flex!important;align-items:center!important;gap:12px!important;padding:9px 10px!important;text-decoration:none!important}
html body .egme-chat-dock .egme-chat-contacts a[data-chat-name] > span:last-of-type{display:flex!important;flex:1 1 auto!important;min-width:0!important;flex-direction:column!important;gap:2px!important}
html body .egme-chat-dock .egme-chat-contacts a[data-chat-name] strong,
html body .egme-chat-dock .egme-chat-contacts a[data-chat-name] small{display:block!important;line-height:1.25!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body .egme-chat-dock .egme-chat-contacts a[data-chat-name] small{font-size:12px!important;color:#64748b!important}
html body .egme-chat-dock .egme-chat-window form textarea[name="message"]{color:#20242a!important;background:#fff!important}


/* v4.1.4 — SOLO CHAT: cabecera de conversación con Volver + nombre */
html body .egme-chat-dock .egme-chat-window>header{
  grid-template-columns:44px minmax(0,1fr)!important;
}
html body .egme-chat-dock .egme-chat-window>header strong{
  grid-column:2!important;
}
html body .egme-chat-dock .egme-chat-window>header [data-egme-chat-close],
html body .egme-chat-dock .egme-chat-window>header a[aria-label="Cerrar chat"],
html body .egme-chat-dock .egme-chat-window>header .egme-chat-close-button{
  display:none!important;
}

/* v4.1.6 — chat un poco más amplio, estilo cubo, sin cambiar su lógica */
@media(min-width:701px){
  html body > .egme-chat-dock .egme-chat-panel,
  html body > .egme-chat-dock .egme-chat-window{width:420px!important;max-width:calc(100vw - 36px)!important;border-radius:22px!important;box-shadow:0 24px 70px rgba(0,0,0,.32)!important}
  html body > .egme-chat-dock .egme-chat-panel{max-height:720px!important}
  html body > .egme-chat-dock .egme-chat-window{height:min(680px,calc(100vh - 110px))!important}
}
html body > .egme-chat-dock .egme-chat-panel,html body > .egme-chat-dock .egme-chat-window{border:1px solid rgba(255,255,255,.12)!important;overflow:hidden!important}
html body > .egme-chat-dock .egme-chat-panel-head,html body > .egme-chat-dock .egme-chat-window>header{box-shadow:0 1px 0 rgba(255,255,255,.08) inset!important}


/* v4.1.7 — SOLO DISEÑO DEL ÍCONO FLOTANTE DEL CHAT (PC, móvil y tablet) */
html body > .egme-chat-dock .egme-chat-launcher{
  position:relative!important;
  width:60px!important;
  min-width:60px!important;
  max-width:60px!important;
  height:60px!important;
  min-height:60px!important;
  max-height:60px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  overflow:visible!important;
  border:2px solid rgba(255,255,255,.88)!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,#6d28d9 0%,#a21caf 48%,#c51e58 100%)!important;
  color:#fff!important;
  box-shadow:0 12px 30px rgba(77,20,120,.38),0 4px 12px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.32)!important;
  transform:translateZ(0)!important;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease!important;
  isolation:isolate!important;
}
html body > .egme-chat-dock .egme-chat-launcher:hover,
html body > .egme-chat-dock .egme-chat-launcher:focus-visible{
  transform:translateY(-2px) scale(1.04)!important;
  filter:saturate(1.08)!important;
  box-shadow:0 16px 36px rgba(77,20,120,.45),0 6px 16px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.38)!important;
  outline:none!important;
}
html body > .egme-chat-dock .egme-chat-launcher>span{
  display:block!important;
  margin:0!important;
  line-height:1!important;
  font-size:0!important;
  width:31px!important;
  height:25px!important;
  border-radius:10px!important;
  background:#fff!important;
  position:relative!important;
  box-shadow:0 3px 9px rgba(20,10,35,.22)!important;
}
html body > .egme-chat-dock .egme-chat-launcher>span::before{
  content:''!important;
  position:absolute!important;
  left:7px!important;
  top:10px!important;
  width:4px!important;
  height:4px!important;
  border-radius:50%!important;
  background:#9c1f75!important;
  box-shadow:7px 0 0 #9c1f75,14px 0 0 #9c1f75!important;
}
html body > .egme-chat-dock .egme-chat-launcher>span::after{
  content:''!important;
  position:absolute!important;
  right:4px!important;
  bottom:-5px!important;
  width:10px!important;
  height:10px!important;
  background:#fff!important;
  clip-path:polygon(0 0,100% 0,100% 100%)!important;
}
html body > .egme-chat-dock .egme-chat-launcher>strong{display:none!important}
html body > .egme-chat-dock .egme-chat-launcher>em[data-egme-unread-badge]{
  position:absolute!important;
  z-index:10!important;
  top:-8px!important;
  right:-8px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:25px!important;
  height:25px!important;
  padding:0 6px!important;
  border:2px solid #fff!important;
  border-radius:999px!important;
  background:#ef233c!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:900!important;
  font-style:normal!important;
  line-height:1!important;
  box-shadow:0 4px 12px rgba(239,35,60,.42)!important;
  pointer-events:none!important;
}
html body > .egme-chat-dock .egme-chat-launcher>em[data-egme-unread-badge][hidden]{display:none!important}
html body > .egme-chat-dock .egme-chat-launcher>em[data-egme-unread-badge]:not([hidden]){
  animation:egme-chat-badge-pop .42s cubic-bezier(.2,.9,.2,1.35) both!important;
}
@keyframes egme-chat-badge-pop{
  0%{transform:scale(.35);opacity:0}
  70%{transform:scale(1.14);opacity:1}
  100%{transform:scale(1);opacity:1}
}
@media(max-width:700px){
  html body > .egme-chat-dock .egme-chat-launcher{
    width:58px!important;min-width:58px!important;max-width:58px!important;
    height:58px!important;min-height:58px!important;max-height:58px!important;
    border-radius:19px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  html body > .egme-chat-dock .egme-chat-launcher,
  html body > .egme-chat-dock .egme-chat-launcher>em[data-egme-unread-badge]{
    transition:none!important;animation:none!important;
  }
}
