/* "2de stuk?" upsell-popup, getriggerd door de "Bestellen"-knop op de
   productdetailpagina (Views/Product/_AddToCartUpsellPopup.cshtml). Deze CSS wordt
   GLOBAAL geladen (via Views/Shared/_Root.Head.cshtml) - dus alles wat verder gaat dan
   de overlay/modal-shell staat hieronder bewust onder ".pax-upsell-modal" geschraapt,
   zodat het niets globaal laat lekken (in tegenstelling tot Content/Style/CrosssellPage.css,
   dat ongekwalificeerde selectors als .old-price/.option-list gebruikt en daarom alleen
   veilig is zolang het enkel op Views/Cross-sell/CrossSell.cshtml wordt geladen). */

/* ===== overlay / modal shell ===== */

.pax-upsell-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pax-upsell-modal {
    position: relative;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 24px 20px;
}

.pax-upsell-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 4px;
}

    .pax-upsell-close:hover {
        color: #333;
    }

.pax-upsell-alarm-icon {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
}

.pax-upsell-message {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    text-align: center;
}

.pax-upsell-subtitle {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.pax-upsell-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pax-upsell-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .15s ease;
}

    .pax-upsell-btn:hover {
        filter: brightness(.95);
    }

.pax-upsell-btn-yes {
    background: #008000;
    color: #fff;
}

.pax-upsell-btn-no {
    background: #f2f2f2;
    color: #333;
    border-color: #d9d9d9;
}

.pax-upsell-picker-message {
    font-size: 13px;
    color: #666;
    text-align: center;
}

@media (max-width: 480px) {
    .pax-upsell-modal {
        max-width: 95vw;
        padding: 24px 16px 16px;
    }
}

/* ===== maatkiezer-kaart: geschraapte kopie van de kaart-stijlen uit
   Content/Style/CrosssellPage.css, handmatig synchroon houden als dat bestand
   wijzigt. _CrossSellProductCard.cshtml (zonder de "Meer opties"-knop, want
   CategoryIds blijft leeg voor deze kaart) verwacht deze klassen. ===== */

.pax-upsell-modal .crosssellproduct-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    box-shadow: none;
    text-align: left;
    padding: 14px;
    padding-bottom: 84px;
    position: relative;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.pax-upsell-modal .crosssellproduct-image {
    width: 100%;
    height: 160px;
    object-fit: contain;
    margin: 0 0 10px 0;
}

.pax-upsell-modal .crosssellproduct-info {
    flex: 1 1 auto;
    display: block;
}

.pax-upsell-modal .product-title {
    margin: 0 0 6px 0;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;
    color: #666666;
}

.pax-upsell-modal .crosssellproduct-prices {
    position: absolute;
    left: 14px;
    bottom: 18px;
    margin: 0;
    font-size: 13px;
    color: #111;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.pax-upsell-modal .current-price {
    font-size: 18px;
    font-weight: 800;
    color: #008000;
    margin-right: 0;
}

.pax-upsell-modal .old-price {
    font-size: 13px;
    color: #8a8a8a;
    text-decoration: line-through;
}

.pax-upsell-modal .size-selection {
    text-align: left;
    margin-top: 8px;
}

.pax-upsell-modal .attributescrosssell {
    padding: 0;
}

    .pax-upsell-modal .attributescrosssell dt {
        margin: 10px 0 6px;
        font-size: 12px;
        font-weight: 700;
        color: #333;
    }

    .pax-upsell-modal .attributescrosssell dd {
        margin: 0;
    }

    .pax-upsell-modal .attributescrosssell select,
    .pax-upsell-modal .attributescrosssell input[type="text"],
    .pax-upsell-modal .attributescrosssell textarea {
        width: 100%;
        border: 1px solid #d9d9d9;
        border-radius: 4px;
        font-size: 13px;
        background: #fff;
    }

.pax-upsell-modal .option-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .pax-upsell-modal .option-list li {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
    }

.pax-upsell-modal .confirm-add-to-cart-btn {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    border: none;
    background: #008000;
    cursor: pointer;
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    transition: filter .15s ease, transform .05s ease;
}

    .pax-upsell-modal .confirm-add-to-cart-btn:hover {
        filter: brightness(0.95);
    }

    .pax-upsell-modal .confirm-add-to-cart-btn:active {
        transform: translateY(1px);
    }

    .pax-upsell-modal .confirm-add-to-cart-btn::before {
        content: "+";
        color: #fff;
        font-size: 26px;
        font-weight: 900;
        line-height: 1;
    }

    .pax-upsell-modal .confirm-add-to-cart-btn span {
        display: none;
    }
