/* =========================
   ScanWin — merchant-login.css
   -------------------------
   Delta styles for the Merchant login. The page reuses login.css
   wholesale (showcase, form panel, inputs, social buttons, legal
   footer); only the pieces below are merchant-specific:
     • the "Back" link in the brand row
     • the store icon inside the testimonial avatar
     • the read-only "Your account hierarchy" strip
   Figma: Login — Desktop 1567:19268 · Mobile 1567:28928
   Logic: Dev Note "Login & account hierarchy" (user does NOT pick a
   level; the strip is filled from the account after email / SSO).
========================= */

/* Note: .sw-login-back lives in login.css (shared by both logins). */

/* Testimonial avatar holds a store icon (merchant) instead of initials */
.sw-testimonial__avatar svg {
  width: 18px;
  height: 18px;
}

/* =========================
   Your account hierarchy — READ-ONLY strip
   Revealed/filled after the account is identified (email blur or SSO).
   Shows where the account sits; it is NOT a chooser.
========================= */
.sw-acct-strip {
  padding: 14px 16px;
  background: #f6f5fe;
  border: 1px solid #e6e2fb;
  border-radius: 12px;
  animation: sw-acct-in 0.25s ease;
}

.sw-acct-strip__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.sw-acct-strip__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sw-text-muted);
}

.sw-acct-strip__entity {
  font-size: 13px;
  font-weight: 600;
  color: var(--sw-violet);
  text-align: right;
  min-width: 0;
}

.sw-acct-strip__note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--sw-text-muted);
}

@keyframes sw-acct-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sw-acct-strip {
    animation: none;
  }
}

/* The hierarchy chain itself — Distributor → Chain → Division → Location.
   Read-only spans (not buttons): the resolved level gets .is-active. */
.sw-hierarchy {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.sw-hierarchy__level {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 8px;
  background: #fff;
  border: 1px solid var(--sw-border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--sw-text-muted);
  white-space: nowrap;
}

.sw-hierarchy__level.is-active {
  background: var(--sw-violet);
  border-color: var(--sw-violet);
  color: #fff;
  font-weight: 600;
}

.sw-hierarchy__arrow {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--sw-text-faint);
}

/* Phones (≤575.98px) — figma mobile frame 1567:28928: pills size to
   their content (not equal-width) with tighter spacing/type. */
@media (max-width: 575.98px) {
  .sw-hierarchy {
    gap: 4px;
  }

  .sw-hierarchy__level {
    flex: 0 0 auto;
    padding: 7px 10px;
    font-size: 11px;
  }

  .sw-hierarchy__arrow {
    font-size: 12px;
  }

  /* Figma mobile footer (1567:29025): links row centred above the
     copyright. DOM order is copyright→nav, so column-reverse flips it. */
  .sw-legal {
    flex-direction: column-reverse;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .sw-legal span {
    font-size: 11px;
  }

  .sw-legal nav {
    display: flex;
    gap: 20px;
  }

  .sw-legal nav a {
    margin-left: 0;
  }
}
