.brandgr-b2b-page {
    display: grid;
    gap: 24px;
}

.brandgr-b2b-form {
    margin: 0;
}

.brandgr-b2b__stack {
    display: grid;
    gap: 20px;
}

.brandgr-b2b__line {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) 180px;
    margin-bottom: 18px;
}

.brandgr-b2b__line--action {
    align-items: end;
}

.brandgr-b2b__panel-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.brandgr-b2b__panel-header form {
    margin: 0;
}

.brandgr-b2b__search {
    margin-bottom: 0;
}

.brandgr-b2b__search .field,
.brandgr-b2b-form .field {
    margin-bottom: 20px;
}

.brandgr-b2b-form textarea {
    min-height: 240px;
    resize: vertical;
}

.brandgr-b2b-form input[type='file'] {
    padding-top: 10px;
    padding-bottom: 10px;
}

.brandgr-b2b__results {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.brandgr-b2b__result {
    background: #fff;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    color: #333;
    display: flex;
    justify-content: space-between;
    padding: 12px 14px;
    text-align: left;
    width: 100%;
}

.brandgr-b2b__result:hover {
    border-color: #1979c3;
}

.brandgr-b2b-box {
    margin-bottom: 0;
}

.brandgr-b2b-box .box-content p:last-child {
    margin-bottom: 0;
}

.brandgr-b2b-product-cell {
    align-items: flex-start;
    display: flex;
    gap: 12px;
}

#brandgr-b2b-inventory-table .col.sku,
#brandgr-b2b-alerts-table .col.sku {
    width: 100px;
}

#brandgr-b2b-inventory-table .col.name,
#brandgr-b2b-alerts-table .col.name {
    min-width: 500px;
}

#brandgr-b2b-inventory-table .col.stock,
#brandgr-b2b-alerts-table .col.stock {
    width: 130px;
}

#brandgr-b2b-inventory-table .col.alert {
    width: 170px;
}

#brandgr-b2b-alerts-table .col.threshold {
    width: 160px;
}

.brandgr-b2b-product-cell__image {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    flex: 0 0 52px;
    height: 52px;
    object-fit: contain;
    padding: 4px;
    width: 52px;
}

.brandgr-b2b-product-cell__name {
    color: #333;
    line-height: 1.4;
}

.brandgr-b2b-inventory__alert .message {
    margin-top: 8px;
}

.brandgr-b2b-inventory__stock-form {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.brandgr-b2b-inventory__minus {
    appearance: none;
    align-items: center;
    background: #fff !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none;
    color: #333 !important;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.8rem;
    height: 32px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 32px;
}

.brandgr-b2b-inventory__minus:hover,
.brandgr-b2b-inventory__minus:focus {
    background: #fff !important;
    color: #333 !important;
}

.brandgr-b2b-inventory__form {
    margin: 0;
}

.brandgr-b2b-inventory__stepper {
    align-items: center;
    background: #fff;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    display: inline-flex;
    gap: 0;
    height: 32px;
    overflow: hidden;
    position: relative;
}

.brandgr-b2b-inventory__stepper > * + * {
    border-left: 1px solid #cfcfcf;
}

.brandgr-b2b-inventory__stepper-input,
.brandgr-b2b-inventory__stepper-value {
    align-items: center;
    appearance: none;
    background: #fff;
    border: 0;
    border-radius: 0 !important;
    box-shadow: none;
    color: #333;
    display: inline-flex;
    font-size: 1.4rem;
    font-weight: 400;
    height: 32px;
    justify-content: center;
    line-height: 30px;
    margin: 0;
    max-width: 56px;
    min-width: 56px;
    padding: 0;
    text-align: center;
    box-sizing: border-box;
    vertical-align: top;
}

.brandgr-b2b-inventory__stepper-input {
    appearance: none;
    background-image: none;
    border-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    box-shadow: none;
    display: block;
    -moz-appearance: textfield;
    -webkit-appearance: none;
}

.brandgr-b2b-inventory__stepper-value {
    border-radius: 0 !important;
}

.brandgr-b2b-inventory__stepper--stock .brandgr-b2b-inventory__stepper-value {
    min-width: 56px;
}

.brandgr-b2b-inventory__stepper--stock .brandgr-b2b-inventory__minus {
    border-left: 1px solid #cfcfcf !important;
}

.brandgr-b2b-inventory__reorder {
    margin: 0;
}

.brandgr-b2b-inventory__reorder-field {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    margin: 0;
}

.brandgr-b2b-inventory__reorder-field label {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.brandgr-b2b-inventory__qty-input {
    appearance: none;
    box-shadow: none;
    font-size: 1.4rem;
    font-weight: 400;
    height: 32px;
    max-width: 72px;
    min-width: 72px;
    text-align: center;
}

.brandgr-b2b-inventory__reorder-field .action {
    margin-top: 0;
}

.brandgr-b2b-alerts__number {
    color: #333;
    font-size: 1.4rem;
    font-weight: 400;
}

.brandgr-b2b-account-nav {
    margin-top: 16px;
}

.brandgr-b2b-account-link {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.brandgr-b2b-account-link__badge {
    align-items: center;
    background: #d62828;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 1.1rem;
    font-weight: 700;
    height: 18px;
    justify-content: center;
    line-height: 1;
    min-width: 18px;
    padding: 0 5px;
}

.account-shortcut-label-wrap {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.account-shortcut-alert-count {
    align-items: center;
    background: #d62828;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 1.1rem;
    font-weight: 700;
    height: 18px;
    justify-content: center;
    line-height: 1;
    min-width: 18px;
    padding: 0 5px;
}

.account-shortcut-alert-count[hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    .brandgr-b2b__line,
    .brandgr-b2b__line--action {
        grid-template-columns: 1fr;
    }

    .brandgr-b2b__panel-header {
        align-items: start;
        flex-direction: column;
    }
}
