/**
 * WooCommerce WhatsApp Button - Frontend Styles
 */

/* Main WhatsApp Button Styles */
.woo-wa-button {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white !important;
    padding: 12px 24px;
    border: none;
    text-decoration: none !important;
    display: inline-block;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
    text-align: center;
    width: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    line-height: 1.4;
}

.woo-wa-button .whatsapp-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
    fill: currentColor;
}

.woo-wa-button:hover {
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    color: white !important;
    transform: translateY(-2px);
}

.woo-wa-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}



/* Container Styles */
.woo-wa-button-container {
    text-align: left;
}

/* Responsive Design */
@media (max-width: 768px) {
    .woo-wa-button {
        width: 100%;
        text-align: center;
        font-size: 15px;
        padding: 14px 20px;
    }
    
    .woo-wa-button-floating {
        bottom: 15px;
        right: 15px;
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .woo-wa-button {
        font-size: 14px;
        padding: 12px 18px;
    }
    
    .woo-wa-button-floating {
        bottom: 10px;
        right: 10px;
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .woo-wa-button {
        background: #25d366;
        border: 2px solid #128c7e;
    }
    
    .woo-wa-button:hover {
        background: #128c7e;
        border-color: #25d366;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .woo-wa-button {
        transition: none;
    }
    
    .woo-wa-button-floating {
        animation: none;
    }
    
    .woo-wa-button:hover {
        transform: none;
    }
}

/* Floating WhatsApp Button Styles */
.woo-wa-button-floating {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 15px 20px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 14px !important;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4) !important;
    z-index: 999999 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 60px !important;
    animation: woo-wa-pulse 2s infinite !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}

.woo-wa-button-floating .whatsapp-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    fill: currentColor;
}

.woo-wa-button-floating .floating-text {
    white-space: nowrap;
}

.woo-wa-button-floating:hover {
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5) !important;
    animation: none !important;
}

.woo-wa-button-floating:active {
    transform: translateY(0) !important;
}

/* Floating Button Animation */
@keyframes woo-wa-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Icon-only floating button */
.woo-wa-button-floating.icon-only {
    min-width: 60px !important;
    min-height: 60px !important;
    padding: 15px !important;
    border-radius: 50% !important;
}

.woo-wa-button-floating.icon-only .whatsapp-icon {
    margin-right: 0 !important;
    width: 24px !important;
    height: 24px !important;
}

/* Print Styles */
@media print {
    .woo-wa-button,
    .woo-wa-button-floating {
        display: none;
    }
}
