/**
 * WooCommerce WhatsApp Order Button Styles
 */

.wwo-product-button-wrapper,
.wwo-cart-button-wrapper {
    display: block;
    width: 100%;
    margin-top: 12px;
    margin-bottom: 12px;
    clear: both;
}

.wwo-whatsapp-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background-color: #25D366 !important;
    color: #ffffff !important;
    border: 1px solid #25D366 !important;
    padding: 12px 22px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    width: 100% !important;
}

.wwo-whatsapp-btn:hover,
.wwo-whatsapp-btn:focus {
    background-color: #128C7E !important;
    border-color: #128C7E !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-1px);
}

.wwo-whatsapp-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

.wwo-whatsapp-btn .wwo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.wwo-whatsapp-btn .wwo-icon svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: #ffffff;
    transition: transform 0.2s ease;
}

.wwo-whatsapp-btn:hover .wwo-icon svg {
    transform: scale(1.08);
}

.wwo-whatsapp-btn .wwo-text {
    display: inline-block;
    letter-spacing: 0.3px;
}

/* Cart Button Specifics */
.wwo-cart-button-wrapper .wwo-cart-btn {
    width: 100% !important;
    font-size: 16px !important;
    padding: 14px 20px !important;
    margin-top: 8px;
}

/* Disabled state */
.wwo-whatsapp-btn.wwo-disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: auto !important;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .wwo-whatsapp-btn {
        width: 100% !important;
        padding: 13px 18px !important;
        font-size: 15px !important;
    }
}

/* ==========================================================================
   Global All-Pages Floating WhatsApp Chat Widget (Curved Circular Text)
   ========================================================================== */

.wwo-floating-widget {
    position: fixed !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.wwo-floating-widget.wwo-pos-bottom-left {
    bottom: 15px;
    left: 10px;
    flex-direction: row !important;
}

.wwo-floating-widget.wwo-pos-bottom-right {
    bottom: 15px;
    right: 10px;
    flex-direction: row-reverse !important;
}

/* Circular Badge Container */
.wwo-floating-btn-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 86px !important;
    height: 86px !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease !important;
    overflow: visible !important;
}

.wwo-floating-btn-wrap:hover,
.wwo-floating-btn-wrap:focus {
    transform: scale(1.08) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
    text-decoration: none !important;
}

/* Rotating SVG Curved Text */
.wwo-curved-text-svg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 86px !important;
    height: 86px !important;
    pointer-events: none !important;
    animation: wwo-rotate-text 14s linear infinite !important;
    transform-origin: 50% 50% !important;
}

.wwo-floating-btn-wrap:hover .wwo-curved-text-svg {
    animation-duration: 7s !important;
}

.wwo-curved-text-svg .wwo-curved-text {
    fill: #128C7E !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    letter-spacing: 2.2px !important;
    text-transform: uppercase !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

@keyframes wwo-rotate-text {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Center WhatsApp Button */
.wwo-floating-inner-btn {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background-color: #25D366 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
    transition: background-color 0.25s ease, transform 0.25s ease !important;
}

.wwo-floating-btn-wrap:hover .wwo-floating-inner-btn {
    background-color: #128C7E !important;
    transform: scale(1.05) !important;
}

.wwo-floating-inner-btn svg {
    width: 26px !important;
    height: 26px !important;
    fill: #ffffff !important;
    display: block !important;
}

/* Floating widget mobile view */
@media screen and (max-width: 768px) {
    .wwo-floating-btn-wrap {
        width: 72px !important;
        height: 72px !important;
    }
    .wwo-curved-text-svg {
        width: 72px !important;
        height: 72px !important;
    }
    .wwo-curved-text-svg .wwo-curved-text {
        font-size: 7.5px !important;
        letter-spacing: 1.8px !important;
    }
    .wwo-floating-inner-btn {
        width: 44px !important;
        height: 44px !important;
    }
    .wwo-floating-inner-btn svg {
        width: 23px !important;
        height: 23px !important;
    }
}

