/* Product Buttons Styles */
.wc-order-limiter-product-buttons {
    margin: 15px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wc-order-limiter-whatsapp-btn,
.wc-order-limiter-messenger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    box-sizing: border-box;
}

.wc-order-limiter-whatsapp-btn {
    background-color: #25D366;
    color: white;
}

.wc-order-limiter-whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.wc-order-limiter-messenger-btn {
    background-color: #0084FF;
    color: white;
}

.wc-order-limiter-messenger-btn:hover {
    background-color: #0066CC;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 132, 255, 0.3);
}

.wc-order-limiter-whatsapp-btn svg,
.wc-order-limiter-messenger-btn svg {
    flex-shrink: 0;
}

/* Loop/Shop page buttons */
.wc-order-limiter-loop-buttons {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.wc-order-limiter-loop-btn {
    padding: 8px 12px;
    min-height: 36px;
    font-size: 12px;
    border-radius: 4px;
}

.wc-order-limiter-loop-btn svg {
    width: 16px;
    height: 16px;
}

/* Responsive design */
@media (max-width: 768px) {
    .wc-order-limiter-product-buttons {
        flex-direction: column;
    }
    
    .wc-order-limiter-whatsapp-btn,
    .wc-order-limiter-messenger-btn {
        width: 100%;
        justify-content: center;
    }
    
    .wc-order-limiter-loop-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .wc-order-limiter-loop-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Integration with common themes */
.woocommerce div.product .wc-order-limiter-product-buttons {
    margin: 20px 0;
}

.woocommerce ul.products li.product .wc-order-limiter-loop-buttons {
    margin-top: 8px;
}

/* Button focus states for accessibility */
.wc-order-limiter-whatsapp-btn:focus,
.wc-order-limiter-messenger-btn:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* Loading state */
.wc-order-limiter-whatsapp-btn.loading,
.wc-order-limiter-messenger-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.wc-order-limiter-whatsapp-btn.loading::after,
.wc-order-limiter-messenger-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}