.bejad-mix-builder {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid #e5e0d8;
    border-radius: 10px;
    background: #fffaf2;
}
.bejad-mix-builder h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: #2b2b2b;
}
.bejad-grain-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bejad-grain-row {
    border: 1px solid #e8e2d6;
    border-radius: 8px;
    background: #ffffff;
    padding: 12px 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.bejad-grain-row:has(.bejad-grain-toggle:checked) {
    border-color: #e6b400;
    box-shadow: 0 0 0 1px #e6b400 inset;
}
.bejad-grain-check {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}
.bejad-grain-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #e6b400;
}
.bejad-grain-check img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.bejad-grain-name {
    flex: 1;
    font-weight: 600;
    color: #2b2b2b;
    font-size: 15px;
}
.bejad-grinding-row td {
    font-weight: 600;
    background: #fffaf2;
}
.bejad-grain-price {
    font-size: 14px;
    color: #6b6259;
    white-space: nowrap;
}
.bejad-grain-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #eee2cf;
}
.bejad-qty-minus,
.bejad-qty-plus {
    width: 30px;
    height: 30px;
    border: 1px solid #d8cdb8;
    background: #fff;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: #2b2b2b;
}
.bejad-qty-minus:hover,
.bejad-qty-plus:hover {
    background: #fef3d9;
    border-color: #e6b400;
}
.bejad-qty-input {
    width: 70px;
    height: 30px;
    text-align: center;
    border: 1px solid #d8cdb8;
    border-radius: 6px;
    font-size: 14px;
    background: #faf7f0;
}
.bejad-line-total {
    margin-left: auto;
    font-weight: 700;
    color: #2b2b2b;
    font-size: 14px;
}
.bejad-summary {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e5e0d8;
}
.summeryhead {display: flex; flex-wrap: wrap; gap: 5px 10px; align-items: center;}
.bejad-summary h4 {
    margin: 0 auto 0px 0px;
    font-size: 15px;
    font-weight: 700;
    color: #2b2b2b;
}
.bejad-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.bejad-summary-table th {
    text-align: left;
    padding: 8px 10px;
    background: #f5efe1;
    color: #4a4335;
    font-weight: 600;
    border-bottom: 1px solid #e5e0d8;
}
.bejad-summary-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0ece2;
    color: #2b2b2b;
}
.bejad-empty-row td {
    text-align: center;
    color: #9a9184;
    font-style: italic;
}
.bejad-grand-total {
    margin-top: 14px;
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    color: #2b2b2b;
}
.bejad-grand-total span {
    color: #b3860b;
    margin-left: 6px;
}
.woocommerce-cart .cart_item .wc-item-meta,
.woocommerce-checkout .cart_item .wc-item-meta,
.wc-item-meta {
    display: block;
}
.wc-item-meta li {
    display: block;
    margin: 2px 0;
}
.bejad-mix-builder ~ .quantity {
    display: none;
}
.bejad-mix-error {
    color: #c0392b;
    font-size: 13px;
    margin-top: 8px;
}

.bejad-selection-summary {
    margin: 4px 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #6b6259;
}

.wc-block-components-product-details > span {
    display: block;
    margin: 3px 0;
}
.wc-block-components-product-details > span > span[aria-hidden="true"] {
    display: none !important;
}
span.wc-block-components-product-details__name {
    min-width: 65px;
    display: inline-block;
    font-size: 13px;
}
span.wc-block-components-product-details__value {
    font-size: 13px;
}
tr.bejad-grinding-row td {
    padding: 13px 14px !important;
    color: var(--text);
    background: var(--white);
    border: none;
    border-bottom: 1px solid var(--black-50) !important;
    vertical-align: middle;
}

tr.bejad-grinding-row td:first-child {
    color: var(--black-500);
    font-weight: 700;
}
tr.bejad-grinding-row td:nth-child(2) {
    text-align: right;
    color: var(--text);
    font-weight: 600;
}
tr.bejad-grinding-row td:nth-child(3) {
    text-align: right;
    color: var(--secondary);
    font-weight: 800;
    white-space: nowrap;
}

.bejad-grinding-label span{
    color: var(--secondary);
}

/* ===== KG / GM toggle — paste at the END of assets/css/bejad-mix.css ===== */

.bejad-qty-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bejad-grain-qty .bejad-qty-input {
    width: 84px;
    text-align: center;
    -moz-appearance: textfield;
}
.bejad-grain-qty .bejad-qty-input::-webkit-outer-spin-button,
.bejad-grain-qty .bejad-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Segmented KG | GM switch */
.bejad-unit-toggle {
    display: inline-flex;
    background-color: var(--red-50);
    border-radius: 8px;
    overflow: hidden;
    min-height: 34px;
}
.bejad-unit-opt {
    position: relative;
    margin: 0;
    cursor: pointer;
}
.bejad-unit-opt input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.bejad-unit-opt span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: var(--black-500);
    height: 100%;
    transition: background .15s, color .15s;
}
.bejad-unit-opt input:checked + span {
    background: #c8102e;
    color: #fff;
}
.bejad-unit-opt input:focus-visible + span {
    outline: 2px solid #c8102e;
    outline-offset: -2px;
}

.bejad-grain-qty .bejad-line-total {
    margin-left: auto;
    width: fit-content;
}

.bejad-qty-hint, .bejad-qty-msg {
    font-size: 12px;
    line-height: 1.4;
    width: 100%;
}
.bejad-qty-hint { color: #777; margin: 15px 0px 0px !important;}
.bejad-qty-msg  { color: #c8102e; font-weight: 600; margin: 8px 0px 0px !important;}

.snm-item-remark{width: 100%;
    margin: 20px 0 18px;
    background: #fffdf7;
    box-sizing: border-box;}
.snm-item-remark label{display:block;margin-bottom:8px;font-size:15px;font-weight:700;color:#c40000;letter-spacing:.2px;}
.snm-item-remark textarea{display:block;width:100%;min-height:90px;padding:12px 14px;background:#fff;border:1px solid #e6d9c3;border-radius:10px;font-size:14px;line-height:1.5;color:#1a1a2e;box-sizing:border-box;resize:vertical;box-shadow:none;transition:border-color .2s ease,box-shadow .2s ease;}
.snm-item-remark textarea::placeholder{color:#9a9486;}
.snm-item-remark textarea:focus{outline:none;border-color:#fcc419;box-shadow:0 0 0 3px rgba(252,196,25,.35);}
.snm-item-remark-note{display: block;
    margin-top: 0px;
    font-size: 13px;
    color: #7a7466;
    font-style: italic;
    font-weight: 500;}

.product_cat-customise button.single_add_to_cart_button.button.alt {
    margin-top: 15px !important;
}

@media (max-width: 480px) {
    .bejad-grain-check {
        flex-wrap: wrap;
    }
    .bejad-grain-price {
        width: 100%;
        margin-left: 52px;
    }
    .bejad-line-total {
        margin-left: 0;
        width: 100%;
        text-align: right;
    }

}