.wp-whatsapp-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wp-whatsapp-toggle {
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.wp-whatsapp-toggle:hover {
    transform: scale(1.1);
}

.wp-whatsapp-widget {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 320px;
    background-color: #e5ddd5;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wp-whatsapp-widget.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.wp-whatsapp-header {
    background-color: #095e54;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    padding: 20px 20px 30px;
    position: relative;
    border-radius: 20px 20px 0 0;
}

.wp-whatsapp-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
    justify-content: center;
}

.wp-whatsapp-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.2);
    border: none;
    color: white;
    font-size: 20px;
    line-height: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-whatsapp-close:hover {
    background: rgba(0,0,0,0.4);
}

.wp-whatsapp-body {
    padding: 20px;
    background-color: #e5ddd5;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M50 50h10v10H50z" fill="rgba(0,0,0,0.02)"/></svg>');
}

.wp-whatsapp-message {
    background-color: white;
    padding: 15px;
    border-radius: 15px;
    border-top-right-radius: 0;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-top: -30px;
    z-index: 2;
}

.wp-whatsapp-message::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 0 15px;
    border-color: transparent transparent transparent white;
}

.wp-whatsapp-message p {
    margin: 0;
    color: #4a4a4a;
    font-size: 15px;
    line-height: 1.5;
}

.wp-whatsapp-footer {
    padding: 15px 20px 25px;
    background-color: #e5ddd5;
    display: flex;
    justify-content: flex-end;
}

.wp-whatsapp-btn {
    background-color: #25d366;
    color: white !important;
    text-decoration: none !important;
    padding: 12px 25px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(37,211,102,0.4);
    transition: background-color 0.3s ease;
}

.wp-whatsapp-btn:hover {
    background-color: #128c7e;
}

/* RTL Support */
[dir="rtl"] .wp-whatsapp-message::before {
    right: auto;
    left: -10px;
    border-width: 0 15px 15px 0;
    border-color: transparent white transparent transparent;
}
[dir="rtl"] .wp-whatsapp-message {
    border-top-right-radius: 15px;
    border-top-left-radius: 0;
}
[dir="rtl"] .wp-whatsapp-footer {
    justify-content: flex-start;
}
[dir="rtl"] .wp-whatsapp-close {
    left: auto;
    right: 15px;
}
