.mb-fake-space {
    display: none;
}

.js-help-button {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.mockup-print-location-mobile {
    display: flex;
    align-items: center;
    padding: 3px 10px;
    grid-gap: 6px;
    background: var(--pr-color-secondary);
    border-color: var(--pr-color-secondary);
    color: #fff;
    border-radius: var(--pr-radius-x-large);
}

.mockup-print-location-mobile .ctxt-location {
    padding: 0;
    font-weight: 400;
}

.mockup-print-location-mobile.active {
    background: var(--pr-color-information-600);
    border-color: var(--pr-color-information-600);
}

@media (min-width: 990px) {
    .device-mobile {
        display: none
    }
    .designer-header {
        justify-content: flex-start;
    }
    .button-sm, .block-sm {
        display: none !important;
    }
    .custom-mobile-menu {
        display: none !important;
    }
    .mobile-variant-wrapper {
        display: none;
    }
    .mobile-variant-bg {
        display: none;
    }

    .open-filter {
        display: none
    }

    .modal-right-head {
        display: none;
    }

    .modal-right-head-wrapper {
        display: none;
    }


    .submit-a-ticket {
        text-align: left;
    }

    .variant-image.scroll {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: flex-start;
        grid-gap: 5px;
    }

    .variant-image.scroll::-webkit-scrollbar {
        height: 6px;
    }

    .share-header-close {
        position: absolute;
        top: 0;
        right: 0;
    }

    .background-container {
        position: absolute;
        top: 0;
        left: 0;
    }

    .frame-container {
        position: absolute;
        pointer-events: none;
    }

    .designer-header .header-button:hover {
        background-color: #e7e6e6;
    }
}

@media (max-width: 990px) { /* tablet + mobile */
    .filter-child-category li:hover {
        font-weight: unset;
        color: unset;
    }
    .filter-child-category li:hover::before {
        content: none;
    }
    .main-content ~ * {
        display: none !important;
        width: 0;
        height: 0;
        overflow: hidden;
        position: absolute;
    }

    .open-menu .navigation-background {
        display: block !important;
        width: 100%;
        height: 100%;
    }
    
    .overlay-heading {
        display: none !important
    }
    #main-header::after {
        content: "";
        height: 1px;
        width: 100%;
        display: block;
        background-color: #e1e1e1;
        position: absolute;
        bottom: 0;
        left: 0
    }
    .main-content {
        height: calc(100vh - 118px);
        padding: 0;
    }
    #custom-product {
        height: 100%;
    }
    #custom-product,
    #custom-product .site-w,
    #custom-product.fullscreen,
    #custom-product.fullscreen .js-custom-product-wrapper {
        padding: 0;
    }

    #custom-product-image {
        display: block;
        padding: 12px 16px 0;
    }

    #custom-product-image img {
        height: 100%;
    }

    #custom-product-image .img-preview-canvas img {
        position: relative;
    }

    .custom-product-menu {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
    }

    .frame-container {
        position: absolute;
        pointer-events: none;
    }

    .designer-header .header-button {
        background-color: #fff;
        border-radius: 30px;
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .designer-header .header-button:focus,
    .designer-header .header-button:active,
    .configuration-menu-button:focus,
    .configuration-menu-button:active {
        background-color: #f1f1f1 !important;
    }

    .designer-header .header-button svg {
        margin-bottom: 0
    }

    .product-price-box {
        margin: 0 auto 0 0;
    }

    .product-price {
        font-size: 21px;
    }

    .product-high-price {
        font-size: 18px;
    }

    .confirm-add2cart-wrapper, .multiple-size-selection-wrapper {
        position: fixed;
        top: auto;
        bottom: 0;
    }

    .js-custom-product-wrapper.show-text-selected {
        align-items: flex-start;
    }

    .fullscreen-wrapper .js-custom-product-wrapper #custom-product-image {
        height: calc(100% - 60px);
    }

    .js-help-button {
        display: none !important;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
    }

    .header-button-label,
    .custom-product-main .custom-product-button-wrapper,
    .submit-a-ticket {
        display: none;
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .canvas-container,
    .canvas-container img {
        width: 100vw;
        object-fit: contain;
    }

    .share-wrapper {
        position: fixed;
        width: 100%;
        height: 100%;
        left: 0;
        right: 0;
        top: 0;
        border-radius: 0;
        padding-top: 0;
    }
    .modal-wrapper {
        width: 100%;
        height: 100%;
    }

    .modal-content {
        width: 100%;
        padding: 10px 14px;
    }

    .modal-left {
        position: fixed;
        height: 100%;
        z-index: 2;
        width: 300px;
        top: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 8px 10px -5px rgb(0 0 0 / 20%), 0 16px 24px 2px rgb(0 0 0 / 14%), 0 6px 30px 5px rgb(0 0 0 / 10%);
        transform: translateX(110%);
        transition: transform 350ms ease-in-out;
        display: flex;
        flex-wrap: wrap;
        z-index: 11;
    }

    #bestSellerDesign .modal-left{
        display: block;
        padding: 0;
    }

    .modal-left.mobile.active {
        transform: translateX(0);
    }

    .upload-file .modal-left {
        display: block;
        height: unset;
        width: 100%;
        position: unset;
        transform: unset;
        box-shadow: unset;
    }

    .hot-topics-list > .upload-file-item {
        display: inline-flex;
        width: 100%;
        height: 100%;
    }
    .select-design-prevew-wraper .select-design-preview {
        overflow: hidden;
    }

    .mobile-variant.active {
        position: absolute;
        bottom: 60px;
        background-color: white;
        width: 100%;
        padding: 10px;
        display: block;
    }

    .mobile-variant .product-variant-heading {
        text-align: left;
    }

    #custom-product-menu .mobile-text {
        opacity: 0;
        display: unset;
        position: absolute;
        pointer-events: none;
        left: -1000px;
    }

    #custom-product-menu .mobile-text #js-text {
        display: none;
    }

    #custom-product-menu .mobile-text.active #js-text {
        display: unset;
    }

    #custom-product-menu .mobile-text .addText-wrapper {
        transform: unset !important;
        position: unset !important;
        display: unset;
        opacity: unset;
        pointer-events: all;
    }

    .sidebar-wrapper {
        border-radius: 21px 21px 0 0;
        box-shadow: 0 6px 36px rgba(11 11 11 / 30%);
        -webkit-border-radius: 21px 21px 0 0;
        -moz-border-radius: 21px 21px 0 0;
        -ms-border-radius: 21px 21px 0 0;
        -o-border-radius: 21px 21px 0 0;
    }

    .color-selection {
        display: grid;
        grid-template-columns: repeat(auto-fill, 40px);
        grid-gap: 4px;
    }

    .color-item {
        display: block;
    }

    #custom-product-menu .mobile-text.active {
        position: fixed;
        background-color: white;
        width: 100%;
        padding: 10px;
        display: block;
        bottom: 0;
        opacity: 1;
        pointer-events: all;
        left: 0;
        z-index: 21;
    }

    #custom-product-menu .mobile-text .sidebar-wrapper.visible {
        transform: translateX(0);
        pointer-events: all;
        display: block;
        overflow: hidden;
        top: auto;
        bottom: 0;
        height: 50vh;
    }

    .modal-right {
        width: 100%;
        order: 2;
    }

    .product-left .filter-section .variant-image,
    .product-left .filter-section-content {
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow: auto hidden;
    }

    .design-left .sidebar-widget-content {
        margin-bottom: 0;
    }

    /* custom menu */
    .button-lg {
        display: none !important;
    }

    .custom-product-menu-button {
        background-color: #fff;
        padding: 0;
        grid-gap: 6px;
    }

    .configuration-controls {
        margin: 0;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 10px;
        background-color: transparent;
    }

    .configuration-controls .configuration-menu-button {
        background-color: #f1f1f1;
        border-radius: 5px;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        -ms-border-radius: 5px;
        -o-border-radius: 5px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .configuration-menu-button span {
        font-size: 12px;
    }

    .custom-product-menu-button img {
        width: 36px;
        height: 36px;
        object-fit: contain;
        margin: 0 auto;
        padding: 6px;
    }

    .custom-product-menu-button svg {
        width: 24px;
        height: 24px;
    }
    #custom-product .filter-action > button {
        width: fit-content;
        border: none;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .product-filter-variant-heading {
        margin-bottom: 0;
    }
    #custom-product .hot-topics-list {
        flex-wrap: wrap;
        padding: 0 16px 32px;
    }
    #custom-product .upload-left .hot-topics-list {
        padding: 0 0 22px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 8px;
    }
    .hot-topics-list .menuitem {
        width: 100%;
        border-radius: 5px;
        padding: 7px 10px;
        margin-bottom: 4px;
    }

    .hot-topic {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .confirm-add2cart svg {
        display: none;
    }

    .custom-mobile-menu {
        background-color: #fff;
        box-shadow: 0 2px 3px -1px rgb(200 200 200 / 20%), 0 3px 6px 1px rgb(200 200 200 / 14%), 0 1px 7px 2px rgb(200 200 200 / 10%);
        position: absolute;
        z-index: -1;
        bottom: 0;
        width: 100%;
        height: 60px;
        display: flex;
        pointer-events: none;
        opacity: 0;
        transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
        border-bottom: 1px solid #e1e1e1;
    }

    .js-open-custom-sub-menu::after {
        /* content: ""; */
        height: 4px;
        width: 100%;
        display: block;
        position: absolute;
        bottom: 2px;
        left: 0;
        background-color: #ff5965;
    }
    .active-sub-menu .custom-mobile-menu {
        opacity: 1;
        pointer-events: all;
        transform: translateY(-60px);
        z-index: -1;
    }

    .modal-wrapper.upload-file {
        max-height: 90vh;
        top: auto;
        bottom: 0;
        transform: translate(-50%, 0);
    }

    .mobile-variant-wrapper {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        background: #fff;
        width: 100%;
        box-shadow: 0 8px 10px -5px rgb(0 0 0 / 20%), 0 16px 24px 2px rgb(0 0 0 / 14%), 0 6px 30px 5px rgb(0 0 0 / 10%);
        z-index: 111;
        padding: 16px 16px 80px;
        transform: translateY(110%);
        transition: transform 300ms ease-in-out;
        pointer-events: none;
    }

    .mobile-variant-bg {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        background: rgba(11 11 11 / 55%);
        width: 100%;
        height: 100%;
        z-index: 110;
        opacity: 0;
        transition: opacity 300ms ease-in-out;
        pointer-events: none;
    }

    .mobile-variant-wrapper .filter-section-header,
    .mobile-variant-wrapper .product-filter-variant-heading {
        display: block;
    }

    .close-variant {
        position: absolute;
        top: 5px;
        right: 5px;
        cursor: pointer;
        user-select: none;
        padding: 8px;
    }

    .product-type {
        padding-right: 30px;
    }

    .open-change-variant {
        overflow: hidden;
    }

    .open-change-variant .mobile-variant-bg {
        opacity: 1;
        pointer-events: all
    }
    .open-change-variant .mobile-variant-wrapper {
        transform: translateY(0);
        pointer-events: all
    }

    .add-to-cart-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        color: #fff;
        width: 100%;
        background-color: var(--pr-color-addtocart);
        padding: 16px 0;
        height: 100%;
        border-radius: 0;
        text-align: center;
        border: none;
        font-size: 16px;
    }

    .modal-right-head {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .modal-right-head-item {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 0;
    }

    .filter-result-wrapper {
        width: calc(100% - 84px);
        overflow: auto hidden;
    }

    .cyo-modal.active {
        height: fit-content;
    }

    .open-filter {
        width: auto;
        height: 100%;
        padding: 13px;
        border: 2px solid var(--pr-color-secondary);
        background: var(--pr-color-secondary);
        color: #fff;
    }

    .modal-open-background {
        z-index: 10;
        opacity: 1;
        pointer-events: all;
    }
    .modal-left.mobile.active .filter-section-content.filter-labels {
        flex-wrap: wrap;
        /* display: block; */
        max-width: 300px;
    }
    .modal-left.mobile.active .filter-section-content.filter-labels .filter-label span {
        padding: 8px 10px
    }

    .apply-button {
        background-color: #ff8b08;
        border-color: #ff8b08;
        color: #fff;
    }
    .reset-button {
        background-color: #fff;
        border-color: #e1e1e1;
        color: #333;
    }
    #custom-product .filter-action {
        border-bottom: 1px solid var(--flash);
        background-color: #fff;
        position: sticky;
        top: 0;
        padding: 0;
        z-index: 9;
    }

    .filter-action {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
    }

    .filter-action > button {
        width: 44%;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .filter-action .apply-button:only-child {
        width: 100%;
    }

    .uploadfile-wrapper {
        padding: 12px;
    }

    .uploadfile-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .select-design-prevew-wraper.ng-scope {
        height: calc(100% - 150px);
    }

    .select-design-prevew-wraper .select-design-preview {
        height: 50%;
        padding: 20px;
        margin-top: 10px;
    }

    .design-preview-control {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-gap: 12px;
        padding-bottom: 16px;
    }

    .design-preview-control .design-preview-btn {
        width: 100%;
        margin: 0;
    }

    .text-panel-text-area {
        width: 100%;
        padding: 0;
        border: none;
        outline: none;
    }

    .fullscreen-wrapper .text-panel-text-area {
        top: 56px;
    }

    .half-screen.active .addText-wrapper,
    .half-screen.active .design-form-wrapper {
        pointer-events: all;
    }
    
    
    .fullscreen-wrapper .js-custom-product-wrapper.show-text-selected .preview-container {
        transform: translateY(-45px)
    }

    .js-custom-product-wrapper.show-text-selected .text-panel-text-area {
        pointer-events: all !important
    }

    .mobile-text-header,
    .mobile-variant-header,
    .mobile-design-header {
        margin-bottom: 6px;
        font-weight: 500;
        color: var(--primary);
    }

    .mobile-text-header,
    .mobile-variant-header{
        margin: -10px !important;
        margin-bottom: 0px !important;
        padding: 10px !important;
        background-color: #e6e6e6 !important;
    }
    .mobile-variant-header {
        border-bottom: 1px solid #e1e1e1;
        padding-bottom: 6px;
    }

    .mobile-design-header {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        transform: translateY(-44px);
        padding: 10px;
        width: 100%;
        background-color: #e6e6e6 !important;
        margin: 0;
        margin-bottom: 10px;
    }

    .mobile-design-header.active {
        display: flex;
    }

    .close-box {
        color: var(--gray)
    }

    .mini-shopping-wrapper {
        z-index: 999999;
    }

    .mb-fake-space {
        display: flex;
        display: none;
        justify-content: center;
        align-items: center;
        background-color: #fff;
        position: relative;
        z-index: 211;
        width: 100%;
        order: 111;
        border-top: 1px solid #e1e1e1;
        padding: 10px;
        margin: 0;
    }

    .mb-fake-space > * {
        margin: 0 6px;
        font-weight: 500;
        font-size: 13px;
    }

    .submit-a-ticket {
        text-align: left;
    }

    #filter {
        width: 100%;
        padding: 16px;
    }

    .preview-loading {
        position: fixed;
        opacity: 0.6;
    }

    #custom-product-image .preview-loading {
        position: absolute;
    }

    .draft-preview {
        margin-bottom: 60px;
    }
    .draft-preview .save-draft-btn {
        width: 100% !important;
        bottom: -50px !important;
    }
    #mobile-save-draft .tab-content {
        width: 100%;
    }
    #mobile-save-draft .design-preview-btn.btn-success {
        right: 10px;
    }
    .modal-right-head-wrapper {
        display: flex;
        justify-content: flex-start;
        align-items: stretch;
        box-shadow: none;
        grid-gap: 8px;
        left: 0;
        padding: 0;
        min-height: 1px;
        border: none;
        margin-bottom: 12px;
    }


    .modal-right-head-wrapper::before,
    .modal-right-head::before {
        display: none;
    }


    .modal-right-head-item:first-child {
        width: 100%;
    }
    .filter-section-header {
        display: block;
        width: 100%;
        text-align: left;
        position: relative;
        padding: 6px 0;
        margin: 0 0 16px;
        color: var(--pr-color-secondary);
        font-size: 17px;
    }
    .filter-section-header .product-filter-variant-heading {
        color: var(--pr-color-secondary);
    }
    .filter-section-content .filter-child-category {
        margin-top: 0;
    }
    .filter-child-category li {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .filter-label span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }
    #custom-product .modal-left .filter-action.block-sm {
        background-color: #fff;
        padding: 12px 16px;
        box-shadow: 0 6px 36px rgba(11 11 11 / 20%);
        position: sticky;
        bottom: 0;
        left: 0;
    }
    
    #custom-product .filter-action .apply-button {
        padding: 14px 16px;
        width: 100%;
        background-color: var(--pr-color-secondary);
    }
    .modal-left.mobile.active {
        padding: 0;
    }

    .background-container {
        position: absolute;
        top: 0;
        left: 0;
    }

    .preview-item {
        height: 100%;
        width: 100%;
        position: relative;
    }

    .preview-item-title {
        text-align: center;
        width: fit-content;
        margin: 8px auto 0;
    }

    .preview-item-title .mockup-print-location-mobile {
        padding: 0;
    }

    .preview-item-title.active .mockup-print-location-mobile {
        padding: 3px 10px;
    }

    .product-variant-container,
    .upload-file-contain {
        width: 100%;
        height: 100%;
        left: 0;
        position: fixed;
        top: 0;
        z-index: 199;
        padding: 0 16px 100px;
        box-shadow: 0 6px 36px rgba(11 11 11 / 33%);
        display: none;
    }

    .upload-file-header,
    .share-header,
    .product-variant-header-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: calc(var(--pr-font-size-display4) +(20 - 18)*((100vw - 300px) /(1920 - 300)));
        padding: 12px 0;
        border-bottom: 1px solid #e1e1e1;
        position: relative;
        margin-bottom: 16px;
    }

    #right-column {
        flex-direction: row;
        padding: 10px 16px;
        z-index: inherit;
    }

    .mockup-print-location-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        grid-gap: 16px;
        padding: 0;
    }

    #previewModal {
        width: 90vw;
        left: 50%;
        z-index: 99;
        transform: translateX(-50%);
        -webkit-transform: translateX(-50%);
        -moz-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        -o-transform: translateX(-50%);
    }

    .list-variant-size {
        margin: 16px 0 0;
        width: 100%;
    }

    .variant-image {
        display: grid;
        grid-gap: 7px;
        max-width: 100%; /* Chiều rộng lưới */
        max-height: calc(4 * 42px + 3 * 7px); /* Giới hạn chiều cao lưới */
        overflow-x: auto; /* Cuộn ngang */
        grid-template-columns: repeat(8, 1fr); /* 8 item mỗi hàng */
        grid-auto-rows: auto; /* Tạo thêm hàng khi cần */
        grid-auto-flow: row; /* Tự động xuống hàng nếu đủ item */
    }

    .variant-image-gr-label {
        width: 47px;
        height: 47px;
    }

    .button-close-product,
    .share-header-close {
        padding: 6px;
        border: none;
        outline: none;
        background-color: transparent;
    }

    .design-form {
        margin-top: 20px;
    }

    .design-form-wrapper {
        top: 0;
        margin-bottom: 40px;
    }
    .configuration-control-btn {
        position: absolute;
        bottom: 12px;
        z-index: 2;
        width: 90%;
        left: 5%;
    }
    .back-screen {
        display: none;
    }
    .header-action {
        display: none;
    }

    .upload-design {
        height: auto;
    }

    .text-panel {
        margin-top: 10px;
    }

    #custom-product-image.other-product-visibility {
        width: 100%;
    }

}

