/**
 * @reevit/react - Checkout Widget Styles
 * Premium design system matching Reevit dashboard
 */

/* CSS Variables for theming - Light mode */
:root {
  /* Colors */
  --reevit-primary: #0ea5e9;
  --reevit-primary-hover: #0284c7;
  --reevit-primary-foreground: #ffffff;
  --reevit-background: #fafafa;
  --reevit-surface: #ffffff;
  --reevit-border: rgba(15, 23, 42, 0.08);
  --reevit-text: #0a0a0a;
  --reevit-text-secondary: #525252;
  --reevit-muted: #a3a3a3;
  --reevit-success: #16a34a;
  --reevit-success-rgb: 22, 163, 74;
  --reevit-error: #dc2626;
  --reevit-error-rgb: 220, 38, 38;
  --reevit-warning: #f59e0b;

  /* Radii */
  --reevit-radius: 0.75rem;
  --reevit-radius-sm: 0.5rem;
  --reevit-radius-lg: 1.5rem;

  /* Typography — Grato Classic for body, ABC Repro Mono for amounts */
  --reevit-font: 'Grato Classic', 'Inter', system-ui, -apple-system, sans-serif;
  --reevit-font-heading: 'ABC Repro Mono', ui-monospace, monospace;
  --reevit-font-mono: 'ABC Repro Mono', ui-monospace, monospace;

  /* Layered shadows for natural depth */
  --reevit-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.03),
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 16px -4px rgba(0, 0, 0, 0.06),
    0 24px 48px -12px rgba(0, 0, 0, 0.08);
  --reevit-shadow-sm:
    0 0 0 1px rgba(0, 0, 0, 0.02),
    0 1px 3px rgba(0, 0, 0, 0.06);
  --reevit-shadow-hover:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 12px 24px -4px rgba(0, 0, 0, 0.08);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --reevit-primary: #38bdf8;
    --reevit-primary-hover: #0ea5e9;
    --reevit-primary-foreground: #0a0a0a;
    --reevit-background: #0a0a0a;
    --reevit-surface: #171717;
    --reevit-border: rgba(255, 255, 255, 0.08);
    --reevit-text: #fafafa;
    --reevit-text-secondary: #a3a3a3;
    --reevit-muted: #737373;
    --reevit-success: #34d399;
    --reevit-success-rgb: 52, 211, 153;
    --reevit-error: #f87171;
    --reevit-error-rgb: 248, 113, 113;
    --reevit-warning: #fbbf24;
    --reevit-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.04),
      0 2px 4px rgba(0, 0, 0, 0.2),
      0 12px 24px -4px rgba(0, 0, 0, 0.3),
      0 24px 48px -12px rgba(0, 0, 0, 0.4);
    --reevit-shadow-sm:
      0 0 0 1px rgba(255, 255, 255, 0.04),
      0 1px 3px rgba(0, 0, 0, 0.3);
    --reevit-shadow-hover:
      0 0 0 1px rgba(255, 255, 255, 0.06),
      0 4px 8px rgba(0, 0, 0, 0.3),
      0 16px 32px -4px rgba(0, 0, 0, 0.4);
  }
}

.reevit-modal[data-reevit-theme="light"] {
  --reevit-primary: #0ea5e9;
  --reevit-primary-hover: #0284c7;
  --reevit-primary-foreground: #ffffff;
  --reevit-background: #fafafa;
  --reevit-surface: #ffffff;
  --reevit-border: rgba(15, 23, 42, 0.08);
  --reevit-text: #0a0a0a;
  --reevit-text-secondary: #525252;
  --reevit-muted: #a3a3a3;
  --reevit-success-rgb: 22, 163, 74;
  --reevit-error-rgb: 220, 38, 38;
}

.reevit-modal[data-reevit-theme="dark"] {
  --reevit-primary: #38bdf8;
  --reevit-primary-hover: #0ea5e9;
  --reevit-primary-foreground: #0a0a0a;
  --reevit-background: #0a0a0a;
  --reevit-surface: #171717;
  --reevit-border: rgba(255, 255, 255, 0.08);
  --reevit-text: #fafafa;
  --reevit-text-secondary: #a3a3a3;
  --reevit-muted: #737373;
  --reevit-success-rgb: 52, 211, 153;
  --reevit-error-rgb: 248, 113, 113;
}

/* ===== OVERLAY ===== */
.reevit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  animation: reevit-fade-in 0.2s ease-out;
}

@keyframes reevit-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== MODAL ===== */
.reevit-modal {
  background: var(--reevit-background);
  border-radius: var(--reevit-radius-lg);
  border: 1px solid var(--reevit-border);
  box-shadow: var(--reevit-shadow);
  width: 100%;
  max-width: 460px;
  min-height: 360px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--reevit-font);
  animation: reevit-modal-enter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: min-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  /* Subtle top accent line */
  position: relative;
}

.reevit-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--reevit-primary), color-mix(in srgb, var(--reevit-primary) 40%, transparent));
  border-radius: var(--reevit-radius-lg) var(--reevit-radius-lg) 0 0;
  z-index: 1;
}

