/* CSS for the sidecart */
.sidecart {
    position: fixed; /* Stay in place */
    right: -520px; /* Initially off-screen */
    top: 0;
    width: 520px; /* Full width */
    max-width: 100%;
    height: 100%; /* Full height */
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: right 0.3s ease; /* Smooth transition effect */
    z-index: 9876543212; /* Above the sidecart overlay */
}

.sidecart.show {
    right: 0; /* Slide in */
}



.sidecart-overlay {
    opacity: 0;
    visibility: hidden;
    position: fixed; /* Stay in place */
    top: 0;
    left: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
    transition: opacity 0.3s ease; /* Smooth transition effect */
    z-index: 9876543211; /* Below the sidecart */
}

.sidecart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sidecart-content {
    padding: 20px;
}

.close-btn {
    font-size: 36px;
    margin-left: 10px;
    cursor: pointer;
}

button.wc-forward {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: #007cba;
    color: white;
    border: none;
    cursor: pointer;
    text-decoration: none;
    margin-top: 20px;
}

button.wc-forward:hover {
    background-color: #005fa3;
}




/* Shipping indicator  */
.sidecart-shipping-indicator {
    font-size: small;
    padding: 10px;
    text-align: center;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e5e5e5;
}



.shipping-indicator-bar {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 80%;

    margin: 0 auto;

    background-color: #d6d6d6;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 5px;
    overflow: hidden;
}

.shipping-indicator-bar-fill {
    height: 5px;
    background-color: #191919;
}

.free-shipping-text {
    color: #16a34a;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.free-shipping-text .check-icon{
    width: 24px;
    height: 24px;

}


.sidecart {
    display: flex;
    flex-direction: column;
    /* height: 100vh; */
    height: 100%;
}

#sidecart-content {
    flex-grow: 1;
    overflow-y: auto;
}

.action-bar {
    border-top: 1px solid #eaeaea; /* optional: for visual separation */
    padding: 1rem;
    margin-top: auto;
    background-color: #fff; /* optional: for visual consistency */
}
