/* Button sizes. Loaded on the front end and in the editor (functions.php), and listed in CSS Class Manager.
   A size is a plain class added to a Button block (Advanced → Additional CSS class), not a block style, so it sits
   alongside whichever style the button has: Fill, Outline or a preset style. The size sets only the font size,
   height and side padding; shape, colours, border, hover, case and letter spacing come from the button's style.
   Preset styles that draw their own boxes (Text, Arrow Join) size those in their own button-styles/*.css. */

/* Small: 28px high. The height is set by padding (half the height, minus half the font size, minus the border),
   the same way Deep Tech sets its 44px buttons, so Fill and Outline stay level in a row.
   Change --btn-small-height to make every small button taller or shorter. */
.wp-block-button.btn-small {
  --btn-small-height: 28px;
  --btn-small-border: 0px;
}

.wp-block-button.is-style-outline.btn-small {
  --btn-small-border: 2px;
}

.wp-block-button.btn-small .wp-block-button__link {
  font-size: var(--wp--preset--font-size--xsmall);
  line-height: 1;
  padding: calc(var(--btn-small-height) / 2 - 0.5em - var(--btn-small-border))
    1rem;
}
