/* CONTENEDOR PRINCIPAL DEL CHAT */
#scws.scws-container {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 999999;
  width: 100%;
  max-width: 300px;
  height: auto;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 1px 2.5px rgba(0, 0, 0, 0.021),
    0 2.3px 6.1px rgba(0, 0, 0, 0.031), 0 4.4px 11.4px rgba(0, 0, 0, 0.039),
    0 7.8px 20.3px rgba(0, 0, 0, 0.046), 0 14.6px 38px rgba(0, 0, 0, 0.055),
    0 35px 91px rgba(0, 0, 0, 0.07);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* HEADER DEL CONTENEDOR */
#scws.scws-container .scws-container-header {
  padding: 15px;
  border-bottom: 2px solid #dedede;
}

#scws.scws-container .scws-container-header h3 {
  margin: 0;
  color: #274e72;
  font-weight: 500;
  font-size: 22px;
}

/* CUERPO (SI SE LLEGA A USAR) */
#scws.scws-container .scws-container-body {
  padding: 15px;
  border-bottom: 2px solid #dedede;
  max-height: 200px;
  overflow-y: auto;
}

#scws.scws-container .scws-container-body .scws-container-header-help {
  color: rgba(74, 115, 154, 0.9);
}

#scws.scws-container .scws-container-body .list {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

#scws.scws-container .scws-container-body .list li {
  display: block;
  margin-bottom: 10px;
}

#scws.scws-container .scws-container-body .list li label {
  display: flex;
  position: relative;
}

#scws.scws-container .scws-container-body .list li span {
  margin-left: 10px;
}

/* FOOTER */
#scws.scws-container .scws-container-footer {
  box-sizing: border-box;
  padding: 15px;
}

#scws.scws-container .scws-container-footer button {
  width: 100%;
  height: 45px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  box-sizing: border-box;
  background: #02877a;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  text-transform: none;
  cursor: pointer;
}

#scws.scws-container .scws-container-footer button:active,
#scws.scws-container .scws-container-footer button:focus {
  outline: 0;
  box-shadow: none;
}

#scws.scws-container .scws-container-footer button:hover {
  background: #075e55;
  box-shadow: 0 1px 2.5px rgba(0, 0, 0, 0.021),
    0 2.3px 6.1px rgba(0, 0, 0, 0.031), 0 4.4px 11.4px rgba(0, 0, 0, 0.039),
    0 7.8px 20.3px rgba(0, 0, 0, 0.046), 0 14.6px 38px rgba(0, 0, 0, 0.055),
    0 35px 91px rgba(0, 0, 0, 0.07);
}

/* BLOQUE PREVIEW DEL CHAT EN EL FOOTER */
#scws.scws-container .scws-container-footer .scws-container-footer-chat {
  display: flex;
  margin-bottom: 10px;
}

#scws.scws-container
  .scws-container-footer
  .scws-container-footer-chat
  .scws-container-footer-chat-img {
  position: relative;
  width: 50px;
}

#scws.scws-container
  .scws-container-footer
  .scws-container-footer-chat
  .scws-container-footer-chat-img
  img {
  max-width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #1bd741;
  padding: 5px;
}

#scws.scws-container
  .scws-container-footer
  .scws-container-footer-chat
  .scws-container-footer-chat-message {
  font-size: 14px;
  color: #47607b;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

/* TEXTO "SE ABRE EN WHATSAPP" */
#scws.scws-container
  .scws-container-footer
  .scws-container-footer-chat-whatsapp {
  display: block;
  width: 100%;
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 300;
  color: #b1b1b1;
}

/* BOTÓN CERRAR (X) */
#scws.scws-container #scws-container-header-button {
  position: absolute;
  top: -20px;
  right: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #dfeaf5;
  box-shadow: 0 1px 2.5px rgba(0, 0, 0, 0.021),
    0 2.3px 6.1px rgba(0, 0, 0, 0.031), 0 4.4px 11.4px rgba(0, 0, 0, 0.039),
    0 7.8px 20.3px rgba(0, 0, 0, 0.046), 0 14.6px 38px rgba(0, 0, 0, 0.055),
    0 35px 91px rgba(0, 0, 0, 0.07);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  color: #cdddec;
  cursor: pointer;
}

#scws.scws-container #scws-container-header-button:hover {
  border-color: #81a2c4;
  color: #81a2c4;
}

/* MENSAJE DE ERROR */
#scws.scws-container #error {
  padding: 5px;
  text-align: center;
  font-size: 13px;
  font-weight: 300;
  color: #2d5376;
}

/* LAUNCHER (BURBUJA FLOTANTE) */
#scws-launcher {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #1bd741;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999999;
  box-shadow: 0 1px 2.5px rgba(0, 0, 0, 0.021),
    0 2.3px 6.1px rgba(0, 0, 0, 0.031), 0 4.4px 11.4px rgba(0, 0, 0, 0.039),
    0 7.8px 20.3px rgba(0, 0, 0, 0.046), 0 14.6px 38px rgba(0, 0, 0, 0.055),
    0 35px 91px rgba(0, 0, 0, 0.07);
  cursor: pointer;
}

#scws-launcher img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* VARIANTE XL DEL LAUNCHER */
.scws-launcher-xl {
  width: 63px !important;
  height: 63px !important;
}

.scws-launcher-xl img {
  width: 98% !important;
  height: 98% !important;
}

/* CHECKBOX CUSTOM */
.si.si-checkbox::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 2px;
  background: #fff;
  border: 2px solid #02867a;
}

.si.si-checkbox input:checked::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 10px;
  height: 10px;
  z-index: 8;
  background: #02867a;
}

.si.si-checkbox input:checked + span {
  color: #02867a;
}

/* ANIMACIÓN DOTS (ESCRIBIENDO...) */
.dot-flashing {
  position: relative;
  width: 10px;
  height: 10px;
  margin-left: 15px;
  border-radius: 50%;
  background-color: #02867a;
  color: #02867a;
  animation: dotFlashing 1s infinite linear alternate;
  animation-delay: 0.5s;
}

.dot-flashing::before,
.dot-flashing::after {
  content: "";
  position: absolute;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #02867a;
  color: #02867a;
  animation: dotFlashing 1s infinite alternate;
}

.dot-flashing::before {
  left: -15px;
  animation-delay: 0s;
}

.dot-flashing::after {
  left: 15px;
  animation-delay: 1s;
}

@keyframes dotFlashing {
  0% {
    background-color: #02867a;
  }
  50%,
  100% {
    background-color: #ebe6ff;
  }
}

/* Contenedor del bloque */
.scws-container-footer-chat {
  display: flex;
  align-items: center; /* Alinea verticalmente imagen + texto */
  gap: 12px; /* Espacio entre imagen y texto */
}

/* Contenedor de la imagen */
.scws-container-footer-chat-img {
  width: 40px; /* Tamaño uniforme */
  height: 40px;
  flex-shrink: 0; /* Evita que se haga más pequeña */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Imagen */
.scws-container-footer-chat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Mantiene proporción sin deformarse */
  border-radius: 50%;
  background: #1bd741;
  padding: 5px;
}

/* Contenedor del mensaje */
.scws-container-footer-chat-message {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #47607b;
}

/* El mensaje */
.scws-container-footer-chat-message span {
  display: inline-block;
}
