/* The create page's estimate line above the Create button (js/create_estimate.js).
   Voyager tokens only, so light and dark both come from voyager.css. The open
   breakdown reuses the planner panel's .cost-estimate-details rows. */

.create-estimate {
    margin: 4px 0 12px;
    border-radius: var(--v-radius, 12px);
    background: var(--v-surface-low);
    color: var(--v-ink);
    overflow: hidden;
}

.create-estimate[hidden] { display: none; }

.create-estimate-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.create-estimate-toggle:hover { background: color-mix(in srgb, var(--v-ink) 4%, transparent); }

.create-estimate-toggle:focus-visible {
    outline: 2px solid var(--v-accent);
    outline-offset: -2px;
}

.create-estimate-toggle > .material-icons:first-child {
    flex: none;
    font-size: 22px;
    color: var(--v-accent);
}

.create-estimate-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.create-estimate-line {
    font-family: var(--v-font-display, inherit);
    font-size: var(--v-text-body, 15px);
    font-weight: 600;
    color: var(--v-ink);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.create-estimate-sub {
    font-size: var(--v-text-label, 12px);
    color: var(--v-ink-muted);
    line-height: 1.35;
}

.create-estimate-chevron {
    flex: none;
    color: var(--v-ink-subtle);
    transition: transform 0.2s ease;
}

.create-estimate-toggle[aria-expanded="true"] .create-estimate-chevron { transform: rotate(180deg); }

/* The planner's rows, open in place: no max-height animation here. */
.create-estimate .create-estimate-details {
    max-height: none;
    overflow: visible;
    padding: 0 2px 10px;
    border-top: 1px solid var(--v-hairline);
}

.create-estimate .create-estimate-details[hidden] { display: none; }

.create-estimate-quiet {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 14px;
    font-size: var(--v-text-label, 12px);
    color: var(--v-ink-subtle);
}

.create-estimate-quiet .material-icons { font-size: 18px; }

@media (prefers-reduced-motion: reduce) {
    .create-estimate-chevron { transition: none; }
}
