275 lines
4.5 KiB
CSS
275 lines
4.5 KiB
CSS
.chatbot-trigger {
|
|
position: fixed;
|
|
right: 24px;
|
|
bottom: 24px;
|
|
z-index: 1200;
|
|
border: none;
|
|
border-radius: 999px;
|
|
background: #ff6a00;
|
|
color: #fff;
|
|
padding: 14px 20px;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
|
|
}
|
|
|
|
.chatbot-trigger:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.chatbot-trigger.is-open {
|
|
padding: 14px 17px;
|
|
min-width: 52px;
|
|
}
|
|
|
|
.chatbot-window {
|
|
position: fixed;
|
|
right: 24px;
|
|
bottom: 88px;
|
|
width: 380px;
|
|
max-width: calc(100vw - 32px);
|
|
height: 620px;
|
|
max-height: calc(100vh - 120px);
|
|
z-index: 1199;
|
|
display: grid;
|
|
grid-template-rows: auto 1fr auto;
|
|
background: #f5f5f5;
|
|
border: 1px solid #d9d9d9;
|
|
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.chatbot-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 18px 18px 16px;
|
|
border-bottom: 1px solid #dcdcdc;
|
|
background: #1f1f1f;
|
|
}
|
|
|
|
.chatbot-header-copy h3 {
|
|
margin: 8px 0 0;
|
|
font-size: 24px;
|
|
line-height: 1.02;
|
|
font-weight: 400;
|
|
color: #fff;
|
|
}
|
|
|
|
.chatbot-kicker {
|
|
display: block;
|
|
font-size: 10px;
|
|
letter-spacing: 0.22em;
|
|
color: rgba(255, 255, 255, 0.62);
|
|
}
|
|
|
|
.chatbot-close {
|
|
border: none;
|
|
background: transparent;
|
|
color: #fff;
|
|
font-size: 28px;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
}
|
|
|
|
.chatbot-body {
|
|
display: grid;
|
|
grid-template-rows: 1fr auto;
|
|
min-height: 0;
|
|
}
|
|
|
|
.chatbot-messages {
|
|
padding: 18px;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
background: #f5f5f5;
|
|
}
|
|
|
|
.chatbot-message {
|
|
max-width: 82%;
|
|
padding: 12px 14px;
|
|
font-size: 14px;
|
|
line-height: 1.55;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.chatbot-message--bot {
|
|
align-self: flex-start;
|
|
background: #ececec;
|
|
color: #1f1f1f;
|
|
border: 1px solid #dddddd;
|
|
}
|
|
|
|
.chatbot-message--user {
|
|
align-self: flex-end;
|
|
background: #ff6a00;
|
|
color: #fff;
|
|
}
|
|
|
|
.chatbot-message--typing {
|
|
color: #666;
|
|
}
|
|
|
|
.chatbot-quick-actions {
|
|
padding: 14px 18px 16px;
|
|
border-top: 1px solid #dcdcdc;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
background: #fafafa;
|
|
}
|
|
|
|
.chatbot-chip {
|
|
border: 1px solid #d6d6d6;
|
|
background: #fff;
|
|
color: #1f1f1f;
|
|
padding: 9px 12px;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
transition: transform 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.chatbot-chip:hover {
|
|
transform: translateY(-1px);
|
|
border-color: #bcbcbc;
|
|
}
|
|
|
|
.chatbot-footer {
|
|
padding: 14px 18px 18px;
|
|
border-top: 1px solid #dcdcdc;
|
|
background: #fff;
|
|
}
|
|
|
|
.chatbot-form {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
gap: 10px;
|
|
}
|
|
|
|
.chatbot-input {
|
|
width: 100%;
|
|
border: 1px solid #d3d3d3;
|
|
background: #fff;
|
|
padding: 12px 14px;
|
|
font-size: 14px;
|
|
outline: none;
|
|
}
|
|
|
|
.chatbot-input:focus {
|
|
border-color: #ff6a00;
|
|
}
|
|
|
|
.chatbot-send {
|
|
border: none;
|
|
background: #1f1f1f;
|
|
color: #fff;
|
|
padding: 12px 16px;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.chatbot-escalation {
|
|
display: flex;
|
|
gap: 16px;
|
|
flex-wrap: wrap;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.chatbot-link {
|
|
text-decoration: none;
|
|
font-size: 13px;
|
|
color: #ff6a00;
|
|
background: transparent;
|
|
border: none;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.chatbot-link--muted {
|
|
color: #777;
|
|
cursor: default;
|
|
}
|
|
|
|
.chatbot-action-area {
|
|
border-top: 1px solid #dcdcdc;
|
|
background: #fafafa;
|
|
}
|
|
|
|
.chatbot-section {
|
|
padding: 14px 18px 16px;
|
|
}
|
|
|
|
.chatbot-section + .chatbot-section {
|
|
border-top: 1px solid #e2e2e2;
|
|
}
|
|
|
|
.chatbot-section-label {
|
|
display: block;
|
|
margin-bottom: 10px;
|
|
font-size: 10px;
|
|
letter-spacing: 0.22em;
|
|
color: #666;
|
|
}
|
|
|
|
.chatbot-feedback-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
|
|
.chatbot-feedback-btn {
|
|
border: 1px solid #d6d6d6;
|
|
background: #fff;
|
|
color: #1f1f1f;
|
|
padding: 10px 14px;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
transition: transform 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.chatbot-feedback-btn:hover {
|
|
transform: translateY(-1px);
|
|
border-color: #bcbcbc;
|
|
}
|
|
|
|
.chatbot-feedback-btn--primary {
|
|
background: #ff6a00;
|
|
border-color: #ff6a00;
|
|
color: #fff;
|
|
}
|
|
|
|
.chatbot-secondary-actions {
|
|
padding: 0 18px 14px;
|
|
}
|
|
|
|
.chatbot-text-button {
|
|
border: none;
|
|
background: transparent;
|
|
color: #ff6a00;
|
|
padding: 0;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
@media (max-width: 700px) {
|
|
.chatbot-trigger {
|
|
right: 16px;
|
|
bottom: 16px;
|
|
}
|
|
|
|
.chatbot-window {
|
|
right: 16px;
|
|
bottom: 76px;
|
|
width: calc(100vw - 32px);
|
|
height: 72vh;
|
|
}
|
|
|
|
.chatbot-header-copy h3 {
|
|
font-size: 20px;
|
|
}
|
|
} |