/* tablet */
@media (min-width: 760px) and (max-width: 990px) and (orientation: portrait) {
    .multiple-size-list {
        max-height: fit-content;
    }
    /* #custom-product-menu .cyo-modal {
        left: 50%!important;
        top: 50%!important;
        transform: translate(-50%, -50%);
    } */
}
@media (min-width: 1023px) and (max-width: 1024px) { 
    .list-product-content {
        height: 363px;
        overflow-y: auto;
}
}
@media (min-width: 760px) and (max-width: 1000px) and (orientation: portrait) {
    #custom-product #SizeGuideModal,
    #custom-product .start-screen-wrapper,
    #custom-product .recently-designs {
        display: none;
    }
}

@media (min-width: 760px) and (max-width: 990px) and (orientation: portrait),
(min-width: 990px) and (max-width: 1179px) and (orientation: landscape) {
    .js-custom-product-wrapper {
        flex-wrap: wrap;
        width: 100vw;
        height: calc(100vh - 82px);
    }
    .text-panel-text-area {
        top: 140px;
    }

    .header-button-right {
        margin-left: auto;
    }

    .designer-header .header-button {
        padding-left: 16px;
        padding-right: 16px;
        width: 80px;
    }
    #custom-product-menu.active-sub-menu .custom-mobile-menu {
        transform: translateY(-70px);
    }
    #custom-product-menu {
        display: block;
        height: 70px;
        width: 100%;
        margin-bottom: 16px;
    }

    .custom-product-menu .button-text {
        font-size: 15px;
    }

    .modal-content .modal-left {
        width: 100%;
        position: static;
        box-shadow: none;
        border-radius: 0;
        transform: none;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        -ms-border-radius: 0;
        -o-border-radius: 0;
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        -o-transform: none;
    }

    .modal-content .list-product-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-span-full {
        grid-column: 1 / span 3;
    }

    #custom-product-menu .cyo-modal .modal-content.model-grid {
        display: grid;
        grid-template-columns: 1fr 2fr;
    }

    .product-left .filter-section-content {
        flex-wrap: wrap;
    }
    
    .product-left .filter-child-category li,
    .hot-topics-list .hot-topic {
        white-space: normal;
    }

    #custom-product .filter-action {
        border: none;
        display: none;
    }

    #custom-product-menu[class^="active-"] {
        z-index: 1234;
    }
    
    .popup-other-product.active {
        top: 0!important;
        left: 0!important;
        width: 100%!important;
        height: 100%!important;
        overflow-y: hidden!important;
    }
    .product-detail.active {
        bottom: 0!important;
        /* left: 0!important;
        width: 100%!important;
        height: 100%!important; */
    }
    #custom-product-menu .cyo-modal.half-screen.active {
        top: auto;
        height: fit-content;
        bottom: 0;
        z-index: 99;
        background-color: #fff;
        position: fixed;
        box-shadow: 0 6px 36px rgba(11 11 11 / 30%);
        border-radius: 16px 16px 0 0;
        -webkit-border-radius: 16px 16px 0 0;
        -moz-border-radius: 16px 16px 0 0;
        -ms-border-radius: 16px 16px 0 0;
        -o-border-radius: 16px 16px 0 0;
    }
    
    #custom-product-menu .cyo-modal.half-screen.active .font-list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 12px;
    }

    #custom-product .hot-topics-list {
        padding: 0;
    }

    .modal-left.product-left #filter {
        padding: 0;
        background-color: transparent;
    }
}
@media (width: 1024px) {
    #custom-product-menu .cyo-modal.half-screen.active {
        width: var(--cyoW);
        height: fit-content;
        background-color: #fff;
        position: absolute;
        top: 0;
        left: 100%;
        border-left: 1px solid #f1f1f1;
    }
    .content-product-list {
        height: 580px;
    }
}
@media (min-width: 990px) and (max-width: 1180px) and (orientation: landscape) {
    #custom-product-image {
        border-left: 10px solid #f1f1f1;
        border-right: 10px solid #f1f1f1;
    }

    #right-column {
        width: 310px;
    }

    #custom-product > .site-w {
        padding-left: var(--small-padding);
        padding-right: var(--small-padding);
    }

    .js-custom-product-wrapper {
        flex-wrap: unset;
    }

    .confirm-add2cart-wrapper, .multiple-size-selection-wrapper {
        position: absolute !important;
        top: 0 !important;
        bottom: unset !important;
        background-color: #fff;
        
    }
}
@media screen and (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
    .list-product-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 12px;
        height: 800px;
        overflow-y: auto;
    }

    .grid-span-full {
        grid-column: 1 / span 2;
    }
    .filter {
        height: 860px;
    }
    
    .half-screen.active {
        display: block;
        pointer-events: all;
        overflow-y: auto;
        top: auto!important;
        left: 0!important;
        width: 100%!important;
        height: auto!important;
    }
}
@media screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {
    .cyo-modal.active,
    .choose-products.active {
        display: block;
        pointer-events: all;
        overflow-y: auto;
        left: 0;
        top: 0;
        width: 100%!important;
        height: 100%!important;
        
    }
    .sidebar-modal.active {
        left: 100%!important;
        width: 300px !important;
    }
}

