/* Main Widget Container */
#wac-widget-container {
    position: fixed;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#wac-widget-container.wac-position-bottom-right { bottom: 25px; right: 25px; }
#wac-widget-container.wac-position-bottom-left { bottom: 25px; left: 25px; }

/* Floating Button */
#wac-floating-button {
    background-color: #25D366;
    color: #fff;
    padding: 12px 18px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}
#wac-floating-button:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}
#wac-floating-button svg { margin-left: 10px; width: 24px; height: 24px; }

/* Agents Window */
#wac-agents-window {
    width: 330px;
    background-color: #f7f7f7;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    overflow: hidden;
    position: absolute;
    bottom: calc(100% + 15px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    transform-origin: bottom;
}
.wac-position-bottom-right #wac-agents-window { right: 0; }
.wac-position-bottom-left #wac-agents-window { left: 0; }

#wac-agents-window.wac-window-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
}

.wac-header {
    background: #075E54;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wac-header-title { font-weight: 600; }
#wac-close-button { font-size: 28px; cursor: pointer; line-height: 1; }
.wac-body { padding: 8px; max-height: 400px; overflow-y: auto; background-color: #fff; }

a.wac-agent {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}
a.wac-agent:last-child { border-bottom: none; }
a.wac-agent:hover { background-color: #f5f5f5; }

.wac-avatar { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; margin-right: 15px; position: relative; flex-shrink: 0; }
.wac-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wac-status-dot.online {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #4CAF50;
    border-radius: 50%;
    border: 2px solid white;
}
.wac-agent-details { flex-grow: 1; }
.wac-agent-name { display: block; font-weight: 600; font-size: 16px; }
.wac-agent-title { display: block; font-size: 14px; color: #666; }
.wac-agent-icon { margin-left: 10px; flex-shrink: 0; }
.wac-offline-msg { padding: 25px; text-align: center; color: #777; }

/* Shortcode & WooCommerce Button Styles */
.wac-shortcode-button, .wac-woocommerce-button {
    display: inline-flex;
    align-items: center;
    background-color: #e8f5e9;
    color: #1b5e20 !important;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
    border: 1px solid #a5d6a7;
    margin: 5px 0;
}
.wac-shortcode-button:hover, .wac-woocommerce-button:hover { background-color: #dcedc8; }
.wac-shortcode-avatar { width: 25px; height: 25px; border-radius: 50%; margin-left: 8px; object-fit: cover; }
.wac-woocommerce-button { width: 100%; justify-content: center; text-align: center; }