@keyframes reevit-modal-enter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reevit-modal--success {
  border-color: rgba(var(--reevit-success-rgb), 0.3);
}

.reevit-modal--success::before {
  background: linear-gradient(90deg, rgb(var(--reevit-success-rgb)), rgba(var(--reevit-success-rgb), 0.3));
}

/* Modal Header */
.reevit-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 14px;
  background: var(--reevit-background);
}

.reevit-modal__branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reevit-modal__logo {
  height: 28px;
  width: 28px;
  object-fit: contain;
  border-radius: 8px;
}

.reevit-modal__logo-fallback {
  height: 28px;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--reevit-primary);
  color: var(--reevit-primary-foreground);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.reevit-modal__brand-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--reevit-text);
}

.reevit-modal__close {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--reevit-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.reevit-modal__close:hover {
  color: var(--reevit-text);
  opacity: 0.7;
}

/* Modal Amount */
.reevit-modal__amount {
  padding: 0 24px 18px;
  text-align: left;
  background: var(--reevit-background);
  border-bottom: 1px solid var(--reevit-border);
}

.reevit-modal__amount-label {
  display: block;
  font-family: var(--reevit-font);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--reevit-muted);
  margin-bottom: 4px;
}

.reevit-modal__amount-value {
  display: block;
  font-family: var(--reevit-font-heading);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--reevit-text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

/* Modal Content */
.reevit-modal__content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 24px;
  background: var(--reevit-background);
}

/* Modal Footer */
.reevit-modal__footer {
  padding: 12px 24px;
  text-align: center;
  background: var(--reevit-background);
  border-top: 1px solid var(--reevit-border);
}

.reevit-modal__secured {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--reevit-font);
  font-size: 10px;
  font-weight: 400;
  color: var(--reevit-muted);
  letter-spacing: 0.02em;
}

.reevit-modal__secured svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.reevit-modal__secured-brand {
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ===== PSP SELECTOR ===== */
.reevit-psp-selector {
  margin-bottom: 0;
}

.reevit-psp-selector__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--reevit-text);
  opacity: 0.7;
  margin-bottom: 12px;
}

.reevit-psp-selector__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reevit-psp-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--reevit-border);
  border-radius: var(--reevit-radius);
  background: var(--reevit-surface);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  width: 100%;
  position: relative;
}

.reevit-psp-option:hover:not(.reevit-psp-option--disabled):not(.reevit-psp-option--selected) {
  border-color: color-mix(in srgb, var(--reevit-primary) 50%, var(--reevit-border));
  background: color-mix(in srgb, var(--reevit-primary) 3%, var(--reevit-surface));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.08);
}

.reevit-psp-option--selected {
  border-color: var(--reevit-primary);
  background: color-mix(in srgb, var(--reevit-primary) 4%, var(--reevit-surface));
  border-radius: var(--reevit-radius) var(--reevit-radius) 0 0;
}

.reevit-psp-option--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.reevit-psp-option__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--reevit-background);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--reevit-border);
}

.reevit-psp-option__logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.reevit-psp-option__logo-fallback {
  font-size: 14px;
  font-weight: 700;
  color: var(--reevit-text);
}

.reevit-psp-option__content {
  flex: 1;
  min-width: 0;
}

.reevit-psp-option__name {
  display: block;
  font-family: var(--reevit-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--reevit-text);
  letter-spacing: -0.01em;
}

.reevit-psp-option__methods {
  display: block;
  font-family: var(--reevit-font);
  font-size: 12px;
  color: var(--reevit-text-secondary);
  margin-top: 3px;
}

.reevit-psp-option__chevron {
  color: var(--reevit-muted);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.reevit-psp-option:hover .reevit-psp-option__chevron {
  color: var(--reevit-primary);
  transform: translateX(2px);
}


/* ===== ANIMATIONS ===== */
@keyframes reevit-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes reevit-slide-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reevit-accordion-expand {
  from {
    opacity: 0;
    max-height: 0;
    transform: scale(0.98) translateY(-8px);
  }
  to {
    opacity: 1;
    max-height: 1000px;
    transform: scale(1) translateY(0);
  }
}

.reevit-animate-slide-up {
  animation: reevit-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reevit-animate-fade-in {
  animation: reevit-fade-in 0.4s ease-out;
}

/* ===== PSP ACCORDION ===== */
.reevit-psp-accordion {
  display: flex;
  flex-direction: column;
}

.reevit-psp-accordion__content {
  padding: 16px;
  background: var(--reevit-surface);
  border: 1px solid var(--reevit-primary);
  border-top: none;
  border-radius: 0 0 var(--reevit-radius) var(--reevit-radius);
  animation: reevit-accordion-expand 0.3s ease-out;
  transform-origin: top;
}

.reevit-psp-accordion__method-content {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--reevit-border);
}

/* Back button — text link style */
.reevit-psp-back-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  margin-bottom: 12px;
  background: none;
  border: none;
  color: var(--reevit-muted);
  font-family: var(--reevit-font);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease;
}

