.conieh-wa-button {
z-index: 9998;
position: fixed;
bottom: 20px;
right: 20px;
background-color: #25d366;
color: white;
border-radius: 50%;
width: 60px;
height: 60px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
border: none;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
opacity: 0;
transform: scale(0.8);
transition: opacity 0.4s ease-in-out, transform 0.3s ease-in-out;
}
.conieh-wa-button.show {
opacity: 1;
transform: scale(1);
}
.conieh-wa-button:hover {
transform: scale(1.08);
}
.wa-widget-container {
position: fixed;
bottom: 90px;
right: 20px;
width: 340px;
max-width: calc(100vw - 40px);
height: 500px;
max-height: calc(100vh - 110px);
background-color: #f0f2f5;
border-radius: 18px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
overflow: hidden;
z-index: 9999;
display: none;
flex-direction: column;
animation: waPopIn 0.28s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
@keyframes waPopIn {
from { opacity: 0; transform: scale(0.85) translateY(20px); }
to { opacity: 1; transform: scale(1) translateY(0); }
}
.wa-header {
background-color: #008069;
color: white;
padding: 12px 16px;
display: flex;
align-items: center;
gap: 12px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.wa-avatar {
width: 42px;
height: 42px;
background-color: #fff;
border-radius: 50%;
padding: 6px;
object-fit: cover;
flex-shrink: 0;
box-sizing: border-box;
}
.wa-header-info h4 {
margin: 0;
font-size: 16px;
font-weight: 500;
line-height: 1.2;
color: #fff;
}
.wa-header-info p {
margin: 2px 0 0 0;
font-size: 12px;
opacity: 0.85;
color: #fff;
}
.wa-close-btn {
margin-left: auto;
background: none;
border: none;
color: #fff;
cursor: pointer;
font-size: 26px;
opacity: 0.8;
line-height: 1;
padding: 0 4px;
}
.wa-close-btn:hover { opacity: 1; }
.wa-body {
background-color: #efeae2;
background-image: url(https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png);
padding: 18px 16px;
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 8px;
}
.wa-msg {
background-color: #fff;
padding: 8px 12px;
border-radius: 0 12px 12px 12px;
font-size: 14px;
color: #111b21;
box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
position: relative;
max-width: 85%;
width: fit-content;
line-height: 1.4;
animation: waFadeInMsg 0.25s ease;
margin-bottom: 4px;
}
.wa-msg::before {
content: "";
position: absolute;
top: 0;
left: -7px;
border-top: 8px solid #fff;
border-left: 8px solid transparent;
}
@keyframes waFadeInMsg {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
.wa-time {
font-size: 10px;
color: #667781;
float: right;
margin-top: 5px;
margin-left: 8px;
}
.wa-typing-bubble {
background-color: #fff;
padding: 10px 15px;
border-radius: 0 12px 12px 12px;
width: fit-content;
box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
position: relative;
display: none;
margin-bottom: 8px;
}
.wa-typing-bubble::before {
content: "";
position: absolute;
top: 0;
left: -7px;
border-top: 8px solid #fff;
border-left: 8px solid transparent;
}
.typing-dots { display: flex; gap: 4px; align-items: center; height: 10px; }
.dot {
width: 6px; height: 6px; background-color: #b4b4b4; border-radius: 50%;
animation: waBounce 1.4s infinite ease-in-out both;
}
.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes waBounce {
0%, 80%, 100% { transform: scale(0); }
40% { transform: scale(1); }
}
.wa-footer {
padding: 0 16px;
background-color: #f0f2f5;
display: flex;
max-height: 0;
overflow: hidden;
flex-direction: column;
gap: 10px;
opacity: 0;
transform: translateY(15px);
transition: all 0.4s ease;
pointer-events: none;
border-top: 1px solid transparent;
}
.wa-footer.active {
border-color: #e2e4e7;
padding: 12px 16px 16px 16px;
max-height: 300px;
opacity: 1;
transform: translateY(0);
pointer-events: all;
}
.wa-input {
width: 100% !important;
padding: 11px 15px !important;
border: 1px solid #fff !important;
border-radius: 24px !important;
font-size: 14px !important;
outline: none !important;
box-sizing: border-box !important;
background: #fff !important;
font-family: inherit !important;
color: #444 !important;
transition: box-shadow 0.2s !important;
}
.wa-input:focus { box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); }
select.wa-input {
appearance: none;
background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23008069%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
background-repeat: no-repeat !important;
background-position: right 15px top 50% !important;
background-size: 11px auto !important;
cursor: pointer;
}
.wa-send-btn {
background-color: #008069;
color: white;
border: none;
padding: 12px;
border-radius: 24px;
font-size: 15px;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
transition: all 0.3s;
opacity: 0.5;
pointer-events: none;
filter: grayscale(1);
}
.wa-send-btn.enabled {
opacity: 1;
pointer-events: all;
filter: grayscale(0);
}
.wa-send-btn.enabled:hover {
background-color: #25D366;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}