.frontend-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 2.75rem;
  border-radius: 0.875rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.frontend-action:hover {
  text-decoration: none;
}

.frontend-action:focus-visible {
  outline: none;
  box-shadow: var(--theme-frontend-action-focus-ring);
}

.frontend-action-primary {
  border: 1px solid var(--theme-frontend-primary-button-border);
  background: var(--theme-frontend-primary-button-background);
  color: var(--theme-frontend-primary-button-text);
  box-shadow: var(--theme-frontend-primary-button-shadow);
}

.frontend-action-primary:hover {
  border-color: var(--theme-frontend-primary-button-border);
  background: var(--theme-frontend-primary-button-background-hover);
  color: var(--theme-frontend-primary-button-text);
}

.frontend-action-secondary {
  border: 1px solid var(--theme-frontend-secondary-action-border);
  background: var(--theme-frontend-secondary-action-background);
  color: var(--theme-frontend-secondary-action-text);
}

.frontend-action-secondary:hover {
  border-color: var(--theme-frontend-secondary-action-border-hover);
  background: var(--theme-frontend-secondary-action-background-hover);
  color: var(--theme-frontend-secondary-action-text-hover);
}

.frontend-action-brand {
  border: 1px solid var(--theme-frontend-brand-action-border);
  background: var(--theme-frontend-brand-action-background);
  color: var(--theme-frontend-brand-action-text);
}

.frontend-action-brand:hover {
  border-color: var(--theme-frontend-brand-action-border-hover);
  background: var(--theme-frontend-brand-action-background-hover);
  color: var(--theme-frontend-brand-action-text);
}

.frontend-action:active {
  transform: translateY(1px);
}

@media (max-width: 640px) {
  .frontend-action {
    width: 100%;
    min-height: 3rem;
  }
}
