91 lines
1.7 KiB
CSS
91 lines
1.7 KiB
CSS
/* Chat Widget */
|
|
.chat-widget-button {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
right: 20px;
|
|
width: 60px;
|
|
height: 60px;
|
|
border-radius: 50%;
|
|
background-color: #0D6EFD;
|
|
color: white;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
|
|
z-index: 1000;
|
|
}
|
|
|
|
.chat-widget {
|
|
display: none;
|
|
position: fixed;
|
|
bottom: 100px;
|
|
right: 20px;
|
|
width: 350px;
|
|
max-width: 90%;
|
|
background-color: #fff;
|
|
border-radius: 15px;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
|
|
z-index: 1000;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.chat-widget-header {
|
|
background: linear-gradient(to right, #0D6EFD, #4DA8FF);
|
|
color: white;
|
|
padding: 1rem;
|
|
border-top-left-radius: 15px;
|
|
border-top-right-radius: 15px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.chat-widget-header h5 {
|
|
margin: 0;
|
|
}
|
|
|
|
.chat-widget-close {
|
|
cursor: pointer;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.chat-widget-body {
|
|
height: 300px;
|
|
overflow-y: auto;
|
|
padding: 1rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.chat-message {
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 1.25rem;
|
|
max-width: 80%;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.chat-message.user {
|
|
background-color: #0D6EFD;
|
|
color: white;
|
|
align-self: flex-end;
|
|
border-bottom-right-radius: 0.25rem;
|
|
}
|
|
|
|
.chat-message.bot {
|
|
background-color: #E9ECEF;
|
|
color: #333;
|
|
align-self: flex-start;
|
|
border-bottom-left-radius: 0.25rem;
|
|
}
|
|
|
|
.chat-widget-footer {
|
|
padding: 1rem;
|
|
border-top: 1px solid #E9ECEF;
|
|
}
|
|
|
|
.chat-widget-footer .form-control {
|
|
border-radius: 1.5rem;
|
|
}
|