.product-name {
    display: grid;
    gap: 0.125rem;
}

.product-amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.data-table th.product-amount {
    text-align: right;
}

.product-row--inactive .person__name {
    color: var(--color-ink-mute);
}

.product-choices > legend {
    margin-bottom: 0.375rem;
}

.product-choices__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.product-support[hidden] {
    display: none;
}

.product-lines {
    margin: 0;
}

.product-lines__error {
    padding: 0 1.25rem 1rem;
}

.product-modules {
    min-height: 9rem;
    font-variant-numeric: tabular-nums;
}

.product-modules-list {
    display: grid;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-text {
    white-space: pre-line;
}

.facts--stacked {
    display: grid;
    gap: 0.625rem;
    margin-top: 0;
}

.facts--stacked dt {
    flex: none;
    width: 12rem;
}

.product-rates-note {
    margin-top: 0.5rem;
}

.product-prices .data-table__actions {
    white-space: nowrap;
}

.product-prices .data-table__actions form {
    display: inline-block;
}

.product-change {
    font-weight: 600;
}

.product-change--up {
    color: var(--color-success);
}

.product-change--down {
    color: var(--color-danger);
}

.product-history,
.product-prices {
    min-width: 100%;
}

.product-by::before {
    content: " · ";
    white-space: pre;
}

@media (max-width: 640px) {
    .product-amount {
        text-align: left;
        white-space: normal;
    }

    .product-by {
        display: block;
    }

    .product-by::before {
        content: none;
    }

    .facts--stacked dt {
        width: 7.5rem;
    }
}
