.ba-box,
.ba-modal {
    --ba-text-500: #1e293b;
    --ba-text-400: #4b5462;
    --ba-line: #e9eaeb;
    --ba-green-500: #004a29;
    --ba-red: #ca3c3c;
}

.ba-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    padding: 16px 16px 2px;
    border: 1px solid var(--ba-line);
    overflow: hidden;
}

.ba-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: normal;
    color: var(--ba-text-500);
}

.ba-track {
    display: flex;
    gap: 10px;
    margin-inline-end: -16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-user-select: none;
    user-select: none;
}

.ba-track::-webkit-scrollbar {
    display: none;
}

.ba-card {
    display: flex;
    flex: none;
    align-items: center;
    width: 386px;
    max-width: calc(100% - 40px);
    min-height: 104px;
    color: var(--ba-text-500);
    text-decoration: none;
}

.ba-track .ba-card {
    padding-inline-end: 24px;
    border-inline-end: 1px solid var(--ba-line);
}

.ba-track .ba-card:last-child {
    padding-inline-end: 0;
    border-inline-end: 0;
}

.ba-card-image {
    display: block;
    flex: none;
    width: 104px;
    height: 104px;
    border-radius: 4px;
    overflow: hidden;
}

.ba-card-image .ba-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ba-card-body {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    align-self: stretch;
    padding: 8px 12px;
    line-height: normal;
}

.ba-card-details {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.ba-card-stock {
    flex: 1 1 0;
    min-width: 0;
}

.ba-card-price {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 8px;
}

.ba-card-name,
.ba-card-weight {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ba-card-amount {
    white-space: nowrap;
}

.ba-card-name,
.ba-card-amount {
    font-size: 16px;
    font-weight: 500;
}

.ba-card-stock {
    font-size: 12px;
    color: var(--ba-red);
}

.ba-card-weight {
    font-size: 14px;
    color: var(--ba-text-400);
}

.ba-card:hover .ba-card-name {
    color: var(--ba-green-500);
}

.ba-scrollbar {
    position: relative;
    flex: none;
    height: 4px;
    border-radius: 2px;
    background: var(--ba-line);
}

.ba-scrollbar[hidden] {
    display: none;
}

.ba-scrollbar-thumb {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    height: 100%;
    width: var(--ba-thumb-width, 100%);
    border-radius: 2px;
    background: var(--ba-green-500);
    transform: translateX(calc(-1 * var(--ba-thumb-offset, 0px)));
}

.ba-list {
    gap: 10px;
}

.ba-list .ba-card {
    width: 100%;
    max-width: none;
}

@media (max-width: 767px) {
    .ba-track .ba-card-image {
        width: 80px;
        height: 80px;
    }
}

@media (min-width: 1024px) {
    .ba-modal .zp-sheet {
        width: 500px;
    }

    .ba-list {
        padding: 0 24px;
    }
}
