
:root {

    --chatbot-name: "InarBot";
    --chatbot-height: 90%;
    --headerBgColor : #467FF7;
    --headerFontColor : #FFFFFF;

    --chatBgColor : #f8f8f8;
    --chatFontColor : black;

    --footerBgColor : #467FF7;
    --footerFontColor : #FFFFFF;

    --status-connection-bg: #09cc09;

    --quickMessageBgColor : var(--headerBgColor);
    --quickMessageBgColorHover : var(--headerBgColor);
    --quickMessageFontColor : var(--headerFontColor);

}

.ctx-chat-box {
    height: var(--chatbot-height);
    width: 400px;
    position: fixed;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.005);
    right: 0;
    bottom: 0;
    margin: 15px;
    background: #eaeaea;
    border-radius: 15px;
    visibility: hidden;
    background: var(--headerBgColor);
    color: var(--headerFontColor);

}
/** Se il Dispositivo è mobile riduco la larghezza. */
@media only screen and (max-width: 600px) {
    .ctx-chat-box {
        width: 90%;
    }
}
.ctx-chat-box-header {
    height: 45px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: flex;
    justify-content: space-between; /* Distribuisce gli elementi con spazio tra di loro */
    align-items: center; /* Allinea verticalmente gli elementi al centro */
    font-size: 1rem;
    padding: 0.5em 0;
    padding-left: 10px;
    right: 10px;
    box-shadow: 0 0 3px rgba(0, 0, 0, .2), 0 -1px 10px rgba(0, 0, 0, 0.61), 0 1px 10px rgba(0, 0, 0, 0.025);
    z-index: 9999;
}

.ctx-chat-box-header .title {
    font-size: 1rem; /* Imposta la dimensione del font del titolo */
}

.ctx-chat-box-header .fa {
    font-size: 13px; /* Imposta la dimensione del font dell'icona */
    cursor: pointer; /* Cambia il cursore quando si passa sopra l'icona */
    padding-right:10px;
}

.ctx-chat-box-header-icon {
    justify-content: flex-end;
}

.ctx-chat-box-body {
    flex: 1;
    background: #f8f8f8;
    overflow-y: auto;
    padding: 12px;

}
.ctx-chat-box-body > div {
    clear: both; /* Assicura che i div stiano uno sotto l'altro */
}
.ctx-chat-box-body-send,
.ctx-chat-box-body-receive {
    max-width: 340px;
    padding: 10px 20px;
    border-radius: 5px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, .015);
    margin-bottom: 14px;
    text-align: justify;
    position: relative; /* Necessario per posizionare l'icona */
}

/* Posizionamento dell'icona al di fuori del div */
.ctx-img-circle-received {
    width: 25px;
    height: 25px;
    background-size: cover;
    border-radius: 50%; /* Rende l'immagine circolare */
    position: absolute; /* Posiziona l'icona fuori dal div */
    bottom: 0px; /* Porta l'icona fuori dal div verso il basso */
    left: -30px; /* Regola questa posizione per mettere l'icona a sinistra del messaggio */
}

/* Posizionamento dell'icona al di fuori del div */
.ctx-img-circle-send {
    width: 25px;
    height: 25px;
    background-size: cover;
    border-radius: 50%; /* Rende l'immagine circolare */
    position: absolute; /* Posiziona l'icona fuori dal div */
    bottom: 0px; /* Porta l'icona fuori dal div verso il basso */
    right: -30px; /* Regola questa posizione per mettere l'icona a sinistra del messaggio */
}

.ctx-chat-box-body-send {
    background-color: var(--headerBgColor);
    color: #FFF;
    float: right;
    margin-right: 25px;
}

.ctx-chat-box-body-receive {
    background-color: white;
    float: left;
    margin-left: 25px;
}

.ctx-chat-box-body-send p,
.ctx-chat-box-body-receive p {
    margin: 0;
    color: #444;
    font-size: 14px;
    margin-bottom: 0.25rem;
    max-width: 80ch;
    padding-top: 10px;
}

.ctx-chat-box-body-send p {
    color: #FFF;
    text-align: right;
    word-break: break-all;
    max-width: 81ch;
}

