#sb_popup {
    text-align: center;
    overflow: hidden;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0; /* z-index: 1050; */
    -webkit-overflow-scrolling: touch;
    outline: 0;
    opacity: 0;
    -webkit-transition: opacity 0.15s linear, z-index 0.15;
    -o-transition: opacity 0.15s linear, z-index 0.15;
    transition: opacity 0.15s linear, z-index 0.15;
    z-index: -1;
    overflow-x: hidden;
    overflow-y: auto;
}

#sb_popup.model-open {
    z-index: 99999;
    opacity: 1;
    overflow: hidden;
}

.sb-popup-wrapper {
    -webkit-transform: translate(0, -25%);
    -ms-transform: translate(0, -25%);
    transform: translate(0, -25%);
    -webkit-transition: -webkit-transform 0.3s ease-out;
    -o-transition: -o-transform 0.3s ease-out;
    transition: -webkit-transform 0.3s ease-out;
    -o-transition: transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
    transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
    display: inline-block;
    vertical-align: middle;
    width: 700px;
    margin: 30px auto;
    max-width: 97%;
}

.sb-popup-container {
    display: block;
    width: 100%;
    position: relative;
    background-color: #fff;
    border: 1px solid #999;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    background-clip: padding-box;
    outline: 0;
    text-align: left;
    padding: 20px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

#sb_popup.model-open .sb-popup-wrapper {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    transform: translate(0, 0);
    position: relative;
    z-index: 999;
}

#sb_popup.model-open .bg-overlay {
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
}

.bg-overlay {
    background: rgba(0, 0, 0, 0);
    height: 100vh;
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    -webkit-transition: background 0.15s linear;
    -o-transition: background 0.15s linear;
    transition: background 0.15s linear;
}

.close-btn {
    position: absolute;
    right: 0;
    top: -30px;
    cursor: pointer;
    z-index: 99;
    font-size: 30px;
    color: #fff;
}

#sb_popup .sb-product {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

#sb_popup .sb-product .page-title {
    margin-bottom: 16px;
}

#sb_popup .sb-product .price-box {
    padding: 16px 0;
}

.sb-popup .sb-product .product-left {
    max-width: 100%;
}


.sb-popup .sb-product .product-add-form select {
    width: 100%;
}

.sb-popup .modal-buttons {
    margin-top: 16px;
}

.sb-popup-container .sb-popup > ul {
    overflow: auto;
}

#sb_popup .sb-popup-container {
    left: 0;
    padding: 0;
    width: 90%;
    margin: 0 auto;
}

#sb_popup .sb-popup-container .sb-popup {
    margin: 0;
    width: 100%;
}

.simplebundle {
    display: flex;
    flex-direction: column-reverse;
}

.simplebundle .simplebundle-selection {
    display: flex;
    width: 100%;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.simplebundle .simplebundle-selection-item {
    margin-bottom: 16px;
    border: 1px solid #f3f4f6;
    padding: 5px;
}

.simplebundle .simplebundle-infos {
    width: 100%;
    text-align: center;
}

.block-actions button {
    margin: 0 auto;
}

.simplebundle .simplebundle-plus {
    display: flex;
    align-items: center;
    padding-top: 0;
}

.simplebundle-selection .simplebundle-selection-item .simplebundle-pic {
    display: flex;
    align-items: flex-end;
    height: 100%;
}

#ajax-loader.active {
    background: rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#ajax-loader .loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #d2b069;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media screen and (min-width: 400px) {
    .simplebundle .simplebundle-infos {
        width: 180px;
        margin: 10px auto;
    }
}

@media screen and (min-width: 600px) {
    .simplebundle {
        flex-direction: row-reverse;
        flex-wrap: wrap;
        gap: 16px;
        align-items: flex-start;
    }

    .simplebundle .simplebundle-selection {
        flex: 1;
        justify-content: center;
    }

    .sbundle-description {
        width: 100%;
    }

    #sb_popup .sb-product {
        flex-direction: row;
    }

    .simplebundle .simplebundle-infos {
        margin-top: 0;
    }
}


@media screen and (min-width: 800px) {
    #sb_popup:before {
        content: "";
        display: inline-block;
        height: auto;
        vertical-align: middle;
        margin-right: -0px;
        height: 100%;
    }
}

@media screen and (max-width: 799px) {
    .sb-popup-wrapper {
        margin-top: 45px;
    }
}

.simplebundle-pic .simplebundle-pic-qty {
    width: 40px;
    height: 40px;
    border-radius: 100px;
    padding-top: 8px;
}


@media screen and (min-width: 1024px) {
    .simplebundle .simplebundle-selection {
        justify-content: start;
    }

    .sb-popup {
        padding: 30px;
    }
}
