.i-somatic-whatsapp-widget {
    position: relative;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    opacity: 0.9;
}

.whatsapp-button img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.whatsapp-button span {
    font-size: 16px;
    font-weight: bold;
}

.whatsapp-popup {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 300px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.popup-header {
    background: #25d366;
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-popup {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.popup-content {
    padding: 15px;
}

#whatsappMessage {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
    direction: rtl;
}

.send-button {
    width: 100%;
    padding: 10px;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.send-button:hover {
    background: #1fa855;
}

/* RTL Support */
.i-somatic-whatsapp-widget[dir="rtl"] .whatsapp-button img {
    margin-right: 0;
    margin-left: 10px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .whatsapp-popup {
        width: 90%;
        right: 5%;
        left: 5%;
    }
}