@media (max-width: 767px) {
    .itv-storefront-refresh.catalog-product-view .porto-block-html-top > .d-none {
        display: block !important;
    }

    .itv-storefront-refresh.catalog-product-view .porto-block-html-top > div {
        min-height: 64px;
    }

    .itv-storefront-refresh.catalog-product-view .porto-block-html-top .text-center > .container {
        min-height: 44px;
        font-family: Arial, sans-serif;
        font-size: 14px;
        line-height: 22px;
    }

    .itv-storefront-refresh.catalog-product-view .porto-block-html-top .text-center > .container > a {
        display: inline-block;
        font-size: 10px;
        line-height: 14px;
        white-space: nowrap;
    }

    .itv-storefront-refresh.catalog-product-view .page-header:is(.type1, .type2) > .main-panel-top {
        display: none;
    }

    .itv-storefront-refresh.catalog-product-view .product-info-main:has(> .product-add-form #product-addtocart-button):not(:has(> .product-add-form .product-options-wrapper)) {
        display: flex;
        flex-direction: column;
    }

    .itv-storefront-refresh.catalog-product-view .product-info-main:has(> .product-add-form #product-addtocart-button):not(:has(> .product-add-form .product-options-wrapper)) > :is(.overview, .product.alert.price) {
        order: 1;
    }

    .itv-storefront-refresh.catalog-product-view .product-info-main:has(> .product-add-form #product-addtocart-button):not(:has(> .product-add-form .product-options-wrapper)) > .product-add-form ~ :not(.overview, .product.alert.price) {
        order: 2;
    }

    .itv-storefront-refresh.catalog-product-view .product.media [data-itv-gallery-thumbs] {
        min-height: 252px;
        position: relative;
    }

    .itv-storefront-refresh.catalog-product-view .product.media [data-itv-gallery-thumbs="1"] {
        min-height: 360px;
    }

    .itv-storefront-refresh.catalog-product-view .product.media ._block-content-loading > .gallery-placeholder__image {
        display: block;
        position: absolute;
        inset: 0 auto auto 0;
        width: 100%;
        height: 252px;
        object-fit: contain;
    }

    .itv-storefront-refresh.catalog-product-view .product.media .fotorama:not(.fotorama--fullscreen) .fotorama__stage {
        max-height: 252px;
    }

    .itv-storefront-refresh.catalog-product-view .product.media .fotorama:not(.fotorama--fullscreen) .fotorama__stage .fotorama__img:not(.fotorama__img--full) {
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
        object-fit: contain;
    }
}
