.kd-weight-bulk {
    clear: both;
    margin: 1.5rem 0;
    padding: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    direction: rtl;
    overflow: hidden;
    background: #FFF;
}

.kd-weight-bulk [hidden] {
    display: none;
}

/* Notification icons are driven by per-element custom properties so a future
 * message can override its glyph/color without adding another selector. */
.kd-weight-bulk__icon-info {
    --kd-weight-bulk-icon: "\e81f";
    --kd-weight-bulk-icon-color: #2271b1;
}

.kd-weight-bulk__icon-info::before {
    content: var(--kd-weight-bulk-icon);
    margin-inline-end: .35rem;
    color: var(--kd-weight-bulk-icon-color);
    font-family: 'entypo-fontello';
    font-size: 1.1em;
    line-height: 1;
}

.kd-weight-bulk__empty--no-discount {
    --kd-weight-bulk-icon: "\e83e";
    --kd-weight-bulk-icon-color: #b32d2e;
    color: #b32d2e;
}

.kd-weight-bulk.is-stock-unavailable .kd-weight-bulk__help {
    display: none;
}

.kd-weight-bulk__header h3 {
    margin: 0 0 .35rem;
}

.kd-weight-bulk__help,
.kd-weight-bulk__mode-help,
.kd-weight-bulk__notice,
.kd-weight-bulk__empty {
    margin: .35rem 0 .75rem;
    font-size: .9em;
}

.kd-weight-bulk__mode-help {
    color: #50575e;
}

.kd-weight-bulk__notice {
    color: #2271b1;
}

.kd-weight-bulk__notice.is-error {
    color: #b32d2e;
}

.kd-weight-bulk__stock {
    margin: .35rem 0 .75rem;
    color: #50575e;
    font-size: .9em;
}

.kd-weight-bulk__stock.is-unavailable {
    color: #b32d2e;
}

.kd-weight-bulk__stock.is-unavailable::before {
    content: "\e83e";
    margin-inline-end: .35rem;
    color: #b32d2e;
    font-family: 'entypo-fontello';
    font-size: 1.05em;
    line-height: 1;
}

.kd-weight-bulk__table-wrap {
    overflow-x: auto;
}

.kd-weight-bulk__table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: .8rem;
}

.kd-weight-bulk__table th,
.kd-weight-bulk__table td {
    padding: .45rem .55rem;
    border-bottom: 1px solid #eee;
    text-align: center;
    white-space: nowrap;
}

.kd-weight-bulk__table tbody tr {
    cursor: pointer;
}

.kd-weight-bulk__table tbody tr,
.kd-weight-bulk__table tbody tr > td {
    background: #f9f9f9 !important;
    background-color: #f9f9f9 !important;
    color: #303030 !important;
}

.kd-weight-bulk__table tbody tr:hover,
.kd-weight-bulk__table tbody tr.is-selected {
    outline: 1px solid #666;
    outline-offset: -1px;
}

.kd-weight-bulk__table tbody tr:hover > td,
.kd-weight-bulk__table tbody tr.is-selected > td {
    background: #f9f9f9 !important;
    background-color: #f9f9f9 !important;
    color: #303030 !important;
    border-top: 1px solid #666 !important;
    border-bottom: 1px solid #666 !important;
}

.kd-weight-bulk__table tbody tr:hover > td:first-child,
.kd-weight-bulk__table tbody tr.is-selected > td:first-child {
    border-inline-start: 1px solid #666 !important;
}

.kd-weight-bulk__table tbody tr:hover > td:last-child,
.kd-weight-bulk__table tbody tr.is-selected > td:last-child {
    border-inline-end: 1px solid #666 !important;
}

.kd-weight-bulk__table tbody tr.is-disabled {
    color: #303030 !important;
    background: #f9f9f9 !important;
    cursor: not-allowed;
    opacity: .65;
}

.kd-weight-bulk__table tbody tr.is-disabled:hover {
    background: #f9f9f9 !important;
}

/* Disabled rows receive clicks (they show a message), so cancel the hover
 * highlight that normal rows get. */
.kd-weight-bulk__table tbody tr.is-disabled:hover {
    outline: 0;
}

.kd-weight-bulk__table tbody tr.is-disabled:hover > td {
    border-top: 0 !important;
    border-bottom: 1px solid #eee !important;
}

.kd-weight-bulk__table tbody tr.is-disabled:hover > td:first-child {
    border-inline-start: 0 !important;
}

.kd-weight-bulk__table tbody tr.is-disabled:hover > td:last-child {
    border-inline-end: 0 !important;
}

.kd-weight-bulk__picker {
    display: inline-flex;
    align-items: center;
    direction: ltr;
    margin-top: 4px;
    margin-right: 3%;
}

.kd-weight-bulk__picker button {
    width: 2.45rem;
    height: 2.45rem;
    padding: 0;
    cursor: pointer;
}

.kd-weight-volume {
    height: 2.45rem;
    text-align: center;
}

.kd-weight-volume.no-spin-num,
.kd-weight-volume.no-spin-num::-webkit-inner-spin-button,
.kd-weight-volume.no-spin-num::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
}

.kd-weight-volume.no-spin-num {
    -moz-appearance: textfield !important;
}

#top .kd-weight-bulk__picker .kd-weight-volume {
    width: 2.45rem;
    margin: 0;
}

.kd-weight-volume.is-invalid {
    border-color: #b32d2e;
}

.kd-weight-bulk__price {
    display: inline-block;
    margin: 0 .75rem .65rem 0;
    font-size: .9em;
}

.kd-weight-add {
    display: block;
}

.single-product .container_wrap.template-shop[class*="sidebar"] .kd-weight-add {
    float: none;
}

.kd-weight-bulk.is-disabled {
    opacity: .8;
}

.kd-weight-bulk-cart-quantity--derived {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
}

.kd-weight-bulk-cart-quantity--derived .qty {
    width: 3.2rem;
    text-align: center;
    opacity: .75;
    cursor: not-allowed;
}

.kd-weight-bulk-cart-quantity__help,
.kd-weight-bulk-cart-quantity__edit {
    display: block;
    font-size: .78em;
    line-height: 1.35;
    white-space: normal;
}

.kd-weight-bulk-cart-quantity__help {
    color: #50575e;
}

.kd-weight-bulk-cart-quantity__edit {
    color: #2271b1;
    text-decoration: underline;
}

/* Internal placeholder consumed by Almas Carton's quantity logic. */
.kd-carton-info[data-kd-carton-proxy] {
    display: none !important;
}