.ctx-chat-box-body-send span,
.ctx-chat-box-body-receive span {
    float: right;
    color: #777;
    font-size: 10px;
}

.ctx-chat-box-body-send span {
    color: #FFF;
}

.ctx-chat-box-body-survey {
    width: 100%;
    padding: 10px 20px;
    border-radius: 5px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, .015);
    margin-bottom: 14px;
    align-items: center;
    border-style: solid;
    border-color: #ba034b;
}
.ctx-chat-box-body-survey p {
    margin: 0;
    color: #444;
    font-size: 14px;
    margin-bottom: 0.25rem;
    text-align: justify;
}
.ctx-chat-box-body-survey span {

    color: #777;
    font-size: 10px;
    margin-bottom: 0.25rem;
}
.ctx-chat-box-body::-webkit-scrollbar {
    width: 5px;
    opacity: 0;
}
.ctx-chat-box-footer {
    display: flex;
    align-items: center;
    padding: 10px;
    background: var(--headerBgColor);
    color: var(--headerFontColor);
    border-top: 1px solid #eee;
}


.ctx-chat-box-input-wrapper {
    display: flex;
    align-items: center;
    border-radius: 50px;
    padding-left: 5px;
    padding-right: 5px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

.ctx-chat-box-input-wrapper  .ctx-chat-bot-input {
    border: none !important;
    outline: none !important;
    flex: 1 !important;
    padding: 10px !important;
    font-size: 16px !important;
    border-radius: 50px !important;
    box-shadow: none !important;
}

.ctx-chat-box-icons {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
}

.ctx-chat-box-icon-circle {
    background-color: var(--quickMessageBgColor);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-around;
}

.ctx-chat-box-icon-circle:hover {
    background-color: var(--quickMessageBgColorHover);
}

.ctx-chat-box-icon-menu {
    display: none; /* Nascosto per impostazione predefinita */
    top: -63px; /* Posizionamento sopra l'icona */
    left: -38px;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    z-index: 1000;
    position: relative;
}

.ctx-chat-box-icon-menu span {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
}

.ctx-chat-box-icon-menu span:hover {
    background-color: #f0f0f0;
}

.ctx-chat-button-vertical {
    position: fixed;
    top: 35%; /* Posiziona il div a metà altezza */
    right: 0; /* Attaccato al bordo destro della finestra */
    transform: translateY(-50%); /* Centra verticalmente */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: var(--headerBgColor); /* Colore di sfondo (modifica secondo necessità) */
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(44, 80, 239, .21);
    z-index: 9999;
    writing-mode: vertical-rl; /* Testo verticale */
    text-align: center;
    cursor: pointer;
}

.ctx-chat-button-horizontal {
    position: fixed;
    bottom: 0; /* Attaccato al bordo inferiore della finestra */
    right: 0; /* Attaccato al bordo destro della finestra */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: var(--headerBgColor); /* Colore di sfondo (modifica secondo necessità) */
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(44, 80, 239, .21);
    z-index: 9999;
    text-align: center;
    margin: 15px;
}

.ctx-chat-bot-title-vertical {
    color : var(--headerFontColor);
    font-weight: bold;
    padding-bottom: 10px;
    padding-top: 10px;
    transform: rotate(180deg);
}

.ctx-chat-bot-title-horizontal {
    color : var(--headerFontColor);
    font-weight: bold;
    padding-left: 10px;
    padding-right: 10px;
}

.ctxColorStatus-vertical {
    width: 15px;
    height: 15px;
    box-shadow: 0 2px 15px rgba(44, 80, 239, .21);
    background-color: var(--status-connection-bg);
    margin-bottom: 10px;
    border-radius: 50%;
}

.ctxColorStatus-horizontal {
    width: 15px;
    height: 15px;
    border-radius: 50%; /* Pallino rotondo */
    background-color: var(--status-connection-bg);
}

.ctx-icon-footer {
    max-width: 12px;
    margin: 2px;
}

.ctx-quick-reply-buttons {
    width: 100%;
    padding: 10px 20px;
    border-radius: 5px !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, .015);
    margin-bottom: 14px;
    align-items: center;
    text-align: center;
}
.ctx-quick-reply-buttons .ctx-quick-reply-button {
    border: none;
    background-color: var(--quickMessageBgColor);
    color: var(--quickMessageFontColor);
    padding: 10px 15px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
}
.ctx-quick-reply-button:hover {
    background-color: var(--quickMessageBgColorHover);
}