.reevit-psp-back-button:hover {
  color: var(--reevit-text);
}

.reevit-psp-back-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.reevit-psp-back-button svg {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.reevit-psp-back-button:hover svg {
  transform: translateX(-2px);
}

.reevit-psp-methods {
  margin-top: 4px;
}

/* ===== PAYMENT METHOD SELECTOR ===== */
.reevit-method-selector {
  margin-bottom: 0;
  width: 100%;
}

.reevit-method-selector__label {
  font-family: var(--reevit-font);
  font-size: 11px;
  font-weight: 600;
  color: var(--reevit-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.reevit-method-selector__options--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  width: 100%;
}

.reevit-method-selector__options--list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  border: 1px solid var(--reevit-border);
  border-radius: var(--reevit-radius);
  overflow: hidden;
  background: var(--reevit-surface);
}

/* Grid layout styles */
.reevit-method-option--grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 16px;
  min-height: 120px;
  background: var(--reevit-surface);
  border: 1px solid var(--reevit-border);
  border-radius: var(--reevit-radius);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  width: 100%;
}

.reevit-method-option--grid:hover:not(.reevit-method-option--disabled) {
  border-color: var(--reevit-primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--reevit-primary) 30%, transparent);
}

.reevit-method-option--grid.reevit-method-option--selected {
  border-color: var(--reevit-primary);
  background: color-mix(in srgb, var(--reevit-primary) 8%, var(--reevit-surface));
  border-width: 2px;
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--reevit-primary) 35%, transparent);
}

.reevit-method-option--grid .reevit-method-option__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: color-mix(in srgb, var(--reevit-text) 5%, transparent);
  border-radius: 18px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reevit-method-option--grid:hover .reevit-method-option__icon-wrapper {
  transform: scale(1.15) rotate(5deg);
  background: color-mix(in srgb, var(--reevit-primary) 15%, transparent);
}

.reevit-method-option--grid.reevit-method-option--selected .reevit-method-option__icon-wrapper {
  background: color-mix(in srgb, var(--reevit-primary) 25%, transparent);
  color: var(--reevit-primary);
  transform: scale(1.1);
}

.reevit-method-option--grid .reevit-method-option__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.reevit-method-option--grid .reevit-method-option__icon svg {
  width: 28px;
  height: 28px;
}

.reevit-method-option--grid .reevit-method-option__label {
  font-size: 13px;
  font-weight: 800;
  color: var(--reevit-text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* List layout styles */
.reevit-method-option--list {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--reevit-border);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  width: 100%;
  position: relative;
  animation: reevit-slide-up 0.25s ease-out both;
}

.reevit-method-option--list:nth-child(2) { animation-delay: 0.04s; }
.reevit-method-option--list:nth-child(3) { animation-delay: 0.08s; }
.reevit-method-option--list:nth-child(4) { animation-delay: 0.12s; }
.reevit-method-option--list:nth-child(5) { animation-delay: 0.16s; }

.reevit-method-option--list:last-child {
  border-bottom: none;
}

.reevit-method-option--list:hover:not(.reevit-method-option--disabled) {
  background: color-mix(in srgb, var(--reevit-text) 3%, transparent);
}

.reevit-method-option--list.reevit-method-option--selected {
  background: color-mix(in srgb, var(--reevit-primary) 6%, transparent);
  border: 1px solid var(--reevit-primary);
  border-radius: var(--reevit-radius);
}

.reevit-method-option--list .reevit-method-option__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: color-mix(in srgb, var(--reevit-text) 5%, transparent);
  border-radius: 10px;
  flex-shrink: 0;
  color: var(--reevit-text-secondary);
  transition: all 0.2s ease;
}

.reevit-method-option--list:hover .reevit-method-option__icon-wrapper {
  background: color-mix(in srgb, var(--reevit-primary) 10%, transparent);
  color: var(--reevit-primary);
}

.reevit-method-option--list.reevit-method-option--selected .reevit-method-option__icon-wrapper {
  background: color-mix(in srgb, var(--reevit-primary) 14%, transparent);
  color: var(--reevit-primary);
}

.reevit-method-option--list .reevit-method-option__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.reevit-method-option--list .reevit-method-option__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.reevit-method-option--list .reevit-method-option__label {
  display: block;
  font-family: var(--reevit-font);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--reevit-text);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.reevit-method-option--list.reevit-method-option--selected .reevit-method-option__label {
  color: var(--reevit-primary);
}

.reevit-method-option--list .reevit-method-option__description {
  display: block;
  font-family: var(--reevit-font);
  font-size: 11.5px;
  color: var(--reevit-muted);
  line-height: 1.4;
}

.reevit-method-option--list .reevit-method-option__chevron {
  color: var(--reevit-muted);
  flex-shrink: 0;
  transition: all 0.2s ease;
  opacity: 0.5;
}