@supports (-webkit-touch-callout: none) { /* debug safari */
    @media (max-width: 990px) {
        .js-custom-product-wrapper {
            padding: 0px 0 130px;
        }  
    }
    @media (width: 1280px) {
        .content-product-list {
            width: 100%;
            padding: 0 10px;
            margin: 0;
            height: 730px;
            overflow-y: auto;
            font-size: 15px;
        }
    }

    @media (max-width: 760px) {

        .multiple-size-selection-footer {
            position: fixed;
            bottom: 0;
            width: 100%;
            padding: 20px;
            left: 0;
            z-index: 404;
            background-color: #fff;
        }

        .multiple-size-list {
            max-height: inherit;
        }

        .multiple-size-selection-content {
            max-height: calc(100vh - 145px);
            padding-bottom: 80px;
            overflow-y: auto;
        }
        .confirm-add2cart-wrapper, .multiple-size-selection-wrapper {
            position: fixed;
            top: inherit;
            bottom: 100px;
            z-index: 222222;
            background-color: #fff;
        }

        .button-prev svg,
        .button-next svg {
            width: 36px;
            height: 36px;
            min-width: 36px;
            min-height: 36px;
        }
    }
    
    @media (min-width: 1181px) and (max-width: 1450px) {
        
        #custom-product-menu .cyo-modal.half-screen.active {
            top: auto;
            height: fit-content;
            bottom: 0;
            z-index: 99;
            background-color: #fff;
            position: fixed;
            box-shadow: 0 6px 36px rgba(11 11 11 / 30%);
            border-radius: 16px 16px 0 0;
            -webkit-border-radius: 16px 16px 0 0;
            -moz-border-radius: 16px 16px 0 0;
            -ms-border-radius: 16px 16px 0 0;
            -o-border-radius: 16px 16px 0 0;
        }
    }
    @media (width: 1024px) {
        .content-product-list {
            height: 725px!important;
        }
        .filter {
            height: 420px;
        }
        .list-product-content {
            height: 460px;
        }
    }
    @media (width: 768px) {
        #custom-product-menu .cyo-modal.half-screen.active {
            top: auto;
            height: fit-content;
            bottom: 0;
            z-index: 99;
            background-color: #fff;
            position: fixed;
            box-shadow: 0 6px 36px rgba(11 11 11 / 30%);
            border-radius: 16px 16px 0 0;
            -webkit-border-radius: 16px 16px 0 0;
            -moz-border-radius: 16px 16px 0 0;
            -ms-border-radius: 16px 16px 0 0;
            -o-border-radius: 16px 16px 0 0;
        }
        #custom-product-menu .cyo-modal {
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
    }

}

