.chat-container {
    position: fixed;
    right: 10px;
    bottom: 10px;
    background-color: #fff;
    border: none;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 360px;
    height: 70%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 9999;
}

.chat-header {
    background-color: #e9e9eb;
    text-align: center;
}

.chat-box {
    flex: 1;
    overflow-y: scroll;
    padding: 10px;
}
.chat-box::-webkit-scrollbar {
    width: 6px; /* Ancho de la barra de desplazamiento */
}

.chat-box::-webkit-scrollbar-thumb {
    background-color: #caf02c; /* Color del "pulgar" de la barra de desplazamiento */
    border-radius: 6px; /* Radio de borde del "pulgar" */
}

.chat-box::-webkit-scrollbar-track {
    background-color: #f1f1f1; /* Color de fondo de la barra de desplazamiento */
}

.chat-box a {
    color: #000 !important;
    text-decoration: underline;
}
.chat-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chat-box ul li {
    margin-bottom: 10px;
}

.chat-box ul li span {
    /* padding: 5px 10px; */
}

/* Mensajes salientes (out) */
.chat-box ul li .out {
    text-align: right;
    /* background-color: #CAF02C !important; */
}

.backcolor ul li .out {
    text-align: right;
    background-color: #caf02c !important;
}

.li-out {
    text-align: left;
    clear: both;
    transition: background-color 0.3s ease;
}
.li-out:hover {
    background-color: #a9a9ad;
}
.li-in {
    text-align: right;
    width: fit-content;
    float: right;
    clear: both;
    background-color: #caf02c !important;
    color: #000 !important;
}
/* Mensajes entrantes (in) */
.chat-box ul li .in {
    text-align: left;
    background-color: #ccc !important;
}

.chat-input {
    display: flex;
    align-items: center;
    padding: 10px;
    position: relative;
}
.chat-input .clear {
    position: absolute;
    left: 10px;
    bottom: 60px;
    background-color: #c2c2c2;
    color: #000;
    width: fit-content;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    cursor: pointer;
    padding: 2px 10px;
    font-size: 10px;
}
.chat-container input[type="text"] {
    flex: 1;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 5px;
    margin-right: 10px;
}

/* .chat-container button {
  background-color: #CAF02C;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.chat-container button:hover {
  background-color: #a6c528;
}
#send {
  margin-left: 10px;
} */

/* CSS talk bubble */
.talk-bubble {
    float: right;
    /* display: inline-block; */
    position: relative;
    width: fit-content;
    height: auto;
    background-color: #caf02c;
}

.round {
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
}

/* Right triangle placed top left flush. */
.tri-right.border.left-top:before {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    left: -40px;
    right: auto;
    top: -8px;
    bottom: auto;
    border: 32px solid;
    border-color: #666 transparent transparent transparent;
}
.tri-right.left-top:after {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    left: -20px;
    right: auto;
    top: 0px;
    bottom: auto;
    border: 22px solid;
    border-color: #caf02c transparent transparent transparent;
}

/* talk bubble contents */
.talktext {
    padding: 1em;
    text-align: left;
    line-height: 1.5em;
}
.talktext p {
    /* remove webkit p margins */
    -webkit-margin-before: 0em;
    -webkit-margin-after: 0em;
}

/* Right triangle, left side slightly down */
.tri-right.border.left-in:before {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    left: -40px;
    right: auto;
    top: 30px;
    bottom: auto;
    border: 20px solid;
    border-color: #666 #666 transparent transparent;
}
.tri-right.left-in:after {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    left: -20px;
    right: auto;
    top: 38px;
    bottom: auto;
    border: 12px solid;
    border-color: #caf02c #caf02c transparent transparent;
}

/*Right triangle, placed bottom left side slightly in*/
.tri-right.border.btm-left:before {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    left: -8px;
    right: auto;
    top: auto;
    bottom: -40px;
    border: 32px solid;
    border-color: transparent transparent transparent #666;
}
.tri-right.btm-left:after {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    left: 0px;
    right: auto;
    top: auto;
    bottom: -20px;
    border: 22px solid;
    border-color: transparent transparent transparent #caf02c;
}

/*Right triangle, placed bottom left side slightly in*/
.tri-right.border.btm-left-in:before {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    left: 30px;
    right: auto;
    top: auto;
    bottom: -40px;
    border: 20px solid;
    border-color: #666 transparent transparent #666;
}
.tri-right.btm-left-in:after {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    left: 38px;
    right: auto;
    top: auto;
    bottom: -20px;
    border: 12px solid;
    border-color: #caf02c transparent transparent #caf02c;
}

/*Right triangle, placed bottom right side slightly in*/
.tri-right.border.btm-right-in:before {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    left: auto;
    right: 30px;
    bottom: -40px;
    border: 20px solid;
    border-color: #666 #666 transparent transparent;
}
.tri-right.btm-right-in:after {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    left: auto;
    right: 38px;
    bottom: -20px;
    border: 12px solid;
    border-color: #caf02c #caf02c transparent transparent;
}

