:root {
--cepex-primary: #C9A84C;
--cepex-dark: #1a1a1a;
--cepex-light: #f5f5f5;
--cepex-border: #e0e0e0;
--cepex-error: #d32f2f;
--cepex-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
} .cepex-chatbot {
position: fixed;
bottom: 20px;
right: 20px;
width: 380px;
height: 600px;
background: white;
border-radius: 12px;
box-shadow: var(--cepex-shadow);
display: flex;
flex-direction: column;
z-index: 99999; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
opacity: 0;
transform: translateY(100px) scale(0.8);
pointer-events: none;
transition: all 0.3s ease-in-out;
}
.cepex-chatbot.open {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: auto;
} .cepex-chatbot-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px;
background: linear-gradient(135deg, var(--cepex-dark) 0%, #2d2d2d 100%);
color: var(--cepex-primary);
border-radius: 12px 12px 0 0;
border-bottom: 2px solid var(--cepex-primary);
position: relative;
z-index: 100000;
gap: 8px;
min-height: 50px;
}
.cepex-chatbot-title {
display: flex;
align-items: center;
gap: 10px;
font-weight: 600;
font-size: 14px;
text-transform: uppercase;
letter-spacing: 0.5px;
flex: 1;
min-width: 0;
}
.cepex-chatbot-logo {
width: 32px;
height: 32px;
border-radius: 50%;
background: var(--cepex-primary);
padding: 4px;
flex-shrink: 0;
}
.cepex-chatbot-close {
background: none;
border: none;
color: var(--cepex-primary);
font-size: 24px;
cursor: pointer;
padding: 6px;
width: 40px;
height: 40px;
min-width: 40px;
min-height: 40px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
line-height: 1;
font-weight: 300;
flex-shrink: 0;
position: relative;
right: -8px;
}
.cepex-chatbot-close:hover {
color: #fff;
transform: rotate(90deg);
background: rgba(201, 168, 76, 0.2);
border-radius: 50%;
} .cepex-chatbot-messages {
flex: 1;
overflow-y: auto;
padding: 16px;
display: flex;
flex-direction: column;
gap: 12px;
background: var(--cepex-light);
}
.cepex-message {
display: flex;
justify-content: flex-start;
animation: slideIn 0.3s ease-out;
}
.cepex-message.assistant {
justify-content: flex-start;
}
.cepex-message.user {
justify-content: flex-end;
}
.cepex-message.error {
justify-content: flex-start;
}
.cepex-message p {
margin: 0;
padding: 10px 14px;
border-radius: 8px;
font-size: 14px;
line-height: 1.5;
max-width: 75%;
word-wrap: break-word;
}
.cepex-message.assistant p {
background: var(--cepex-dark);
color: white;
border-bottom-left-radius: 2px;
}
.cepex-message.user p {
background: var(--cepex-primary);
color: var(--cepex-dark);
border-bottom-right-radius: 2px;
}
.cepex-message.error p {
background: #ffebee;
color: var(--cepex-error);
border-left: 3px solid var(--cepex-error);
} .cepex-chatbot-options {
display: flex;
flex-direction: column;
gap: 8px;
padding: 12px;
background: var(--cepex-light);
max-height: 200px;
overflow-y: auto;
border-top: 1px solid var(--cepex-border);
}
.cepex-option-btn {
padding: 10px 12px;
background: white;
border: 1px solid var(--cepex-border);
border-radius: 6px;
font-size: 13px;
cursor: pointer;
text-align: left;
transition: all 0.2s ease;
color: var(--cepex-dark);
font-weight: 500;
}
.cepex-option-btn:hover {
background: var(--cepex-primary);
color: white;
border-color: var(--cepex-primary);
transform: translateX(4px);
}
.cepex-option-btn:active {
transform: scale(0.98);
} .cepex-lead-form {
display: flex;
flex-direction: column;
gap: 10px;
padding: 12px;
background: white;
border-top: 1px solid var(--cepex-border);
}
.cepex-lead-form input {
padding: 10px 12px;
border: 1px solid var(--cepex-border);
border-radius: 6px;
font-size: 14px;
font-family: inherit;
transition: all 0.2s ease;
}
.cepex-lead-form input:focus {
outline: none;
border-color: var(--cepex-primary);
box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}
.cepex-lead-form button {
padding: 12px;
background: var(--cepex-primary);
color: var(--cepex-dark);
border: none;
border-radius: 6px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
}
.cepex-lead-form button:hover {
background: #b89835;
transform: translateY(-2px);
}
.cepex-lead-form button:active {
transform: scale(0.98);
} .cepex-chatbot-input {
display: flex;
gap: 8px;
padding: 12px;
background: white;
border-top: 1px solid var(--cepex-border);
border-radius: 0 0 12px 12px;
}
#cepex-message-input {
flex: 1;
padding: 10px 12px;
border: 1px solid var(--cepex-border);
border-radius: 6px;
font-size: 14px;
font-family: inherit;
transition: all 0.2s ease;
}
#cepex-message-input:focus {
outline: none;
border-color: var(--cepex-primary);
box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}
#cepex-send-btn {
width: 40px;
height: 40px;
background: var(--cepex-primary);
color: var(--cepex-dark);
border: none;
border-radius: 6px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
font-weight: 600;
}
#cepex-send-btn:hover {
background: #b89835;
transform: scale(1.05);
}
#cepex-send-btn:active {
transform: scale(0.95);
} .cepex-loading {
position: absolute;
bottom: 60px;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.cepex-spinner {
width: 30px;
height: 30px;
border: 3px solid var(--cepex-border);
border-top-color: var(--cepex-primary);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
} .cepex-chatbot-toggle {
position: fixed;
bottom: 20px;
right: 20px;
width: 60px;
height: 60px;
background: var(--cepex-primary);
color: var(--cepex-dark);
border: none;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
z-index: 99998;
box-shadow: var(--cepex-shadow);
transition: all 0.3s ease;
font-weight: 600;
font-size: 24px;
}
.cepex-chatbot-toggle:hover {
background: #b89835;
transform: scale(1.1);
}
.cepex-chatbot-toggle:active {
transform: scale(0.95);
}
.cepex-toggle-icon {
width: 36px;
height: 36px;
border-radius: 50%;
object-fit: cover;
} .cepex-chatbot-messages::-webkit-scrollbar {
width: 6px;
}
.cepex-chatbot-messages::-webkit-scrollbar-track {
background: transparent;
}
.cepex-chatbot-messages::-webkit-scrollbar-thumb {
background: var(--cepex-primary);
border-radius: 3px;
}
.cepex-chatbot-messages::-webkit-scrollbar-thumb:hover {
background: #b89835;
}
.cepex-chatbot-options::-webkit-scrollbar {
width: 6px;
}
.cepex-chatbot-options::-webkit-scrollbar-thumb {
background: var(--cepex-primary);
border-radius: 3px;
} @keyframes slideIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
} @media (max-width: 768px) {
.cepex-chatbot {
width: calc(100% - 20px);
right: 10px;
}
.cepex-chatbot-close {
font-size: 20px;
width: 36px;
height: 36px;
min-width: 36px;
min-height: 36px;
}
}
@media (max-width: 480px) {
.cepex-chatbot {
width: 100%;
height: 100%;
max-width: none;
max-height: none;
bottom: 0;
right: 0;
border-radius: 0;
position: fixed;
}
.cepex-chatbot-header {
border-radius: 0;
}
.cepex-chatbot-input {
border-radius: 0;
}
.cepex-message p {
max-width: 85%;
}
.cepex-chatbot-toggle {
bottom: 20px;
right: 20px;
}
.cepex-chatbot-close {
font-size: 22px;
width: 40px;
height: 40px;
}
} body.admin-bar .cepex-chatbot {
z-index: 100000 !important;
}
body.admin-bar .cepex-chatbot-toggle {
z-index: 99999 !important;
}
.cepex-chatbot-close {
z-index: 100001 !important;
position: relative;
} @media (prefers-color-scheme: dark) {
.cepex-chatbot {
background: #2d2d2d;
color: var(--cepex-light);
}
.cepex-chatbot-messages {
background: #1a1a1a;
}
#cepex-message-input {
background: #3a3a3a;
color: var(--cepex-light);
border-color: #555;
}
.cepex-option-btn {
background: #3a3a3a;
color: var(--cepex-light);
border-color: #555;
}
.cepex-option-btn:hover {
background: var(--cepex-primary);
color: var(--cepex-dark);
}
}