@mixin action {
  display: flex;
  flex-direction: var(--button-action-flex-direction, column);
  justify-content: center;
  align-items: center;

  position: relative;

  outline: none;

  /* Safari overflow hidden does not work with border-radius without following isolation */
  /* https://stackoverflow.com/a/58283449 */
  isolation: isolate;

  color: inherit;

  border-radius: 8px;
  overflow: hidden;

  background: transparent;

  &:focus {
    background: rgba(var(--ion-color-medium-rgb), 0.1);
  }

  ion-label {
    font-size: var(--font-size-small);
    white-space: nowrap;
  }
}

@mixin icon {
  padding: 6px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
