:root {
--rebt-primary: #0F4C81;
--rebt-primary-dark: #0a3560;
--rebt-primary-light: #1a6bc4;
--rebt-accent: #F59E0B;
--rebt-bg: #ffffff;
--rebt-surface: #f8f9fb;
--rebt-border: #e2e6ec;
--rebt-text: #1e293b;
--rebt-text-secondary: #64748b;
--rebt-success: #10b981;
--rebt-warning: #f59e0b;
--rebt-danger: #ef4444;
--rebt-radius: 14px;
--rebt-shadow: 0 8px 32px rgba(15, 76, 129, 0.18), 0 2px 8px rgba(0,0,0,0.08);
--rebt-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
} .rebt-widget {
position: fixed;
z-index: 999999;
font-family: var(--rebt-font);
font-size: 14px;
line-height: 1.5;
}
.rebt-widget--bottom-right {
bottom: 20px;
right: 20px;
}
.rebt-widget--bottom-left {
bottom: 20px;
left: 100px;
} .rebt-toggle-btn {
height: 48px;
border-radius: 24px;
border: none;
background: var(--rebt-primary);
color: white;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
box-shadow: 0 4px 20px rgba(15, 76, 129, 0.35);
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
position: relative;
overflow: hidden;
padding: 0 20px;
}
.rebt-toggle-btn.rebt-toggle-btn--labeled {
width: auto;
border-radius: 24px;
}
.rebt-toggle-label {
font-size: 14px;
font-weight: 600;
white-space: nowrap;
letter-spacing: -0.01em;
font-family: var(--rebt-font);
}
.rebt-widget[data-state="open"] .rebt-toggle-label {
display: none;
}
.rebt-widget[data-state="open"] .rebt-toggle-btn.rebt-toggle-btn--labeled {
width: 48px;
padding: 0;
border-radius: 50%;
}
.rebt-toggle-btn::before {
content: '';
position: absolute;
inset: 0;
border-radius: 50%;
background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 60%);
}
.rebt-toggle-btn:hover {
transform: scale(1.08);
box-shadow: 0 6px 28px rgba(15, 76, 129, 0.45);
}
.rebt-toggle-btn:active {
transform: scale(0.95);
}
.rebt-icon-close { display: none; }
.rebt-widget[data-state="open"] .rebt-icon-open { display: none; }
.rebt-widget[data-state="open"] .rebt-icon-close { display: block; } .rebt-chat-window {
position: absolute;
bottom: 72px;
width: 400px;
max-width: calc(100vw - 40px);
height: 580px;
max-height: calc(100vh - 120px);
background: var(--rebt-bg);
border-radius: var(--rebt-radius);
box-shadow: var(--rebt-shadow);
display: flex;
flex-direction: column;
overflow: hidden;
opacity: 0;
transform: translateY(16px) scale(0.96);
pointer-events: none;
transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
border: 1px solid var(--rebt-border);
}
.rebt-widget--bottom-right .rebt-chat-window {
right: 0;
}
.rebt-widget--bottom-left .rebt-chat-window {
left: 0;
}
.rebt-widget[data-state="open"] .rebt-chat-window {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: all;
} .rebt-chat-header {
background: linear-gradient(135deg, var(--rebt-primary), var(--rebt-primary-dark));
color: white;
padding: 16px 18px;
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
position: relative;
}
.rebt-chat-header::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, var(--rebt-accent), var(--rebt-primary-light), var(--rebt-accent));
}
.rebt-chat-header-info {
display: flex;
align-items: center;
gap: 12px;
}
.rebt-chat-avatar {
width: 40px;
height: 40px;
border-radius: 10px;
background: rgba(255,255,255,0.15);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
backdrop-filter: blur(8px);
}
.rebt-chat-title {
font-weight: 700;
font-size: 15px;
letter-spacing: -0.01em;
}
.rebt-chat-subtitle {
font-size: 11.5px;
opacity: 0.82;
margin-top: 1px;
}
.rebt-minimize-btn {
background: rgba(255,255,255,0.12);
border: none;
color: white;
cursor: pointer;
width: 32px;
height: 32px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s;
}
.rebt-minimize-btn:hover {
background: rgba(255,255,255,0.22);
} .rebt-messages {
flex: 1;
overflow-y: auto;
padding: 16px;
display: flex;
flex-direction: column;
gap: 12px;
scroll-behavior: smooth;
background: var(--rebt-surface);
}
.rebt-messages::-webkit-scrollbar {
width: 5px;
}
.rebt-messages::-webkit-scrollbar-thumb {
background: rgba(15, 76, 129, 0.2);
border-radius: 10px;
} .rebt-msg {
max-width: 92%;
animation: rebtSlideIn 0.3s ease;
}
@keyframes rebtSlideIn {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
.rebt-msg--user {
align-self: flex-end;
}
.rebt-msg--bot {
align-self: flex-start;
}
.rebt-msg-bubble {
padding: 12px 16px;
border-radius: 14px;
word-wrap: break-word;
position: relative;
}
.rebt-msg--user .rebt-msg-bubble {
background: var(--rebt-primary);
color: white;
border-bottom-right-radius: 4px;
}
.rebt-msg--bot .rebt-msg-bubble {
background: var(--rebt-bg);
color: var(--rebt-text);
border: 1px solid var(--rebt-border);
border-bottom-left-radius: 4px;
box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.rebt-msg-title {
font-weight: 700;
font-size: 14px;
margin-bottom: 8px;
color: var(--rebt-primary);
padding-bottom: 6px;
border-bottom: 2px solid var(--rebt-border);
}
.rebt-msg-content {
font-size: 13.5px;
line-height: 1.6;
}
.rebt-msg-content strong,
.rebt-msg-content b {
color: var(--rebt-primary-dark);
font-weight: 600;
}
.rebt-msg-content h3 {
font-size: 13.5px;
font-weight: 700;
margin: 10px 0 4px;
color: var(--rebt-primary);
}
.rebt-msg-content code {
background: #e8edf3;
padding: 2px 6px;
border-radius: 4px;
font-size: 12.5px;
font-family: 'SF Mono', Consolas, 'Liberation Mono', monospace;
color: var(--rebt-primary-dark);
} .rebt-msg-content table {
border-collapse: collapse;
width: 100%;
margin: 10px 0;
font-size: 12px;
}
.rebt-msg-content th,
.rebt-msg-content td {
border: 1px solid var(--rebt-border);
padding: 6px 8px;
text-align: center;
}
.rebt-msg-content th {
background: var(--rebt-primary);
color: white;
font-weight: 600;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.rebt-msg-content tr:nth-child(even) {
background: #f3f6fa;
} .rebt-loading {
display: flex;
gap: 5px;
padding: 8px 0;
}
.rebt-loading-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--rebt-primary);
opacity: 0.3;
animation: rebtBounce 1.4s infinite ease-in-out both;
}
.rebt-loading-dot:nth-child(1) { animation-delay: -0.32s; }
.rebt-loading-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes rebtBounce {
0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
40% { opacity: 1; transform: scale(1.1); }
} .rebt-quick-actions {
padding: 8px 16px;
display: flex;
flex-wrap: wrap;
gap: 6px;
background: var(--rebt-bg);
border-top: 1px solid var(--rebt-border);
flex-shrink: 0;
}
.rebt-quick-btn {
background: var(--rebt-surface);
border: 1px solid var(--rebt-border);
padding: 5px 11px;
border-radius: 20px;
font-size: 12px;
color: var(--rebt-text);
cursor: pointer;
transition: all 0.2s;
white-space: nowrap;
font-family: var(--rebt-font);
}
.rebt-quick-btn:hover {
background: var(--rebt-primary);
color: white;
border-color: var(--rebt-primary);
transform: translateY(-1px);
} .rebt-chat-input-wrap {
padding: 12px 16px;
background: var(--rebt-bg);
border-top: 1px solid var(--rebt-border);
flex-shrink: 0;
}
.rebt-input-container {
display: flex;
gap: 8px;
align-items: center;
background: var(--rebt-surface);
border: 1.5px solid var(--rebt-border);
border-radius: 12px;
padding: 4px 4px 4px 14px;
transition: border-color 0.2s, box-shadow 0.2s;
}
.rebt-input-container:focus-within {
border-color: var(--rebt-primary);
box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}
.rebt-input {
flex: 1;
border: none;
background: none;
outline: none;
font-size: 14px;
color: var(--rebt-text);
font-family: var(--rebt-font);
padding: 8px 0;
}
.rebt-input::placeholder {
color: var(--rebt-text-secondary);
}
.rebt-send-btn {
width: 36px;
height: 36px;
border-radius: 10px;
border: none;
background: var(--rebt-primary);
color: white;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s, transform 0.15s;
flex-shrink: 0;
}
.rebt-send-btn:hover:not(:disabled) {
background: var(--rebt-primary-dark);
transform: scale(1.06);
}
.rebt-send-btn:disabled {
opacity: 0.4;
cursor: default;
}
.rebt-input-footer {
font-size: 10.5px;
color: var(--rebt-text-secondary);
text-align: center;
margin-top: 8px;
letter-spacing: 0.01em;
} .rebt-inline-chatbot {
max-width: 800px;
margin: 24px auto;
border: 1px solid var(--rebt-border);
border-radius: var(--rebt-radius);
overflow: hidden;
box-shadow: 0 2px 12px rgba(0,0,0,0.06);
font-family: var(--rebt-font);
font-size: 14px;
background: var(--rebt-bg);
}
.rebt-inline-header {
background: linear-gradient(135deg, var(--rebt-primary), var(--rebt-primary-dark));
color: white;
padding: 18px 20px;
display: flex;
align-items: center;
gap: 12px;
}
.rebt-messages--inline {
min-height: 320px;
max-height: 520px;
} .rebt-form {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
margin-top: 10px;
}
.rebt-form-field {
display: flex;
flex-direction: column;
gap: 3px;
}
.rebt-form-field--full {
grid-column: 1 / -1;
}
.rebt-form-label {
font-size: 11.5px;
font-weight: 600;
color: var(--rebt-text-secondary);
text-transform: uppercase;
letter-spacing: 0.04em;
}
.rebt-form-input {
border: 1.5px solid var(--rebt-border);
border-radius: 8px;
padding: 8px 10px;
font-size: 13px;
font-family: var(--rebt-font);
color: var(--rebt-text);
outline: none;
transition: border-color 0.2s;
background: var(--rebt-surface);
}
.rebt-form-input:focus {
border-color: var(--rebt-primary);
}
.rebt-form-select {
border: 1.5px solid var(--rebt-border);
border-radius: 8px;
padding: 8px 10px;
font-size: 13px;
background: var(--rebt-surface);
color: var(--rebt-text);
cursor: pointer;
}
.rebt-form-submit {
grid-column: 1 / -1;
background: var(--rebt-primary);
color: white;
border: none;
padding: 10px;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: background 0.2s;
font-family: var(--rebt-font);
margin-top: 4px;
}
.rebt-form-submit:hover {
background: var(--rebt-primary-dark);
} @media (max-width: 480px) { .rebt-chat-window {
width: calc(100vw - 24px);
height: 420px;
max-height: 60vh;
bottom: 56px;
border-radius: 12px;
}
.rebt-widget--bottom-right .rebt-chat-window {
right: -8px;
}
.rebt-widget--bottom-left .rebt-chat-window {
left: -8px;
} .rebt-toggle-btn {
height: 42px;
width: 42px;
padding: 0;
border-radius: 50%;
}
.rebt-toggle-btn.rebt-toggle-btn--labeled {
width: 42px;
border-radius: 50%;
padding: 0;
}
.rebt-toggle-label {
display: none;
}
.rebt-widget[data-state="open"] .rebt-toggle-btn.rebt-toggle-btn--labeled {
width: 42px;
}
.rebt-widget--bottom-left {
left: 16px;
bottom: 16px;
}
.rebt-widget--bottom-right {
right: 16px;
bottom: 16px;
} .rebt-chat-header {
padding: 12px 14px;
}
.rebt-chat-avatar {
width: 32px;
height: 32px;
border-radius: 8px;
}
.rebt-chat-avatar svg {
width: 16px;
height: 16px;
}
.rebt-chat-title {
font-size: 14px;
}
.rebt-chat-subtitle {
font-size: 10.5px;
} .rebt-quick-actions {
padding: 6px 10px;
gap: 4px;
}
.rebt-quick-btn {
font-size: 10.5px;
padding: 3px 8px;
} .rebt-chat-input-wrap {
padding: 8px 10px;
}
.rebt-input {
font-size: 13px;
padding: 6px 0;
}
.rebt-send-btn {
width: 32px;
height: 32px;
border-radius: 8px;
}
.rebt-input-footer {
font-size: 9.5px;
margin-top: 5px;
} .rebt-messages {
padding: 10px;
gap: 8px;
}
.rebt-msg-bubble {
padding: 10px 12px;
}
.rebt-msg-content {
font-size: 13px;
}
.rebt-form {
grid-template-columns: 1fr;
}
}