/* Floating Button */
.prochat-widget-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.3s ease;
}

.prochat-widget-btn:hover {
    transform: scale(1.1);
}

.prochat-widget-btn svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Greeting Tooltip */
.prochat-greeting {
    position: absolute;
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    white-space: nowrap;
    font-size: 14px;
    color: #333;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    bottom: 70px; /* Base position, adjusts with JS/CSS based on widget pos */
}

.prochat-widget-btn:hover .prochat-greeting {
    opacity: 1;
}

/* Modal */
.prochat-modal {
    position: fixed;
    bottom: 80px;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: none; /* Toggled via JS */
    flex-direction: column;
    z-index: 9998;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.prochat-modal.is-visible {
    display: flex;
    animation: prochatPop 0.3s ease-out;
}

@keyframes prochatPop {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.prochat-header {
    background-color: #075E54; /* WhatsApp Dark Green */
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.prochat-header h3 {
    margin: 0;
    font-size: 16px;
}

.prochat-close {
    cursor: pointer;
    font-size: 20px;
}

.prochat-agents-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.prochat-agent-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    cursor: pointer;
}

.prochat-agent-item:hover {
    background-color: #f9f9f9;
}

.prochat-agent-item:last-child {
    border-bottom: none;
}

.prochat-agent-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.prochat-agent-info {
    flex: 1;
}

.prochat-agent-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    display: block;
}

.prochat-agent-role {
    font-size: 12px;
    color: #666;
    display: block;
}

.prochat-agent-status {
    width: 10px;
    height: 10px;
    background-color: #25D366;
    border-radius: 50%;
    display: inline-block;
    margin-left: auto;
}

/* Position Modifiers */
.prochat-pos-bottom-right {
    right: 20px;
    bottom: 20px;
}

.prochat-modal-bottom-right {
    right: 20px;
}

.prochat-greeting-right {
    right: 0;
}

.prochat-pos-bottom-left {
    left: 20px;
    bottom: 20px;
}

.prochat-modal-bottom-left {
    left: 20px;
}

.prochat-greeting-left {
    left: 0;
}
