.wp-block-button.is-style-ghost {
  .wp-block-button__link {
    background: transparent !important;
    position: relative;
    z-index: 0;
    color: var(--wp--custom--elements--button--color--ghost-background, var(--wp--custom--color--primary, currentColor));
  }

  .wp-block-button__link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0.1;
    z-index: 1;
    border-radius: inherit;
  }

  > .wp-block-button__link:not(.has-text-color):hover {
    color: var(--wp--custom--elements--button--color--ghost-background, var(--wp--custom--color--primary, currentColor));
  }
}

.is-style-dark .wp-block-button.is-style-ghost .wp-block-button__link::before {
  opacity: 0.15;
}