/* WhatsApp Button Frontend Styles */

.whatsapp-button-wrapper {
    position: fixed;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideIn 0.5s ease-out;
}

/* Positions */
.whatsapp-button-wrapper.bottom-right {
    bottom: 30px;
    right: 30px;
}

.whatsapp-button-wrapper.bottom-left {
    bottom: 30px;
    left: 30px;
}

.whatsapp-button-wrapper.top-right {
    top: 30px;
    right: 30px;
}

.whatsapp-button-wrapper.top-left {
    top: 30px;
    left: 30px;
}

/* Button Sizes */
.whatsapp-button-wrapper.whatsapp-button-small {
    width: 50px;
    height: 50px;
}

.whatsapp-button-wrapper.whatsapp-button-small .whatsapp-icon {
    width: 24px;
    height: 24px;
}

.whatsapp-button-wrapper.whatsapp-button-small .whatsapp-label {
    display: none;
}

.whatsapp-button-wrapper.whatsapp-button-medium {
    width: 60px;
    height: 60px;
}

.whatsapp-button-wrapper.whatsapp-button-medium .whatsapp-icon {
    width: 30px;
    height: 30px;
}

.whatsapp-button-wrapper.whatsapp-button-medium .whatsapp-label {
    display: none;
}

.whatsapp-button-wrapper.whatsapp-button-large {
    width: 70px;
    height: 70px;
}

.whatsapp-button-wrapper.whatsapp-button-large .whatsapp-icon {
    width: 36px;
    height: 36px;
}

.whatsapp-button-wrapper.whatsapp-button-large .whatsapp-label {
    margin-right: 10px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* Button Styles */
.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: var(--whatsapp-color, #25D366);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    padding: 0;
}

.whatsapp-button-wrapper.whatsapp-button-large .whatsapp-button {
    border-radius: 30px;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.whatsapp-button:active {
    transform: scale(0.95);
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.whatsapp-button:hover .whatsapp-icon {
    transform: scale(1.1);
}

.whatsapp-label {
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .whatsapp-button-wrapper.bottom-right,
    .whatsapp-button-wrapper.bottom-left,
    .whatsapp-button-wrapper.top-right,
    .whatsapp-button-wrapper.top-left {
        bottom: 20px;
        right: 20px;
        top: auto;
        left: auto;
    }

    .whatsapp-button-wrapper.bottom-left {
        right: auto;
        left: 20px;
    }

    .whatsapp-button-wrapper.top-right {
        bottom: auto;
        top: 20px;
    }

    .whatsapp-button-wrapper.top-left {
        bottom: auto;
        top: 20px;
        right: auto;
        left: 20px;
    }

    .whatsapp-button-wrapper.whatsapp-button-large {
        width: 60px;
        height: 60px;
    }

    .whatsapp-button-wrapper.whatsapp-button-large .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .whatsapp-button-wrapper.bottom-right,
    .whatsapp-button-wrapper.bottom-left,
    .whatsapp-button-wrapper.top-right,
    .whatsapp-button-wrapper.top-left {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-button-wrapper.bottom-left {
        right: auto;
        left: 15px;
    }

    .whatsapp-button-wrapper.top-right {
        bottom: auto;
        top: 15px;
    }

    .whatsapp-button-wrapper.top-left {
        bottom: auto;
        top: 15px;
        right: auto;
        left: 15px;
    }
}

/* Print Styles */
@media print {
    .whatsapp-button-wrapper {
        display: none !important;
    }
}
