/*------------------ 
Frontend related CSS
------------------*/

.product.bulk-order-item {
    display: flex;
    align-items: flex-start;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    padding: 10px;
}

.product.bulk-order-item .info {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.product.bulk-order-item .image {
    margin-right: 20px;
}

.product.bulk-order-item .image img {
    width: 214px;
    height: 214px;
}

.product.bulk-order-item .text {
    flex-grow: 1;
}

.product.bulk-order-item .ordering {
    flex-grow: 2;
}

.table--ogrid {
    width: 100%;
    border-collapse: collapse;
}

.table--ogrid th, .table--ogrid td {
    border: 1px solid #ddd;
    padding: 8px;
}

/* Bulk Switch button styling */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(14px);
}

/* Bulk Label styling */
.bulk-order-toggle {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.toggle-label {
    margin-left: 10px;
    font-size: 14px;
    font-weight: bold;
}

/* Bulk Add to Cart button styling */
.bulk-add-to-cart-wrapper {
    position: relative;
    text-align: right;
    margin-bottom: 20px;
}

.bulk-add-to-cart {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: top 0.3s ease; /* Smooth transition */
}

.bulk-add-to-cart.fixed {
    position: fixed;
    top: 50px; /* Lowered position */
    right: 10px;
    backdrop-filter: blur(5px); /* Apply blur effect */
    z-index: 1000;
}