215 lines
3.6 KiB
CSS
215 lines
3.6 KiB
CSS
/* ================= Chat Toggle Button ================= */
|
|
#cw-chatToggle {
|
|
position: fixed;
|
|
bottom: 24px;
|
|
right: 24px;
|
|
width: 100px;
|
|
height: 50px;
|
|
border: none;
|
|
border-radius: 25px;
|
|
padding: 0;
|
|
background: none;
|
|
cursor: pointer;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 100000;
|
|
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
|
|
rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
#cw-chatToggle:hover {
|
|
transform: translateY(-5px);
|
|
}
|
|
|
|
#cw-chatToggle img {
|
|
width: 80%;
|
|
height: 80%;
|
|
object-fit: contain;
|
|
display: block;
|
|
user-select: none;
|
|
}
|
|
|
|
/* ================= Chat Widget ================= */
|
|
#cw-chatWidget {
|
|
display: none;
|
|
position: fixed;
|
|
bottom: 100px;
|
|
right: 24px;
|
|
width: 500px;
|
|
max-height: 70vh;
|
|
background: white;
|
|
border: 1px solid #ccc;
|
|
border-radius: 12px;
|
|
flex-direction: column;
|
|
z-index: 100000;
|
|
font-family: system-ui, sans-serif;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#cw-chatWidget.active {
|
|
display: flex;
|
|
}
|
|
|
|
#cw-chatWidget .cw-header {
|
|
display: flex;
|
|
justify-content: center;
|
|
padding: 16px 0 10px 0;
|
|
background: #f8f9f9;
|
|
}
|
|
|
|
#cw-chatWidget .cw-header img {
|
|
width: 80%;
|
|
height: auto;
|
|
object-fit: contain;
|
|
user-select: none;
|
|
}
|
|
|
|
/* Status Bar */
|
|
#cw-status {
|
|
padding: 10px;
|
|
background-color: #f0f0f0;
|
|
border-bottom: 1px solid #ddd;
|
|
max-height: 0;
|
|
transition: max-height 0.5s ease, padding 0.5s ease;
|
|
}
|
|
|
|
/* Messages */
|
|
#cw-chatMessages {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 16px;
|
|
font-size: 0.875rem;
|
|
line-height: 1.4;
|
|
background: #fafafa;
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
/* Form */
|
|
#cw-chatForm {
|
|
display: flex;
|
|
border-top: 1px solid #ddd;
|
|
}
|
|
|
|
#cw-chatInput {
|
|
flex: 1;
|
|
border: none;
|
|
padding: 8px 20px;
|
|
font-size: 1rem;
|
|
border-radius: 0 0 0 12px;
|
|
outline: none;
|
|
}
|
|
|
|
#cw-chatForm button {
|
|
background-color: #0070c0;
|
|
border: none;
|
|
color: white;
|
|
padding: 0 16px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
border-radius: 0 0 12px 0;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
#cw-chatForm button:hover {
|
|
background-color: #005a9e;
|
|
}
|
|
|
|
/* Messages Bubbles */
|
|
.cw-message {
|
|
max-width: 75%;
|
|
margin-bottom: 8px;
|
|
padding: 8px 12px;
|
|
border-radius: 12px;
|
|
word-wrap: break-word;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.cw-message.user {
|
|
background-color: #DCF8C6;
|
|
color: #333;
|
|
margin-left: auto;
|
|
text-align: right;
|
|
}
|
|
|
|
.cw-message.bot {
|
|
background-color: #E0E0E0;
|
|
color: #333;
|
|
margin-right: auto;
|
|
text-align: left;
|
|
}
|
|
|
|
/* ================= Wizard ================= */
|
|
.wizard-headline {
|
|
text-align: center;
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
padding: 20px 0;
|
|
background-color: #f8f9f9;
|
|
color: #2c3e50;
|
|
border-bottom: 2px solid #ddd;
|
|
}
|
|
|
|
.wizard {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
width: 100%;
|
|
background-color: #e0e0e0;
|
|
}
|
|
|
|
.wizard li {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-right: 2px solid #fff;
|
|
color: white;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.wizard li:last-child {
|
|
border-right: none;
|
|
}
|
|
|
|
.wizard .header {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px;
|
|
font-weight: bold;
|
|
font-size: 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
.wizard .text {
|
|
padding: 20px 10px;
|
|
text-align: center;
|
|
font-size: 14px;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
/* Wizard state colors */
|
|
.wizard li.open {
|
|
background-color: #7f8c8d;
|
|
}
|
|
|
|
.wizard li.open .header {
|
|
background-color: #5d6d7e;
|
|
}
|
|
|
|
.wizard li.done {
|
|
background-color: #1e8449;
|
|
}
|
|
|
|
.wizard li.done .header {
|
|
background-color: #145a32;
|
|
}
|
|
|
|
.wizard i {
|
|
font-size: 18px;
|
|
}
|