.reevit-method-option--list:hover .reevit-method-option__chevron {
  color: var(--reevit-text);
  transform: translateX(2px);
  opacity: 1;
}

.reevit-method-option--list .reevit-method-option__check {
  color: var(--reevit-primary);
  flex-shrink: 0;
  animation: reevit-pop 0.25s ease-out;
}

.reevit-method-option--list.reevit-method-option--selected .reevit-method-option__chevron {
  display: none;
}

.reevit-method-option--list:not(.reevit-method-option--selected) .reevit-method-option__check {
  display: none;
}

/* Payment method logos */
.reevit-method-option__logos {
  display: flex;
  align-items: center;
  gap: 3px;
}

.reevit-method-option__logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--reevit-surface);
  padding: 2px;
  border: 1px solid var(--reevit-border);
}

.reevit-method-option--grid .reevit-method-option__logos {
  gap: 4px;
}

.reevit-method-option--grid .reevit-method-option__logo-img {
  width: 28px;
  height: 28px;
}

/* ===== INLINE ACTION (appears after method selection) ===== */
.reevit-inline-action,
.reevit-card-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: color-mix(in srgb, var(--reevit-text) 2%, transparent);
  border-radius: var(--reevit-radius);
  border: 1px solid var(--reevit-border);
}

.reevit-inline-action__hint,
.reevit-info-text {
  font-family: var(--reevit-font);
  font-size: 12.5px;
  color: var(--reevit-text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ===== MOBILE MONEY FORM ===== */
.reevit-momo-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.reevit-momo-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reevit-momo-form__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--reevit-text);
  letter-spacing: -0.01em;
}

.reevit-momo-form__input {
  padding: 14px 16px;
  font-size: 15px;
  border: 1px solid var(--reevit-border);
  border-radius: var(--reevit-radius);
  background: var(--reevit-surface);
  color: var(--reevit-text);
  transition: all 0.2s ease;
  font-family: var(--reevit-font);
  width: 100%;
}

.reevit-momo-form__input:focus {
  outline: none;
  border-color: var(--reevit-primary);
  border-width: 1.5px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--reevit-primary) 10%, transparent);
}

.reevit-momo-form__input--error {
  border-color: var(--reevit-error);
}

.reevit-momo-form__formatted {
  font-size: 12px;
  color: var(--reevit-text-secondary);
  font-family: var(--reevit-font-mono, monospace);
  margin-top: 2px;
}

.reevit-momo-form__error {
  font-size: 12px;
  color: var(--reevit-error);
  margin-top: 4px;
}

.reevit-momo-form__networks {
  display: flex;
  gap: 10px;
}

.reevit-network-btn {
  flex: 1;
  padding: 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--reevit-border);
  border-radius: var(--reevit-radius-sm);
  background: transparent;
  color: var(--reevit-text);
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reevit-network-btn:hover:not(:disabled) {
  border-color: var(--reevit-text-secondary);
  background: rgba(255, 255, 255, 0.02);
}

.reevit-network-btn--selected {
  border-color: var(--network-color, var(--reevit-primary));
  background: color-mix(in srgb, var(--network-color, var(--reevit-primary)) 10%, transparent);
  color: var(--reevit-text);
  color: #ffffff;
}

.reevit-network-btn--selected:hover {
  background: var(--network-color, var(--reevit-primary-hover));
  border-color: var(--network-color, var(--reevit-primary-hover));
}

.reevit-momo-form__actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.reevit-momo-form__hint {
  font-size: 11px;
  color: var(--reevit-text-secondary);
  text-align: center;
  margin-top: 4px;
}

/* ===== BUTTONS ===== */
.reevit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--reevit-radius);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--reevit-font);
  border: none;
  min-height: 44px;
  letter-spacing: -0.01em;
}

