.cyo-modal {
    display: none;
}
.cyo-modal.active {
    display: block;
    pointer-events: all;
    overflow-y: auto;
}

.cyo-modal .cyo-modal-content {
    padding: 12px 16px;
}

.confirm-add2cart-wrapper {
    position: fixed;
}
.popup-modal {
    overflow: hidden;
}

.modal-design .list-product-content .product-detail {
    margin: 0;
}

#custom-product #SizeGuideModal.modal, 
#custom-product #StyleInfoModal.modal {
    z-index: 999999;
    padding-top: 10vh;
    max-height: 100vh;
}

#custom-product #SizeGuideModal .sg-modal-content, 
#custom-product #StyleInfoModal .modal-content {
    max-height: 80vh;
    overflow: auto;
}

.preview-item-blank {
    min-height: min(100vw, 615px);
    display: flex;
}

/* .header-navigation-wrapper {
    z-index: 99999;
} */

@media screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {
    .choose-products.active {
        position: fixed;
        top: 23px;
        left: calc(50% - 43vw)!important;
        width: 83vw!important;
        height: 80vh;
        z-index: 99;
        border-radius: 7px;
        box-shadow: 0 6px 36px rgba(11 11 11 / 16%);
        -webkit-border-radius: 7px;
        -moz-border-radius: 7px;
        -ms-border-radius: 7px;
        -o-border-radius: 7px;
    }
    
}

/* @supports not (-webkit-touch-callout :none) {
    @media (width: 1024px) {
        .list-product-content {
            height: 1150px;
        }
        .filter {
            height: 1210px;
        }
    }
} */
@media (min-width: 1024px) and (max-width: 1400px) {
       
    .cyo-modal-content {
        padding: 20px!important;
    }
    .make-change-popup-wrapper {
        margin-left: 0px;
    }
    .confirm-add2cart {
        min-width: 170px;
    }
}
@media (width: 1280px) {
    .confirm-add2cart {
        padding: 10px;
    }
}


@media (min-width: 768px) and (max-width: 990px) {
    .cyo-modal.active {
        display: block;
        pointer-events: all;
        /* overflow-y: auto; */
        position: fixed;
        padding-bottom: 20px;
    }
}

@media (min-width: 1400px) {
    .cyo-modal {
        width: var(--cyoW);
        height: 100%;
        background-color: #fff;
        position: absolute;
        top: 0;
        left: 100%;
        border-left: 1px solid #f1f1f1;
    }
}
@media (min-width: 760px) {
    .CreateYourOwnApp {
        /* min-height: calc(100vh - 114px); */
        min-height: calc(100vh - 200px);
        border-bottom: 1px solid #f1f1f1;
    }
    
    .cyo-modal {
        width: var(--cyoW);
        height: 100%;
        background-color: #fff;
        position: absolute;
        top: 0;
        left: 100%;
        border-left: 1px solid #f1f1f1;
    }
    
    .popup-modal {
        position: fixed;
        top: 30px;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 80vw;
        max-width: 1000px;
        height: fit-content;
        max-height: 80vh;
        overflow: auto;
        scrollbar-width: thin;
        z-index: 999999;
        border-radius: 7px;
        box-shadow: 0 6px 36px rgba(11 11 11 / 16%);
        -webkit-border-radius: 7px;
        -moz-border-radius: 7px;
        -ms-border-radius: 7px;
        -o-border-radius: 7px;
    }

    #custom-product-menu {
        z-index: 999999;
    }

    .modal-content {
        position: relative;
    }

    .modal-content.model-grid {
        display: grid;
        grid-template-columns: var(--leftC) var(--rightC);
        align-items: flex-start;
        grid-gap: var(--gap);
        padding: 0;
    }

    .modal-content > * {
        position: relative;
    }

    .modal-content.scrollable > * {
        overflow-y: auto;
    }

    .modal-left,
    .modal-right {
        max-height: calc(82vh - 80px);
        padding-right: 8px;
        overflow-y: auto;
    }

    .modal-content .modal-right {
        padding-right: 6px;
    }

    .search-item-wrapper {
        position: sticky;
        top: 0;
        left: 0;
        z-index: 1;
        background-color: #fff;
        padding: 0;
        margin-bottom: 12px;
        margin-top: 1px;
    }
    
    .popup-modal-background.active {
        position: fixed;
        display: block;
        top: 0;
        left: 0;
        z-index: 98;
        background-color: rgba(11 11 11 / 55%);
        width: 100%;
        height: 100%;
        opacity: 0.6;
    }

    .list-product-content {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .cyo-modal .cyo-modal-header {
        border-bottom: 1px solid #f1f1f1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 8px 4px 16px;
        height: 48px;
    }
    
    .cyo-modal-header-title {
        color: var(--primary);
        margin: 0;
        padding: 0;
        height: 22px;
    }
    
    .cyo-modal-header-close {
        border: none;
        outline: none;
        background-color: transparent;
        cursor: pointer;
        width: 36px;
        height: 36px;
        color: #aaa;
    }
    
    .cyo-modal-header-close:hover {
        color: var(--primary);
    }
    
    .list-variant-image .variant-image {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        grid-gap: 4px;
    }

    .product-detail.sidebar-modal {
        font-size: 16px;
    }
}
.mockup-location-button {
    display: none;
}

@media(min-width: 760px) and (max-width: 1200px) {
    .stickyFooter.lowZindex {
        z-index: 1 !important;
        pointer-events: none;
    }
}
 
