/*
 * Payment discounts: the "Save 5%" pill beside a payment method at checkout,
 * and the cart's line about the saving. Semantic tokens only, with plain
 * fallbacks for a theme that doesn't define them.
 */

.payment-discounts-pill {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  border: 1px solid currentcolor;
  border-radius: var(--radius-pill, 999px);
  color: var(--color-accent-text, inherit);
  font-family: var(--font-sans, inherit);
  font-size: var(--text-xs, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  vertical-align: 0.1em;
  white-space: nowrap;
}

.payment-discounts-note {
  display: block;
  margin: 0;
  padding-top: var(--space-1, 4px);
  color: var(--color-text-muted, inherit);
  font-size: var(--text-xs, 0.75rem);
  line-height: 1.5;
}

/*
 * WooCommerce pads every item in the order meta slot 16px top and bottom.
 * After another note there, the line sits just under it instead, as one block.
 */
.wc-block-components-totals-wrapper.slot-wrapper > * > * + .payment-discounts-note {
  margin-top: -12px;
  padding-top: 0;
}
