.login-cart-container {
    justify-content: flex-end;
    gap: 24px;
}

.close-menu{display: none}

.auth-wrapper{
    display: flex;
    align-items: center;
    transition: opacity 5s ease;
}

.burger-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: white;
    display: block;
}

.auth-link{
    display: flex;
    flex-direction: column;
}

@media (min-width: 541px) and (max-width: 768px) {
    .burger-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
    }

    .close-menu{
        display: inline!important;
        position: absolute;
        right: 5px;
        top: 5px;
        color: black;!important;
        cursor: pointer;
        z-index: 20;
    }

    .logo-chanas-index-wrapper{
        padding: 0!important;
    }

    .auth-wrapper.active {
        display: flex;
        flex-direction: column;
        width: 100%!important;
        background: white;
        transform: translateY(-40px);
        height: 150px;
        opacity: 1;
    }

    .auth-wrapper.active  :after{
        color: black!important;
    }
    .auth-wrapper > button{
        width: fit-content;
        border-color: #0b3e6f;
        color: #0b3e6f!important;
        margin: auto;
        z-index: 10;
    }
    .auth-wrapper.active .login-cart-container{
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        width: 100%;
    }

    .auth-wrapper.active a:first-child{
        color: white;
    }

    .cart-container *{
        color: black!important;
    }

    .auth-wrapper{
        display: none;
    }
}

@media (max-width: 540px) {
    body{
        background-position: unset!important;
        background-size: cover;
        background-attachment: fixed;
        background-repeat: no-repeat;

    }
    .login-cart-container a svg{
        transform: translateY(16px);
    }
    .burger-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
    }

    .cart-container{
        transform : translateY(25px)
    }

    .close-menu{
        display: inline!important;
        position: absolute;
        right: 5px;
        top: 5px;
        color: black;!important;
        cursor: pointer;
        z-index: 20;
    }

    .logo-chanas-index-wrapper{
        padding: 0!important;
    }

    .auth-wrapper.active {
        display: flex;
        flex-direction: column;
        width: 100%!important;
        background: white;
        transform: translateY(-15px);
        height: 150px;
        opacity: 1;
    }

    .auth-wrapper.active  :after{
        color: black!important;
    }
    .auth-wrapper > button{
        width: 80%;
        border-bottom: 1px solid lightgrey;
        margin: auto;
        z-index: 10;
    }
    .auth-wrapper.active .login-cart-container{
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        width: 100%;
        transform: translateY(-20px);
    }

    .auth-wrapper.active *{
        color: black;
    }

    .auth-wrapper{
        display: none;
    }
}

.login-cart-container,
.cart-container .icon-cart,
.edit-btn,
.remove-btn,
.cart-item .body,
.cart-footer .checkout-btn{
    display: flex;
    align-items: center;
}

.wrapper-simulations-cart{
    display: flex;
    flex-direction: column;
    gap: 8PX;
    height: calc(100% - 175px);
    overflow-y: auto;
}

.cart-container{
    color: white!important;
    cursor: pointer;
}

.cart-title{
    color: #0e3594;
    margin: 1rem 0;
}

.cart-container .icon-cart{
    transform: scale(2);
    margin-right: 12px;
    justify-content: center;
}

.cart-item{
    padding: 12px;
    width: 80%!important;
    border-radius: 8px;
    font-size: 13px!important;
    position: relative;
    background-color: white;
}
.cart-item .body{
    justify-content: space-between;
}

.cart-item .body p{
    margin: 0;
    padding: 0;
}

.cart-item .illustration{
    width: 65px;
    height: 50px;
    background-position: center;
    background-size: cover;
}

.cart-item .content{
    width: 65%;
}

.cart-item .unit-price{
    width: 25%;
    font-weight: bolder;
}

.cart-item .footer{
    margin-top: .75rem;
    margin-left: 61px;
}

.cart-item .footer button{
    outline: none;
    border: none;
    display: inline-block;
    background-color: inherit;
}

.edit-btn, .remove-btn,  .edit-btn svg, .remove-btn svg{
    font-size: 12px!important;
    text-decoration: underline;
    gap: 12px;
}

.edit-btn:hover, .remove-btn:hover{
    text-decoration: none;
}

.edit-btn{
    color: black!important;
    margin-right: 20px;
}

.remove-btn{
    color: red!important;
}

.cart-item .unit-checkout-btn{
    border: none;
    outline: none;
    position: absolute;
    bottom: 0;
    right: 0;
    transform: scale(2.5) translateX(calc(100%));
    background: #e8e7fd;
}

.cart-footer{
    width: 72.5%!important;
    position: fixed;
    bottom: 32px;
}
.cart-footer .checkout-btn{
    width: 100%;
    background-color: #0e3594;
    color: white;
    padding: 8px 0!important;
    justify-content: center;
    gap: 6px;
    outline: none;
    border: none;
    border-radius: 8px;
    margin-top: 12PX;
}

/***********************************  OFF CANVAS   ************************************/
.off-canvas {
    position: fixed;
    top: 0;
    right: 0;
    width: 550px;
    background-color: #e8e7fd;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    height: 100vh;
}

.off-canvas.open {
    transform: translateX(0);
}

.off-canvas-content {
    padding: 20px 20px 20px 40px;
    height: 100% !important;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    color: red;
    cursor: pointer;
    outline: none;
}

.close-btn:hover {
    color: #ccc;
}


/***********************************  CUSTOM ALERT   ************************************/
.custom-alert {
    position: relative;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    color: #fff;
    width: 80%;
    font-family: Arial, sans-serif;
}

.custom-alert-warning {
    background-color: #ffc107;
    color: #212529;
}

.custom-alert-message {
    display: inline-block;
    margin-right: 15px;
}

/***********************************  CUSTOM SCROLL BAR   ************************************/
::-webkit-scrollbar {
    width: 2px;
}

::-webkit-scrollbar-track {
    background: #c4c4c4;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: #484646;
    border-radius: 6px;
    border: 3px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #000000;
}

@media screen and (max-width: 540px) {
    /* Container */
    .login-cart-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 48px;
    }

    .wrapper-simulations-cart {
        height: calc(100% - 120px);
        padding: 0 8px;
        margin-top: 12px;
    }

    /* Cart Item */
    .cart-item {
        width: 100%!important;
        padding: 8px;
        font-size: 10px!important;
    }

    .cart-title{
        font-size: 16px!important;
    }

    .cart-item .body {
        flex-direction: row;
        align-items: center;
    }

    .cart-item .content, .cart-item .unit-price {
        text-align: left;
    }

    .cart-item .illustration {
        width: 50px;
        height: 40px;
    }

    .cart-item .footer {
        margin-left: 0;
    }

    .cart-item .unit-checkout-btn {
        transform: scale(2) translate(-10px, -5px);
    }

    /* Checkout Button */
    .cart-footer {
        width: 90%!important;
        padding: 0 8px;
        bottom: 16px;
    }

    .cart-footer .checkout-btn {
        padding: 12px 0!important;
    }

    /* Off-canvas Menu */
    .off-canvas {
        width: 100%;
    }

    .off-canvas-content {
        padding: 20px;
    }

    /* Custom Alert */
    .custom-alert {
        width: 100%;
    }
}

.backend_cart_animate .cart-container {
    overflow: visible;
}

.cart-pulse-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background-color: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    z-index: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

.icon-cart, .counter-header {
    position: relative;
    z-index: 1;
}