.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.whatsapp-float-btn:hover {
    background-color: #22c15e;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-width: calc(100vw - 120px);
}

.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

.whatsapp-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-dialog.active {
    opacity: 1;
    visibility: visible;
}

.whatsapp-dialog-content {
    background-color: white;
    border-radius: 16px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-sizing: border-box;
    overflow-x: hidden;
    max-width: calc(100% - 20px);
}

.whatsapp-dialog.active .whatsapp-dialog-content {
    transform: translateY(0);
}

.whatsapp-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #25D366;
    color: white;
}

.whatsapp-dialog-header h4 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.whatsapp-dialog-header h4 i {
    margin-right: 10px;
}

.whatsapp-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.whatsapp-close-btn:hover {
    transform: scale(1.2);
}

.whatsapp-dialog-body {
    padding: 20px;
}

.whatsapp-textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s ease;
}

.whatsapp-textarea:focus {
    border-color: #25D366;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2);
}

.whatsapp-dialog-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #eee;
}

.whatsapp-send-btn {
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.whatsapp-send-btn:hover {
    background-color: #22c15e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 500px) {
    .whatsapp-dialog-content {
        width: 90%;
        max-width: calc(100% - 20px);
        margin: 0 auto;
    }
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-tooltip {
        display: none;
    }
}
