.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  height: 48px;
  border-radius: 999px;
  border: 2px solid transparent;
  white-space: nowrap;
  width: fit-content;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  --btn-bg-opacity: 100%;
}

.c-btn:focus {
  outline: none;
}

.c-btn--sm {
  height: 40px;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
}
.c-btn--lg {
  height: 56px;
  padding: 0.8rem 1.5rem;
  font-size: 1.125rem;
}

/* Primary */

.c-btn--primary {
  background: var(--teal-500);
  color: var(--teal-vibrant);
}
.c-btn--primary:hover {
  background: var(--teal-600);
}
.c-btn--primary:focus-visible {
  background: var(--teal-500);
  box-shadow:
    0 0 0 2px var(--teal-vibrant),
    0 0 0 6px var(--teal-500);
}
.c-btn--primary:active {
  background: var(--teal-700);
}
.c-btn--primary:disabled,
.c-btn--primary[aria-disabled="true"] {
  background: var(--grey-300);
  color: var(--grey-500);
  cursor: not-allowed;
}

/* Secondary */

.c-btn--secondary {
  background: var(--teal-50);
  color: var(--color-primary);
}
.c-btn--secondary:hover {
  background: var(--teal-100);
}
.c-btn--secondary:focus-visible {
  box-shadow:
    0 0 0 2px var(--teal-500),
    0 0 0 4px var(--teal-50),
    0 0 0 6px var(--teal-500);
}
.c-btn--secondary:active {
  background: var(--teal-300);
}
.c-btn--secondary:disabled,
.c-btn--secondary[aria-disabled="true"] {
  background: var(--grey-200);
  color: var(--grey-400);
  cursor: not-allowed;
}

/* Tertiary */

.c-btn--tertiary {
  background: transparent;
  color: var(--color-primary);
  border-color: transparent;
}
.c-btn--tertiary:hover {
  background: var(--teal-50);
}
.c-btn--tertiary:focus-visible {
  border-color: var(--teal-500);
  box-shadow:
    0 0 0 4px transparent,
    0 0 0 6px var(--teal-500);
}
.c-btn--tertiary:active {
  background: var(--teal-200);
}
.c-btn--tertiary:disabled,
.c-btn--tertiary[aria-disabled="true"] {
  color: var(--grey-400);
  background: transparent;
  cursor: not-allowed;
}

/* Vibrant */

.c-btn--vibrant {
  background: transparent;
  color: var(--teal-vibrant);
  border-color: var(--teal-vibrant);
}
.c-btn--vibrant:hover {
  color: var(--color-primary);
  border-color: var(--teal-400);
}
.c-btn--vibrant:focus-visible {
  box-shadow:
    0 0 0 2px var(--teal-vibrant),
    0 0 0 4px transparent,
    0 0 0 6px var(--teal-vibrant);
}
.c-btn--vibrant:active {
  background: var(--teal-vibrant);
  border-color: var(--teal-vibrant);
  color: var(--teal-700);
}
.c-btn--vibrant:disabled,
.c-btn--vibrant[aria-disabled="true"] {
  color: var(--grey-300);
  border-color: var(--grey-300);
  cursor: not-allowed;
}

.c-btn__icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--teal-vibrant);
  color: var(--teal-700);
}
.c-btn--sm .c-btn__icon-circle {
  width: 28px;
  height: 28px;
}
.c-btn--lg .c-btn__icon-circle {
  width: 36px;
  height: 36px;
}

.c-btn--wide {
  width: 100%;
  justify-content: space-between;
  background: color-mix(
    in srgb,
    var(--teal-500) var(--btn-bg-opacity),
    transparent
  );
  color: var(--grey-100);
}

.c-btn--wide:hover {
  background: color-mix(
    in srgb,
    color-mix(in srgb, var(--teal-500) 85%, white 15%) var(--btn-bg-opacity),
    transparent
  );
}