.reevit-btn--primary {
  flex: 1;
  background: linear-gradient(180deg, var(--reevit-primary), var(--reevit-primary-hover));
  color: var(--reevit-primary-foreground);
  border: 1px solid color-mix(in srgb, var(--reevit-primary) 60%, transparent);
  box-shadow: var(--reevit-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.reevit-btn--primary:hover:not(:disabled) {
  background: linear-gradient(180deg, var(--reevit-primary-hover), color-mix(in srgb, var(--reevit-primary-hover) 85%, black));
  border-color: var(--reevit-primary-hover);
  box-shadow: var(--reevit-shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.reevit-btn--primary:focus-visible:not(:disabled) {
  outline: 2px solid var(--reevit-primary);
  outline-offset: 2px;
}

.reevit-btn--primary:active:not(:disabled) {
  background: var(--reevit-primary-hover);
  transform: translateY(0) scale(0.97);
  box-shadow: var(--reevit-shadow-sm);
}

.reevit-btn--primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.reevit-btn--secondary {
  background: transparent;
  color: var(--reevit-text);
  border: 1px solid var(--reevit-border);
}

.reevit-btn--secondary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--reevit-text) 4%, transparent);
  border-color: color-mix(in srgb, var(--reevit-text) 20%, var(--reevit-border));
}

.reevit-btn--secondary:focus-visible:not(:disabled) {
  outline: 2px solid var(--reevit-text);
  outline-offset: 2px;
}

.reevit-trigger-btn {
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(180deg, var(--reevit-primary), var(--reevit-primary-hover));
  color: var(--reevit-primary-foreground);
  border: 1px solid color-mix(in srgb, var(--reevit-primary) 60%, transparent);
  border-radius: var(--reevit-radius);
  cursor: pointer;
  font-family: var(--reevit-font);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.01em;
  min-height: 44px;
  box-shadow: var(--reevit-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.reevit-trigger-btn:hover {
  background: linear-gradient(180deg, var(--reevit-primary-hover), color-mix(in srgb, var(--reevit-primary-hover) 85%, black));
  border-color: var(--reevit-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--reevit-shadow-hover);
}

.reevit-trigger-btn:focus-visible {
  outline: 2px solid var(--reevit-primary);
  outline-offset: 2px;
}

/* ===== STATES ===== */
.reevit-loading,
.reevit-success,
.reevit-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  gap: 12px;
}

/* ===== LOADING — Three-dot pulse ===== */
.reevit-loading {
  gap: 16px;
}

.reevit-dot-pulse {
  display: flex;
  align-items: center;
  gap: 6px;
}

.reevit-dot-pulse__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--reevit-text);
  opacity: 0.3;
  animation: reevit-dot-pulse 1.2s ease-in-out infinite;
}

.reevit-dot-pulse__dot:nth-child(2) {
  animation-delay: 0.15s;
}

.reevit-dot-pulse__dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes reevit-dot-pulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

.reevit-loading p {
  font-family: var(--reevit-font);
  font-size: 12px;
  color: var(--reevit-muted);
  margin: 0;
  letter-spacing: 0.01em;
}

/* Legacy spinner (kept for backwards compat) */
.reevit-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--reevit-border);
  border-top-color: var(--reevit-text);
  border-radius: 50%;
  animation: reevit-spin 0.7s linear infinite;
}

@keyframes reevit-spin {
  to { transform: rotate(360deg); }
}

.reevit-loading .reevit-spinner {
  width: 32px;
  height: 32px;
  border-width: 2px;
}

/* ===== SUCCESS ===== */
.reevit-success {
  position: relative;
}

.reevit-success__icon-wrapper {
  margin-bottom: 8px;
}

.reevit-success__icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(var(--reevit-success-rgb)), #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: reevit-pop 0.4s ease-out, reevit-glow 2s ease-out 0.4s;
  box-shadow: 0 0 0 0 rgba(var(--reevit-success-rgb), 0);
}

@keyframes reevit-glow {
  0% { box-shadow: 0 0 0 0 rgba(var(--reevit-success-rgb), 0.4); }
  70% { box-shadow: 0 0 0 24px rgba(var(--reevit-success-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--reevit-success-rgb), 0); }
}

.reevit-success__checkmark {
  width: 40px;
  height: 40px;
}

.reevit-success__checkmark-circle {
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: reevit-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.reevit-success__checkmark-check {
  stroke: white;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: reevit-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes reevit-stroke {
  100% { stroke-dashoffset: 0; }
}

.reevit-success__title {
  font-family: var(--reevit-font);
  font-size: 18px !important;
  font-weight: 600;
  color: var(--reevit-text);
  margin: 0;
  letter-spacing: -0.025em;
}

.reevit-success__amount {
  font-family: var(--reevit-font-heading);
  font-size: 28px !important;
  font-weight: 700;
  color: var(--reevit-success);
  margin: 4px 0 !important;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.reevit-success__reference {
  font-family: var(--reevit-font-mono);
  font-size: 11px !important;
  color: var(--reevit-text-secondary);
  margin: 0 !important;
  background: color-mix(in srgb, var(--reevit-text) 5%, transparent);
  padding: 6px 14px;
  border-radius: var(--reevit-radius-sm);
  letter-spacing: 0.02em;
}

.reevit-success__redirect {
  font-family: var(--reevit-font);
  font-size: 11px !important;
  color: var(--reevit-muted);
  margin-top: 8px !important;
  animation: reevit-pulse 1.5s ease-in-out infinite;
}

/* Countdown bar for auto-close */
.reevit-success__countdown {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: rgb(var(--reevit-success-rgb));
  border-radius: 0 0 var(--reevit-radius-lg) var(--reevit-radius-lg);
  animation: reevit-countdown 5s linear forwards;
}

@keyframes reevit-countdown {
  from { width: 100%; }
  to { width: 0%; }
}

@keyframes reevit-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Legacy success icon (fallback) */
.reevit-success__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--reevit-success);
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: reevit-pop 0.3s ease-out;
}

/* ===== ERROR ===== */
.reevit-error__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(var(--reevit-error-rgb), 0.1);
  color: rgb(var(--reevit-error-rgb));
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--reevit-error-rgb), 0.2);
}