/*Right triangle, placed bottom right side slightly in*/
.tri-right.border.btm-right:before {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    left: auto;
    right: -8px;
    bottom: -40px;
    border: 20px solid;
    border-color: #666 #666 transparent transparent;
}
.tri-right.btm-right:after {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    left: auto;
    right: 0px;
    bottom: -20px;
    border: 12px solid;
    border-color: #caf02c #caf02c transparent transparent;
}

/* Right triangle, right side slightly down*/
.tri-right.border.right-in:before {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    left: auto;
    right: -40px;
    top: 30px;
    bottom: auto;
    border: 20px solid;
    border-color: #666 transparent transparent #666;
}
.tri-right.right-in:after {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    left: auto;
    right: -20px;
    top: 38px;
    bottom: auto;
    border: 12px solid;
    border-color: #caf02c transparent transparent #caf02c;
}

/* Right triangle placed top right flush. */
.tri-right.border.right-top:before {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    left: auto;
    right: -40px;
    top: -8px;
    bottom: auto;
    border: 32px solid;
    border-color: #666 transparent transparent transparent;
}
.tri-right.right-top:after {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    left: auto;
    right: -20px;
    top: 0px;
    bottom: auto;
    border: 20px solid;
    border-color: #caf02c transparent transparent transparent;
}

/* talk bubble contents */
.talktext {
    padding: 1em;
    text-align: left;
    line-height: 1.5em;
}
.talktext p {
    /* remove webkit p margins */
    -webkit-margin-before: 0em;
    -webkit-margin-after: 0em;
}

.loader {
    margin-left: 10px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #caf02d;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.burbujaChat {
    text-align: end;
    position: fixed;
    bottom: 20px;
    right: 20px;
}
.wrap {
    overflow-wrap: break-word;
}
.burbuja {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-color: #caf02d;
    color: #000;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    position: relative;
}

.point {
    z-index: 999999;
    position: absolute;
    right: 0;
    display: none;
    justify-content: center;
    align-items: center;
    color: #000;
    font-size: 12px;
    font-weight: 900;
    transition: all 0.3s ease;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: red;
    text-align: end;
    position: fixed;
    bottom: 51px;
    right: 20px;
}
.badge-chat {
    position: absolute;
    right: -10px;
    top: -10px;
    width: 20px;
    height: 20px;
    font-size: 9px;
    background-color: #000;
    color: #caf02d;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.li-chat {
    background: #e9e9eb;
    padding: 15px;
    text-align: left;
    font-size: 12px;
    line-height: 1.4;
    width: fit-content !important;
}
.li-white-space {
    white-space: pre-wrap;
}
.option-chat {
    background: #e9e9eb;
    padding: 15px;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
    width: 47%;
    cursor: pointer;
}

.vanilla-calendar {
    width: 100% !important;
}

.vanilla-calendar-day__btn_today {
    background-color: #caf02d30 !important;
    color: #000 !important;
}

.vanilla-calendar-day__btn_selected {
    background-color: #caf02d !important;
    color: #000 !important;
}

.vanilla-calendar-day__btn_intermediate {
    background-color: #caf02d70 !important;
    color: #000 !important;
}

.disabled-chat {
    cursor: not-allowed !important;
}

.selected-chat {
    background-color: #a9a9ad;
}

.effect {
    display: block;
    width: 3ch;
    border-right: 4px solid #caf02d;
    animation: typing 2s steps(3) infinite,
        blink 0.5s infinite step-end alternate;
    overflow: hidden;
    font-weight: 900;
}

@keyframes typing {
    from {
        width: 0;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.chat-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 20px;
    height: 20px;
    background: #c2c2c2;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.li-edades {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}
.li-edades span {
    border-radius: 8px !important;
    padding: 8px !important;
    margin: 3px;
}

.li-edades span input {
    width: 30px !important;
    height: 30px !important;
    cursor: pointer;
    padding: 0 !important;
    border-color: transparent !important;
    background-color: #e9e9eb !important;
}
#confirmButtonAges {
    background: none;
    border: none;
    width: 30px;
    height: 40px;
    cursor: pointer;
}
#confirmButtonAges:focus {
    outline: none;
    background: none !important;
    color: #000 !important;
}

#calendarDivChat {
    position: relative; /* Asegúrate de que el contenedor principal tiene posición relativa */
}

/* #calendarDivChat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2; 
} */

@media (max-width: 768px) {
    .chat-container {
        width: 100%;
        height: 80%;
        bottom: 0;
        right: 0;
        max-width: 345px;
        margin-right: 5px;
        margin-bottom: 5px;
    }
}
