#baytonia-cart-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: white;
    transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none; /* Prevent clicks when hidden */
}

#baytonia-cart-popup.slide-up {
    transform: translateY(0%);
    opacity: 1;
    pointer-events: auto;
}

#cart-blur-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#cart-blur-overlay.active {
    opacity: 0.5;
    pointer-events: auto;
}

.baytonia-modal-content {
    background-color: #f7f7f7;
    margin: 0;
    padding: 10px;
    width: 100%;
    animation-name: modalopen;
    animation-duration: 0.4s;
}

.baytonia-modal-content .modal-buttons button{
    background-color: #000;
    color: #fff;
}

.modal-buttons {
    text-align: center;
    margin-top: 20px;
}

.modal-buttons button {
    margin: 5px;
    padding: 10px 20px;
    cursor: pointer;
}
a#continue-shopping-btn {
    margin: 5px;
    padding: 14px 20px;
    cursor: pointer;
    border: 1px solid #cccccc;
    color: #333333;
    font-weight:500;
    text-decoration:none;
    font-size:12px;
    border-radius: 3px;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@keyframes modalopen {
    from {opacity: 0}
    to {opacity: 1}
}
.related-products-slider {
    margin-top: 0px;
}

.related-product {
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #fff;
}
.baytonia-modal-content #popup-message{
    text-align: right;
}
#baytonia-cart-popup .glider.draggable {
    direction: inherit !important;
}
.baytonia-modal-content .section-title {
    text-transform: none;
    padding: 0 10px;
    text-align: end;
    font-size: 18px;
    margin: 1rem 0;
}
.baytonia-modal-content .products .product-item {
    padding: 10px;
    border-radius: 5px;
    background-color: #fff;
}
html[lang="ar"] .baytonia-modal-content .section-title {
    text-align: start;
}

@media screen and  (max-width: 767px) {
    .baytonia-modal-content {
        padding: 0 ;
    }
    .baytonia-modal-content #popup-message {
        padding: 10px 10px 10px 30px;
        border-bottom: 1px solid #e7e7e7;
        line-height: unset;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 16px;
        font-weight: 500;
        flex-direction: row-reverse;
        margin: 0px;
    }
    html[lang="ar"] .baytonia-modal-content #popup-message {
        flex-direction: row;
    }
    .baytonia-modal-content #popup-message:before{
        content:"";
        background-image: url("../img/check.png");
        background-size: 24px;
        width: 24px;
        height: 24px;
    }
    .baytonia-modal-content #baytonia-cart-popup-close {
        margin-right: 0;
        width: 40px;
        height: 40px;
        text-align: center;
        margin-top: 0;
        display: flex;
        align-items: center;
        text-align: center;
        justify-content: center;
        position: absolute;
        right: 0;
        color: #000;
    }
    .baytonia-modal-content .glider-contain{
        margin: 0;
        width: 100% !important;
    }
    .glider-track-flex {
        width: auto !important;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }
    .glider-track-flex .product-item {
        min-width: 160px !important;
        max-width: 480px !important;
    }
    a#continue-shopping-btn {
        margin: 0;
        padding: 10px 20px;
        cursor: pointer;
        border: 1px solid #cccccc;
        color: #333333;
        font-weight: 500;
        text-decoration: none;
        font-size: 12px;
        border-radius: 2px !important;
        font-size: 1em;
        width: calc(50% - 10px);
        line-height: 18px;
    }
    .baytonia-modal-content .modal-buttons button {
        font-size: 1em;
        background-color: #000;
        color: #fff;
        margin: 0;
        font-weight: normal;
        border: 0;
        border-radius: 2px !important;
        width: calc(50% - 10px);
        height: inherit;
        line-height: 18px;
        border: 1px solid #000;
    }
    .modal-buttons {
        text-align: center;
        margin-top: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
    #baytonia-cart-popup .amrelated-pack-wrapper .amrelated-content-wrapper .amrelated-pack-item {
        border-bottom: 0px;
    }
    #baytonia-cart-popup .amrelated-pack-item.-wide .amrelated-photo-container, .amrelated-pack-item .amrelated-photo-container {
        width: 100%;
    }
    #baytonia-cart-popup .amrelated-info .product.details.product-item-details{
        width: 100%;
    }
    #baytonia-cart-popup .amrelated-pack-wrapper .amrelated-title{
        padding: 0 10px !important;
    }
    #baytonia-cart-popup .glider-track-flex{
        overflow-x: scroll;
        gap: 10px;
        padding: 0 10px;
    }
    #baytonia-cart-popup .amrelated-pack-wrapper {
        margin-bottom: 0;
        border-top: 0px;
    }
    #baytonia-cart-popup .amrelated-read-more {
        display: none;
    }
    .baytonia-modal-content .amrelated-pack-wrapper .amrelated-title {
        flex-direction: row;
    }
    html[lang="ar"] .baytonia-modal-content .amrelated-pack-wrapper .amrelated-title {
        flex-direction: row;
    }

}

html[lang="ar"] #baytonia-cart-popup .glider.draggable {
    direction: rtl !important;
}
html[lang="ar"] .modal-buttons {
    direction: rtl;
}
html[lang="ar"] .baytonia-modal-content #baytonia-cart-popup-close {
  left: 0;
  right: inherit;
}
html[lang="en"] .baytonia-modal-content #popup-message {
    padding-left: 10px;
    padding-right: 30px;
    text-align: left;
    justify-content: start;
    flex-direction: row;
}
html[lang="en"] .baytonia-modal-content .section-title {
    text-align: left;
}
html[lang="en"] #baytonia-cart-popup .amrelated-pack-wrapper .amrelated-title  {
    flex-direction: row;
}
#baytonia-cart-popup .amrelated-pack-wrapper .amrelated-title {
    pointer-events: none;
}
#baytonia-cart-popup .amrelated-pack-wrapper .amrelated-title #countdown, 
#baytonia-cart-popup .amrelated-pack-wrapper .amrelated-title:after {
    display: none !important;
}
body.cart-popup-show > .loading-mask {
    z-index: 99999;
}
body.cart-popup-show .bayt-massenger {
    z-index: 9999;
}
body.cart-popup-show .success-popup {
    z-index: 10001;
}
body.cart-popup-show .modals-overlay {
    z-index: 10000;
}
#baytonia-cart-popup .amrelated-content-wrapper {
    margin-top: 15px;
}