
/* APPTIVA_ES_R10B */

.apptiva-chat-fab {
  position:fixed;right:22px;bottom:18px;z-index:10000;
  padding:12px 17px;border:1px solid #36d9e1;
  border-radius:40px;background:#00cfd2;color:#051626;
  font-weight:800;box-shadow:0 12px 30px #0009;
  cursor:pointer;
}

.apptiva-chat-fab[hidden], .apptiva-chat[hidden] {
  display:none!important;
}

.apptiva-chat {
  position:fixed;right:22px;bottom:18px;z-index:10001;
  width:min(380px,calc(100vw - 24px));
  height:min(490px,calc(100dvh - 90px));
  display:flex;flex-direction:column;
  background:#071427;color:#eaf8ff;
  border:1px solid #26647b;border-radius:18px;
  box-shadow:0 20px 64px #000a;overflow:hidden;
  font:14px/1.45 system-ui,sans-serif;
}

.ac-head {
  background:#09304b;display:flex;align-items:center;
  justify-content:space-between;padding:13px 15px;
}
.ac-head strong {font-size:15px;color:#d8fcff}
.ac-close {
  color:white;background:transparent;border:0;
  font-size:26px;cursor:pointer;
}
.ac-subtitle {
  padding:8px 14px;color:#91a8c0;
  font-size:11px;margin:0;
}
.ac-history {
  flex:1;overflow:auto;min-height:0;padding:12px;
  display:flex;flex-direction:column;gap:10px;
}
.ac-msg {
  border-radius:12px;padding:10px 12px;margin:0;
  white-space:pre-wrap;overflow-wrap:anywhere;
  max-width:96%;
}
.ac-msg.visitor {align-self:flex-end;background:#065b6c}
.ac-msg.reply {align-self:flex-start;background:#172c47}
.ac-msg.info {
  align-self:center;background:#152034;color:#a4bacc;
  font-size:12px;
}
.ac-form {
  border-top:1px solid #264156;padding:11px;
  display:flex;gap:7px;
}
.ac-form input {
  flex:1;min-width:0;border:1px solid #37546a;
  background:#091b2c;color:white;
  border-radius:8px;padding:10px;
}
.ac-form button {
  border:0;background:#1cdddd;color:#07202a;
  border-radius:8px;padding:0 12px;
  cursor:pointer;font-weight:700;
}
@media(max-width:600px) {
  .apptiva-chat {
    right:8px;bottom:8px;
    height:min(480px,calc(100dvh - 50px));
  }
  .apptiva-chat-fab {right:12px;bottom:12px}
}