@media (max-width: 375px) {
    .custom-product-menu {
        justify-content: flex-start;
    }

    .custom-product-menu {
        grid-gap: 5px;
    }

    .variant-image-item {
        width: calc(100vw / 7 - 6px);
        min-width: calc(100vw / 7 - 6px);
        height: calc(100vw / 7 - 6px);
        margin: 0;
    }

    .list-variant-size {
        margin-bottom: 8px;
    }

    #custom-product-image {
        background: transparent;
    }
}
@media (max-width: 366px) {
    .configuration-controls {
        display: grid;
        grid-gap: 6px;
    }
}
@media (max-width: 767px) {
    .modal-content {
        padding: 0;
    }
    .configuration-controls {
        padding: 10px;
    }
    .design-left .filter {
        max-height: calc(100vh - 40px);
        width: 100%;
    }
    .variant-image {
        display: flex;
        flex-wrap: wrap;
        grid-gap: 7px;
        max-width: 100%;
    }

    .variant-image.scroll {
        display: grid;
        max-height: calc(4* 42px + 3* 7px);
        overflow-x: scroll;
        grid-template-columns: auto;
        grid-auto-flow: column;
        grid-template-rows: auto auto auto;
    }


    .upload-left {
        position: sticky;
        display: inline;
    }
    /* .hot-topics-list {
        padding-bottom: 0px!important;
    } */
    .select-design-prevew-wraper.ng-scope {
        height: auto!important;
    }
    .select-design-prevew-wraper .select-design-preview {
        width: 85%;
        border-radius: 5px;
        left: 50%;
        transform: translate(-50%, 0%);
        position: relative;
    }

    .cyo-modal.choose-products.active,
    .cyo-modal.choose-design.active  {
        height: 100vh;
        top: 0
    }

    #custom-product .modal-left .filter-action.block-sm {
        background-color: #fff;
        padding: 12px 16px;
        box-shadow: 0 6px 36px rgba(11 11 11 / 20%);
        position: fixed;
        bottom: 0;
        left: 0;
        top: unset;
    }

    #custom-product .modal-left #filter {
        max-height: calc(100vh - 140px);
        margin-bottom: 70px;
    }

    .choose-products .modal-right-head-wrapper,
    .choose-design .modal-right-head-wrapper  {
        position: fixed;
        top: 40px;
    }
}


