/* WhatsApp Mini Chat - New Improved Version */
.wa-mini {
    position: fixed;
    right: 18px;
    bottom: 88px;
    width: 350px;
    max-width: calc(100% - 36px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    overflow: hidden;
    z-index: 1000;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wa-mini.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.wa-mini-header {
    background: #25d366;
    color: #fff;
    padding: 16px;
}

.wa-clinic-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-clinic-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    flex-shrink: 0;
    position: relative;
}

.wa-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


.wa-clinic-details h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.wa-status {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.wa-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(74, 222, 128, 0.5);
}

.wa-mini-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    margin-left: auto;
}

.wa-mini-close:hover {
    background: rgba(255,255,255,0.3);
}

.wa-mini-body {
    padding: 16px;
    background: #f8f9fa;
}

.wa-conversation {
    margin-bottom: 16px;
}

.wa-message-received {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.wa-message-avatar {
    width: 32px;
    height: 32px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
}

.wa-message-avatar i {
    font-size: 14px;
    color: white;
}

.wa-message-content {
    flex: 1;
}

.wa-message-bubble {
    background: white;
    border-radius: 16px 16px 16px 4px;
    padding: 10px 14px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.wa-message-text {
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    margin-bottom: 6px;
}

.wa-message-time {
    font-size: 11px;
    color: #9ca3af;
    text-align: right;
    margin-top: 4px;
}

.wa-mini-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #25d366 0%, #20b858 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.wa-mini-cta:hover {
    background: linear-gradient(135deg, #20b858 0%, #1a9e4a 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.wa-mini-cta i {
    font-size: 16px;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .wa-mini {
        right: 14px;
        bottom: 78px;
        width: calc(100% - 28px);
        max-width: 320px;
    }

    .wa-mini-header {
        padding: 14px;
    }

    .wa-clinic-avatar {
        width: 48px;
        height: 48px;
        border-width: 2px;
    }


    .wa-clinic-details h4 {
        font-size: 15px;
    }

    .wa-status {
        font-size: 11px;
    }

    .wa-mini-close {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}