.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;
}

.no-data-search {
    text-align: center;
}

.custom-menu-cart-item .custom-product-menu-button .button-text {
    color: #F60;
}

/* .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;
    }

    .layer-modal + .popup-modal-background.active {
        display: none;
    }
    
    .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 .cyo-modal-header-wrapper {
        display: flex;
        flex-direction: column;
    }

    .cyo-modal .cyo-modal-header .cyo-modal-header-title {
        font-size: 16px;
        height: auto;
        line-height: 1;
        font-weight: 600;
    }

    .cyo-modal .cyo-modal-header .cyo-modal-header-subtitle {
        font-size: 13px;
        margin: 4px 0 0 0;
        width: 100%;
    }

    .cyo-modal .cyo-modal-header:has(.cyo-back-btn) {
        height: auto;
    }
    
    .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(8, 1fr);
        grid-gap: 7px;
    }

    .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;
    }

    #main-header .header-search-icon {
        width: 24px;
        min-width: 24px;
    }
}

@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);
    }
}

.bestseller-action {
    opacity: 0;
    pointer-events: none;
}

/* Shippng step */
.shipping-info-step {
    display: grid;
    grid-template-columns: 20px minmax(0,1fr);
    grid-gap: 0 6px;
    align-items: center;
    line-height: 1;
    font-size: 13px;
    font-weight: 400
}

.shipping-info-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    grid-row: 1/span 2;
    background-color: #ffcd8a;
    background-repeat: no-repeat;
    background-position: center
}

.shipping-info-step:nth-child(1) .shipping-info-dot {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M10.3851 1.62101L9.05181 0.921312C7.88139 0.307104 7.29618 0 6.66667 0C6.03715 0 5.45194 0.307103 4.28153 0.92131L4.06705 1.03387L10.0157 4.43312L12.6935 3.09421C12.2627 2.60633 11.5676 2.24156 10.3851 1.62101Z' fill='white'/%3E%3Cpath d='M13.1656 3.97623L10.5 5.30902V7.33333C10.5 7.60948 10.2761 7.83333 10 7.83333C9.72386 7.83333 9.5 7.60948 9.5 7.33333V5.80902L7.16667 6.97568V13.2693C7.64528 13.1501 8.18984 12.8644 9.0518 12.412L10.3851 11.7123C11.8196 10.9596 12.5368 10.5832 12.9351 9.90684C13.3333 9.2305 13.3333 8.38889 13.3333 6.70566V6.62767C13.3333 5.3659 13.3333 4.57705 13.1656 3.97623Z' fill='white'/%3E%3Cpath d='M6.16667 13.2693V6.97568L0.167759 3.97623C0 4.57705 0 5.3659 0 6.62767V6.70566C0 8.38889 0 9.2305 0.398265 9.90684C0.796528 10.5832 1.51375 10.9596 2.94818 11.7123L4.28153 12.412C5.14349 12.8644 5.68805 13.1501 6.16667 13.2693Z' fill='white'/%3E%3Cpath d='M0.639795 3.09421L6.66667 6.10765L8.94077 4.9706L3.01638 1.58523L2.9482 1.62101C1.7657 2.24156 1.0706 2.60633 0.639795 3.09421Z' fill='white'/%3E%3C/svg%3E")
}

