/* WizardUx Button Styles
 * Navigation and action buttons
 * Desktop-first - DO NOT modify these base styles for mobile
 *
 * Note: These complement the host app's button system.
 * The gem uses .btn and .btn--* classes from the host app's design system.
 * These are wizard-specific button utilities only.
 */

/* ==========================================================================
   CIRCLE BUTTON (Back navigation)
   ========================================================================== */

.wizard-btn--circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
}

/* ==========================================================================
   PLAIN BUTTON
   Removes all button styling for custom layouts
   ========================================================================== */

.wizard-btn--plain {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}

.wizard-btn--plain:focus-visible {
  outline: 2px solid var(--wizard-color-link);
  outline-offset: 2px;
  border-radius: 0.25em;
}

/* ==========================================================================
   TEXT BUTTON
   Inline text-like button
   ========================================================================== */

.wizard-btn--text,
.wizard-btn--text:focus,
.wizard-btn--text:focus-visible,
.wizard-btn--text:active {
  background: transparent;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0;
  text-decoration: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.wizard-btn--text:hover {
  opacity: 0.7;
}

.wizard-btn--text img {
  opacity: 0.5;
  margin-left: 0.25em;
}

.wizard-btn--text:hover img {
  opacity: 1;
}

/* ==========================================================================
   SMALL BUTTON
   ========================================================================== */

.wizard-btn--small {
  padding: 0.25em 0.5em;
  font-size: var(--wizard-text-small);
}

/* ==========================================================================
   DISABLED STATES
   ========================================================================== */

.wizard-modal [disabled] {
  opacity: 0.4;
  filter: grayscale(50%);
  cursor: not-allowed;
}

.wizard-modal [disabled]:not(:disabled) {
  opacity: 1;
  filter: none;
  cursor: pointer;
}

/* ==========================================================================
   FOCUS HANDLING
   Remove focus ring in modal (dialog auto-focuses first element)
   ========================================================================== */

.wizard-modal .btn:focus-visible {
  outline: none;
}

/* ==========================================================================
   ICON WITHIN BUTTONS
   ========================================================================== */

.wizard-icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: middle;
}

.wizard-icon--back {
  /* Arrow left icon - host app should provide via image or SVG */
}
