/* Footer container */
.footer-total {
    padding: 12px 16px;
    background: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Arial, sans-serif;
}

/* Left section: Total Value text */
.footer-total-left {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Highlight the amount */
.footer-total-left #footer-total-price {
    font-weight: 700;
    color: #000;
}

/* Right section: Quantity + Done */
.footer-total-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Quantity container */
#footer-quantity {
    width: 50px;
    height: 32px;
    text-align: center;
    font-size: 16px;
    /* border: 1px solid #ccc; */
    border-radius: 6px;
    outline: none;
}

/* Quantity buttons (- / +) styling */
#footer-quantity::-webkit-inner-spin-button,
#footer-quantity::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Done button */
#footer-done-btn {
    padding: 6px 18px;
    background: #4CAF50; /* green button like screenshot */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    display: none;
}

/* Done button hover */
#footer-done-btn:hover {
    background: #45a049;
}


#footer-done-btn, #footer-quantity {
    user-select: none;
    display: none;
}

.drawer-default-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    gap: 10px;
}

#cart-footer-total {
    width: auto;
    margin: 0;
    margin-right: auto;
    background: #F0F6FF;     
    padding: 8px 12px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
}

.footer-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive styles for total value */
@media (max-width: 768px) {
    .drawer-default-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    #cart-footer-total {
        width: 100%;
        padding: 8px 10px;
        font-size: 14px;
        justify-content: center;
        text-align: center;
    }
    
    .footer-total-left {
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
    
    .footer-actions-row {
        justify-content: space-between;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .drawer-default-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    #cart-footer-total {
        width: 100%;
        padding: 8px;
        font-size: 13px;
        justify-content: center;
        text-align: center;
    }
    
    .footer-total-left {
        font-size: 13px;
        width: 100%;
        text-align: center;
    }
    
    .footer-total-left bold,
    .footer-total-left b {
        font-size: 13px;
    }
    
    .footer-actions-row {
        justify-content: space-between;
        width: 100%;
    }
}

