/* ==========================================
   Price panel — the rate card next to a cap or a budget amount
   Paired with js/price-panel.js.
   ========================================== */

.price-panel {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--dark-bg-secondary);
}

.price-panel-head h4 {
    margin: 0 0 4px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.price-panel-hint {
    margin: 0 0 12px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Wide tables scroll in their own box so the page body never scrolls sideways. */
.price-table-scroll {
    overflow-x: auto;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    white-space: nowrap;
}

.price-table th {
    padding: 6px 10px 6px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
}

.price-table td {
    padding: 7px 10px 7px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text-primary);
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

.price-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Needs the higher specificity: `.price-table th { text-align: left }` above otherwise beats a
   bare `.price-num`, which left the numeric headings sitting to the left of their own columns. */
.price-table th.price-num {
    text-align: right;
}

/* A placement the cap rules out: dimmed, and told why in the last column. */
.price-row-excluded td {
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-row-excluded .price-flag {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.72rem;
    font-style: italic;
}

.price-panel-note {
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: 0.74rem;
    line-height: 1.55;
}

/* The estimate is a projection, not a reservation, and has to look like one. */
.price-panel-caveat {
    padding: 9px 11px;
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
}

.price-panel-empty,
.price-panel-error {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
}

.price-panel-empty strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text-primary);
}
