/* =============================================================================
   Product quick-view modal - "Option B" buy box (desktop and tablet, >= 600px; was >= 851px).

   Markup: the modal's .mprodApprealarea gets two wrappers - .qv-head (name,
   EPID, SKU) and .qv-buy (price, stock, quantity, seller, buttons). With
   .mprodApprealarea set to display:contents those two, the picture and the
   description become direct items of a two-column grid:

       qv-head            | qv-buy
       productdetailsPiC  | (spans all rows)
       productdetailstabarea3 |

   Loaded after css-shop/prodDtlsModal.css. Below 600px the base stylesheet's
   stacked layout applies untouched (the wrappers are plain blocks there).

   Colours are the modal's own: name #656565, ids #727272, price #00546b,
   "only N left" #567a0f, seller link #277487, teal / orange buttons keep their
   existing backgrounds, borders #e8ecf1 / #eaeaea.
   ============================================================================= */
@media only screen and (min-width: 600px) {

    /* ---- the card ---- */
    .ProdDtlsModalarea {
        width: 980px;
        left: 50%;
        margin-left: -490px;
        top: 6%;
        padding: 18px 22px 22px;
        border-radius: 12px;
        background: #fff;
        box-sizing: border-box;
    }

        /* the (already invisible) "Product Details" header only added a 36px gap */
        .ProdDtlsModalarea .ProdDtlsModalHeader {
            display: none;
        }

        /* close: a round white chip with a CSS-drawn cross (the thin cross PNG is hidden) */
        .ProdDtlsModalarea .cButtProdRight {
            position: absolute;
            top: 12px;
            right: 12px;
            float: none;
            width: 36px;
            height: 36px;
            z-index: 5;
        }

            .ProdDtlsModalarea .cButtProdRight a {
                position: relative;
                display: block;
                width: 36px;
                height: 36px;
                border-radius: 50%;
                background: #fff;
                border: 1px solid #e0e6ee;
                box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
                text-decoration: none;
                transition: background .15s ease;
            }

                .ProdDtlsModalarea .cButtProdRight a img {
                    display: none;
                }

                .ProdDtlsModalarea .cButtProdRight a::before,
                .ProdDtlsModalarea .cButtProdRight a::after {
                    content: "";
                    position: absolute;
                    left: 50%;
                    top: 50%;
                    width: 16px;
                    height: 2px;
                    margin: -1px 0 0 -8px;
                    background: #656565;
                    border-radius: 1px;
                    transform: rotate(45deg);
                }

                .ProdDtlsModalarea .cButtProdRight a::after {
                    transform: rotate(-45deg);
                }

                .ProdDtlsModalarea .cButtProdRight a:hover {
                    opacity: 1;
                    background: #f3f3f3;
                }

        .ProdDtlsModalarea .MTotScrollarea {
            float: none;
            width: 100%;
            max-height: 80vh;
            margin-top: 12px;
        }

    /* ---- two-column grid ---- */
    .ProdDtlsModalarea .ProdDtlsMiddleContArea {
        float: none;
        width: auto;
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 340px;
        grid-template-rows: auto auto auto;
        column-gap: 24px;
        row-gap: 14px;
        align-items: start;
        padding-right: 4px;
    }

        .ProdDtlsModalarea .mprodApprealarea {
            display: contents;
        }

        /* left column */
        .ProdDtlsModalarea .qv-head {
            grid-column: 1;
            grid-row: 1;
            min-width: 0;
        }

        .ProdDtlsModalarea .productdetailsPiC {
            grid-column: 1;
            grid-row: 2;
            float: none;
            width: auto;
            min-height: 320px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            box-sizing: border-box;
            background: none;               /* plain picture, no frame */
        }

            .ProdDtlsModalarea .productdetailsPiC span {
                float: none;
                width: auto;
            }

            .ProdDtlsModalarea .productdetailsPiC span img {
                max-height: 300px;
                max-width: 100%;
            }

        .ProdDtlsModalarea .productdetailstabarea3 {
            grid-column: 1;
            grid-row: 3;
            float: none;
            width: auto;
            margin: 0;
        }

        /* right column: the buy box, stretched to the left column's full height */
        .ProdDtlsModalarea .qv-buy {
            grid-column: 2;
            grid-row: 1 / span 3;
            align-self: stretch;
            box-sizing: border-box;
            padding: 18px;
            border: 1px solid #e8ecf1;
            border-radius: 10px;
            background: #fff;
            box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

    /* ---- discount ribbon: the code-behind renders it inside the name <h2>, where it
       dropped onto its own line. Make it an inline pill beside the name instead. ---- */
    .ProdDtlsModalarea .mprodApprealarea h2 .ribbon-wrapper-discount {
        display: inline-block;
        width: auto;
        overflow: visible;
        position: static;
        margin: 0 0 0 8px;
        vertical-align: 4px;
    }

        .ProdDtlsModalarea .mprodApprealarea h2 .ribbon-discount {
            width: auto;
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 700;
            line-height: 14px;
            letter-spacing: .3px;
            white-space: nowrap;
            text-transform: uppercase;
        }

    /* ---- head: name + id chips ---- */
    .ProdDtlsModalarea .mprodApprealarea h2 {
        float: none;
        width: auto;
        font-size: 22px;
        font-weight: 600;
        line-height: 28px;
        margin: 0 0 8px;
        padding-right: 30px;            /* clear of the close chip on long names */
    }

        .ProdDtlsModalarea .mprodApprealarea h2 span {
            float: none;
            width: auto;
        }

    .ProdDtlsModalarea .mprodApprealarea .prodidNumber {
        float: none;
        display: inline-block;
        width: auto;
        margin: 0 6px 4px 0;
        padding: 2px 9px;
        border: 1px solid #dcdcdc;
        border-radius: 10px;
        background: #f7f7f7;
        font-size: 11px;
        line-height: 16px;
        font-weight: 600;
    }

    /* ---- buy box rows ---- */
    .ProdDtlsModalarea .mprodApprealarea .price {
        float: none;
        width: auto;
        margin: 0;
        line-height: 30px;
    }

        .ProdDtlsModalarea .mprodApprealarea .price .saleprice > div:first-child {
            font-size: 12px;
            font-weight: 600;
            color: #727272;
            padding-right: 6px;
        }

    .ProdDtlsModalarea .mprodApprealarea .inStock {
        float: none;
        width: auto;
        margin: 0;
        padding: 0;
        font-size: 14px;
    }

        .ProdDtlsModalarea .mprodApprealarea .inStock .InStock::before {
            content: "";
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: currentColor;
            margin-right: 6px;
            vertical-align: 1px;
        }

    /* quantity: label, a horizontal - 1 + stepper, then "Only N items left" */
    .ProdDtlsModalarea .mprodApprealarea .quantityselectarea {
        float: none;
        width: auto;
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 10px;
    }

        .ProdDtlsModalarea .mprodApprealarea .quantityselectarea > div {
            float: none;
            width: auto;
        }

        .ProdDtlsModalarea .mprodApprealarea .quantityselectarea > div.selQuality {
            padding: 0;
            font-size: 13px;
            font-weight: 600;
            color: #727272;
        }

        .ProdDtlsModalarea .mprodApprealarea .quantityselectarea > div.only {
            flex-basis: 100%;
            padding: 0;
            font-size: 12px;
        }

        .ProdDtlsModalarea .IncDecQty {
            float: none;
            width: auto !important;
            display: flex;
            align-items: stretch;
            height: 36px;
            border: 1px solid #c4c4c4;
            border-radius: 6px;
            overflow: hidden;
        }

            .ProdDtlsModalarea .IncDecQty input[type="text"] {
                order: 0;
                width: 48px;
                height: 34px;
                font-size: 14px;
                font-weight: 700;
                color: #292929;
                border-left: 1px solid #e3e3e3;
                border-right: 1px solid #e3e3e3;
            }

            .ProdDtlsModalarea .IncDecQty .value-button {
                width: 32px;
                height: 34px;
                line-height: 34px;
                font-size: 16px;
                color: #555;
                background: #f6f6f6;
                cursor: pointer;
                border: 0;
            }

                .ProdDtlsModalarea .IncDecQty .value-button:hover {
                    background: #ececec;
                }

            .ProdDtlsModalarea .IncDecQty #decrease {
                order: -1;                  /* minus on the left, plus on the right */
            }

            .ProdDtlsModalarea .IncDecQty #increase {
                order: 1;
            }

    /* seller */
    .ProdDtlsModalarea .mprodApprealarea .Seller {
        float: none;
        width: auto;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 8px;
        padding: 10px 12px;
        border: 1px solid #eaeaea;
        border-radius: 8px;
        background: #fafbfc;
        font-size: 13px;
    }

        .ProdDtlsModalarea .mprodApprealarea .Seller > div.left {
            float: none;
            width: auto;
            margin: 0;
        }

    /* buttons: stacked, full width, same colours as before */
    .ProdDtlsModalarea .descprodbtnarea {
        float: none;
        width: auto;
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 2px;
    }

        .ProdDtlsModalarea .descaddcartbtn,
        .ProdDtlsModalarea .descwishlistbtn {
            float: none;
            width: 100%;
            box-sizing: border-box;
            height: 42px;
            line-height: 42px;
            padding: 0;
            margin: 0;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
        }

            .ProdDtlsModalarea .descaddcartbtn a,
            .ProdDtlsModalarea .descwishlistbtn a {
                line-height: 42px;
            }

    /* ---- description ---- */
    .ProdDtlsModalarea .tabsProdDesc div.tabDesc {
        float: none;
        width: auto;
    }

    .ProdDtlsModalarea .tab-content {
        float: none !important;
        width: auto !important;
        padding: 10px 2px 0;
        line-height: 19px;
    }
}