.ctx-chat-box-body-service {
    width: 100%;
    padding: 20px 20px;
    text-align: center;

}
.ctx-chat-box-body-service p{
    width: 100%;
    text-align: center;
    font-size: 11px;
    font-style: italic;
    margin: 10px 0 20px;
    color : var(--chatFontColor);
}




/* set all stars to 'empty star' */
.stars-container {
    display: inline-block;
    vertical-align: top;
}
/* set all stars to 'empty star' */
.stars-container .star {
    float: right;
    display: inline-block;
    padding: 2px;
    color: orange;
    cursor: pointer;
    font-size:30px;
}
.stars-container .star:before {
    content:"\f006";
    /* fontAwesome empty star code */
}
/* set hovered/selected star to 'filled star' */
.star:hover:before, .star.selected:before {
    content:"\f005";
    /* fontAwesome filled star code */
}
/* set all stars after hovered/selected to'filled star'
** it will appear that it selects all after due to positioning */
.star:hover ~ .star:before, .star.selected ~ .star:before {
    content:"\f005";
    /* fontAwesome filled star code */
}
.reviews {
    vertical-align: top;
}
button {
    margin-top: 20px;
}

.ctx-chat-bot-chat-bubble {
    background-color:var(--headerBgColor);
    padding:16px 28px;
    -webkit-border-radius: 20px;
    -webkit-border-bottom-left-radius: 2px;
    -moz-border-radius: 20px;
    -moz-border-radius-bottomleft: 2px;
    border-radius: 20px;
    border-bottom-left-radius: 2px;
    display:inline-block;
}
.ctx-chat-bot-typing {
    align-items: center;
    display: flex;
    height: 17px;
}
.ctx-chat-bot-typing .dot {
    animation: mercuryTypingAnimation 1.8s infinite ease-in-out;
    background-color: var(--chatBgColor);
    border-radius: 50%;
    height: 7px;
    margin-right: 4px;
    vertical-align: middle;
    width: 7px;
    display: inline-block;
}
.ctx-chat-bot-typing .dot:nth-child(1) {
    animation-delay: 200ms;
}
.ctx-chat-bot-typing .dot:nth-child(2) {
    animation-delay: 300ms;
}
.ctx-chat-bot-typing .dot:nth-child(3) {
    animation-delay: 400ms;
}
.ctx-chat-bot-typing .dot:last-child {
    margin-right: 0;
}

@keyframes mercuryTypingAnimation {
    0% {
        transform: translateY(0px);
        background-color:var(--chatBgColor);
    }
    28% {
        transform: translateY(-7px);
        background-color:var(--chatBgColor);
    }
    44% {
        transform: translateY(0px);
        background-color: var(--chatBgColor);
    }
}

/** ### Modal Termini */

/* The Modal (background) */
.ctx-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.ctx-modal-content {
    position: relative;
    background-color: #fefefe;
    border-radius: 25px;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: ctx-animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: ctx-animatetop;
    animation-duration: 0.4s;
}

/* Add Animation */
@-webkit-keyframes ctx-animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

@keyframes ctx-animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

/* The Close Button */
.ctx-close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.ctx-close:hover,
.ctx-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.ctx-modal-header {
    padding: 15px 20px;
    background-color: var(--headerBgColor);
    color: white;
    border-radius: 15px 15px 0px 0px;
}

.ctx-modal-body {padding: 2px 16px;}

.ctx-modal-footer {
    padding: 2px 16px;
    background-color: var(--headerBgColor);
    color: white;
    border-radius: 0px 0px 15px 15px;
}

/** Questo risolve il problema di quando si stampa la pagina web. Aggiungi la classe no-print agli elementi. */
@media print
{
    .no-print, .no-print *
    {
        display: none !important;
    }
}