/* Compact per-card prices, independent of Tailwind's runtime compilation. */
.customer-unit-price {
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: #a7f3d0;
}
#cartModal .quote-selection-summary > .customer-selection-chip {
    display: inline-flex;
    align-items: baseline;
    gap: .3rem;
    min-width: 0;
    max-width: 100%;
}
.customer-selection-chip .customer-selection-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.customer-selection-chip .customer-unit-price {
    flex: 0 0 auto;
    font-size: 10px;
}
.customer-slot-price-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .2rem .4rem;
    min-width: 0;
    margin-top: .25rem;
    font-size: 10px;
}
.customer-slot-price-line .customer-slot-variant {
    min-width: 0;
    overflow-wrap: anywhere;
}
.customer-choice-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}
.customer-missing-price { color: #94a3b8; font-size: 10px; }
/* Prices stay on the existing detail line, not beside long card titles. */
.adjust-inventory-compact .customer-unit-price { flex: 0 0 auto; font-size: 10px; }
.customer-card-price-detail { margin-top: .25rem; }

/* Deck contents use existing columns; long names wrap while the unit price stays readable. */
.customer-build-card-line {
    display: flex;
    align-items: baseline;
    gap: .35rem;
    min-width: 0;
}
.customer-build-card-line > .card-link {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}
.customer-build-card-price { flex: 0 0 auto; font-size: 10px; }
/* In narrow editor columns, reserve a full line for the name instead of squeezing it. */
.page-custom .deck-editor-card-content { container-type: inline-size; container-name: customer-card; }
@container customer-card (max-width: 380px) {
    .page-custom .deck-editor-card-name-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
    .page-custom .custom-card-index { display: none; }
    .page-custom .deck-editor-card-name { grid-column: 1 / -1; }
    .page-custom .custom-card-price-chip { grid-column: 1; justify-self: start; }
    .page-custom .custom-inventory-toggle { grid-column: 2; justify-self: end; }
}
@media (max-width: 480px) {
    .page-custom .deck-editor-card-name-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
    .page-custom .custom-card-index { display: none; }
    .page-custom .deck-editor-card-name { grid-column: 1 / -1; }
    .page-custom .custom-card-price-chip { grid-column: 1; justify-self: start; }
    .page-custom .custom-inventory-toggle { grid-column: 2; justify-self: end; }
}