@media only screen and (min-width: 600px) {

    .ProdDtlsModalarea {
        width: min(1080px, calc(100vw - 40px));
        max-width: none !important;
        margin-left: calc(min(1080px, calc(100vw - 40px)) / -2);
        padding-bottom: 0;
    }

        .ProdDtlsModalarea .MTotScrollarea {
            max-height: 82vh;
        }

    .ProdDtlsModalarea .ProdDtlsMiddleContArea {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        grid-template-rows: auto 1fr auto;
        column-gap: 28px;
        row-gap: 12px;
        padding-right: 0;
    }

        /* picture: left, beside the name and the description */
        .ProdDtlsModalarea .productdetailsPiC {
            grid-column: 1;
            grid-row: 1 / span 2;
            align-self: start;
            position: sticky;
            top: 0;
            min-height: 340px;
        }

            .ProdDtlsModalarea .productdetailsPiC span img {
                max-height: 340px;
            }

        .ProdDtlsModalarea .qv-head {
            grid-column: 2;
            grid-row: 1;
        }

        .ProdDtlsModalarea .productdetailstabarea3 {
            grid-column: 2;
            grid-row: 2;
            padding-bottom: 8px;
        }

            /* the description scrolls with the popup, not on its own (it was 5px wider than the column) */
            .ProdDtlsModalarea .productdetailstabarea3 .tab-content {
                overflow: visible !important;
                overflow-wrap: anywhere;
            }

        /* ---- the bar ---- */
        .ProdDtlsModalarea .qv-buy {
            grid-column: 1 / -1;
            grid-row: 3;
            position: sticky;
            bottom: 0;
            z-index: 4;
            align-self: end;
            display: grid;
            grid-template-columns: auto auto minmax(0, 1fr) auto;
            grid-template-areas:
                "price qty seller btns"
                "stock qty seller btns";
            align-items: center;
            gap: 2px 18px;
            margin: 4px 0 0;
            padding: 12px 4px 16px;
            border: 0;
            border-top: 1px solid #e8ecf1;
            border-radius: 0;
            background: #fff;
            box-shadow: 0 -8px 16px -8px rgba(0, 0, 0, .10);
        }

            .ProdDtlsModalarea .mprodApprealarea .qv-buy .price {
                grid-area: price;
                align-self: end;
                line-height: 24px;
                white-space: nowrap;
            }

                .ProdDtlsModalarea .mprodApprealarea .qv-buy .price .saleprice > div:first-child {
                    display: none;              /* "Price :" label - the amount speaks for itself */
                }

            .ProdDtlsModalarea .mprodApprealarea .qv-buy .inStock {
                grid-area: stock;
                align-self: start;
                white-space: nowrap;
                font-size: 13px;
            }

            /* quantity: stepper only, "Only N left" under it */
            .ProdDtlsModalarea .mprodApprealarea .qv-buy .quantityselectarea {
                grid-area: qty;
                position: relative;
                gap: 2px 8px;
            }

                .ProdDtlsModalarea .mprodApprealarea .qv-buy .quantityselectarea > div.selQuality {
                    position: absolute;
                    width: 1px;
                    height: 1px;
                    overflow: hidden;
                    clip: rect(0 0 0 0);
                    white-space: nowrap;
                }

                .ProdDtlsModalarea .mprodApprealarea .qv-buy .quantityselectarea > div.only {
                    flex-basis: auto;
                    font-size: 11.5px;
                    line-height: 15px;
                }

                    .ProdDtlsModalarea .mprodApprealarea .qv-buy .quantityselectarea > div.only:empty {
                        display: none;
                    }

            .ProdDtlsModalarea .qv-buy .IncDecQty {
                height: 34px;
            }

                .ProdDtlsModalarea .qv-buy .IncDecQty input[type="text"],
                .ProdDtlsModalarea .qv-buy .IncDecQty .value-button {
                    height: 32px;
                    line-height: 32px;
                }

            /* seller: one quiet line, no box */
            .ProdDtlsModalarea .mprodApprealarea .qv-buy .Seller {
                grid-area: seller;
                min-width: 0;
                position: relative;
                padding: 0;
                border: 0;
                background: none;
                font-size: 12.5px;
                color: #727272;
            }

            /* buttons pushed to the right: Add to Basket, then a text link */
            .ProdDtlsModalarea .qv-buy .descprodbtnarea {
                grid-area: btns;
                flex-direction: row;
                align-items: center;
                gap: 14px;
                margin: 0;
            }

                .ProdDtlsModalarea .qv-buy .descaddcartbtn {
                    width: auto;
                    min-width: 170px;
                    padding: 0 20px;
                    text-align: center;
                }

                .ProdDtlsModalarea .qv-buy .descwishlistbtn {
                    width: auto;
                    height: auto;
                    line-height: normal;
                    padding: 0;
                    background: none !important;
                    border: 0 !important;
                    box-shadow: none !important;
                }

                    .ProdDtlsModalarea .qv-buy .descwishlistbtn a {
                        display: inline-block;
                        line-height: 20px;
                        padding: 0;
                        background: none !important;
                        font-size: 13.5px;
                        font-weight: 600;
                        color: #277487 !important;
                        text-decoration: none;
                        white-space: nowrap;
                    }

                        .ProdDtlsModalarea .qv-buy .descwishlistbtn a::after {
                            content: " \2192";
                        }

                        .ProdDtlsModalarea .qv-buy .descwishlistbtn a:hover {
                            text-decoration: underline;
                        }

            .ProdDtlsModalarea .qv-buy .Seller .stars .StarCss {
                float: left;
                width: 15px;
                height: 14px;
                margin-right: 1px;
                background: url(../images/rating_star.png) no-repeat center !important;
            }

                .ProdDtlsModalarea .qv-buy .Seller .stars .StarCss.EmptyStarCss {
                    background-image: url(../images/star-empty.png) !important;
                }

        /* more sellers: open upward from the bar instead of below it */
        .ProdDtlsModalarea .qv-buy #moreSellersWrapper {
            top: auto;
            bottom: calc(100% + 8px);
            left: 0;
            width: 560px;
            max-width: calc(100vw - 80px);
            max-height: 55vh;
            overflow-y: auto;
            border-radius: 10px;
        }
}

