
/* ABRIL CORE R14J · SOLO COPIA PRIVADA */

.abril-private-dock {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.abril-private-mic {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: #0b5262;
  border: 1px solid #15bacb;
  color: #efffff;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.abril-private-transcript {
  margin: 5px 0 0;
  max-height: 100px;
  min-height: 18px;
  overflow-y: auto;
  overflow-wrap: anywhere;
  overscroll-behavior: contain;
  white-space: pre-wrap;
  font-size: 11.5px;
  line-height: 1.45;
  color: #b4d1e2;
}

.abril-private-presence {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
  color: #b5d1df;
}

.abril-private-presence .apr-presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22cf83;
  flex-shrink: 0;
}

.abril-private-presence .apr-presence-text {
  cursor: pointer;
}

.abril-private-presence
.apr-presence-text:focus-visible {
  outline: 2px solid #20d9df;
  outline-offset: 4px;
}

.avatar-frame {
  position: relative;
  overflow: hidden;
}

.abril-private-video {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
}

.abril-private-video.is-visible {
  opacity: 1;
}


/* ABRIL_R14M_TYPEWRITER_AUTO_SCROLL */

.abril-private-transcript {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  overflow-anchor: none;
  scrollbar-width: thin;
}

.abril-private-transcript[data-typing="true"]::after {
  content: "▏";
  color: #21dce0;
  animation: abrilR14MCursor .7s steps(1,end) infinite;
}

@keyframes abrilR14MCursor {
  50% { opacity: 0; }
}


/* ABRIL_R14O_CAMPO_MULTILINEA
   Cuatro lineas aproximadamente.
   Altura fija, scroll automatico R14M.
   !important prevalece sobre la altura inline
   calculada antes por R14M.
*/

.abril-private-dock .abril-private-transcript {
    display: block;
    box-sizing: border-box;

    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;

    padding: 3px 4px 5px;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    white-space: pre-wrap !important;
    overflow-wrap: anywhere;
    word-break: normal;

    line-height: 1.45;
    scrollbar-width: thin;
    overscroll-behavior: contain;
    overflow-anchor: none;
    scroll-behavior: auto;
}

/* En moviles mantener cuatro lineas compactas */

@media (max-width: 600px) {
    .abril-private-dock .abril-private-transcript {
        height: 70px !important;
        min-height: 70px !important;
        max-height: 70px !important;
    }
}


/* ABRIL_R14R_CONVERSACION_ORIENTADA */

.abril-apptiva-chat-cta {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin-top: 12px;
    padding: 10px 12px;

    border: 1px solid rgba(27,212,216,.55);
    border-radius: 9px;

    background: rgba(11,82,98,.45);
    color: #dffcff;

    text-align: center;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.abril-apptiva-chat-cta:hover,
.abril-apptiva-chat-cta:focus-visible {
    background: rgba(11,82,98,.85);
    outline: 2px solid #1bd4d8;
    outline-offset: 1px;
}


/* ABRIL_R14W_DERIVACION_CONTEXTUAL */

.abril-r14w-contextual[hidden] {
    display: none !important;
}

.abril-private-dock .abril-r14w-contextual {
    width: 100%;
    margin-top: 8px;
    margin-bottom: 0;
    white-space: normal;
    line-height: 1.45;
}
