/* Build-a-Box Upsell Modal Styles */

.bab-upsell-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.bab-upsell-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.bab-upsell-content {
    position: relative;
    max-width: 900px;
    max-height: 90vh;
    margin: 5vh auto;
    background: #fff;
    border-radius: 8px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

body.bab-modal-open {
    overflow: hidden;
}

.bab-upsell-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    z-index: 10;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.bab-upsell-close:hover {
    color: #333;
}

.bab-upsell-header {
    padding: 40px 40px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.bab-upsell-header h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.bab-upsell-header p {
    margin: 0;
    font-size: 16px;
    color: #666;
}

.bab-upsell-products {
    padding: 30px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

@media (max-width: 768px) {
    .bab-upsell-products {
        grid-template-columns: 1fr;
    }
}

.bab-upsell-product {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.bab-upsell-product:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bab-upsell-product-image {
    margin-bottom: 15px;
}

.bab-upsell-product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.bab-upsell-product-details h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.bab-upsell-matches {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px;
    min-height: 40px;
}

.bab-upsell-price {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px;
}

.bab-upsell-price .woocommerce-Price-amount {
    font-weight: 700;
}

.bab-upsell-add-to-cart {
    margin: 0;
}

.bab-upsell-add-to-cart .button {
    width: 100%;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bab-upsell-footer {
    padding: 20px 40px 40px;
    text-align: center;
    border-top: 1px solid #eee;
}

.bab-upsell-continue {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 12px 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bab-upsell-continue:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #333;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .bab-upsell-content {
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }

    .bab-upsell-header,
    .bab-upsell-products,
    .bab-upsell-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .bab-upsell-header h2 {
        font-size: 24px;
    }
}