.other-product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 16px;
}

.btn-add-other-product {
    background-color: var(--pr-color-addtocart);
    padding: 8px 16px;
    border-radius: var(--pr-radius-x-large);
    color: var(--white);
    font-size: 14px;
    width: 100%;
    border: none;
    flex: 0 0 calc(50% - 16px);
    cursor: pointer;
}

.btn-add-other-product:hover {
    background-color: var(--pr-color-addtocart-hover);
}

.btn-add-other-product.added {
    background-color: #47cccc;
}

.size-other-product {
    background-color: var(--white);
    border: 1px solid var(--flash);
    display: inline-block;
    font-size: 14px;
    width: 100%;
    margin: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, gray 50%), linear-gradient(135deg, gray 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 14px) 50%, calc(100% - var(--middle-padding));
    background-size: 5px 5px, 5px 5px, 1px calc(100% - var(--middle-padding));
    background-repeat: no-repeat;
    padding: 8px 16px;
    border-radius: var(--pr-radius-x-large);
    border-width: var(--pr-size-border-width-small);
    margin-left: 16px;
}
.other-product-action {
    display: flex;
    align-items: center;
    padding: 8px 0 6px;
    justify-content: space-between;
    grid-gap: 8px;
}

.other-product-title p {
    margin: 0;
}

.other-product-title .product-price {
    font-size: 16px;
}

.btn-make-change {
    font-size: 13px;
    color: #019adc;
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    transition: none;
}

.btn-make-change .loading {
    animation: lds-dual-ring 800ms linear infinite;
}

.btn-make-change svg {
    margin-right: 4px;
}

.other-product-title a {
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    width: 100%;
    font-size: 16px;
    line-height: 1.6;
    color: var(--pr-color-primary);
    font-weight: var(--pr-font-weight-heading);
    margin-bottom: 0;
}

.other-product-footer {
    display: none !important;
}

#custom-product-image .other-products-container {
    display: none;
}

#custom-product-image.other-product-visibility .other-products-container {
    display: block;
    position: absolute;
    top: 0;
    left: calc(var(--sidebar) + 36px);
    z-index: 3;
    background: #f8f8f8;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    width: calc(100% - calc(var(--sidebar) + 48px));
}

#custom-product-image.other-product-visibility {
    overflow: hidden;
    padding: 12px 16px 0 calc(var(--sidebar) + 36px);
}

.other-products-container .other-products-header {
    width: 100%;
    height: 46px;
    align-items: center;
    grid-gap: 12px;
    position: relative;
}

.other-products-container .other-products-header .back-slide,
.other-products-container .other-products-header .next-slide {
    width: 36px;
    height: 36px;
    color: #696969;
}

.other-products-container .other-products-header .back-slide:hover,
.other-products-container .other-products-header .next-slide:hover {
    color: #313131;
}

.other-products-container .other-products-header > div {
    cursor: pointer;
}

.other-products-header span {
    font-size: 1.17em;
    font-weight: 500;
}

.other-products-header-headline {
    padding: 0;
    font-size: 19px;
    color: var(--primary);
    margin: 0;
    display: block;
}

.other-product-link-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: block;
    background-color: #f4f4f4;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}
.other-product-link-image:before {
    content: "";
    display: block;
    padding-top: 100%;
}
.other-product-img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    mix-blend-mode: multiply;
    border-radius: 5px;
    object-fit: contain;
    object-position: center;
    font-size: 13px;
    font-weight: 400;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.other-products-container .canvas-container, .other-products-content .canvas-container {
    display: none;
}

.make-change-popup-wrapper {
    position: fixed;
    width: 350px;
    top: 40%;
    left: 50%;
    background-color: #fff;
    box-shadow: 0 3px 4px -1px rgb(0 0 0/20%), 0 5px 10px 0 rgb(0 0 0/14%), 0 1px 12px 0 rgb(0 0 0/10%);
    border-radius: 5px;
    border: none;
    z-index: 12;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 500px;
    /* transition: all 222ms ease-in-out; */
}

.make-change-popup-wrapper .variant-image.scroll {
    display: grid;
    grid-template-columns: auto;
    grid-auto-flow: column;
    grid-template-rows: auto auto;
    overflow-x: auto;
}

.make-change-popup-wrapper .image-wrapper-inner {
    max-height: 70px;
}

.make-change-popup-wrapper .image-wrapper-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.make-change-popup-content {
    padding: 20px;
}

.make-change-popup-header {
    padding: 0 8px;
    text-align: right;
}

.make-change-popup-header .close-update-item {
    font-weight: 700;
    font-size: 25px;
    float: right;
    position: absolute;
    width: 30px;
    height: 30px;
    top: 0;
    right: 0;
    z-index: 124;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

}

.make-change-popup-content .list-product-size-wrapper {
    margin: var(--pr-spacing-03) 0;
}

.close-update-item {
    cursor: pointer;
}

.btn-add-other-product .lds-dual-ring {
    --s: 20px;
}

/* body.make-change-visiblily {
    overflow: hidden;
} */

body.make-change-visiblily .make-change-popup-background {
    opacity: 1;
    pointer-events: all;
}

body.make-change-visiblily .make-change-popup-content {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
    z-index: 123;
    position: relative;
}

.make-change-popup-background {
    width: 100%;
    height: 100%;
    background: rgba(11 11 11/0.1%);
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 11;
    opacity: 0;
    pointer-events: none;
}

.list-size-variant {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    width: calc(100% - 100px);
}

