.kd-carton-active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 10px;
    background: #e7f7ec;
    color: #1e7e34;
    border-radius: 3px;
}

.kd-carton-active small {
    font-size: 9px;
}

.main_color .summary div.kd-carton-info {
    border: 1px solid #1e7e34;
    width: fit-content;
    background: #ffffff;
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 8px 6px;
    border-radius: 3px;
    color: #1e7e34;
    min-width: 300px;
    clear: both;
}

.main_color .summary div.kd-carton-info > * {
    display: block;
}

.main_color .summary div.kd-carton-info > *::before {
    content: "\2713";
    margin-left: 6px;
}

.kd-carton-info[hidden] {
    display: none !important;
}

.kd-carton-quantity-note {
    margin: 0 0 6px;
    font-size: 11px;
    line-height: 1.5;
    padding: 6px;
    background: #747474;
    width: fit-content;
    border-radius: 3px;
    color: #FFF;
}

.kd-carton-quantity-note[hidden] {
    display: none !important;
}

.kd-carton-weight-bulk-conflict {
    margin: 8px 0;
    padding: 7px 9px;
    border: 1px solid #f0b849;
    border-radius: 3px;
    background: #fff8e5;
    color: #8a5a00;
    font-size: 12px;
    line-height: 1.6;
}

.kd-carton-retail-limit {
    margin: 8px 0;
    padding: 7px 9px;
    border: 1px solid #f0b849;
    border-radius: 3px;
    background: #fff8e5;
    color: #8a5a00;
    font-size: 12px;
    line-height: 1.6;
}

.kd-carton-wholesale-route {
    margin: 8px 0;
    padding: 8px 10px;
    border: 1px solid #72aee6;
    border-radius: 4px;
    background: #eef6ff;
    color: #135e96;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
}

.kd-carton-weight-bulk-disabled {
    cursor: not-allowed !important;
}

input.qty.kd-carton-invalid {
    border-color: #d63638 !important;
    outline: 1px solid #d63638;
}

/* Inline validation message */
.kd-carton-error {
    font-size: 12px;
    color: #b32d2e;
    background: #fdecea;
    border: 1px solid #f5c2c0;
    border-radius: 4px;
    padding: 4px 8px;
    margin: 4px 0 6px;
}

form.cart .quantity {
    width: 130px;
}

/* Badge must not break the quantity row layout */
.quantity .kd-carton-badge {
    display: block;
    clear: both;
    width: 100%;
    margin: 6px 0 0;
    white-space: normal;
    font-size: 10px;
    line-height: 1.6;
    direction: rtl;
    text-align: center;
}

/* Invalid state if needed */
input.qty:invalid {
    border-color: #dc3232;
    box-shadow: 0 0 2px rgba(220, 50, 50, .8);
}