.shipping-info-step:nth-child(3) .shipping-info-dot {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 14 14' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M6.66667 0C4.15251 0 2.89543 0 2.11438 0.781049C1.40565 1.48978 1.34003 2.59046 1.33395 4.66667H0.666667C0.298477 4.66667 0 4.96514 0 5.33333V6C0 6.20984 0.0987961 6.40743 0.266667 6.53333L1.33333 7.33333C1.33941 9.40954 1.40565 10.5102 2.11438 11.219C2.27584 11.3804 2.45763 11.5085 2.66667 11.6101V12.6666C2.66667 13.0348 2.96514 13.3333 3.33333 13.3333H4.33333C4.70152 13.3333 5 13.0348 5 12.6666V11.9877C5.48471 12 6.03616 12 6.66667 12C7.29718 12 7.84863 12 8.33333 11.9877V12.6666C8.33333 13.0348 8.63181 13.3333 9 13.3333H10C10.3682 13.3333 10.6667 13.0348 10.6667 12.6666V11.6101C10.8757 11.5085 11.0575 11.3804 11.219 11.219C11.9277 10.5102 11.9939 9.40954 12 7.33333L13.0667 6.53333C13.2345 6.40743 13.3333 6.20984 13.3333 6V5.33333C13.3333 4.96514 13.0349 4.66667 12.6667 4.66667H11.9994C11.9933 2.59046 11.9277 1.48978 11.219 0.781049C10.4379 0 9.18082 0 6.66667 0ZM2.33333 5C2.33333 5.94281 2.33333 6.41421 2.62623 6.70711C2.91912 7 3.39052 7 4.33333 7H6.66667H9C9.94281 7 10.4142 7 10.7071 6.70711C11 6.41421 11 5.94281 11 5V3.33333C11 2.39052 11 1.91912 10.7071 1.62623C10.4142 1.33333 9.94281 1.33333 9 1.33333H6.66667H4.33333C3.39052 1.33333 2.91912 1.33333 2.62623 1.62623C2.33333 1.91912 2.33333 2.39052 2.33333 3.33333V5ZM2.83333 9.33333C2.83333 9.05719 3.05719 8.83333 3.33333 8.83333H4.33333C4.60948 8.83333 4.83333 9.05719 4.83333 9.33333C4.83333 9.60947 4.60948 9.83333 4.33333 9.83333H3.33333C3.05719 9.83333 2.83333 9.60947 2.83333 9.33333ZM10.5 9.33333C10.5 9.05719 10.2761 8.83333 10 8.83333H9C8.72386 8.83333 8.5 9.05719 8.5 9.33333C8.5 9.60947 8.72386 9.83333 9 9.83333H10C10.2761 9.83333 10.5 9.60947 10.5 9.33333Z' fill='white'/%3E%3C/svg%3E")
}

.shipping-info-step:nth-child(5) .shipping-info-dot {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 13 14' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.67099 3.1766C3.67093 3.17329 3.6709 3.16998 3.6709 3.16667V2.5C3.6709 1.11929 4.79019 0 6.1709 0C7.55161 0 8.6709 1.11929 8.6709 2.5V3.16667C8.6709 3.16998 8.67087 3.17329 8.6708 3.1766C9.52896 3.20236 10.0541 3.29493 10.455 3.62765C11.0104 4.08863 11.1567 4.86892 11.4493 6.42951L11.9493 9.09618C12.3608 11.2906 12.5665 12.3879 11.9667 13.1106C11.3669 13.8333 10.2506 13.8333 8.01785 13.8333H4.32393C2.09122 13.8333 0.974867 13.8333 0.375055 13.1106C-0.224756 12.3879 -0.0190248 11.2906 0.392437 9.09618L0.892437 6.42951C1.18505 4.86892 1.33135 4.08863 1.8868 3.62765C2.2877 3.29493 2.81282 3.20235 3.67099 3.1766ZM4.6709 2.5C4.6709 1.67157 5.34247 1 6.1709 1C6.99933 1 7.6709 1.67157 7.6709 2.5V3.16667C7.6709 3.16667 7.6709 3.16666 7.6709 3.16667C7.62072 3.16665 7.56971 3.16667 7.51785 3.16667H4.82393C4.77208 3.16667 4.72107 3.16667 4.6709 3.16668C4.6709 3.16668 4.6709 3.16669 4.6709 3.16668V2.5ZM8.48323 6.44292C8.69887 6.61542 8.73383 6.93007 8.56132 7.1457L5.89465 10.479C5.80581 10.5901 5.67387 10.6581 5.53187 10.6659C5.38987 10.6738 5.25123 10.6208 5.15067 10.5202L3.81733 9.1869C3.62207 8.99164 3.62207 8.67506 3.81733 8.4798C4.0126 8.28454 4.32918 8.28454 4.52444 8.4798L5.46254 9.4179L7.78045 6.521C7.95296 6.30537 8.2676 6.27041 8.48323 6.44292Z' fill='white'/%3E%3C/svg%3E")
}

.shipping-info-step.is-active .shipping-info-dot {
    background-color: #ff7300
}

.shipping-info-date {
    padding-left: 0;
    color: #444;
    font-size: 12px
}

.shipping-info-line {
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg,#fff8ec 0,#ff7f0b 100%);
    flex: 1;
    margin: 18px 4px 0;
    min-width: 10px
}

.shipping-info-timeline {
    display: flex;
    align-items: flex-start;
    grid-gap: 0;
    display: none; /* khi nào làm chức năng này thì bỏ dòng này đi */
}

.shipping-info-label {
    font-weight: 500;
    color: #000;
    line-height: 1.4;
    margin-bottom: 4px
}

.shipping-info-step.is-active .shipping-info-date {
    color: #444
}

.product-detail-row.product-delivery .product-row-text {
    padding-left: 8px;
}