@media only screen and (min-width: 600px) and (max-width: 979px) {
    .ProdDtlsModalarea {
        padding-left: 18px;
        padding-right: 18px;
    }

    .ProdDtlsModalarea .ProdDtlsMiddleContArea {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        column-gap: 20px;
    }

        .ProdDtlsModalarea .productdetailsPiC {
            min-height: 240px;
        }

            .ProdDtlsModalarea .productdetailsPiC span img {
                max-height: 240px;
            }

        .ProdDtlsModalarea .mprodApprealarea h2 {
            font-size: 19px;
            line-height: 25px;
        }

        .ProdDtlsModalarea .qv-buy {
            grid-template-columns: auto minmax(0, 1fr) auto;
            grid-template-areas:
                "price qty    btns"
                "stock seller btns";
            gap: 6px 16px;
        }

            .ProdDtlsModalarea .mprodApprealarea .qv-buy .quantityselectarea {
                justify-self: start;
            }

            .ProdDtlsModalarea .qv-buy .descprodbtnarea {
                flex-direction: column;
                align-items: stretch;
                gap: 6px;
            }

                .ProdDtlsModalarea .qv-buy .descaddcartbtn {
                    min-width: 160px;
                }

                .ProdDtlsModalarea .qv-buy .descwishlistbtn {
                    text-align: center;
                }

            .ProdDtlsModalarea .qv-buy #moreSellersWrapper {
                left: -150px;               /* seller sits mid-bar here: keep the list inside the card */
                width: 520px;
            }
}

