/* UI consistency layer (12 Oct 2026).
   Loaded last on index, track and staff pages. One rule set for buttons, chips,
   type and spacing, so earlier layered stylesheets no longer disagree.
   Actions = rounded rectangles (10px). Choices/filters = pills. One primary
   button style per screen size. Touch targets stay at least 40-44px. */
:root{--btn-radius:10px;--btn-primary-h:52px;--btn-compact-h:40px}

/* ---------- Type ---------- */
/* Playfair is the display face everywhere (Georgia was a stray fallback on dish names, tracking status and the header wordmark). */
.item-open,.tracking-status,.brand>span,.footer-brand{font-family:'Playfair Display',Georgia,serif}
.brand>span{font-weight:600}
/* Lining figures: old-style digits made "SS-000001" and "Table 01" look uneven. */
h1,h2,h3,h4,.item-open,.tracking-status,.brand>span,.footer-brand,.receipt-reference{font-variant-numeric:lining-nums}

/* ---------- Primary / secondary actions (customer) ---------- */
#add-item,#review-order,#place-order,#continue-shopping,.track-order-link,.receipt-actions button,#receipt-dialog .primary{min-height:var(--btn-primary-h);font-size:16px;font-weight:600;border-radius:var(--btn-radius);line-height:1.2}
#continue-shopping,.receipt-actions .secondary{background:#fffaf4;color:var(--brown);border:1px solid var(--brown)}
.track-order-link{display:flex;align-items:center;justify-content:center;padding:0 16px}
.receipt-actions{margin-top:12px}

/* Compact actions: one size for every small button that does something. */
.add-button,.email-receipt button,.wifi-copy,.team-order a{min-height:var(--btn-compact-h);font-size:14px;font-weight:600;border-radius:var(--btn-radius);line-height:1}
.email-receipt button{min-height:44px}
.team-order a{min-height:44px}

/* Text links inside dialogs were 11px; 13px is readable and still quiet. */
.text-button,.cart-row .text-button,#edit-checkout,#clear-cart{font-size:13px}

/* ---------- Chips (categories, filters, segmented) ---------- */
#categories button,#filters button{border-radius:999px}
@media(max-width:760px){
 #categories button,#filters button{min-height:40px}
}

/* ---------- Menu cards ---------- */
.card-foot{margin-top:4px}
.custom-label{font-size:12px;color:var(--muted)}
.right-now{margin-top:20px}

/* ---------- Item dialog price ---------- */
#item-base{font-size:22px;font-weight:600;color:var(--brown)}
#item-base .base-note{font-size:13px;font-weight:400;color:var(--muted);margin-left:4px}

/* ---------- "Complete your order" in the bag ---------- */
/* "Complete your order" card styles live in product-customisation.css. */

/* ---------- Receipt & tracking ---------- */
.receipt-reference{font-family:'Jost','Segoe UI',sans-serif;font-weight:600;letter-spacing:1px;font-size:20px;padding:14px 16px;margin:16px 0}
.review-line>.diet-label{margin-left:6px}
.tracking-status{font-size:22px}
:root{--type-caption:0.75rem;--leading-caption:1.4}
.tracking-steps li{font-size:var(--type-caption);line-height:var(--leading-caption);min-width:0;white-space:normal}


/* ---------- Staff dashboard ---------- */
.staff-header button,#dashboard button{font-size:14px}
#dashboard .primary,#new-counter-order{font-size:14px;font-weight:600;border-radius:var(--btn-radius)}
#new-counter-order{min-height:44px;padding:0 20px}
.ticket-actions button{font-size:14px}
.ticket-actions .secondary{color:var(--brown)}
.table-card strong{font-size:20px;margin:8px 0}
.table-card h3{font-size:21px}
.finance-exports button,.finance-exports .primary{flex:1 1 180px;min-height:48px;background:#fffaf4;color:var(--brown);border:1px solid var(--brown);font-weight:600}
@media(max-width:600px){
 .sales-grid{grid-template-columns:1fr 1fr!important;gap:10px}
 .sales-grid .table-card{padding:14px}
 .sales-grid .table-card strong{font-size:18px}
 .finance-exports{display:grid;grid-template-columns:1fr 1fr}
}

/* Confirm dialog uses the same action shape as the rest of the app. */
.cd-actions button{border-radius:var(--btn-radius)}
#contact-help:empty{display:none}
#cart-dialog .notes-label{display:block;margin-top:18px}
#cart-dialog .fine{line-height:1.5}
/* Specificity fixes for older, more specific rules. */
.item-bottom .add-button{border-radius:var(--btn-radius)}
#cart-dialog #review-order,#item-dialog #add-item,#review-dialog #place-order{min-height:var(--btn-primary-h);font-size:16px}
@media(max-width:600px){#new-counter-order{width:100%}}

@media (max-width: 359.98px) {
  .tracking-steps {
    --step-label-gap: 8px;
    --step-indicator-width: 4px;
    flex-direction: column;
  }
  .tracking-steps li {
    flex: none;
    text-align: start;
    padding-block-start: 0;
    padding-inline-start: var(--step-label-gap);
    border-inline-start: var(--step-indicator-width) solid var(--line);
    border-block-start-width: 0;
  }
  .tracking-steps li.done { border-inline-start-color: var(--olive); }
  .tracking-steps li.current { border-inline-start-color: var(--rust); }
}