@keyframes reevit-pop {
  0% { transform: scale(0); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.reevit-success h3,
.reevit-error h3 {
  font-family: var(--reevit-font);
  font-size: 15px;
  font-weight: 600;
  color: var(--reevit-text);
  margin: 0;
  letter-spacing: -0.02em;
}

.reevit-success p,
.reevit-error p {
  font-family: var(--reevit-font);
  font-size: 13px;
  color: var(--reevit-text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ===== PSP BRIDGE ===== */
.reevit-psp-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  gap: 12px;
}

.reevit-psp-bridge__loading p {
  font-size: 12px;
  color: var(--reevit-text-secondary);
  margin: 0;
}

/* ===== METHOD STEP ACTIONS ===== */
.reevit-method-step__actions {
  margin-top: 14px;
}

/* When logos are shown inside icon-wrapper in list mode, remove the bg container */
.reevit-method-option--list .reevit-method-option__icon-wrapper:has(.reevit-method-option__logos) {
  background: transparent;
  width: auto;
  height: auto;
  border-radius: 0;
}

/* ===== STRIPE BRIDGE ===== */
.reevit-stripe-bridge {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.reevit-stripe-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  gap: 12px;
  min-height: 200px;
}

.reevit-stripe-loading p {
  font-size: 12px;
  color: var(--reevit-text-secondary);
  margin: 0;
}

.reevit-stripe-element {
  min-height: 200px;
  border-radius: var(--reevit-radius);
}

/* Override Stripe's default form styling for better dark mode compatibility */
.reevit-stripe-element iframe {
  border-radius: var(--reevit-radius);
}

.reevit-stripe-error {
  padding: 10px 14px;
  background: oklch(0.577 0.245 27.325 / 0.1);
  border: 1px solid var(--reevit-error);
  border-radius: var(--reevit-radius);
}

.reevit-stripe-error p {
  font-size: 12px;
  color: var(--reevit-error);
  margin: 0;
}

.reevit-stripe-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

/* Submit Button - Primary action */
.reevit-submit-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--reevit-radius);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--reevit-font);
  min-height: 44px;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, var(--reevit-primary), var(--reevit-primary-hover));
  color: var(--reevit-primary-foreground);
  border: 1px solid color-mix(in srgb, var(--reevit-primary) 60%, transparent);
  box-shadow: var(--reevit-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.reevit-submit-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, var(--reevit-primary-hover), color-mix(in srgb, var(--reevit-primary-hover) 85%, black));
  border-color: var(--reevit-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--reevit-shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.reevit-submit-btn:focus-visible:not(:disabled) {
  outline: 2px solid var(--reevit-primary);
  outline-offset: 2px;
}

.reevit-submit-btn:active:not(:disabled) {
  background: var(--reevit-primary-hover);
  transform: translateY(0) scale(0.97);
  box-shadow: var(--reevit-shadow-sm);
}

.reevit-submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* Cancel Button - Secondary action */
.reevit-cancel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--reevit-radius);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--reevit-font);
  min-height: 44px;
  letter-spacing: -0.01em;
  background: transparent;
  color: var(--reevit-text);
  border: 1px solid var(--reevit-border);
}

.reevit-cancel-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--reevit-text) 4%, transparent);
  border-color: color-mix(in srgb, var(--reevit-text) 20%, var(--reevit-border));
}

.reevit-cancel-btn:focus-visible:not(:disabled) {
  outline: 2px solid var(--reevit-text);
  outline-offset: 2px;
}

.reevit-cancel-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.reevit-cancel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===== RESPONSIVE — Bottom sheet on mobile ===== */
@media (max-width: 480px) {
  .reevit-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .reevit-modal {
    max-width: 100%;
    max-height: 92vh;
    border-radius: var(--reevit-radius-lg) var(--reevit-radius-lg) 0 0;
    animation: reevit-sheet-up 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reevit-modal::before {
    border-radius: var(--reevit-radius-lg) var(--reevit-radius-lg) 0 0;
  }

  /* Drag handle indicator */
  .reevit-modal__header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--reevit-border);
  }

  .reevit-modal__header {
    position: relative;
    padding-top: 24px;
  }

  @keyframes reevit-sheet-up {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .reevit-modal__amount-value {
    font-size: 30px;
  }

  .reevit-momo-form__networks {
    flex-direction: column;
  }

  .reevit-momo-form__actions {
    flex-direction: column-reverse;
  }

  .reevit-btn--secondary {
    flex: none;
  }

  /* Ensure touch targets */
  .reevit-method-option--list,
  .reevit-psp-option {
    min-height: 52px;
  }
}

/* =================================================================
   BRUTALIST CHECKOUT — Geist/ABC mono, 2px borders, hard shadows.
   Namespaced under .reevit-brut* so it never collides with the
   legacy widget classes or the PSP bridge styles above.
   ================================================================= */

.reevit-brut-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  animation: reevit-fade-in 0.12s ease-out;
}

