.waca-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.waca-floating-btn {
    background-color: #25D366;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    padding: 0;
}
.waca-floating-btn:hover {
    transform: scale(1.05);
}
.waca-floating-btn img {
    width: 35px;
    height: 35px;
    display: block;
}

.waca-chatbox {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    overflow: hidden;
    display: none;
    flex-direction: column;
    transform-origin: bottom right;
    animation: waca-slide-up 0.3s ease forwards;
}

@keyframes waca-slide-up {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.waca-chatbox.waca-show {
    display: flex;
}

.waca-chatbox-header {
    background: #095e54;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.waca-header-content h4 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
}
.waca-header-content p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}
.waca-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
}
.waca-close-btn:hover {
    opacity: 1;
}

.waca-chatbox-body {
    background: #e5ddd5;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}
.waca-reply-time {
    text-align: center;
    font-size: 12px;
    color: #555;
    margin: 0 0 15px;
}

.waca-agents-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.waca-agent-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none !important;
    color: #333 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: background 0.2s;
}
.waca-agent-item:hover, .waca-agent-item:focus {
    background: #f9f9f9;
    color: #333 !important;
}

.waca-agent-avatar {
    position: relative;
    width: 45px;
    height: 45px;
    margin-right: 12px;
    flex-shrink: 0;
}
.waca-agent-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.waca-online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #4caf50;
    border: 2px solid #fff;
    border-radius: 50%;
}

.waca-agent-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.waca-agent-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}
.waca-agent-role {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    line-height: 1.2;
}
.waca-agent-action {
    color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
}

.waca-branding {
    text-align: center;
    font-size: 11px;
    color: #888;
    margin-top: 15px;
}
.waca-branding a {
    color: #888;
    text-decoration: none;
    font-weight: 600;
}
.waca-branding a:hover {
    color: #25D366;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .waca-chatbox {
        width: calc(100vw - 40px);
        bottom: 90px;
    }
}
