#chatbot {
width: 100%;
max-width: 600px;
margin: 0 auto;
border: 1px solid #ccc;
padding: 20px;
background: #f9f9f9;
}
#chatbot-messages {
height: 450px;
overflow-y: auto;
border-bottom: 1px solid #ccc;
margin-bottom: 10px;
padding-bottom: 10px;
}
#chatbot-input {
width: 100%;
padding: 10px;
box-sizing: border-box;
}
#chatbot-submit {
padding: 10px 20px;
margin-top: 10px;
cursor: pointer;
}
#chatbot-suggestions {
display: flex;
}
#chatbot-suggestions.hidden{
visibility: hidden;
height: 0px;
}
.answered{
justify-content: end !important;
}
.answered .accepted {
display: block;
background-color: #006800;
}
.answered span {
display: none;
}
#chatbot-suggestions button {
padding: 5px;
border: 1px solid black;
background: none;
color: gray;
margin-bottom: 5px;
cursor: pointer;
} #chatbot-suggestions button + button {
margin-left: 5px;
}
.user-prompt > span {
padding: 5px;
border-width: 1px;
border-color: #646464;
border-style: solid;
cursor: pointer;
border-radius: 5px;
color: white;
}
.user-prompt > span:hover {
filter: brightness(0.95);
}
.message-yes{
background-color: var(--wp--preset--color--base);
}
.message-no{
background-color: #6f6f6f;
}
.user-prompt{
display: flex;
justify-content: space-between;
margin-bottom: 10px;
}
@media only screen and (max-width: 700px) {
.user-prompt{
flex-direction: column;
}
.message-no{
margin-bottom: 5px;
}
} .bot-message {
background: var(--wp--preset--color--base);
color: white;
padding: 10px;
border-radius: 5px;
margin-bottom: 10px;
max-width: 80%;
white-space: pre-wrap;
}
.user-message {
margin-bottom: 10px;
display: flex;
justify-content: end;
}
.user-message .message-inner{
background: #f1f1f1;
padding: 10px;
border-radius: 5px;
width: 80%;
text-align: right;
}
.typing-indicator {
display: flex;
align-items: center;
margin: 10px 0;
}
.typing-indicator span {
display: inline-block;
width: 8px;
height: 8px;
background-color: #ccc;
border-radius: 50%;
margin: 0 2px;
animation: typing 1s infinite;
}
.typing-indicator span:nth-child(1) {
animation-delay: 0s;
}
.typing-indicator span:nth-child(2) {
animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
animation-delay: 0.4s;
}
@keyframes typing {
0% {
opacity: 0.2;
}
20% {
opacity: 1;
}
100% {
opacity: 0.2;
}
}