@media (max-width: 760px) {
    .product-type-info-headline {
        min-height: 47px;
    }

    .cyoLoadingSideHeader {
        height: 47px;
        display: grid;
        grid-gap: 4px;
        border-bottom: 0;
    }
    .list-product-content {
        /* padding: 0 0 40px 0; */
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 12px;
        height: auto;
        /* margin-bottom: 50px; */
        max-height: calc(100vh - 230px);
        height: calc(100vh - 230px);
        width: 100%;
        overflow-y: auto;
        position: fixed;
        top: 98px;
    }

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

    .no-data-search {
        position: fixed;
        top: 98px;
    }

    .button-pagination {
        border: none;
        outline: none;
        background-color: transparent;
        font-size: 16px;
        width: 44px;
        height: 44px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #0973ba;
        top: 50%;
        transform: translateY(-50%);
        -webkit-transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        -o-transform: translateY(-50%);
}

    .button-prev {
        position: absolute;
        left: -20px;
    }

    .button-next {
        position: absolute;
        right: -20px;
    }

    .mockup-location-button {
        display: flex;
        justify-content: center;
        align-items: center;
        grid-gap: 10px;
        background-color: #fff;
        border: none;
        outline: none;
        border-radius: var(--large-padding);
        cursor: pointer;
        user-select: none;
        padding: 10px 16px;
        -webkit-border-radius: var(--large-padding);
        -moz-border-radius: var(--large-padding);
        -ms-border-radius: var(--large-padding);
        -o-border-radius: var(--large-padding);
        line-height: 16px;
        box-shadow: 0 2px 6px rgba(11 11 11 / 9%);
        width: fit-content;
        position: fixed;
        right: 12px;
        bottom: 150px;
    }
}

@media (min-width: 900px) {
    .list-product-content {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (min-width: 1100px) {
    .modal-right .list-product-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .list-modal-product-item:hover .product-modal-tile-name {
        color: var(--secondary);
    }

    .popup-modal {
        position: fixed;
        max-width: 1360px;
        inset: 0 !important;
        height: 100vh;
        transform: unset !important;
        width: 100vw;
        margin: auto;
        z-index: 999999;
        border-radius: 7px;
        box-shadow: 0 6px 36px rgba(11 11 11 / 16%);
        -webkit-border-radius: 7px;
        -moz-border-radius: 7px;
        -ms-border-radius: 7px;
        -o-border-radius: 7px;
        overflow-y: hidden !important;
    }

    .popup-modal .cyo-modal-content {
        height: calc(100% - 48px);
    }
}

@media(min-width: 1100px) and (max-width: 1366px) {
    .popup-modal {
        max-width: 1080px;
        max-height: 75vh;
    }
}

@media (min-width: 1600px) {
    .modal-right .list-product-content {
        grid-template-columns: repeat(5, 1fr);
    }

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

@media (width: 1280px) {
    .make-change-popup-wrapper {
        margin-left: -115px!important;
    }
}

@media (min-width: 760px) and (max-width: 1000px) and (orientation: portrait) {
    .list-variant-image .variant-image {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
    }
}

@media(min-width: 768px) and (max-width: 990px) {
    .cyo-modal.active {
        position: fixed;
        top: unset;
        left: unset !important;
        transform: unset !important;
        bottom: 62px;
        height: fit-content;
        z-index: 2345;
        width: 100%;
        background-color: #fff;
        padding: 0;
        box-shadow: 0 7px 42px rgba(11 11 11 / 33%);
        min-height: 25vw;
        border-radius: 15px 15px 0 0;
        -webkit-border-radius: 15px 15px 0 0;
        -moz-border-radius: 15px 15px 0 0;
        -ms-border-radius: 15px 15px 0 0;
        -o-border-radius: 15px 15px 0 0;
    }
}

@media(max-width: 767px) {
    .modal-right.modal-design {
        height: 100%;
    }

    .cyo-modal.choose-design .cyo-modal-content,
    .cyo-modal.choose-products .cyo-modal-content  {
        padding: 0;
    }

    .cyo-modal.choose-design .cyo-modal-content .modal-right-head-wrapper,
    .cyo-modal.choose-products .cyo-modal-content .modal-right-head-wrapper {
        padding: 12px 16px 0;
        width: 100%;
    }

    .cyo-modal.choose-design .cyo-modal-content .list-product-content,
    .cyo-modal.choose-products .cyo-modal-content .list-product-content {
        padding: 12px 16px;
    }

    .product-detail + .popup-modal-background.active,
    .popup-other-product + .popup-modal-background.active {
        position: fixed;
        display: block;
        top: 0;
        left: 0;
        z-index: 98;
        background-color: rgba(11 11 11 / 55%);
        width: 100%;
        height: 100%;
        opacity: 0.6;
    }
}

@media(min-width: 991px) and (max-width: 1180px) {
    .hot-topics-list .upload-file-item {
        display: inline-flex;
        width: 100px;
        min-width: 100px;
        margin-right: 5px;
    }
}

@media(max-width: 990px) {
    .cyo-modal.product-detail {
        margin-bottom: 0;
    }

    body:not(.change-zindex):not(.open-menu) .header-quicklink > .customer-desktop {
        z-index: 99999;
    }

    body.change-zindex-mb:not(.change-zindex):not(.open-menu) .header-quicklink > .customer-desktop {
        z-index: 1;
    }
}

@media(min-width: 991px) {
    #custom-product #customProductFooter {
        z-index: 999999;
        padding: 10px 16px;
    }
    #product-viewed-content,
    .topic-link-wrapper {
        position: relative;
        z-index: 0;
    }
}

@media(min-width: 1366px) {
    .cyoLoadingContentContent .cyoLoadingContentContentBox {
        align-items: center;
        max-height: calc(100vh - 190px);
    }
}
