/*
Theme Name: Miniture Child
Theme URI: http://miniture.novaworks.net
Description: This is a child theme for Miniture Theme.
Author: Novaworks
Author URI: http: //www.novaworks.net/
Template: miniture
Version: 1.0
*/

/****************************************************************/
/*************** ADD YOUR CUSTOM CSS IN THIS AREA ***************/
/****************************************************************/

/* ── WhatsApp Floating Button ─────────────────────────────── */
/* Customisation variables */
:root {
    --wa-green: #25d366;
    --wa-green-dark: #1ebe5d;
    --wa-btn-size: 60px;
    --wa-btn-size-mobile: 50px;
    --wa-offset-x: 24px; /* distance from left edge */
    --wa-offset-y: 24px; /* distance from bottom edge */
    --wa-label-bg: #fff;
    --wa-label-color: #333;
    --wa-label-radius: 8px;
    --wa-anim-in: 0.6s; /* entrance animation duration */
}

.wa-float {
    position: fixed;
    bottom: var(--wa-offset-y);
    left: var(--wa-offset-x);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;

    /* entrance: slide up + fade */
    animation: waSlideIn var(--wa-anim-in) cubic-bezier(0.22, 0.68, 0, 1.2) both;
}

/* WhatsApp circle button */
.wa-float__btn {
    flex-shrink: 0;
    width: var(--wa-btn-size);
    height: var(--wa-btn-size);
    border-radius: 50%;
    background: var(--wa-green);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
    order: 1; /* btn always on the left */
}

.wa-float__btn svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

/* hover effect on button */
.wa-float:hover .wa-float__btn {
    transform: scale(1.12) rotate(-6deg);
    background: var(--wa-green-dark);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

/* Label bubble — appears to the RIGHT of the button */
.wa-float__label {
    order: 2;
    background: var(--wa-label-bg);
    color: var(--wa-label-color);
    padding: 6px 14px 10px;
    border-radius: var(--wa-label-radius);
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.wa-float__label img {
    display: block;
    width: 80px;
    object-fit: contain;
    flex-shrink: 0;
    position: absolute;
    top: -126px;
    animation: waImgFadeIn 0.6s ease both;
    animation-delay: 2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes waImgFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.wa-float__label strong {
    display: block;
}

/* entrance keyframes */
@keyframes waSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile: hide the label bubble */
@media (max-width: 768px) {
    .wa-float__btn {
        width: var(--wa-btn-size-mobile);
        height: var(--wa-btn-size-mobile);
    }
    .wa-float__btn svg {
        width: 24px;
        height: 24px;
    }
    .wa-float__label {
        display: none;
    }
}
/* ── End WhatsApp Floating Button ─────────────────────────── */

/****************************************************************/
/****************************************************************/
/****************************************************************/
