#cartajax-overlay
{
    position : fixed;
    left : 0;
    top : 0;
    z-index : 65533;
    background : url('../images/cartajax-loading.gif') no-repeat center center white;
    opacity : 0.5;
    filter:alpha(opacity=50);
}

#cartajaxCartModal, #cartajaxWishlistModal {
    color: #111111;
    z-index: 10000000;
}
#block_price_cp {
    color: #111111;
}
#cartajaxCartModal .modal-header, #cartajaxCartModal .modal-footer,
#cartajaxWishlistModal .modal-header, #cartajaxWishlistModal .modal-footer {
    padding: 20px 0;
    margin: 0 15px;
}
#product_added_to_cart
{
	
	position: relative;
}

#product_added_to_cart a
{
	position: absolute;
	bottom: 0;
}

#product_added_to_cart a.cart
{
	right: 0;
}
.cart_popup_item h6{
    font-size: 1.3rem;
}
.cart_popup_item .info{
    width: 65%;
}
.cart_popup_item .img{
    width: 45%;
    text-align: center;
}
.cart_popup_item .image{
    width: 140px;
}
.cart_popup_item .price{
    font-size: 24px;
    line-height: 100%;
    font-weight: 600;
    color: #e30613;
}
.modal-footer {
    justify-content: space-between;
}

.cart_popup_item .attr_act .name{
    width: 100px;
}

.modal-dialog{
    margin-top: 15%;
}

.modal-dialog .btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: black;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='black'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.5;
}
.modal-dialog .btn-close:hover {
    color: black;
    text-decoration: none;
    opacity: 0.75;
}
.modal-dialog .btn{
    font-size: 18px;
    border-radius: 2px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -ms-border-radius: 2px;
    -o-border-radius: 2px;
}
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: black;   
}
.modal-backdrop.show {
    opacity: 0.7;
}
.modal-backdrop.fade {
    visibility: visible;
}  
#cartajaxCartModal .modal-footer button:first-child,
#cartajaxWishlistModal .modal-footer button:first-child {
    background-color: #fff;
    color: #12386b;
    border: 1px solid #12386b;
    font-weight: 600;
}

.modal-dialog .modal-header {
    align-items: center;
}

@media (max-width: 560px) {
    .modal-dialog{
        margin: 0px;
        margin-top: 0px;
    }
    .modal-content{
        min-height: 100vh;
        border:0px;
        border-radius: 0px;
    }
    .modal-dialog h3{
        padding-top: 15%;
        margin-right: -20px;
        font-size: 1.5rem;
        text-align: center;
    }
    .cart_popup_item h6{
        font-size: 1.2rem;
    }
    .cart_popup_item.d-flex {
        flex-wrap: wrap;
    }
    .modal-footer{
        display: block;
    }
    .modal-footer .btn{
        width: 100%;
        margin-bottom: 10px;
    }
    .modal-footer > :not(:last-child) {
        margin-right: 0;
    }
    .modal-footer > :not(:first-child) {
        margin-left: 0;
    }
    .cart_popup_item .image{
        width: 160px;
        margin-bottom: 15px;
    }
    .cart_popup_item .img {
        width: 100%;
    }
    .cart_popup_item .info{
        width: 100%;
        text-align: center;
    }
    .cart_popup_item .attr_act .name{
        width: 50%;
        text-align: right;
        padding-right: 15px;
    }
    .cart_popup_item .price{
        justify-content: center;        
    }
	#cartajaxCartModal .modal-footer, #cartajaxWishlistModal .modal-footer{
        padding-bottom: 3rem;
    }
    .modal-dialog .modal-header {
        align-items: flex-start;
    }
}