/* Fees and Costs page ([lunarcat_fees]). Tokens, headings, tables, collapse,
   circle-step and .hyperlink come from global.css / content-pages.css; this
   file holds only the fee-table, payment-method and fee-example layouts.
   meta-label and field-row are shared with the simulator. */

/* ── Fee tables ───────────────────────────────────────────────────────────── */
.luna .pricing-fee-table {
    --table-min: 44rem;
    min-width: var(--table-min);
}
.luna .pricing-fee-table col:nth-child(1) { width: 13%; }
.luna .pricing-fee-table col:nth-child(2) { width: 39%; }
.luna .pricing-fee-table col:nth-child(3) { width: 48%; }
.luna .pricing-fee-table td:first-child {
    font-weight: var(--font-weight-semibold);
}

.luna .pricing-services-table {
    --table-min: 40rem;
    min-width: var(--table-min);
}
.luna .pricing-services-table col:nth-child(1) { width: 16%; }
.luna .pricing-services-table col:nth-child(2) { width: 52%; }
.luna .pricing-services-table col:nth-child(3) { width: 32%; }
.luna .pricing-services-table th:last-child,
.luna .pricing-services-table td:last-child {
    text-align: right;
}

/* ── Jump-to-simulator link ───────────────────────────────────────────────── */
.luna .pricing-jump {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space);
}

.luna .simulator-section {
    width: 100%;
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
    text-align: left;
}
.luna .simulator-section > h2 {
    margin-bottom: var(--space-lg);
}

/* ── Shared field helpers (also used by the simulator) ────────────────────── */
.luna .meta-label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--body-text);
}
.luna .field-row {
    --field-col: 10rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--field-col), 1fr));
    gap: var(--space);
}
.luna .field-row[hidden] {
    display: none;
}

/* ── Payment methods ──────────────────────────────────────────────────────── */
.luna .pricing-payment-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space);
}
.luna .pricing-payment-method {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--background);
}
.luna .pricing-payment-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}
.luna .pricing-payment-logo {
    --logo-height: 2.125rem;
    display: block;
    width: auto;
    height: var(--logo-height);
    flex-shrink: 0;
    object-fit: contain;
}
.luna .pricing-payment-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}
.luna .pricing-payment-list__note {
    display: block;
    margin-top: var(--space-2xs);
}
.luna .pricing-payment-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-top: var(--space-2xs);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-soft);
}
.luna .pricing-payment-steps .circle-step {
    margin: 0;
    font-weight: var(--font-weight-normal);
}
.luna .pricing-payment-footnote {
    display: grid;
    gap: var(--space-2xs);
    text-align: center;
}

/* ── Purchase fee explanation ─────────────────────────────────────────────── */
.luna .pricing-fee-logic {
    margin-top: var(--space-lg);
}
.luna .pricing-fee-logic__body {
    display: grid;
    gap: var(--space);
}
.luna .pricing-fee-logic__formula {
    display: block;
    padding: var(--space-sm) var(--space);
    overflow-wrap: anywhere;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--background);
    color: var(--accent-pressed);
    font-variant-numeric: tabular-nums;
}
.luna .pricing-fee-logic__table {
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    box-shadow: none;
    font-variant-numeric: tabular-nums;
}
.luna .pricing-fee-logic .table-scroll {
    overflow-x: hidden;
}
.luna .pricing-fee-logic__table th,
.luna .pricing-fee-logic__table td {
    padding: var(--space-xs) var(--space-sm);
}
.luna .pricing-fee-logic__table th:last-child,
.luna .pricing-fee-logic__table td:last-child {
    text-align: right;
}
.luna .pricing-fee-logic__table td:last-child {
    color: var(--accent-pressed);
    font-weight: var(--font-weight-semibold);
}
@media (max-width: 640px) {
    .luna .pricing-payment-methods {
        grid-template-columns: 1fr;
    }
}
