.button {
  display: flex;
  align-items: center;
  position: relative;
  height: var(--button-height);
  margin: 0;
  border: none;
  border-radius: var(--button-height);
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 80ms ease-out;
}

.button:focus {
  outline: none;
  box-shadow: var(--color-focus-shadow);
}

.button x-icon {
  margin-right: var(--space-2x);
}

.button--default {
  padding: 0 var(--space-5x);
  background: transparent;
  color: #000;
}

.button--default::before {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--button-height);
  background: rgba(0, 0, 0, 0.07);
  opacity: 0;
  transition: all 120ms ease-out;
  transform: scale(0.9);
  content: '';
}

.button--default:hover::before {
  opacity: 1;
  transform: scale(1);
}

.button--primary {
  padding: 0 var(--space-8x);
  background-image: var(--color-primary-gradient);
  background-color: var(--color-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.16);
  color: #fff;
  font-size: var(--font-size-lg);
}

.button--primary:hover {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
}
