.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.whatsapp-button:hover,
.whatsapp-button:focus {
    background-color: #20ba5a;
    color: white;
    text-decoration: none;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.whatsapp-button i {
    font-size: 46px;
}

.whatsapp-chat-widget {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 350px;
    background-color: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transform-origin: bottom right;
    transition: all 0.3s ease;
    pointer-events: none;
    display: none;
}

.whatsapp-chat-widget.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
    display: block;
}

.whatsapp-chat-header {
    background-color: #25D366;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.whatsapp-chat-title {
    display: flex;
    align-items: center;
}

.whatsapp-chat-title img {
    margin-right: 10px;
}

.whatsapp-chat-title span {
    font-weight: 600;
    font-size: 16px;
}

.whatsapp-chat-close {
    cursor: pointer;
    padding: 5px;
}

.whatsapp-chat-body {
    padding: 15px;
    background-color: #e5ddd5;
    height: 200px;
    overflow-y: auto;
}

.whatsapp-chat-message {
    background-color: white;
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
    max-width: 80%;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.whatsapp-chat-message:after {
    content: '';
    position: absolute;
    left: -8px;
    top: 10px;
    border-top: 8px solid transparent;
    border-right: 8px solid white;
    border-bottom: 8px solid transparent;
}

.whatsapp-chat-message p {
    margin: 0 0 5px;
    color: #303030;
    font-size: 14px;
    line-height: 1.4;
}

.whatsapp-chat-time {
    font-size: 11px;
    color: #666;
    display: block;
    text-align: right;
}

.whatsapp-chat-input-container {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 10px 15px;
    border-top: 1px solid #f0f0f0;
}

.whatsapp-chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
    resize: none;
    max-height: 80px;
    min-height: 40px;
    margin-right: 10px;
}

.whatsapp-chat-input::placeholder {
    color: #999;
}

.whatsapp-chat-footer {
    padding: 10px 15px;
    background-color: white;
    text-align: center;
}

.whatsapp-chat-send-btn {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 13px 20px;
    border-radius: 25px;
    display: block;
    width: 100%;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.whatsapp-chat-send-btn:hover,
.whatsapp-chat-send-btn:focus {
    background-color: #20ba5a;
    color: white;
    text-decoration: none;
}

.whatsapp-chat-send-btn i {
    margin-left: 8px;
    font-size: 18px;
}

@media (max-width: 768px) {
    .whatsapp-button {
        width: 70px;
        height: 70px;
    }

    .whatsapp-button i {
        font-size: 40px;
    }

    .whatsapp-chat-widget {
        width: 320px;
        bottom: 110px;
    }
}

@media (max-width: 480px) {
    .whatsapp-chat-widget {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}
