/* ===== Cibersecurify style (clean + teal) - USER bubble ahora usa fondo blanco ===== */
.mwai-window-box{
  background:#ffffff !important;
  border:1px solid rgba(16, 24, 40, .08) !important;
  border-radius:16px !important;
  box-shadow:0 18px 50px rgba(16, 24, 40, .12) !important;
  overflow:hidden !important;
}

/* Header bar */
.mwai-window-box .mwai-header{
  background: linear-gradient(90deg, #2fb7b6 0%, #2aa7a6 100%) !important;
  border-bottom: 0 !important;
}

/* Close button (X) */
.mwai-window-box .mwai-close-button{
  filter: brightness(0) invert(1) !important;
  opacity:.95 !important;
}

/* Conversation background */
.mwai-window-box .mwai-body{
  background:#ffffff !important;
}

/* Names */
.mwai-window-box .mwai-name-text{
  color: rgba(16,24,40,.55) !important;
  font-weight:600 !important;
}

/* AI bubble (sin cambios) */
.mwai-window-box .mwai-reply.mwai-ai .mwai-text{
  background:#f3fbfb !important;
  color:#0f172a !important;
  border: none;
  padding:10px 12px !important;
  display:inline-block !important;
}

/* User bubble → ahora mismo color que el fondo general (blanco) */
.mwai-window-box .mwai-reply.mwai-user .mwai-text{
  background: #c0131300 !important;           /* ← cambio principal */
  color: #ffffff !important;                /* texto oscuro para que se lea bien */
  border: none;
  border-radius:14px !important;
  padding:10px 12px !important;
  display:inline-block !important;
  box-shadow: 0 1px 3px rgba(47,183,182, .12) !important; /* sombra ligera opcional */
}

/* Input area */
.mwai-window-box .mwai-input{
  background:#ffffff !important;
  border-top:1px solid rgba(16,24,40,.08) !important;
  padding:10px !important;
  gap:10px !important;
}

/* Textarea */
.mwai-window-box textarea{
  background:#f8fbff !important;
  color:#0f172a !important;
  border:1px solid rgba(16,24,40,.12) !important;
  border-radius:12px !important;
  padding:10px 12px !important;
  outline:none !important;
}
.mwai-window-box textarea:focus{
  border-color: rgba(47,183,182,.55) !important;
  box-shadow: 0 0 0 3px rgba(47,183,182,.18) !important;
}

/* Send button (sin cambios) */
.mwai-window-box .mwai-input-submit{
  background: linear-gradient(180deg, #2fb7b6 0%, #259e9d 100%) !important;
  color:#ffffff !important;
  border:0 !important;
  border-radius:12px !important;
  padding:10px 14px !important;
  font-size: 1.2em !important;
  box-shadow:0 10px 24px rgba(47,183,182,.25) !important;
  justify-content: center !important;
}
.mwai-window-box .mwai-input-submit:hover{
  filter: brightness(.97) !important;
}

/* Scrollbar */
.mwai-window-box .mwai-body::-webkit-scrollbar{
  width:10px;
}
.mwai-window-box .mwai-body::-webkit-scrollbar-thumb{
  background: rgba(16,24,40,.12);
  border-radius:10px;
  border:3px solid #fff;
}


.mwai-messages-theme .mwai-conversation .mwai-reply.mwai-user {
    align-self: flex-end;
    background: #2fb7b6;
    color: white;
    margin-right: 10px;
}

.mwai-messages-theme .mwai-conversation .mwai-reply.mwai-user::before {
    z-index: 0;
    right: -10px;
    height: 20px;
    width: 20px;
    background: #2fb7b6;
    background-attachment: fixed;
    border-bottom-left-radius: 15px;
}

.mwai-messages-theme .mwai-conversation .mwai-reply.mwai-ai, .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-error {
    align-self: flex-start;
    background:#f3fbfb !important;
    margin-left: 5px;
}

.mwai-messages-theme .mwai-conversation .mwai-reply.mwai-ai::before, .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-ai::after, .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-error::before, .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-error::after {

    background: #ffffff !important;

}

.mwai-messages-theme .mwai-conversation .mwai-reply.mwai-ai::before, .mwai-messages-theme .mwai-conversation .mwai-reply.mwai-error::before {
    z-index: 0;
    left: -7px;
    height: 20px;
    width: 20px;
    background:#f3fbfb !important;
    border-bottom-right-radius: 15px;
}

.mwai-messages-theme .mwai-conversation .mwai-reply {
    padding: 0 12px;
}