@media only screen and (max-width: 599px) {

    /* ---- the card: nearly full screen ---- */
    .ProdDtlsModalarea {
        width: calc(100vw - 20px);
        max-width: none !important;
        left: 10px;
        top: 10px;
        margin: 0;
        padding: 12px 12px 0 !important;
        border-radius: 12px;
        background: #fff;
        box-sizing: border-box;
    }

        .ProdDtlsModalarea .ProdDtlsModalHeader {
            display: none;
        }

        /* close: the same round chip as on larger screens */
        .ProdDtlsModalarea .cButtProdRight {
            position: absolute;
            top: 10px;
            right: 10px;
            float: none;
            width: 34px;
            height: 34px;
            z-index: 6;
        }

            .ProdDtlsModalarea .cButtProdRight a {
                position: relative;
                display: block;
                width: 34px;
                height: 34px;
                border-radius: 50%;
                background: #fff;
                border: 1px solid #e0e6ee;
                box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
            }

                .ProdDtlsModalarea .cButtProdRight a img {
                    display: none;
                }

                .ProdDtlsModalarea .cButtProdRight a::before,
                .ProdDtlsModalarea .cButtProdRight a::after {
                    content: "";
                    position: absolute;
                    left: 50%;
                    top: 50%;
                    width: 15px;
                    height: 2px;
                    margin: -1px 0 0 -7.5px;
                    background: #656565;
                    border-radius: 1px;
                    transform: rotate(45deg);
                }

                .ProdDtlsModalarea .cButtProdRight a::after {
                    transform: rotate(-45deg);
                }

        .ProdDtlsModalarea .MTotScrollarea {
            float: none;
            width: 100%;
            max-height: calc(100vh - 32px);
            margin: 0;
        }

    /* ---- one column; the bar goes last ---- */
    .ProdDtlsModalarea .ProdDtlsMiddleContArea {
        float: none;
        width: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

        .ProdDtlsModalarea .mprodApprealarea {
            display: contents;
        }

        .ProdDtlsModalarea .productdetailsPiC {
            order: 1;
            float: none;
            width: auto;
            min-height: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 6px 0 0;
            background: none;
        }

            .ProdDtlsModalarea .productdetailsPiC span {
                float: none;
                width: auto;
            }

            .ProdDtlsModalarea .productdetailsPiC span img {
                max-width: 100%;
                max-height: 220px;
            }

        .ProdDtlsModalarea .qv-head {
            order: 2;
            min-width: 0;
        }

        .ProdDtlsModalarea .productdetailstabarea3 {
            order: 3;
            float: none;
            width: auto;
            margin: 0;
            padding-bottom: 6px;
        }

            .ProdDtlsModalarea .productdetailstabarea3 .tab-content {
                float: none !important;
                width: auto !important;
                overflow: visible !important;
                overflow-wrap: anywhere;
                padding: 8px 0 0;
                line-height: 19px;
            }

    /* ---- head: name + id chips ---- */
    .ProdDtlsModalarea .mprodApprealarea h2 {
        float: none;
        width: auto;
        margin: 0 0 6px;
        font-size: 18px;
        font-weight: 600;
        line-height: 24px;
    }

        .ProdDtlsModalarea .mprodApprealarea h2 span {
            float: none;
            width: auto;
        }

    .ProdDtlsModalarea .mprodApprealarea .prodidNumber {
        float: none;
        display: inline-block;
        width: auto;
        margin: 0 6px 4px 0;
        padding: 2px 8px;
        border: 1px solid #dcdcdc;
        border-radius: 10px;
        background: #f7f7f7;
        font-size: 10.5px;
        line-height: 15px;
        font-weight: 600;
    }

    /* ---- the bar ---- */
    .ProdDtlsModalarea .qv-buy {
        order: 4;
        position: sticky;
        bottom: 0;
        z-index: 4;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "price  price  stock"
            "qty    add    add"
            "seller seller more";
        align-items: center;
        gap: 8px 10px;
        margin: 0;
        padding: 10px 0 12px;              /* inside the scroll area, so the scrollbar does not clip it */
        border-top: 1px solid #e8ecf1;
        background: #fff;
        box-shadow: 0 -8px 16px -8px rgba(0, 0, 0, .12);
    }

        .ProdDtlsModalarea .mprodApprealarea .qv-buy .price {
            grid-area: price;
            float: none;
            width: auto;
            margin: 0;
            line-height: 22px;
            white-space: nowrap;
        }

            .ProdDtlsModalarea .mprodApprealarea .qv-buy .price .saleprice > div:first-child {
                display: none;              /* "Price :" */
            }

        .ProdDtlsModalarea .mprodApprealarea .qv-buy .inStock {
            grid-area: stock;
            justify-self: end;
            float: none;
            width: auto;
            margin: 0;
            padding: 0;
            font-size: 12.5px;
            white-space: nowrap;
        }

            .ProdDtlsModalarea .mprodApprealarea .qv-buy .inStock .InStock::before {
                content: "";
                display: inline-block;
                width: 7px;
                height: 7px;
                margin-right: 5px;
                border-radius: 50%;
                background: currentColor;
                vertical-align: 1px;
            }

        .ProdDtlsModalarea .mprodApprealarea .qv-buy .quantityselectarea {
            grid-area: qty;
            float: none;
            width: auto;
            margin: 0;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 2px;
        }

            .ProdDtlsModalarea .mprodApprealarea .qv-buy .quantityselectarea > div {
                float: none;
                width: auto;
                padding: 0;
            }

            .ProdDtlsModalarea .mprodApprealarea .qv-buy .quantityselectarea > div.selQuality {
                position: absolute;
                width: 1px;
                height: 1px;
                overflow: hidden;
                clip: rect(0 0 0 0);
                white-space: nowrap;
            }

            .ProdDtlsModalarea .mprodApprealarea .qv-buy .quantityselectarea > div.only {
                font-size: 11px;
                line-height: 14px;
            }

                .ProdDtlsModalarea .mprodApprealarea .qv-buy .quantityselectarea > div.only:empty {
                    display: none;
                }

        .ProdDtlsModalarea .qv-buy .IncDecQty {
            float: none;
            width: auto !important;
            display: flex;
            align-items: stretch;
            height: 40px;
            border: 1px solid #c4c4c4;
            border-radius: 6px;
            overflow: hidden;
        }

            .ProdDtlsModalarea .qv-buy .IncDecQty input[type="text"] {
                order: 0;
                width: 40px;
                height: 38px;
                margin: 0;
                padding: 0;
                border: 0;
                border-left: 1px solid #e3e3e3;
                border-right: 1px solid #e3e3e3;
                text-align: center;
                font-size: 15px;
                font-weight: 700;
                color: #292929;
            }

            .ProdDtlsModalarea .qv-buy .IncDecQty .value-button {
                position: static;
                float: none;
                width: 34px;
                height: 38px;
                margin: 0;
                padding: 0;
                border: 0;
                line-height: 38px;
                text-align: center;
                font-size: 17px;
                color: #555;
                background: #f6f6f6;
                cursor: pointer;
            }

            .ProdDtlsModalarea .qv-buy .IncDecQty #decrease {
                order: -1;
            }

            .ProdDtlsModalarea .qv-buy .IncDecQty #increase {
                order: 1;
            }

        /* buttons: Add to Basket fills the row beside the stepper, View More is a link */
        .ProdDtlsModalarea .qv-buy .descprodbtnarea {
            display: contents;
        }

        .ProdDtlsModalarea .qv-buy .descaddcartbtn {
            grid-area: add;
            float: none;
            width: 100%;
            height: 42px;
            line-height: 42px;
            margin: 0;
            padding: 0;
            border-radius: 7px;
            box-sizing: border-box;
            text-align: center;
            font-size: 15px;
            font-weight: 600;
        }

            .ProdDtlsModalarea .qv-buy .descaddcartbtn a {
                display: block;
                line-height: 42px;
            }

        .ProdDtlsModalarea .qv-buy .descwishlistbtn {
            grid-area: more;
            justify-self: end;
            float: none;
            width: auto;
            height: auto;
            line-height: normal;
            margin: 0;
            padding: 0;
            background: none !important;
            border: 0 !important;
            box-shadow: none !important;
        }

            .ProdDtlsModalarea .qv-buy .descwishlistbtn a {
                display: inline-block;
                padding: 0;
                background: none !important;
                line-height: 20px;
                font-size: 13px;
                font-weight: 600;
                color: #277487 !important;
                text-decoration: none;
                white-space: nowrap;
            }

                .ProdDtlsModalarea .qv-buy .descwishlistbtn a::after {
                    content: " \2192";
                }

        /* seller: one small line */
        .ProdDtlsModalarea .mprodApprealarea .qv-buy .Seller {
            grid-area: seller;
            position: relative;
            min-width: 0;
            float: none;
            width: auto;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 2px 6px;
            margin: 0;
            padding: 0;
            border: 0;
            background: none;
            font-size: 12px;
            color: #727272;
        }

            .ProdDtlsModalarea .mprodApprealarea .qv-buy .Seller > div.left {
                float: none;
                width: auto;
                margin: 0;
            }

            .ProdDtlsModalarea .qv-buy .Seller .stars,
            .ProdDtlsModalarea .qv-buy .Seller .stars .starOuter,
            .ProdDtlsModalarea .qv-buy .Seller .stars .starinner {
                display: flex;
                float: none !important;
                width: auto !important;
                min-width: 0 !important;
                margin: 0 !important;
                padding: 0 !important;
            }

            .ProdDtlsModalarea .qv-buy .Seller .stars .StarCss {
                float: left;
                width: 13px;
                height: 13px;
                margin-right: 1px;
                background: url(../images/rating_star.png) no-repeat center / 13px auto !important;
            }

                .ProdDtlsModalarea .qv-buy .Seller .stars .StarCss.EmptyStarCss {
                    background-image: url(../images/star-empty.png) !important;
                }

            /* more sellers: opens upward from the bar, full card width */
            .ProdDtlsModalarea .qv-buy #moreSellersWrapper {
                top: auto;
                bottom: calc(100% + 8px);
                left: 0;
                width: calc(100vw - 44px);
                max-height: 60vh;
                overflow-y: auto;
                border-radius: 10px;
            }
}

/* phones: the site's floating chat button (#ec-launcher) sat on top of Add to Basket - hide it
   while the quick view is open (the modal's inline style then says visibility:visible) */
@media only screen and (max-width: 599px) {
    body:has(div[id$="prodDetailsmodal"][style*="visible"]) #ec-launcher {
        display: none !important;
    }
}

/* 2026-11-23: the store rating beside "Source" shows only when it is above 3 (same rule as the
   product page). The stars come from StoreRatingImage(): five spans, filled ones first, so
   "above 3" = the 4th star is filled (rating 3.5 and up). Display only, all screen sizes. */
.ProdDtlsModalarea .Seller .stars:not(:has(.starinner > span.StarCss:nth-of-type(4):not(.EmptyStarCss))) {
    display: none !important;
}
