#spc-chat-widget,
#spc-chat-widget * {
box-sizing: border-box;
}
#spc-chat-widget {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 999999;
}
#spc-chat-toggle {
width: 60px !important;
height: 60px !important;
border-radius: 50% !important;
border: none !important;
color: white !important;
font-size: 24px !important;
cursor: pointer !important;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
transition: transform 0.3s ease !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
padding: 0 !important;
margin: 0 !important;
background-image: none !important;
}
#spc-chat-toggle:hover {
transform: scale(1.05) !important;
}
#spc-chat-toggle svg {
width: 28px !important;
height: 28px !important;
max-width: 28px !important;
max-height: 28px !important;
display: block !important;
margin: 0 !important;
padding: 0 !important;
fill: currentColor !important;
}
#spc-chat-toggle img {
width: 28px !important;
height: 28px !important;
max-width: 28px !important;
max-height: 28px !important;
object-fit: cover !important;
border-radius: 50% !important;
display: block !important;
margin: 0 !important;
padding: 0 !important;
}
#spc-chat-container {
position: absolute;
bottom: 80px;
right: 0;
width: 370px;
height: 500px;
background: #ffffff;
border-radius: 12px;
box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
display: flex;
flex-direction: column;
overflow: hidden;
transition: opacity 0.3s ease, transform 0.3s ease;
transform-origin: bottom right;
}
#spc-chat-container.spc-hidden {
opacity: 0;
pointer-events: none;
transform: scale(0.9);
}
.spc-chat-header {
color: #ffffff;
padding: 15px 20px;
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
z-index: 10;
width: 100%;
}
.spc-header-info {
display: flex;
align-items: center;
gap: 12px;
}
.spc-avatar {
background: rgba(255,255,255,0.2) !important;
width: 36px !important;
height: 36px !important;
border-radius: 50% !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
font-size: 18px !important;
padding: 0 !important;
overflow: hidden !important;
}
.spc-avatar svg {
width: 24px !important;
height: 24px !important;
max-width: 24px !important;
max-height: 24px !important;
display: block !important;
margin: 0 !important;
padding: 0 !important;
fill: currentColor !important;
}
.spc-avatar img {
width: 24px !important;
height: 24px !important;
max-width: 24px !important;
max-height: 24px !important;
object-fit: cover !important;
border-radius: 50% !important;
display: block !important;
margin: 0 !important;
padding: 0 !important;
}
.spc-title {
display: flex;
flex-direction: column;
}
.spc-title strong {
font-size: 15px;
line-height: 1.2;
}
.spc-status {
font-size: 11px;
opacity: 0.9;
display: flex;
align-items: center;
gap: 4px;
}
.spc-status::before {
content: '';
display: inline-block;
width: 6px;
height: 6px;
background: #4ade80;
border-radius: 50%;
}
.spc-header-actions {
display: flex;
align-items: center;
gap: 8px;
}
.spc-minup-btn {
background: rgba(255,255,255,0.2);
color: white;
border: none;
padding: 6px 12px;
border-radius: 15px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
text-decoration: none;
display: flex;
align-items: center;
gap: 4px;
transition: background 0.2s;
}
.spc-minup-btn:hover {
background: rgba(255,255,255,0.3);
color: white;
}
.spc-icon-btn {
background: transparent !important;
border: none !important;
color: white !important;
cursor: pointer !important;
padding: 4px !important;
opacity: 0.8 !important;
transition: opacity 0.2s, transform 0.2s, background 0.2s !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
border-radius: 50% !important;
width: 32px !important;
height: 32px !important;
box-shadow: none !important;
}
.spc-icon-btn:hover {
opacity: 1 !important;
transform: scale(1.1) !important;
}
.spc-icon-btn svg {
width: 20px !important;
height: 20px !important;
max-width: 20px !important;
max-height: 20px !important;
display: block !important;
margin: 0 !important;
padding: 0 !important;
fill: currentColor !important;
} #spc-company-info-panel {
background: #f8fafc;
border-bottom: 1px solid #e2e8f0;
overflow: hidden;
transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
max-height: 200px;
opacity: 1;
position: relative;
z-index: 5;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
#spc-company-info-panel.spc-info-hidden {
max-height: 0;
opacity: 0;
border-bottom: none;
}
.spc-info-content {
padding: 15px 20px;
}
.spc-info-content h4 {
margin: 0 0 10px 0;
font-size: 14px;
color: #1e293b;
font-weight: 600;
}
.spc-info-content ul {
list-style: none;
padding: 0;
margin: 0;
}
.spc-info-content li {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
font-size: 13px;
color: #475569;
}
.spc-info-content li:last-child {
margin-bottom: 0;
}
.spc-info-content li svg {
width: 14px;
height: 14px;
color: #94a3b8;
flex-shrink: 0;
}
.spc-info-content li a {
color: #3b82f6;
text-decoration: none;
font-weight: 500;
}
.spc-info-content li a:hover {
text-decoration: underline;
color: #2563eb;
} #spc-chat-messages {
flex: 1;
padding: 20px;
overflow-y: auto;
background: #ffffff;
display: flex;
flex-direction: column;
gap: 15px;
}
.spc-message {
max-width: 85%;
padding: 12px 16px;
border-radius: 12px;
font-size: 14px;
line-height: 1.5;
word-wrap: break-word;
}
.spc-message p {
margin: 0 0 8px 0;
}
.spc-message p:last-child {
margin-bottom: 0;
}
.spc-message ul, .spc-message ol {
margin: 0 0 10px 20px;
padding: 0;
}
.spc-message.spc-bot {
background: #f1f5f9;
color: #334155;
align-self: flex-start;
border-bottom-left-radius: 4px;
box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.spc-message.spc-user {
background: #e2e8f0;
color: #0f172a;
align-self: flex-end;
border-bottom-right-radius: 4px;
} .spc-minup-btn-inline {
display: inline-block;
background: #3b82f6;
color: #ffffff !important;
padding: 6px 14px;
border-radius: 15px;
text-decoration: none !important;
font-size: 13px;
font-weight: 600;
margin-top: 8px;
margin-bottom: 4px;
transition: background 0.2s;
box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}
.spc-minup-btn-inline:hover {
background: #2563eb;
} .spc-quick-replies {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
padding: 10px 15px;
background: #ffffff;
border-top: 1px solid #f1f5f9;
}
.spc-qr-btn {
background: #3b82f6;
color: #ffffff;
border: 1px solid #3b82f6;
border-radius: 20px;
padding: 4px 8px;
font-size: 12px;
cursor: pointer;
transition: all 0.2s ease;
text-align: center;
line-height: 1.3;
box-sizing: border-box;
white-space: normal;
word-break: break-word;
}
.spc-qr-btn:last-child:nth-child(odd) {
grid-column: span 2;
}
.spc-qr-btn:hover {
background: #eff6ff;
color: #3b82f6;
border-color: #bfdbfe;
}
.spc-chat-input-area {
padding: 15px;
background: #ffffff;
border-top: 1px solid #e2e8f0;
display: flex;
gap: 10px;
align-items: flex-end;
} #spc-chat-input {
flex: 1;
border: 1px solid #cbd5e1;
border-radius: 20px;
padding: 9px 15px;
height: 40px;
min-height: 40px;
font-size: 14px;
resize: none;
max-height: 100px;
outline: none;
font-family: inherit;
line-height: 20px;
transition: border-color 0.2s;
overflow: hidden;
}
#spc-chat-input:focus {
border-color: #94a3b8;
}
#spc-chat-send {
background: transparent;
border: none;
font-size: 20px;
cursor: pointer;
padding: 8px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.2s;
}
#spc-chat-send:hover {
transform: scale(1.1);
}
#spc-chat-send:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
}
.spc-chat-footer {
text-align: center;
padding: 8px;
font-size: 10px;
color: #94a3b8;
background: #f8fafc;
border-top: 1px solid #f1f5f9;
}
.spc-typing {
display: flex;
gap: 4px;
padding: 15px 16px;
align-items: center;
}
.spc-dot {
width: 6px;
height: 6px;
background: #94a3b8;
border-radius: 50%;
animation: spc-bounce 1.4s infinite ease-in-out both;
}
.spc-dot:nth-child(1) { animation-delay: -0.32s; }
.spc-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes spc-bounce {
0%, 80%, 100% { transform: scale(0); }
40% { transform: scale(1); }
}
@media (max-width: 480px) {
#spc-chat-container {
width: calc(100vw - 40px) !important;
height: calc(100vh - 120px) !important;
max-height: 600px;
bottom: 70px !important;
right: 0 !important;
}
#spc-chat-toggle {
width: 50px !important;
height: 50px !important;
}
#spc-chat-toggle svg {
width: 24px !important;
height: 24px !important;
}
#spc-chat-toggle img {
width: 24px !important;
height: 24px !important;
}
} #spc-minup-modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0,0,0,0.6);
z-index: 9999999;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
}
#spc-minup-modal-overlay.spc-active {
opacity: 1;
pointer-events: auto;
}
#spc-minup-modal-content {
background: #fff;
width: 95%;
max-width: 600px;
height: 90vh;
max-height: 700px;
border-radius: 12px;
overflow: hidden;
position: relative;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
transform: translateY(30px);
transition: transform 0.3s ease;
display: flex;
flex-direction: column;
}
#spc-minup-modal-overlay.spc-active #spc-minup-modal-content {
transform: translateY(0);
}
.spc-modal-header {
padding: 15px 20px;
background: #f8fafc;
border-bottom: 1px solid #e2e8f0;
display: flex;
justify-content: space-between;
align-items: center;
}
.spc-modal-header h3 {
margin: 0;
font-size: 16px;
color: #1e293b;
font-family: inherit;
}
.spc-modal-close {
background: transparent;
border: none;
font-size: 28px;
cursor: pointer;
color: #64748b;
line-height: 1;
padding: 0;
display: flex;
align-items: center;
}
.spc-modal-close:hover {
color: #ef4444;
}
.spc-modal-body {
flex: 1;
width: 100%;
height: 100%;
background: #ffffff;
}