.other-products-container .sku-chosen__variant-image-item {
    margin: 3px;
}

.content-product-list {
    width: 100%;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    font-size: 15px;
}

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

@media (min-width: 1440px) {
    .other-product-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

@media (min-width: 767px) and (max-width: 990px) {
    .image-select-wrapper {
        grid-template-columns: repeat(8,1fr);
    }
}
@media (max-width: 990px) {
    .active-other-product .cyo-modal .cyo-modal-content {
        padding: 12px 14px !important;
    }

    .active-other-product .cyo-modal-header > div {
        font-weight: 500;
        font-size: 16px;
        color: var(--primary);
    }
    
    .active-other-product .cyo-modal-header {
        justify-content: space-between;
    }

    .active-other-product .modal-content {
        padding: 0 !important;
    }

    .make-change-popup-wrapper .image-wrapper-inner {
        width: 100%;
        height: 70px;
    }

    .other-product-footer {
        display: flex !important;
    }
    .other-product-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 12px;
    }
    
    #custom-product-image.other-product-visibility,
    .modal-content-footer {
        overflow: hidden;
        padding: 0 14px;
    }
    
    .btn-add-other-product {
        flex: 0 0 30%;
    }
    .size-other-product {
        margin-left: 12px;
    }
    #custom-product-image .other-product-list img {
        height: auto;
    }
    .other-products-container {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #fff;
        z-index: 250;
        padding: 12px 16px;
        border-radius: 5px;
        transition: transform 300ms ease-in-out;
        transform: translateX(110%);
        pointer-events: none;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        flex-wrap: wrap;
        user-select: none;
        z-index: 9999;
    }
    #custom-product-image.other-product-visibility .other-products-container {
        pointer-events: all;
        transform: translateX(0);
    }
   
    .other-product-list {
        width: 100%;
        padding-bottom: 15px;
        margin: 0;
        /* height: calc(100vh - 100px); */
        height: 530px;
        overflow-y: auto;
        font-size: 15px;
    }
    
    .other-product-footer {
        width: 100%;
        margin-top: auto;
        height: 54px;
    }
    .other-product-footer .add-to-cart-btn {
        background-color: var(--pr-color-addtocart) !important;
        padding: 16px 27px !important;
        border-radius: var(--large-padding) !important;
        color: var(--white) !important;
    }

    .make-change-popup-background {
        content: "";
        width: 100%;
        height: 100vh;
        display: block;
        background: rgba(11,11,11,.3);
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        z-index: 10;
        opacity: 0;
        transition: all 300ms ease-in-out;
        pointer-events: none;
    }
    .make-change-popup-wrapper {
        top: auto !important;
        bottom: 110% !important;
        left: 0 !important;
        width: 100%;
        padding: 0;
        pointer-events: none;
        opacity: 0;
    }
    body.make-change-visiblily .make-change-popup-wrapper {
       bottom: 0 !important;
        pointer-events: all;
        opacity: 1;
    }
    .make-change-popup-content {
        background-color: #fff;
    }
    .make-change-popup-header .close-update-item {
        width: 30px;
        height: 30px;
        position: absolute;
        top: 0;
        right: 0;
        color: #444;
        z-index: 999;
        text-align: center;
        justify-content: center;
        display: flex;
    }
    
}
@media (max-width: 767px) {
    .make-change-popup-wrapper {
        margin-left: 0px;
    }
    .other-product-list {
        height: auto;
    }
}
@media (min-width: 768px) and (max-width: 990px) {
    .make-change-popup-wrapper {
        margin-left: 0px;
    }
    .other-product-list {
        height: 900px;
    }
}
@media (width: 1181px) {
    .content-product-list {
        height: 635px;
        padding-bottom: 20px;
    }
}
@media (width: 1024px) and (orientation: portrait) {
    .content-product-list {
        height: 568px;
    }
    .choose-products.active {
        display: block;
        pointer-events: all;
        overflow-y: auto;
        left: 0!important;
        top: 0;
        width: 100% !important;
        height: 100% !important;
    }
}
@media (width: 1024px) and (orientation: landscape) {
    .content-product-list {
        height: 444px;
    }
}
@media (width: 1024px) {
    .other-products-container {
        left: calc(var(--sidebar) + -60px)!important;
        width: calc(100% - calc(var(--sidebar) + -60px))!important;
    }
    
    .make-change-popup-wrapper {
        position: absolute;
        top: 55% !important;
        left: 75% !important;
        transform: translate(-50%, -50%);
    }
}
@media (width: 1280px) {
    .content-product-list {
        height: 575px;
    }
    .make-change-popup-wrapper {
        position: absolute;
        top: 55% !important;
        left: 55% !important;
        transform: translate(-50%, -50%);
    }
}

@media(max-width: 1180px) and (min-width: 768px) {
    #custom-product-image.other-product-visibility {
        height: 100%;
        width: 100% ;
        padding-left: 0 !important;
    }

    #custom-product-image.other-product-visibility .other-products-container {
        left: 0;
        width: 100%;
    }

    .other-products-container .other-products-header {
        width: 100%;
        justify-content: space-between;
    }

    .product-detail.cyo-modal.active {
        max-height: 86vh;
    }

}

@media(min-width: 1181px)  {
    .product-detail.cyo-modal.active + .popup-modal-background {
        display: none;
    }
}

/* @media(max-width: 767px)  {
    .product-detail.cyo-modal.active + .popup-modal-background {
        display: none;
    }
} */