button.action {
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 105px;
  height: 32px;
  border-radius: 6px;
  padding: 0;
  border: 0;
  cursor: pointer;
  position: relative;

  /* base version of the button, which is dark */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.00) 100%), var(--neutral-solid-700);
  box-shadow: 0px 0px 0px 1px var(--neutral-solid-700), 0px 1px 2px 0px rgba(13, 13, 18, 0.40);

  outline: 1px solid transparent;
  outline-offset: 2px;

  -webkit-tap-highlight-color: transparent; /* for removing the highlight */
  will-change: transform;
  transition: 150ms all;
}

/* Stroke of the buttons */
button.action::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  border-radius: 6px;
  background: var(--form-button-stroke, linear-gradient(180deg, rgba(255, 255, 255, 0.16) 16%, rgba(255, 255, 255, 0.00) 100%));
  top: 0;
  left: 0;
}

/* Base Background Filler */
button.action::after {
  content: "";
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  position: absolute;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.00) 100%), var(--neutral-solid-700);
  top: 1px;
  left: 1px;
}

button.action span {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  z-index: 5;
  padding: 6px 8px;

  font-size: 14px;
  line-height: 32px;
  font-weight: 500;
  color: var(--text-white);
  text-align: center;
  border-radius: 6px;
  transition: 150ms all;
}

button.action span:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.00) 100%);
  opacity: 0.07;
  border-radius: 6px;

  transition: 150ms all;
}

button.action:hover span:before {
  opacity: 0.24;
}

button.action:focus-visible {
  outline: 1px solid rgba(95, 87, 255, .5);
  outline-offset: 2px;
}

/* Normal Active State */
button.action:active span:before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.00) 100%), var(--neutral-solid-700);
  opacity: 0.14;
}

button.action:active {
  transform: scale(0.95);
}

/* This is to provide safe spacing for icons, I didn't want to mix span with span so used em, however if anyone has a better solution to achieve safe spacing without adding another element like em, feel free to suggest me */
button.action span em {
  padding: 0 4px;
  font-style: normal;
}

button.action.neutral {
  --neutral-solid-700: #272835;
  --text-white: #ffffff;
}
