@media (max-width: 1023px) {
    #infoItem .product-detail-card[data-mobile-layout] {
        display: flex !important;
        flex-direction: column;
        direction: rtl;
        gap: 12px;
        overflow: visible !important;
        --product-top: 0px;
        --product-bottom: 0px;
    }

    #infoItem .product-detail-card > .breadCrumbHolder { order: -1; }
    #infoItem .product-detail-card > .tit { order: var(--section-heading, 0); margin: 0 !important; }
    #infoItem .product-detail-card > #gallery { order: var(--section-gallery, 1); }
    #infoItem .product-detail-info { order: var(--section-info, 2); }
    #infoItem .product-purchase-slot { order: var(--section-purchase, 3); }
    #infoItem .product-detail-card > :is(.showmore_one, .tab-tools, .groupDV) { order: var(--section-description, 4); }
    #infoItem .product-detail-related { order: var(--section-related, 5); }

    #infoItem .product-detail-card[data-mobile-layout] > .boxInfo {
        display: contents;
    }

    #infoItem .product-detail-info {
        display: flow-root;
        min-width: 0;
        width: 100%;
    }

    #infoItem .product-detail-card #model-holder {
        margin-bottom: 12px !important;
    }

    #infoItem .product-purchase-slot:has(.qBox, .addtocart) {
        display: block;
        min-width: 0;
    }

    #infoItem .product-purchase-slot:not(:has(.qBox, .addtocart)) {
        display: none;
    }

    #infoItem .product-detail-card:not([data-purchase-position="top"]):not([data-purchase-position="bottom"]) .product-purchase-slot {
        position: sticky;
        top: calc(var(--product-top) + 6px);
        z-index: 25;
        align-self: stretch;
    }

    #infoItem .product-purchase-bar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 6px 12px;
        box-sizing: border-box;
        width: 100%;
        padding: 8px 12px;
        border: 1px solid var(--color--Theme--Base--Completement-3, #e4e4e4);
        border-radius: 14px;
        background: var(--color--Theme--Base--Completement-1, #fff);
        box-shadow: 0 3px 12px rgb(0 0 0 / 8%);
    }

    #infoItem .product-detail-card:is([data-purchase-position="top"], [data-purchase-position="bottom"]) .product-purchase-slot:has(.qBox, .addtocart) {
        display: contents;
    }

    #infoItem .product-detail-card:is([data-purchase-position="top"], [data-purchase-position="bottom"]) .product-purchase-bar {
        position: fixed;
        z-index: 25;
        inset-inline: 12px;
        width: auto;
    }

    #infoItem [data-purchase-position="top"] .product-purchase-bar {
        top: calc(max(var(--product-top), env(safe-area-inset-top, 0px)) + 6px);
    }

    #infoItem [data-purchase-position="top"]:has(.product-purchase-bar :is(.qBox, .addtocart)) {
        padding-top: calc(var(--purchase-bar-height, 0px) + 12px);
    }

    #infoItem [data-purchase-position="bottom"] .product-purchase-bar {
        bottom: calc(max(var(--product-bottom), env(safe-area-inset-bottom, 0px)) + 8px);
    }

    #infoItem [data-purchase-position="bottom"]:has(.product-purchase-bar :is(.qBox, .addtocart)) {
        padding-bottom: calc(var(--purchase-bar-height, 0px) + 12px);
    }

    #infoItem .product-purchase-price {
        flex: 1 1 105px;
        min-width: 0;
        color: var(--color--Theme--Background--Primary-1, #142c4d);
        line-height: 1.55;
        overflow-wrap: anywhere;
    }

    #infoItem .product-purchase-price[hidden] { display: none; }
    #infoItem .product-purchase-price small { display: block; font-size: 11px; }
    #infoItem .product-purchase-price strong { font-size: clamp(13px, 4vw, 17px); }

    #infoItem .product-purchase-source {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        clip-path: inset(50%);
    }

    #infoItem .product-purchase-bar .qBox,
    #infoItem .product-purchase-bar .addtocart {
        position: static !important;
        inset: auto !important;
        flex: 0 1 auto;
        float: none !important;
        width: auto !important;
        max-width: 100%;
        min-width: 0;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    #infoItem .product-purchase-bar .qBox .boxinput { margin: 0 !important; }
    #infoItem .product-purchase-bar .qBox .quant {
        min-width: 0;
        width: auto;
    }

    #infoItem .product-purchase-bar .qBox.activeC .inputBox {
        position: static;
        width: 3.5ch !important;
        margin-inline: 3px;
    }
    #infoItem .product-purchase-bar .qBox .box-mode-selector {
        margin: 3px 0 0 !important;
        padding: 0 !important;
    }

    #infoItem .product-purchase-bar .qBox .box-mode-ratio { display: none; }
    #infoItem .product-purchase-bar .qBox .box-mode-toggle { min-height: 27px; }
    #infoItem .product-purchase-bar .qBox .unitspan:empty { display: none; }
}
