.wcp-floating-widget {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.wcp-position-bottom-right {
    bottom: 20px;
    right: 20px;
}

.wcp-position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.wcp-position-top-right {
    top: 20px;
    right: 20px;
}

.wcp-position-top-left {
    top: 20px;
    left: 20px;
}

.wcp-chat-bubble {
    width: 60px;
    height: 60px;
    background: var(--wcp-button-color, #25D366);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.wcp-chat-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.wcp-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.wcp-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.wcp-position-bottom-left .wcp-chat-window,
.wcp-position-top-left .wcp-chat-window {
    right: auto;
    left: 0;
}

.wcp-position-top-right .wcp-chat-window,
.wcp-position-top-left .wcp-chat-window {
    bottom: auto;
    top: 80px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wcp-chat-header {
    background: var(--wcp-button-color, #25D366);
    color: var(--wcp-text-color, white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wcp-chat-header-content h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.wcp-chat-header-content p {
    margin: 5px 0 0;
    font-size: 13px;
    opacity: 0.9;
}

.wcp-close-chat {
    background: none;
    border: none;
    color: var(--wcp-text-color, white);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.wcp-close-chat:hover {
    opacity: 1;
}

.wcp-chat-body {
    padding: 20px;
    max-height: 380px;
    overflow-y: auto;
}

.wcp-welcome-message {
    margin: 0 0 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.wcp-agents-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wcp-agent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #f5f5f5;
    transition: background 0.2s;
}

.wcp-agent-item:hover {
    background: #ebebeb;
}

.wcp-agent-avatar {
    position: relative;
    flex-shrink: 0;
}

.wcp-agent-avatar img,
.wcp-agent-avatar-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.wcp-agent-avatar-placeholder {
    background: var(--wcp-button-color, #25D366);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.wcp-agent-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #34c759;
    border: 2px solid white;
    border-radius: 50%;
}

.wcp-agent-info {
    flex-grow: 1;
}

.wcp-agent-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.wcp-agent-info p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #666;
}

.wcp-chat-agent-btn {
    width: 40px;
    height: 40px;
    background: var(--wcp-button-color, #25D366);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.wcp-chat-agent-btn:hover {
    transform: scale(1.1);
}

.wcp-single-agent {
    text-align: center;
}

.wcp-start-chat-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--wcp-button-color, #25D366);
    color: var(--wcp-text-color, white);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wcp-start-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.wcp-chat-footer {
    padding: 12px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.wcp-chat-footer small {
    color: #999;
    font-size: 11px;
}

.wcp-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--wcp-button-color, #25D366);
    color: var(--wcp-text-color, white);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.wcp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.wcp-button-inline {
    padding: 8px 16px;
    font-size: 14px;
}

.wcp-share-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--wcp-button-color, #25D366);
    color: var(--wcp-text-color, white);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 14px;
}

.wcp-share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

@media (max-width: 480px) {
    .wcp-chat-window {
        width: calc(100vw - 40px);
        max-width: 350px;
    }
}
