/* ==========================================================================
   FlowTools - Drinks calculator (1.9.0 step 4)
   Utility styling only, layered on top of flowtools-core.css and
   glance.css (reuses .flowtools-card / .flowtools-glance-* / .flowtools-field).
   ========================================================================== */

.flowtools-reviewed-line--stale {
    color: var(--flowtools-warning);
}

.flowtools-never-gospel {
    font-size: 0.85rem;
    color: var(--flowtools-text-muted);
    margin: var(--flowtools-space-xs) 0 0 0;
}

.flowtools-drinks-inputs {
    padding-bottom: var(--flowtools-space-md);
    border-bottom: 1px solid var(--flowtools-border);
    margin-bottom: var(--flowtools-space-md);
}

.flowtools-drinks-package-panel {
    padding-top: var(--flowtools-space-sm);
}

.flowtools-drinks-includes {
    font-size: 0.88rem;
    color: var(--flowtools-text-muted);
    margin: 0 0 var(--flowtools-space-sm) 0;
}

.flowtools-drinks-not-published {
    font-weight: 600;
    color: var(--flowtools-primary-dark);
}

.flowtools-drinks-total-alt-row {
    font-size: 0.9rem;
}

.flowtools-drinks-basis {
    font-size: 0.82rem;
    color: var(--flowtools-text-muted);
    margin: var(--flowtools-space-xs) 0 0 0;
}

/* MUST-FIX 3: the "not published" fact as helper text on the price field,
   shown above the input - never below, where it used to sit after the
   field, the toggle AND the includes paragraph. */
.flowtools-drinks-price-helper {
    font-size: 0.82rem;
    color: var(--flowtools-text-muted);
    margin: 0 0 var(--flowtools-space-xs) 0;
}

/* MUST-FIX 4: the toggle sits directly under its input, in the SAME field -
   no detached block 40px below it. */
.flowtools-price-field .flowtools-toggle {
    margin-top: var(--flowtools-space-sm);
    width: 100%;
}
.flowtools-price-field .flowtools-toggle button {
    flex: 1;
}

/* MUST-FIX 6: the basis line under the total, same visual weight as the
   existing basis text. */
.flowtools-drinks-arithmetic {
    font-size: 0.82rem;
    color: var(--flowtools-text-muted);
    margin: var(--flowtools-space-xs) 0 0 0;
    font-variant-numeric: tabular-nums;
}

/* MUST-FIX 7: pre-cruise/onboard as two totals side by side, each labelled
   with the price it used, plus the saving line. */
.flowtools-drinks-two-totals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--flowtools-space-md);
    padding-top: var(--flowtools-space-md);
    margin-top: var(--flowtools-space-md);
    border-top: 1px solid var(--flowtools-border);
}
.flowtools-drinks-two-totals__col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.flowtools-drinks-two-totals__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--flowtools-text-muted);
}
.flowtools-drinks-two-totals .flowtools-amount {
    font-size: 1.1rem;
    font-weight: 700;
}
.flowtools-drinks-saving {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e7e47;
    margin: var(--flowtools-space-xs) 0 0 0;
}

.flowtools-drinks-breakeven p {
    font-size: 0.85rem;
    margin: var(--flowtools-space-sm) 0 0 0;
}

.flowtools-text-muted {
    color: var(--flowtools-text-muted);
}

/* The conditions note - "a clearly marked note beside the number, never a
   tooltip only, never a footnote only" (James, 2026-10-02). A left-border
   tint is the marking; the text itself is unchanged by kind (the kind
   prefix, e.g. "Unverified:", is already part of ConditionResolver's
   rendered string). */
.flowtools-condition-note {
    font-size: 0.85rem;
    color: var(--flowtools-text);
    background: var(--flowtools-bg);
    border-left: 3px solid var(--flowtools-primary-light);
    border-radius: var(--flowtools-radius-sm);
    padding: var(--flowtools-space-xs) var(--flowtools-space-sm);
    margin: var(--flowtools-space-sm) 0 0 0;
}

/* MUST-FIX 2 (Prism's design review, PR #9): one condition per note - the
   prefix ("Unverified:", "Conflicting sources:", "Checked <date>:") is a
   semibold LABEL in the SAME neutral note colour as the rest (never red or
   amber - this is information, not a warning), and a small "Rules that
   apply" label sits above the whole stack. Shared by drinks and wifi. */
.flowtools-condition-stack {
    margin-top: var(--flowtools-space-sm);
}
.flowtools-condition-stack .flowtools-condition-note {
    margin-top: var(--flowtools-space-xs);
}
.flowtools-condition-stack__label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--flowtools-text-muted);
    margin: var(--flowtools-space-sm) 0 0 0;
}
.flowtools-condition-note__prefix {
    font-weight: 600;
    color: inherit;
}

.flowtools-drinks-source {
    font-size: 0.8rem;
    color: var(--flowtools-text-muted);
    margin: var(--flowtools-space-xs) 0 0 0;
}
.flowtools-drinks-source a {
    color: var(--flowtools-primary);
}

.flowtools-drinks-no-packages {
    color: var(--flowtools-text);
    font-weight: 600;
}

.flowtools-drinks-alternative {
    margin-top: var(--flowtools-space-sm);
    font-size: 0.9rem;
}
.flowtools-drinks-alternative h4 {
    margin: 0 0 var(--flowtools-space-xs) 0;
}

.flowtools-drinks-bundles {
    margin-top: var(--flowtools-space-md);
    padding-top: var(--flowtools-space-sm);
    border-top: 1px dashed var(--flowtools-border);
}
.flowtools-drinks-bundles h4 {
    margin: 0 0 var(--flowtools-space-xs) 0;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--flowtools-text-muted);
}
.flowtools-drinks-bundle {
    font-size: 0.88rem;
    margin-bottom: var(--flowtools-space-sm);
}
.flowtools-drinks-bundle-name {
    margin: 0 0 2px 0;
}
