/** VolteVas shared button component. */

.vv-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--vv-space-1);
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--vv-radius-lg);
  appearance: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--vv-ease), box-shadow .18s var(--vv-ease),
    background-color .18s var(--vv-ease), border-color .18s var(--vv-ease),
    color .18s var(--vv-ease);
}

.vv-button:hover,
.vv-button:focus { text-decoration: none; }

.vv-button:focus-visible {
  outline: var(--vv-focus-outline);
  outline-offset: 2px;
}

.vv-button__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  transition: transform .18s var(--vv-ease);
}

.vv-button:hover .vv-button__icon { transform: translateX(3px); }

.vv-button--primary {
  background: linear-gradient(90deg, var(--vv-color-slate) 0%, var(--vv-color-steel) 100%);
  color: #fff;
  box-shadow: var(--vv-shadow-cta);
}

.vv-button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 16px rgba(10, 26, 46, .19);
}

.vv-button--secondary {
  background: #fff;
  border-color: #dfe8ec;
  color: var(--vv-color-ink);
  box-shadow: var(--vv-shadow-card);
}

.vv-button--secondary:hover {
  border-color: var(--vv-color-steel);
  transform: translateY(-1px);
}

.vv-button--ghost {
  min-height: 48px;
  background: transparent;
  border-color: rgba(169, 187, 199, .9);
  color: #fff;
  font-size: 13px;
}

.vv-button--ghost:hover { border-color: #fff; }

.vv-button--outline {
  background: #fff;
  border-color: #cbdce5;
  color: var(--vv-color-heading);
  font-size: 13px;
}

.vv-button--outline:hover {
  border-color: var(--vv-color-teal);
  transform: translateY(-1px);
}

.vv-button--danger {
  background: var(--vv-error-bg);
  border-color: var(--vv-error-line);
  color: var(--vv-error-fg);
  box-shadow: none;
}

.vv-button--danger:hover {
  background: var(--vv-error-fg);
  border-color: var(--vv-error-fg);
  color: #fff;
  transform: translateY(-1px);
}

.vv-button--large {
  min-height: 52px;
  padding: 12px 20px;
  border-radius: var(--vv-radius-md);
  font-size: 14px;
}

.vv-button--small {
  min-height: 40px;
  padding: 9px 13px;
  border-radius: var(--vv-radius-sm);
  font-size: 13px;
  line-height: 18px;
}

.vv-button--block { width: 100%; }

.vv-button:disabled,
.vv-button[aria-disabled='true'] {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .vv-button,
  .vv-button__icon { transition: none; }
}
