@media (max-width: 767px) {
    html:has(.mobilebuy-layout) body {
        overflow-x: clip;
    }

    html:has(.mobilebuy-layout) header .mobile_city {
        display: none;
    }

    .catalog > .wraper:has(> .mobilebuy-layout) {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        reading-flow: grid-rows;
    }

    .mobilebuy-layout,
    .mobilebuy-layout .page-product-card,
    .mobilebuy-layout .page-product-card-images,
    .mobilebuy-layout .col_fight,
    .mobilebuy-layout .page-product-card .page-product-card-info,
    .mobilebuy-layout .page-product-card .page-product-card-info-price-and-buttons,
    .mobilebuy-layout .page-product-card .page-product-card-info > .cols,
    .mobilebuy-layout .page-product-card .page-product-card-info > .cols > .col:first-child {
        display: contents;
    }

    .mobilebuy-layout .page-product-card-info > h1 { order: -12; }
    .mobilebuy-layout .swiper-main-wrapper { order: -11; }
    .mobilebuy-layout .swiper-thumbnails-wrapper { order: -10; }
    .mobilebuy-layout .page-product-card-info > .status { order: -3; }
    .mobilebuy-layout .page-product-card-info-price-and-buttons > .prices { order: -8; }
    .mobilebuy-layout .page-product-card-info-specs { order: -7; }
    .mobilebuy-layout .page-product-card-info-price-and-buttons > .btn_line { order: -6; }
    .mobilebuy-layout .page-product-card-info-price-and-buttons > .swtrade-finance-row { order: -6; }
    .catalog > .wraper:has(> .mobilebuy-layout) > .block_breadcrumbs { order: -5; }
    .mobilebuy-layout .page-product-card-info > .cols > .col:last-child { order: -4; }
    .mobilebuy-layout .plus_list { order: -3; }
    .mobilebuy-layout .page-product-card-info > .showonlymobile { order: -2; }
    .mobilebuy-layout .page-product-card-info > .banners_list { order: -1; }

    .mobilebuy-layout .mobilebuy-title-part[hidden] {
        display: inline;
    }

    html:has(.mobilebuy-layout) .block_breadcrumbs {
        min-width: 0;
        min-height: 36px;
        max-width: 100%;
        padding-block: 8px;
    }

    html:has(.mobilebuy-layout) .block_breadcrumbs > .breadcrumbs {
        flex: 1 1 0;
        min-width: 0;
    }

    html:has(.mobilebuy-layout) .block_breadcrumbs > .mrg {
        display: none;
    }

    html:has(.mobilebuy-layout) .block_breadcrumbs .breadcrumbs-flex {
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    html:has(.mobilebuy-layout) .breadcrumbs-flex > * {
        flex-shrink: 0;
    }

    html:has(.mobilebuy-layout) .mobilebuy-layout .page-product-card-images .swiper-main-wrapper {
        position: relative;
        min-width: 0;
        margin: 4px 16px 0;
        overflow: hidden;
        border: 1px solid #ededed;
        border-radius: 16px;
        background: #fff;
    }

    html:has(.mobilebuy-layout) .page-product-card-images .swiper-main .swiper-slide {
        position: relative;
    }

    html:has(.mobilebuy-layout) .page-product-card-images .swiper-main .swiper-slide::after {
        content: attr(aria-label);
        position: absolute;
        right: 12px;
        bottom: 10px;
        padding: 4px 8px;
        border-radius: 6px;
        background: #f5f5f5;
        color: #616161;
        font-size: 11px;
        line-height: 16px;
        font-variant-numeric: tabular-nums;
        pointer-events: none;
    }

    html:has(.mobilebuy-layout) .page-product-card-images .swiper-main-wrapper .swiper-slide img {
        width: 100%;
        height: clamp(210px, 31svh, 320px);
        max-height: 320px;
        object-fit: contain;
        box-sizing: border-box;
        padding: 14px 24px;
    }

    html:has(.mobilebuy-layout) .page-product-card-images .swiper-thumbnails .swiper-slide img {
        height: 56px;
        width: 100%;
        object-fit: contain;
        padding: 7px;
        mix-blend-mode: multiply;
    }

    html:has(.mobilebuy-layout) .mobilebuy-layout .page-product-card-images .swiper-thumbnails-wrapper {
        box-sizing: border-box;
        width: calc(100% - 32px);
        height: 58px;
        flex-basis: 58px;
        margin: 8px 16px;
        padding: 0;
        border: 0;
    }

    html:has(.mobilebuy-layout) .mobilebuy-layout .page-product-card-images .swiper-thumbnails {
        height: 100%;
        border: 0;
    }

    html:has(.mobilebuy-layout) .mobilebuy-layout .page-product-card-images .swiper-thumbnails > .swiper-wrapper {
        height: 58px;
        border: 0;
    }

    html:has(.mobilebuy-layout) .mobilebuy-layout .page-product-card-images .swiper-thumbnails .swiper-slide {
        box-sizing: border-box;
        height: 58px;
        overflow: hidden;
        border: 1px solid #ededed;
        border-radius: 10px;
        background: #f7f7f7;
        cursor: pointer;
    }

    html:has(.mobilebuy-layout) .mobilebuy-layout .page-product-card-images .swiper-thumbnails .swiper-slide-thumb-active {
        border-color: #ed0016;
        background: #fff;
    }

    html:has(.mobilebuy-layout) .page-product-card-images .swiper-thumbnails .swiper-slide:focus-visible {
        outline: 2px solid #ed0016;
        outline-offset: -3px;
    }

    html:has(.mobilebuy-layout) .page-product-card .page-product-card-info > h1 {
        font-size: clamp(20px, 5.6vw, 24px);
        line-height: 1.08;
        padding-block: 8px;
        margin: 0;
        overflow-wrap: anywhere;
    }

    html:has(.mobilebuy-layout) .page-product-card .page-product-card-info > .status {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 6px;
        margin: 0;
        padding: 6px 16px;
    }

    html:has(.mobilebuy-layout) .page-product-card .page-product-card-info > .status > * {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 0;
    }

    html:has(.mobilebuy-layout) .page-product-card-info > .status > :nth-child(-n+2) {
        grid-column: auto;
    }

    html:has(.mobilebuy-layout) .page-product-card .page-product-card-info > .status .item {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 0 !important;
        min-height: 24px;
        padding: 1px 4px;
        font-size: clamp(11px, 3vw, 12px);
        line-height: 20px;
        white-space: nowrap;
    }

    html:has(.mobilebuy-layout) .mobilebuy-layout .page-product-card .page-product-card-info > .status .item::before {
        flex: 0 0 16px;
        width: 16px;
        margin-right: 6px;
    }

    html:has(.mobilebuy-layout) .page-product-card-info-price-and-buttons > .prices {
        padding-inline: 16px;
    }

    html:has(.mobilebuy-layout) .mobilebuy-layout .page-product-card .page-product-card-info-price-and-buttons > .prices {
        padding-block: 4px;
    }

    html:has(.mobilebuy-layout) .mobilebuy-layout .page-product-card .prices > .cashback {
        margin-top: 3px;
    }

    html:has(.mobilebuy-layout) .mobilebuy-layout .page-product-card-info-specs {
        border-top: 1px solid #e2e2e2;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 6px 16px 0;
    }

    html:has(.mobilebuy-layout) .mobilebuy-layout .page-product-card-info-specs .product-specs-row-colors,
    html:has(.mobilebuy-layout) .mobilebuy-layout .page-product-card .page-product-card-info-specs .product-specs-row-memory {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    html:has(.mobilebuy-layout) .mobilebuy-layout .page-product-card-info-specs .product-specs-row-colors {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    html:has(.mobilebuy-layout) .mobilebuy-layout .page-product-card .page-product-card-info-specs > .product-specs-hdd .product-specs-row-memory {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
    }

    html:has(.mobilebuy-layout) .mobilebuy-layout .product-specs-hdd > .page-product-card-info-specs-item__title {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    html:has(.mobilebuy-layout) .mobilebuy-layout .page-product-card .page-product-card-info-specs-item {
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    html:has(.mobilebuy-layout) .mobilebuy-layout .page-product-card .page-product-card-info-specs-item__title {
        margin-bottom: 4px;
        font-size: 12px;
        line-height: 16px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    html:has(.mobilebuy-layout) .page-product-card-info-specs-item__title > span {
        display: none;
    }

    html:has(.mobilebuy-layout) .mobilebuy-layout .page-product-card .page-product-card-info-specs .product-specs-row-memory > .product-specs-row-memory-item {
        box-sizing: border-box;
        display: grid;
        place-items: center;
        flex: 1 1 calc(50% - 6px);
        width: 100%;
        justify-self: stretch;
        min-width: 0;
        min-height: 44px;
        margin: 0;
        padding: 2px 4px;
        font-size: 13px;
        line-height: 18px;
    }

    html:has(.mobilebuy-layout) .page-product-card-info-price-and-buttons > .swtrade-finance-row {
        box-sizing: border-box;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 0 16px 8px;
    }

    html:has(.mobilebuy-layout) .mobilebuy-layout .page-product-card .swtrade-product-preview {
        order: -8;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 12px;
        box-sizing: border-box;
        min-width: 0;
        margin: 0;
        padding: 8px 16px;
    }

    html:has(.mobilebuy-layout) .swtrade-product-preview > * {
        grid-column: 1 / -1;
    }

    html:has(.mobilebuy-layout) .swtrade-product-preview > .swtrade-product-preview__amount {
        grid-column: 1;
        grid-row: 2;
        align-self: center;
        margin-bottom: 0;
    }

    html:has(.mobilebuy-layout) .swtrade-product-preview > .swtrade-product-preview__remove {
        grid-column: 2;
        grid-row: 2;
        align-self: center;
        min-height: 44px;
        margin: 0;
        padding: 4px 0 4px 8px;
        font-size: 12px;
        line-height: 18px;
    }

    html:has(.mobilebuy-layout) .swtrade-finance-row > .product-installment {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 14px;
        min-width: 0;
        margin: 0;
        font-size: 12px;
        line-height: 18px;
    }

    html:has(.mobilebuy-layout) .swtrade-finance-row .product-installment__open {
        min-height: 0;
        padding-block: 0;
        text-align: left;
        font-size: 12px;
        line-height: 18px;
    }

    html:has(.mobilebuy-layout) .swtrade-finance-row > .swtrade-launcher {
        display: contents;
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    html:has(.mobilebuy-layout) .swtrade-finance-row .swtrade-launch-controls {
        display: contents;
    }

    html:has(.mobilebuy-layout) .swtrade-finance-row .swtrade-remove {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        min-height: 28px;
        margin: 0;
        padding: 0;
        font-size: 12px;
        line-height: 18px;
    }

    html:has(.mobilebuy-layout) .swtrade-finance-row .swtrade-launch-status {
        grid-column: 2;
        grid-row: 3;
        margin: 0;
    }

    html:has(.mobilebuy-layout) .swtrade-finance-row .swtrade-launch-controls > .btn {
        grid-column: 2;
        grid-row: 1;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        height: auto;
        padding: 6px 8px;
        font-size: 13px;
        line-height: 18px;
        white-space: normal;
        text-align: center;
    }

    html:has(.mobilebuy-layout) .mobilebuy-layout .page-product-card-info-specs .product-specs-row-colors-item,
    html:has(.mobilebuy-layout) .mobilebuy-layout .page-product-card-info-specs .product-specs-row-memory-item {
        margin: 0;
    }

    html:has(.mobilebuy-layout) .mobilebuy-layout .page-product-card .page-product-card-info-specs .product-specs-row-colors > .product-specs-row-colors-item {
        --swatch-size: clamp(48px, 15vw, 58px);
        box-sizing: border-box;
        flex: 0 0 var(--swatch-size);
        width: var(--swatch-size);
        height: var(--swatch-size);
        min-width: 0;
        margin: 0;
    }

    html:has(.mobilebuy-layout) .page-product-card-info-price-and-buttons > .mrg {
        display: none;
    }

    html:has(.mobilebuy-layout) .page-product-card .page-product-card-info-price-and-buttons > .btn_line {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
        padding: 14px 16px 6px;
        margin: 0;
    }

    html:has(.mobilebuy-layout) .page-product-card-info-price-and-buttons > .btn_line > div {
        flex: 1 1 136px;
        min-width: 0;
        margin: 0;
    }

    html:has(.mobilebuy-layout) .page-product-card-info-price-and-buttons > .btn_line a {
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 44px;
        height: auto;
        width: 100%;
        padding: 8px;
        font-size: 13px;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
    }

    html:has(.mobilebuy-layout) .page-product-card-info .mobilefott {
        display: none;
    }

    html:has(.mobilebuy-layout) .mobilebuy-layout .page-product-card .plus_list {
        display: none;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: thin;
        max-width: 100%;
        padding-block: 10px;
        margin: 8px 0;
    }

    html:has(.mobilebuy-layout) .mobilebuy-layout .page-product-card .plus_list > .item {
        flex: 0 0 auto;
        padding: 8px 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        white-space: nowrap;
        font-size: 13px;
    }

    html:has(.mobilebuy-layout) .runingline_wrap,
    html:has(.mobilebuy-layout) #floating-block {
        display: none !important;
    }

    html:has(.mobilebuy-layout) .mobilebuy-test-bar:not([hidden]) {
        position: fixed;
        z-index: 90;
        inset: auto 0 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        border-top: 1px solid #ddd;
        padding: 9px max(14px, env(safe-area-inset-right)) max(9px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
        background: #fff;
        color: #161616;
    }

    html:has(.mobilebuy-layout) .mobilebuy-test-bar strong {
        font-size: clamp(18px, 6vw, 25px);
        white-space: nowrap;
    }

    html:has(.mobilebuy-layout) .mobilebuy-test-bar .add-to-basket {
        display: grid;
        place-items: center;
        min-height: 44px;
        text-decoration: none;
        border: 0;
        border-radius: 4px;
        padding-inline: 16px;
        background: #161616;
        color: #fff;
        font: inherit;
        font-weight: 700;
    }

    html:has(.mobilebuy-layout).mobilebuy-test-sticky body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }
}