.reevit-brut__modal {
  --rb-bg: #fafafa;
  --rb-surface: #ffffff;
  --rb-text: #000000;
  --rb-muted: #666666;
  --rb-border: #000000;
  --rb-border-soft: rgba(0, 0, 0, 0.14);
  --rb-accent: #000000;
  --rb-accent-text: #ffffff;
  --rb-danger: #ff3b3b;
  --rb-logo-bg: #ffffff;

  width: 480px;
  max-width: 100%;
  max-height: calc(100vh - 40px);
  background: var(--rb-bg);
  color: var(--rb-text);
  border: 2px solid var(--rb-border);
  border-radius: 4px;
  box-shadow: 6px 6px 0 var(--rb-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'ABC Repro Mono', 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  animation: reevit-brut-snap 180ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

.reevit-brut__modal[data-reevit-theme='dark'] {
  --rb-bg: #0f0f0f;
  --rb-surface: #1a1a1a;
  --rb-text: #ffffff;
  --rb-muted: #888888;
  --rb-border: #ffffff;
  --rb-border-soft: rgba(255, 255, 255, 0.18);
  --rb-accent: #ffffff;
  --rb-accent-text: #000000;
}

@media (prefers-color-scheme: dark) {
  .reevit-brut__modal:not([data-reevit-theme='light']) {
    --rb-bg: #0f0f0f;
    --rb-surface: #1a1a1a;
    --rb-text: #ffffff;
    --rb-muted: #888888;
    --rb-border: #ffffff;
    --rb-border-soft: rgba(255, 255, 255, 0.18);
    --rb-accent: #ffffff;
    --rb-accent-text: #000000;
  }
}

@keyframes reevit-brut-snap {
  from { opacity: 0; transform: translateY(6px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Top bar ---- */
.reevit-brut__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 2px solid var(--rb-border);
  background: var(--rb-surface);
  font-size: 12px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.reevit-brut__topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reevit-brut__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--rb-accent);
}

.reevit-brut__close {
  border: none;
  background: transparent;
  color: var(--rb-text);
  font-family: inherit;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 0.4px;
}

.reevit-brut__close:hover {
  background: var(--rb-text);
  color: var(--rb-bg);
}

/* ---- Header / amount ---- */
.reevit-brut__header {
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--rb-border-soft);
  flex-shrink: 0;
}

.reevit-brut__brand-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--rb-muted);
  margin-bottom: 13px;
}

.reevit-brut__brand-logo {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--rb-border);
  border-radius: 2px;
  object-fit: cover;
  background: var(--rb-logo-bg);
}

.reevit-brut__brand-fallback {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--rb-border);
  border-radius: 2px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--rb-logo-bg);
  color: #000;
}

.reevit-brut__amount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reevit-brut__amount {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.reevit-brut__amount-bracket {
  color: var(--rb-muted);
}

.reevit-brut__amount-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 8px;
  border: 1.5px solid var(--rb-border);
  border-radius: 2px;
  color: var(--rb-text);
  white-space: nowrap;
}

/* ---- Body ---- */
.reevit-brut__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.reevit-brut__section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--rb-muted);
  margin-bottom: 8px;
}

/* ---- Processor grid ---- */
.reevit-brut__providers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.reevit-brut__provider {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1.5px solid var(--rb-border);
  border-radius: 4px;
  background: transparent;
  color: var(--rb-text);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform 0.1s, box-shadow 0.1s, background 0.12s;
}

.reevit-brut__provider:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--rb-border);
}

.reevit-brut__provider[data-selected='true'] {
  background: var(--rb-text);
  color: var(--rb-bg);
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--rb-border);
}

.reevit-brut__provider:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.reevit-brut__provider-logo {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--rb-border);
  border-radius: 3px;
  background: var(--rb-logo-bg);
  object-fit: contain;
  padding: 3px;
  flex-shrink: 0;
}

.reevit-brut__provider[data-selected='true'] .reevit-brut__provider-logo {
  border-color: var(--rb-bg);
}

.reevit-brut__provider-fallback {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--rb-border);
  border-radius: 3px;
  background: var(--rb-logo-bg);
  color: #000;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.reevit-brut__provider-name {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.25;
  min-width: 0;
}

/* ---- Method grid ---- */
.reevit-brut__methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.reevit-brut__method {
  padding: 13px 12px;
  border: 1.5px solid var(--rb-border);
  border-radius: 4px;
  background: transparent;
  color: var(--rb-text);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: transform 0.1s, box-shadow 0.1s, background 0.12s;
}

.reevit-brut__method--full {
  grid-column: 1 / -1;
}

.reevit-brut__method:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--rb-border);
}

.reevit-brut__method[data-selected='true'] {
  background: var(--rb-text);
  color: var(--rb-bg);
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--rb-border);
}

.reevit-brut__method:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.reevit-brut__method-id {
  font-size: 10px;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.reevit-brut__method-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.reevit-brut__methods-empty {
  border: 1.5px dashed var(--rb-border-soft);
  border-radius: 4px;
  padding: 18px 14px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--rb-muted);
}

