/* Upsells Bulk Add to Cart Styles */
.upsells-bulk-form {

}

.upsells-bulk-actions,
.upsells-cart-status {
    display: none;
}

/* Upsell Product Item Styles */
.upsell-product-item {
    position: relative;
    padding-left: 45px;
    margin-left: 13px;
}

.upsell-product-item + .upsell-product-item {
    margin-top: 12px;
}

/* Upsells Section Styling */
.up-sells.upsells.products {
    position: relative;
    padding: 15px 16px;
}

.up-sells.upsells.products .up-sells-title {
    margin-bottom: 17px;
    padding-right: 260px;
    text-align: left;
    color: var(--color-gray);
}

.up-sells.upsells.products .upsells-dates {
    position: absolute;
    top: 15px;
    right: 20px;
}

.up-sells.upsells.products .upsells-bulk-form .button {
    margin-top: 12px;
    height: 50px;
}

/* Product Selection Checkbox */
.upsell-product-selection {
    position: absolute;
    top: 15px;
    left: 0;
    z-index: 10;
}

.upsell-product-checkbox[type='checkbox'] {
    display: block;
    border-radius: 2px;
}

.upsell-product-checkbox[type='checkbox']:checked {
    background: var(--color-black);
    border-color: var(--color-black);
}

.upsell-product-checkbox[type='checkbox']:checked:before {
    color: var(--color-white);
}

.upsell-checkbox-label {
    display: none;
}

/* Product Content */
.upsell-product-content {
}

/* Quantity Controls */
.upsell-product-content .quantity-row {
    margin: 15px 0;
}

.upsell-product-content .quantity-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.upsell-product-content .quantity-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    max-width: 120px;
    margin: 0 auto;
}

.upsell-product-content .minus-btn,
.upsell-product-content .plus-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.upsell-product-content .minus-btn:hover,
.upsell-product-content .plus-btn:hover {
    background: #f8f9fa;
    border-color: #007cba;
}

.upsell-product-content .minus-btn:active,
.upsell-product-content .plus-btn:active {
    transform: scale(0.95);
}

.upsell-quantity-input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    padding: 0 5px;
}

.upsell-quantity-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 122, 186, 0.2);
}


/* Loading States */
.upsell-product-item.loading {
    opacity: 0.7;
    pointer-events: none;
}

.upsell-product-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success/Error Messages */
.upsell-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    animation: slideIn 0.3s ease;
    max-width: 400px;
    word-wrap: break-word;
    line-height: 1.4;
}

.upsell-message.success {
    background: #28a745;
}

.upsell-message.error {
    background: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1025px) {
    .up-sells.upsells.products {
        padding: 23px 16px;
        width: calc(100% + 30px);
    }
    .up-sells.upsells.products .up-sells-title {
        padding-right: 250px;
        margin-bottom: 33px;
    }
    .upsell-product-item {
        margin-left: 5px;
    }

    .up-sells.upsells.products .upsells-dates {
        top: 21px;
        right: 15px;
    }
}
@media (max-width: 768px) {
    .upsells-bulk-actions {
        flex-direction: column;
    }

    .upsells-bulk-actions .button {
        width: 100%;
    }


}

/* Cart Fragment Refresh Animation */
.upsell-cart-updating {
    animation: cartUpdate 0.5s ease;
}

@keyframes cartUpdate {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

