/**
 * Kalkotronic Cross-Sell Styles
 * Version: 1.0.0
 * Minimal custom styles - inherits most from WooCommerce cart
 */

/* Wrapper styling */
.kalko-crosssell-wrapper {
    margin: 30px 0;
}

.kalko-crosssell-title {
    color: #3b5998;
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
}

/* Ensure cross-sell table uses WooCommerce styles */
table.kalko-crosssell-table {
    background-color: white;
    border-radius: 20px;
}

/* Custom button styling only */
.kalko-add-to-cart-btn {
    background: #3b5998;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.kalko-add-to-cart-btn:hover {
    background: #2d4373;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 89, 152, 0.2);
}

.kalko-add-to-cart-btn:active {
    transform: translateY(0);
}

.kalko-add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.kalko-add-to-cart-btn.adding {
    background: #6c757d;
}

.kalko-add-to-cart-btn.added {
    background: #28a745;
}

/* Loading state */
.kalko-add-to-cart-btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: kalko-spinner 0.6s linear infinite;
}

@keyframes kalko-spinner {
    to {
        transform: rotate(360deg);
    }
}

.kalko-add-to-cart-btn.loading .kalko-btn-text {
    opacity: 0;
}

/* Responsive - inherit WooCommerce responsive behavior */
@media screen and (max-width: 768px) {
    .kalko-crosssell-wrapper {
        margin: 20px 0;
    }
    
    .kalko-add-to-cart-btn {
        padding: 10px 24px;
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .kalko-add-to-cart-btn {
        width: 100%;
        margin-top: 10px;
    }
}
