/* ACAART WhatsApp Connect - Frontend Styles */

.acaart-wc-floating-button {
    position: fixed;
    z-index: 9999;
    border-radius: 50%;
    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;
}

.acaart-wc-floating-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.acaart-wc-floating-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}
.acaart-wc-floating-button a {
    color: #fff !important;
}

/* Position variants */
.acaart-wc-position-bottom-right {
    bottom: 20px;
    right: 20px;
}

.acaart-wc-position-bottom-left {
    bottom: 20px;
    left: 20px;
}

/* Size variants */
.acaart-wc-size-small {
    width: 50px;
    height: 50px;
}

.acaart-wc-size-small svg {
    width: 20px;
    height: 20px;
}

.acaart-wc-size-medium {
    width: 60px;
    height: 60px;
}

.acaart-wc-size-medium svg {
    width: 24px;
    height: 24px;
}

.acaart-wc-size-large {
    width: 70px;
    height: 70px;
}

.acaart-wc-size-large svg {
    width: 28px;
    height: 28px;
}

/* Pulse animation */
.acaart-wc-floating-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: inherit;
    animation: acaart-wc-pulse 2s infinite;
    z-index: -1;
}

@keyframes acaart-wc-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .acaart-wc-position-bottom-right,
    .acaart-wc-position-bottom-left {
        bottom: 15px;
    }
    
    .acaart-wc-position-bottom-right {
        right: 15px;
    }
    
    .acaart-wc-position-bottom-left {
        left: 15px;
    }
}

/* Accessibility */
.acaart-wc-floating-button:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .acaart-wc-floating-button {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .acaart-wc-floating-button,
    .acaart-wc-floating-button::before {
        animation: none;
        transition: none;
    }
    
    .acaart-wc-floating-button:hover {
        transform: none;
    }
}

/* ACAART WhatsApp Connect - WooCommerce Styles */

.acaart-wc-product-button-wrapper {
    margin: 15px 0;
    clear: both;
}

#acaart-wc-product-btn {
    flex: 0 0 auto !important;
}

.acaart-wc-product-button{
    display: inline-block;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* width: 100%; */
    justify-content: center;
    margin-bottom: 10px;
}

.acaart-wc-product-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.acaart-wc-product-button:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}
