#md-chat-btn {
position: fixed;
bottom: 28px;
right: 28px;
z-index: 99999;
background: #ea3900;
color: #fff;
border: none;
border-radius: 50px;
padding: 14px 22px;
font-size: 15px;
font-family: sans-serif;
font-weight: 600;
cursor: pointer;
box-shadow: 0 4px 18px rgba(234,57,0,0.45);
display: flex;
align-items: center;
gap: 8px;
transition: background .2s;
}
#md-chat-btn:hover { background: #c73200; }
#md-chat-btn svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }
#md-chat-box {
display: none;
position: fixed;
bottom: 90px;
right: 28px;
z-index: 99999;
width: 340px;
max-height: 500px;
background: #fff;
border-radius: 16px;
box-shadow: 0 8px 40px rgba(0,0,0,0.18);
overflow: hidden;
flex-direction: column;
font-family: sans-serif;
}
#md-chat-box.open { display: flex; }
#md-chat-header {
background: #ea3900;
color: #fff;
padding: 16px 18px;
font-weight: 700;
font-size: 15px;
display: flex;
align-items: center;
justify-content: space-between;
}
#md-chat-header .md-header-title span {
font-weight: 400;
font-size: 12px;
opacity: .8;
display: block;
margin-top: 2px;
}
#md-chat-close {
background: none;
border: none;
color: #fff;
font-size: 20px;
cursor: pointer;
line-height: 1;
padding: 0;
}
#md-chat-messages {
flex: 1;
overflow-y: auto;
padding: 14px;
display: flex;
flex-direction: column;
gap: 10px;
}
.md-msg {
max-width: 85%;
padding: 10px 14px;
border-radius: 12px;
font-size: 14px;
line-height: 1.5;
}
.md-msg.bot {
background: #f3f3f3;
align-self: flex-start;
border-bottom-left-radius: 3px;
}
.md-msg.user {
background: #ea3900;
color: #fff;
align-self: flex-end;
border-bottom-right-radius: 3px;
}
.md-msg a { color: #ea3900; font-weight: 600; text-decoration: none; }
.md-msg.user a { color: #fff; text-decoration: underline; }
.md-msg small { font-size: 12px; opacity: .7; }
.md-msg small a { font-weight: 400; }
#md-chat-form {
display: flex;
border-top: 1px solid #eee;
padding: 10px;
gap: 8px;
}
#md-chat-form input#md-chat-input {
display: block !important;
visibility: visible !important;
opacity: 1 !important;
width: auto !important;
height: auto !important;
padding: 9px 12px !important;
border: 1px solid #ddd !important;
border-radius: 8px !important;
font-size: 14px !important;
flex: 1 !important;
background: #fff !important;
color: #000 !important;
box-sizing: border-box !important;
}
#md-chat-form input#md-chat-input:focus {
border-color: #ea3900 !important;
outline: none !important;
}
#md-chat-send {
background: #ea3900;
border: none;
color: #fff;
border-radius: 8px;
padding: 9px 14px;
cursor: pointer;
font-size: 18px;
line-height: 1;
transition: background .2s;
}
#md-chat-send:hover { background: #c73200; } .md-dot {
display: inline-block;
width: 7px;
height: 7px;
background: #aaa;
border-radius: 50%;
margin: 0 2px;
animation: md-bounce .9s infinite;
}
.md-dot:nth-child(2) { animation-delay: .2s; }
.md-dot:nth-child(3) { animation-delay: .4s; }
@keyframes md-bounce {
0%, 60%, 100% { transform: translateY(0); }
30% { transform: translateY(-6px); }
}
@media (max-width: 400px) {
#md-chat-box { width: calc(100vw - 20px); right: 10px; }
#md-chat-btn { right: 10px; bottom: 14px; }
}