/* Button geometry. Material and semantic colors live in button-surfaces.css. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 44px;
  max-width: 100%;
  padding: 10px 20px;
  font: 500 var(--text-sm)/1.4 var(--font-sans);
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: var(--cursor-pointer);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: var(--cursor-pointer);
}
.btn-icon svg { width: 20px; height: 20px; stroke-width: 1.5; }
.btn-loading { opacity: .7; pointer-events: none; cursor: wait; }
.btn-loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--paper-shadow);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btn-spin .6s linear infinite;
  margin-right: var(--space-sm);
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