/* ---- CTA ---- */
.reevit-brut__cta {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--rb-border);
  border-radius: 4px;
  background: var(--rb-accent);
  color: var(--rb-accent-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 3px 3px 0 var(--rb-border);
  transition: transform 0.1s, box-shadow 0.1s;
}

.reevit-brut__cta:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--rb-border);
}

.reevit-brut__cta:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--rb-border);
}

.reevit-brut__cta:disabled {
  background: var(--rb-bg);
  color: var(--rb-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.reevit-brut__cta--ghost {
  background: transparent;
  color: var(--rb-text);
}

.reevit-brut__cta--ghost:disabled {
  background: transparent;
}

/* ---- Mobile money form ---- */
.reevit-brut__momo {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reevit-brut__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.reevit-brut__field-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--rb-muted);
}

.reevit-brut__input {
  width: 100%;
  padding: 12px 13px;
  border: 2px solid var(--rb-border);
  border-radius: 4px;
  background: var(--rb-surface);
  color: var(--rb-text);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.reevit-brut__input::placeholder {
  color: var(--rb-muted);
}

.reevit-brut__input:focus {
  outline: none;
  box-shadow: 3px 3px 0 var(--rb-border);
}

.reevit-brut__input--error {
  border-color: var(--rb-danger);
}

.reevit-brut__input-note {
  font-size: 11px;
  color: var(--rb-muted);
  letter-spacing: 0.3px;
}

.reevit-brut__input-error {
  font-size: 11px;
  color: var(--rb-danger);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.reevit-brut__networks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.reevit-brut__network {
  position: relative;
  padding: 11px 6px;
  border: 2px solid var(--rb-border);
  border-radius: 4px;
  background: transparent;
  color: var(--rb-text);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, background 0.12s;
}

.reevit-brut__network:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--rb-border);
}

.reevit-brut__network[data-selected='true'] {
  background: var(--rb-text);
  color: var(--rb-bg);
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--rb-border);
}

.reevit-brut__network:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.reevit-brut__momo-actions {
  display: flex;
  gap: 8px;
}

.reevit-brut__momo-hint {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--rb-muted);
  text-align: center;
  line-height: 1.6;
  margin: 0;
}

/* ---- Footer ---- */
.reevit-brut__footer {
  padding: 10px 20px;
  border-top: 2px solid var(--rb-border);
  background: var(--rb-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--rb-muted);
  flex-shrink: 0;
}

/* ---- States ---- */
.reevit-brut__state {
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  flex: 1 1 auto;
}

.reevit-brut__state-marker {
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--rb-muted);
}

.reevit-brut__state-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  margin: 0;
}

.reevit-brut__state-sub {
  font-size: 12px;
  color: var(--rb-muted);
  max-width: 320px;
  line-height: 1.6;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin: 0;
}

.reevit-brut__bars {
  display: flex;
  gap: 4px;
  height: 24px;
  align-items: center;
}

.reevit-brut__bars span {
  width: 4px;
  height: 100%;
  background: var(--rb-text);
  animation: reevit-brut-bars 800ms ease-in-out infinite;
}

.reevit-brut__bars span:nth-child(2) { animation-delay: 100ms; }
.reevit-brut__bars span:nth-child(3) { animation-delay: 200ms; }
.reevit-brut__bars span:nth-child(4) { animation-delay: 300ms; }
.reevit-brut__bars span:nth-child(5) { animation-delay: 400ms; }

@keyframes reevit-brut-bars {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.reevit-brut__check-block,
.reevit-brut__error-block {
  width: 64px;
  height: 64px;
  border: 2px solid var(--rb-border);
  border-radius: 4px;
  display: grid;
  place-items: center;
}

.reevit-brut__check-block {
  background: var(--rb-accent);
  color: var(--rb-accent-text);
}

.reevit-brut__error-block {
  background: var(--rb-danger);
  color: #ffffff;
}

.reevit-brut__icon-box {
  width: 56px;
  height: 56px;
  border: 2px solid var(--rb-border);
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--rb-text);
}

.reevit-brut__phone {
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border: 1.5px solid var(--rb-border);
  border-radius: 2px;
  color: var(--rb-text);
}

.reevit-brut__steps {
  list-style: none;
  counter-reset: rb-step;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}

.reevit-brut__steps li {
  counter-increment: rb-step;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--rb-text);
  line-height: 1.45;
}

.reevit-brut__steps li::before {
  content: counter(rb-step, decimal-leading-zero);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--rb-border);
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}

.reevit-brut__countdown {
  height: 3px;
  width: 100%;
  background: var(--rb-accent);
  animation: reevit-brut-countdown linear forwards;
}

@keyframes reevit-brut-countdown {
  from { width: 100%; }
  to { width: 0%; }
}

/* ---- PSP bridge host (bridges keep their own styling) ---- */
.reevit-brut__bridge {
  padding: 16px 20px 20px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
