/* Flexible Button Groups – intentionally independent of theme button classes. */
.fbg-group {
  box-sizing: border-box;
  width: 100%;
}
.fbg-group *,
.fbg-group *::before,
.fbg-group *::after { box-sizing: border-box; }
.fbg-group .fbg-group-title {
  margin: 0 0 16px;
  font-size: 1.35em;
  font-weight: 600;
  line-height: 1.3;
  text-align: var(--fbg-align, center);
}
.fbg-group .fbg-buttons {
  display: flex;
  flex-flow: row wrap;
  align-items: stretch;
  justify-content: var(--fbg-justify, center);
  margin: 0;
  padding: 0;
}
.fbg-group .fbg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: var(--fbg-pad-y, 12px) var(--fbg-pad-x, 22px);
  margin: 0;
  border: 0;
  border-radius: var(--fbg-radius, 4px);
  background: var(--fbg-bg, #808080);
  color: var(--fbg-fg, #ffffff);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: filter .15s ease;
}
.fbg-group .fbg-button:not(:last-child) {
  margin-right: var(--fbg-spacing, 12px);
}
.fbg-group a.fbg-button:hover {
  color: var(--fbg-fg, #ffffff);
  background: var(--fbg-bg, #808080);
  text-decoration: none;
  filter: brightness(.90);
}
.fbg-group a.fbg-button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
.fbg-group span.fbg-button { cursor: default; }
@media (max-width: 767px) {
  .fbg-group .fbg-buttons { flex-direction: column; align-items: stretch; }
  .fbg-group .fbg-button { display: flex; width: 100%; margin-right: 0; }
  .fbg-group .fbg-button:not(:last-child) { margin-right: 0; }
  .fbg-group .fbg-button + .fbg-button { margin-top: var(--fbg-spacing, 12px); }
}
@media (prefers-reduced-motion: reduce) {
  .fbg-group .fbg-button { transition: none; }
}
