/* TOTALS, QUANTITY, LINE ITEM (mini) — ported verbatim from reference/css/components.css (lines 532-563). Global, in the reference order. */
.lm-totals { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--30); }
.lm-totals__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--wp--preset--spacing--40); font-size: var(--wp--preset--font-size--body); }
.lm-totals__row dt { color: var(--wp--preset--color--secondary); }
.lm-totals__row dd { font-weight: var(--wp--custom--font-weight--semibold); text-align: right; }
.lm-totals__row--muted dd { color: var(--wp--preset--color--muted); font-weight: var(--wp--custom--font-weight--regular); }
.lm-totals__row--accent dd { color: var(--wp--preset--color--accent); font-weight: var(--wp--custom--font-weight--bold); }
.lm-totals__row--total { align-items: baseline; padding-top: var(--wp--preset--spacing--60); border-top: var(--wp--custom--border--hairline) solid var(--wp--preset--color--line); margin-top: var(--wp--preset--spacing--30); }
.lm-totals__row--total dt { color: var(--wp--preset--color--contrast); font-size: var(--wp--preset--font-size--lead); font-weight: var(--wp--custom--font-weight--bold); }
.lm-totals__row--total dd { color: var(--wp--preset--color--accent); font-size: var(--wp--preset--font-size--huge); font-weight: var(--wp--custom--font-weight--bold); line-height: var(--wp--custom--line-height--title); }

.lm-qty {
  display: inline-flex; align-items: center; min-height: var(--wp--custom--control--md); padding-inline: var(--wp--preset--spacing--10);
  border: var(--wp--custom--border--control) solid var(--wp--preset--color--line-strong); border-radius: var(--wp--custom--radius--pill);
}
.lm-qty__btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--wp--custom--radius--pill); color: var(--wp--preset--color--contrast); }
.lm-qty__btn:hover { color: var(--wp--preset--color--accent); }
.lm-qty__value { min-width: 28px; text-align: center; font-weight: var(--wp--custom--font-weight--bold); line-height: 1; }
.lm-qty--xl { min-height: var(--wp--custom--control--xl); padding-inline: var(--wp--preset--spacing--20); }

@media (max-width: 1023px) {
  .lm-qty__btn { width: var(--wp--custom--control--sm); height: var(--wp--custom--control--sm); }
}

/* Compact product line used in order summaries */
.lm-mini-item { display: flex; align-items: center; gap: var(--wp--preset--spacing--40); }
.lm-mini-item__media { position: relative; flex-shrink: 0; width: 56px; height: 56px; }
.lm-mini-item__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--wp--custom--radius--md); background: var(--wp--preset--color--surface); }
.lm-mini-item__media .lm-badge { position: absolute; top: -6px; right: -6px; }
.lm-mini-item__body { flex: 1; min-width: 0; }
.lm-mini-item__name { font-size: var(--wp--preset--font-size--ui); font-weight: var(--wp--custom--font-weight--semibold); line-height: var(--wp--custom--line-height--snug); }
.lm-mini-item__meta { font-size: var(--wp--preset--font-size--caption); line-height: var(--wp--custom--line-height--snug); color: var(--wp--preset--color--muted); margin-top: 2px; }
.lm-mini-item__price { font-size: var(--wp--preset--font-size--ui); font-weight: var(--wp--custom--font-weight--bold); white-space: nowrap; }
