/* Bottone flottante in basso a destra */
#athena-chat-button {
  border: 1.2px solid #dddddd;
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999; /* in modo da stare sopra altri elementi */
  display: flex;
  align-items: center;
  justify-content: center;
}
#athena-chat-button img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  /* filter: invert(1); */
}

/* Contenitore chat nascosto di default */
#athena-chat-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  height: 60vh;
  max-height: 500px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  display: none; /* Lo mostreremo con JS */
  flex-direction: column;
  z-index: 9999;
  box-shadow: 0px 4px 20px #00000040;
  overflow: hidden;
}

/* Header (logo e pulsante chiusura) */
#athena-chat-header {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 20px;
  border-radius: 8px 8px 0 0;
  flex-direction: row;
  border-bottom: 1px solid #efefef;
}
#athena-chat-header img {
  width: 145px;
  /* height: 32px; */
}
#athena-chat-close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

/* Area messaggi */
#athena-chat-messages {
  flex: 1; /* Riempie lo spazio verticale */
  overflow-y: auto;
  padding: 2em 1em;
}

#athena-chat-messages::-webkit-scrollbar {
  width: 2px;
}
 
#athena-chat-messages::-webkit-scrollbar-track {
  _box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}
 
#athena-chat-messages::-webkit-scrollbar-thumb {
  background-color: #01634e;
  outline: 0px solid slategrey;
}

/* Un esempio di stile messaggi */
.athena-message {
  margin-bottom: 10px;
  max-width: 80%;
  clear: both;
  padding: 8px 10px;
  border-radius: 6px 6px 6px 0px;
  font-size: 14px;
  line-height: 18px;
}
.athena-message.user {
  background: #f0f0f0;
  float: right;
  text-align: right;
  text-align: left;
  border-radius: 6px 6px 0px 6px;
}
.athena-message.assistant {
  background: #01634d;
  float: left;
  text-align: left;
  color: white;
}

/* Input e bottone invio */
#athena-chat-input-area {
  display: flex;
  border-top: 1px solid #efefef;
  padding: 8px;
  border-radius: 0 0 8px 8px;
}
#athena-chat-input {
  flex: 1;
  padding: 8px;
  border: none !important;
  border-radius: 4px;
  background: transparent;
}
#athena-chat-input:focus {
   box-shadow: none;
}
#athena-chat-send-btn {
  margin-left: 0;
  background: none !important;
  /* color: #fff; */
  border: none;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  width: 50px;
  /* height: 30px; */
}
#athena-chat-send-btn:hover {
  background: #005c87;
}



#athena-chat-send-btn:disabled svg * {
  fill: #d2d2d2;
}
#athena-chat-send-btn svg * {
   fill: #00634C;

}

#athena-chat-send-btn svg {
    width: 25px;
    height: 25px;
   
}


.athena-message a {
    color: white !important;
    text-decoration: underline;
    font-weight: 700;
}


#athena-lead-overlay {
  display: block !important;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  background: #00000059;
  border-top: 1px solid #ccc;
  transition: bottom 500ms ease;
  z-index: -9999; 
  /* ... altre regole ... */
  opacity: 0;
  transition: opacity 500ms ease, z-index 1500ms ease;
}

#athena-lead-overlay.active {
  display: block !important;
  z-index: 99999;
  opacity: 1;
  transition: opacity 500ms ease, z-index 1500ms ease;
}






div#athena-lead-form {
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: -100%;
    height: 60%;
    background: #ffffff;
    border-top: 1px solid #ccc;
    z-index: 100001;
    border-radius: 20px 20px 0px 0px;
    padding: 3em 2em 1em 2em;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-evenly;
    align-items: stretch;
    transition: bottom 500ms ease;
}

#athena-lead-overlay.active div#athena-lead-form  {
  bottom: 0; /* sale verso l'alto */
  transition: bottom 500ms;
}

#athena-lead-form h4 {
  font-size: 14px;
  font-weight: 600 !important;
  line-height: 18px;
  margin: 0;
  margin-bottom: 1em;
}

input#athena-lead-email {
  /* background: transparent; */
  /* border: 1px solid red; */
  padding: 5px 10px;
  font-size: 14px;
}

#athena-lead-form label {
  font-size: 14px;
  margin: 10px 0em;
  line-height: 18px;
  display: flex;
  /* display: inline-flex; */       /* o display: flex; se preferisci in blocco */
  /* align-items: center; */        /* per allineare verticalmente checkbox e testo */
  /* gap: 0.5rem; */
}

#athena-lead-form label a {
 /* flex: none; */
}

spin {
    min-width: 9%;
}

input#athena-lead-privacy {
    margin-top: 3px;
}


button#athena-lead-save-btn {
    margin-top: 1em;
}



