/* Settings > Tips (settings-tips.js). Page layout only: the card, field, input and buttons are ds-*. Tokens only,
   both themes (the staff app follows the theme). The preview chips mimic the customer pay page's buttons. */
.tp-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); max-width: 480px; }
.tp-input-wrap { position: relative; display: block; }
.tp-input-wrap .ds-input { padding-right: 32px; }
.tp-pct { position: absolute; right: var(--s-3); top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 600; pointer-events: none; }
.tp-preview-block { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-2); }
.tp-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.tp-sample { border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: var(--s-3); background: var(--surface-2); min-width: 0; }
.tp-sample-head { margin: 0 0 var(--s-2); color: var(--ink-2); font-size: var(--text-sm); font-weight: 600; }
.tp-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.tp-chips[data-tip-count="1"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tp-chips[data-tip-count="2"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tp-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px;
  padding: var(--s-2) var(--s-1); border: 2px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink); font-size: var(--text-sm); font-weight: 700; line-height: 1.15; text-align: center;
}
.tp-chip small { font-size: var(--text-xs); font-weight: 600; color: var(--ink-2); }
.tp-chip.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.tp-chip.is-on small { color: var(--accent-ink); }
.tp-chip-custom { grid-column: 1 / -1; flex-direction: row; gap: var(--s-2); min-height: 44px; font-weight: 600; }
.tp-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
@media (max-width: 900px) {
  .tp-preview { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .tp-fields { max-width: none; }
  .tp-actions .ds-btn { --btn-h: 44px; }
}
