/* The --hosted-* names are kept so existing selectors keep working, but every
   value now resolves to the canonical token set in styles.css. Previously this
   file carried a second, near-identical palette (#303241 vs #003041 ink,
   #003847 vs #002733 rail) which is why the two hosted pages never matched. */
.hosted-onboarding-redesign {
  --hosted-ink: var(--ink);
  --hosted-muted: var(--muted);
  --hosted-line: var(--line);
  --hosted-soft-line: #e9edf3;
  --hosted-panel: var(--white);
  --hosted-field: #fbfcfe;
  --hosted-sidebar: var(--rail);
  --hosted-sidebar-soft: var(--rail-muted);
  --hosted-pink: var(--pink);
  --hosted-pink-dark: var(--pink-hover);
  --hosted-green: var(--green);
  --hosted-green-soft: rgba(0, 168, 134, 0.08);
  --hosted-green-line: rgba(0, 168, 134, 0.48);
  --hosted-focus: rgba(46, 180, 255, 0.24);
  background: var(--ground);
  color: var(--hosted-ink);
  font-size: 14px;
}

.hosted-onboarding-redesign .app-shell {
  justify-content: stretch;
}

.hosted-layout {
  display: grid;
  grid-template-columns: minmax(248px, 300px) minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
}

.hosted-sidebar {
  background: var(--hosted-sidebar);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  justify-content: space-between;
  min-height: 100vh;
  overflow: hidden;
  padding: 38px 32px 30px;
  position: sticky;
  top: 0;
}

.hosted-sidebar-top {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

/* Wordmark only. The icon competed with the pink step marker — the one element
   on this rail a merchant has to find instantly. */
.hosted-brand {
  color: #ffffff;
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.hosted-sidebar-intro {
  flex: 0 0 auto;
  margin-top: 44px;
}

.hosted-sidebar-intro span {
  color: var(--hosted-sidebar-soft);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hosted-sidebar-intro h1 {
  color: #ffffff;
  font-size: 31px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.22;
  margin: 0;
}

.hosted-sidebar-intro p {
  color: var(--hosted-sidebar-soft);
  font-size: 16px;
  line-height: 1.48;
  margin: 24px 0 0;
}

.hosted-checklist {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  margin-top: 46px;
  max-height: max(230px, calc(100vh - 390px));
  overflow-y: auto;
  padding: 12px;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.hosted-checklist-item,
.hosted-checklist-item:hover,
.hosted-checklist-item:focus-visible {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.72);
  display: grid;
  font-size: 14px;
  font-weight: 500;
  gap: 10px;
  grid-template-columns: 12px minmax(0, 1fr);
  justify-content: start;
  min-height: 32px;
  padding: 6px 8px;
  text-align: left;
  transform: none;
  width: 100%;
}

.hosted-checklist-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hosted-checklist-item > span:first-child {
  align-self: center;
  background: rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  display: block;
  height: 6px;
  width: 6px;
}

.hosted-checklist-item strong {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.hosted-checklist-item.active {
  color: #ffffff;
}

.hosted-checklist-item.active strong {
  font-weight: 650;
}

.hosted-checklist-item.active > span:first-child {
  background: var(--hosted-pink);
  box-shadow: 0 0 0 5px rgba(241, 3, 87, 0.16);
}

.hosted-checklist-item.done > span:first-child {
  background: #66d6c5;
}

.hosted-checklist-item.locked {
  color: rgba(255, 255, 255, 0.42);
}

.hosted-checklist-item.locked > span:first-child {
  background: rgba(255, 255, 255, 0.18);
}

.hosted-sidebar-terms {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.hosted-sidebar-terms:hover,
.hosted-sidebar-terms:focus-visible {
  text-decoration: underline;
}

.hosted-main {
  align-self: stretch;
  display: flex;
  justify-content: center;
  margin: 0;
  max-width: none;
  padding: 64px clamp(28px, 6vw, 86px);
}

.hosted-main-inner {
  max-width: 690px;
  width: 100%;
}

.hosted-onboarding-redesign section.active {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.hosted-onboarding-redesign .section-heading {
  border-bottom: 0;
  margin: 0 0 28px;
  padding-bottom: 0;
}

/* Was display:none at every width, so "Step 2 of 10" never rendered anywhere.
   Desktop shows it above the heading; the sticky header carries it on mobile. */
.hosted-onboarding-redesign .step-eyebrow {
  color: var(--hosted-muted);
  display: block;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.hosted-onboarding-redesign h2 {
  color: var(--hosted-ink);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.18;
}

.hosted-onboarding-redesign .section-heading p {
  color: var(--hosted-muted);
  font-size: 18px;
  line-height: 1.46;
  margin-top: 14px;
  max-width: 620px;
}

.hosted-onboarding-redesign form {
  gap: 18px;
}

.hosted-onboarding-redesign form.compact {
  border-top: 1px solid var(--hosted-soft-line);
  margin-top: 24px;
  max-width: none;
  padding-top: 24px;
}

.hosted-onboarding-redesign .grid {
  gap: 18px 16px;
}

.hosted-onboarding-redesign [data-business-after-company-selection] {
  margin-top: 18px;
}

/* iOS gives a date input an intrinsic width wide enough for the localised
   format plus its picker chrome, and centres the value inside it. Neither
   responds to width:100%, so on a phone the field escaped its grid track while
   every other field sat inside one. */
.hosted-onboarding-redesign input[type="date"] {
  appearance: none;
  min-width: 0;
  text-align: left;
  -webkit-appearance: none;
}

.hosted-onboarding-redesign label {
  color: #454a56;
  font-size: 13px;
  font-weight: 600;
}

.hosted-onboarding-redesign input,
.hosted-onboarding-redesign textarea,
.hosted-onboarding-redesign select {
  background: var(--hosted-field);
  border-color: #cfd5df;
  border-radius: 6px;
  color: var(--hosted-ink);
  font-size: 15px;
  font-weight: 400;
  min-height: 42px;
  padding: 10px 12px;
}

.hosted-onboarding-redesign select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23454A56' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 14px 8px;
  padding-right: 46px;
}

.hosted-onboarding-redesign select option {
  background: var(--hosted-ink);
  color: #ffffff;
  font-weight: 400;
}

.hosted-onboarding-redesign textarea {
  min-height: 92px;
}

.hosted-onboarding-redesign input:focus,
.hosted-onboarding-redesign textarea:focus,
.hosted-onboarding-redesign select:focus {
  border-color: #2eb4ff;
  box-shadow: 0 0 0 3px var(--hosted-focus);
}

.hosted-onboarding-redesign input:disabled:not([type="checkbox"]):not([type="radio"]):not(.code-input__field),
.hosted-onboarding-redesign textarea:disabled,
.hosted-onboarding-redesign select:disabled {
  background: var(--element);
  color: var(--muted);
  cursor: not-allowed;
}

/* Sized to this shell's 42px controls rather than the 48px default. */
.hosted-onboarding-redesign .checkbox-row.field-aligned {
  min-height: 42px;
}

.hosted-onboarding-redesign .code-input__cell {
  background: var(--hosted-field);
  border-color: #cfd5df;
  color: var(--hosted-ink);
  min-height: 42px;
}

.hosted-onboarding-redesign .code-input:focus-within .code-input__cell[data-active] {
  border-color: #2eb4ff;
  box-shadow: 0 0 0 3px var(--hosted-focus);
}

.hosted-onboarding-redesign input[aria-invalid="true"],
.hosted-onboarding-redesign textarea[aria-invalid="true"],
.hosted-onboarding-redesign select[aria-invalid="true"] {
  border-color: rgba(241, 3, 87, 0.72);
}

.hosted-onboarding-redesign .field-error {
  color: var(--hosted-pink-dark);
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 6px;
}

.hosted-onboarding-redesign .checkbox-row + .field-error {
  margin-top: -10px;
}

.hosted-onboarding-redesign .address-lookup {
  display: grid;
  gap: 7px;
  position: relative;
}

.hosted-onboarding-redesign .address-lookup.hidden {
  display: none;
}

.hosted-onboarding-redesign .address-lookup-results {
  background: #ffffff;
  border: 1px solid var(--hosted-line);
  border-radius: 7px;
  box-shadow: 0 16px 36px rgba(0, 34, 48, 0.12);
  display: grid;
  left: 0;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
}

.hosted-onboarding-redesign .address-lookup-results.hidden {
  display: none;
}

.hosted-onboarding-redesign .address-lookup-result,
.hosted-onboarding-redesign .address-lookup-result:hover,
.hosted-onboarding-redesign .address-lookup-result:focus-visible {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--hosted-ink);
  font-size: 13px;
  font-weight: 400;
  justify-content: start;
  line-height: 1.3;
  min-height: 0;
  padding: 8px 10px;
  text-align: left;
  transform: none;
}

.hosted-onboarding-redesign .address-lookup-result:hover,
.hosted-onboarding-redesign .address-lookup-result:focus-visible {
  background: #f3f6fa;
}

.hosted-onboarding-redesign .address-lookup-empty,
.hosted-onboarding-redesign .address-lookup-brand,
.hosted-onboarding-redesign .address-lookup-status {
  color: var(--hosted-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.hosted-onboarding-redesign .address-lookup-empty,
.hosted-onboarding-redesign .address-lookup-brand {
  padding: 8px 10px;
}

.hosted-onboarding-redesign .address-lookup-brand {
  border-top: 1px solid var(--hosted-soft-line);
  color: #858b96;
  margin-top: 3px;
}

.hosted-onboarding-redesign .address-lookup-status {
  margin: 0;
}

.hosted-onboarding-redesign .address-lookup-status.hidden {
  display: none;
}

.hosted-onboarding-redesign .company-search-results {
  background: #ffffff;
  border: 1px solid var(--hosted-line);
  border-radius: 7px;
  box-shadow: 0 16px 36px rgba(0, 34, 48, 0.12);
  display: block;
  margin-top: 4px;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
}

/* Companies House results. These were solid pink buttons with the company
   number buried in a details string; the merchant could not tell an active
   company from a dissolved one. */
.hosted-onboarding-redesign .hosted-main button.company-search-result,
.hosted-onboarding-redesign .hosted-main button.company-search-result:hover,
.hosted-onboarding-redesign .hosted-main button.company-search-result:focus-visible {
  align-items: baseline;
  background: var(--white);
  border: 0;
  border-bottom: 1px solid var(--hosted-soft-line);
  border-radius: 0;
  box-shadow: none;
  color: var(--hosted-ink);
  column-gap: 12px;
  display: grid;
  font-weight: 400;
  grid-template-columns: minmax(0, 1fr) auto auto;
  justify-content: stretch;
  min-height: 0;
  padding: 11px 13px;
  row-gap: 2px;
  text-align: left;
  transform: none;
  width: 100%;
}

.hosted-onboarding-redesign .hosted-main button.company-search-result:last-child {
  border-bottom: 0;
}

.hosted-onboarding-redesign .hosted-main button.company-search-result:hover,
.hosted-onboarding-redesign .hosted-main button.company-search-result:focus-visible {
  background: var(--mint);
}

.hosted-onboarding-redesign .company-search-result strong {
  color: var(--hosted-ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}

.hosted-onboarding-redesign .company-search-number {
  color: var(--hosted-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.hosted-onboarding-redesign .company-search-status {
  border-radius: 4px;
  font-family: var(--font-label);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 2px 6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.hosted-onboarding-redesign .company-search-status.is-active {
  background: #dff3ee;
  color: #00695a;
}

.hosted-onboarding-redesign .company-search-status.is-inactive {
  background: #f3e7e7;
  color: #8a3a32;
}

.hosted-onboarding-redesign .company-search-address {
  color: var(--hosted-muted);
  font-size: 12px;
  grid-column: 1 / -1;
  line-height: 1.35;
}

.hosted-onboarding-redesign .subsection {
  border-top-color: var(--hosted-soft-line);
  gap: 14px;
  padding-top: 18px;
}

.hosted-onboarding-redesign .subsection h3 {
  color: var(--hosted-ink);
  font-size: 18px;
  font-weight: 600;
}

.hosted-onboarding-redesign .option-grid {
  gap: 12px;
}

.hosted-onboarding-redesign .checkbox-row {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #454a56;
  display: flex;
  font-size: 12px;
  font-weight: 400;
  gap: 14px;
  line-height: 1.35;
  min-height: 34px;
  padding: 7px 8px;
  position: relative;
}

.hosted-onboarding-redesign .checkbox-row:has(input:checked) {
  background: var(--hosted-green-soft);
  border-color: var(--hosted-green-line);
}

.hosted-onboarding-redesign .checkbox-row input[type="checkbox"] {
  appearance: none;
  background: #ffffff;
  border: 1.5px solid #7d8490;
  border-radius: 4px;
  flex: 0 0 18px;
  height: 18px;
  margin: 0;
  margin-top: 0;
  min-height: 0;
  position: relative;
  transform: none;
  width: 18px;
}

.hosted-onboarding-redesign .checkbox-row input[type="checkbox"]:checked {
  background: var(--hosted-pink);
  border-color: var(--hosted-pink);
}

.hosted-onboarding-redesign .checkbox-row input[type="checkbox"]:checked::after {
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  content: "";
  display: block;
  height: 9px;
  left: 5px;
  position: absolute;
  top: 2px;
  transform: rotate(45deg);
  width: 5px;
}

.hosted-onboarding-redesign .checkbox-row input[type="radio"] {
  appearance: none;
  background: #ffffff;
  border: 1.5px solid #7d8490;
  border-radius: 999px;
  flex: 0 0 18px;
  height: 18px;
  margin: 0;
  min-height: 0;
  position: relative;
  transform: none;
  width: 18px;
}

.hosted-onboarding-redesign .checkbox-row input[type="radio"]:checked {
  border-color: var(--hosted-pink);
}

.hosted-onboarding-redesign .checkbox-row input[type="radio"]:checked::after {
  background: var(--hosted-pink);
  border-radius: 999px;
  content: "";
  inset: 3px;
  position: absolute;
}

.hosted-onboarding-redesign .checkbox-row input[type="radio"]:focus-visible,
.hosted-onboarding-redesign .checkbox-row input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 3px var(--hosted-focus);
  outline: none;
}

.hosted-onboarding-redesign button,
.hosted-onboarding-redesign .button-link {
  border-radius: 6px;
  font-size: 15px;
  font-weight: 650;
  min-height: 42px;
  padding: 10px 16px;
}

.hosted-onboarding-redesign .hosted-checklist-item,
.hosted-onboarding-redesign .hosted-checklist-item:hover,
.hosted-onboarding-redesign .hosted-checklist-item:focus-visible {
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 14px;
  min-height: 32px;
  padding: 6px 8px;
  transform: none;
}

.hosted-onboarding-redesign .hosted-checklist-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hosted-main button:not(.secondary),
.hosted-main .button-link:not(.secondary-link) {
  background: var(--hosted-pink);
}

.hosted-main .address-lookup-results .address-lookup-result,
.hosted-main .address-lookup-results .address-lookup-result:hover,
.hosted-main .address-lookup-results .address-lookup-result:focus-visible {
  background: var(--hosted-pink);
  color: #ffffff;
  font-weight: 400;
}

.hosted-main button:not(.secondary):hover,
.hosted-main .button-link:not(.secondary-link):hover {
  background: var(--hosted-pink-dark);
}

.hosted-onboarding-redesign .actions {
  gap: 10px;
  margin-top: 6px;
}

.hosted-onboarding-redesign form > .actions button[type="submit"] {
  flex: 1 1 auto;
  min-width: 220px;
}

.hosted-onboarding-redesign .message,
.hosted-onboarding-redesign .requirements-panel {
  border-radius: 7px;
  box-shadow: none;
  margin-bottom: 18px;
}

.hosted-onboarding-redesign .people-section,
.hosted-onboarding-redesign .person-card,
.hosted-onboarding-redesign .processor-requirements-list li,
.hosted-onboarding-redesign .terms-acceptance {
  border-radius: 7px;
}

.identity-return-page {
  align-items: start;
  background: linear-gradient(180deg, #ffffff, #fcfcfd);
  display: grid;
  min-height: 100vh;
  padding: clamp(42px, 7vw, 76px) 22px;
}

.identity-return-shell {
  justify-self: center;
  max-width: 560px;
  width: 100%;
}

.identity-return-status {
  align-items: center;
  background: var(--element-tint);
  border: 1px solid #b9e6d7;
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 11px;
}

.identity-return-status::before {
  background: var(--green);
  border-radius: 50%;
  content: "";
  height: 7px;
  width: 7px;
}

.identity-return-page h1 {
  color: var(--hosted-ink);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 14px;
}

.identity-return-intro {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 28px;
}

.identity-return-card {
  background: #ffffff;
  border: 1px solid var(--hosted-line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 34, 48, 0.12);
  display: grid;
  gap: 18px;
  padding: 22px;
}

.identity-return-device {
  align-items: center;
  background: #f7f9fb;
  border: 1px solid #d8dde5;
  border-radius: 7px;
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr;
  padding: 15px;
}

.identity-return-device strong {
  color: var(--hosted-ink);
  display: inline;
  font-size: 16px;
  font-weight: 700;
}

.identity-return-device span:not(.identity-return-device-icon) {
  color: var(--hosted-muted);
  font-size: 13px;
  line-height: 1.45;
}

.identity-return-device-icon {
  border: 2px solid #43505a;
  border-radius: 6px;
  display: inline-block;
  height: 38px;
  position: relative;
  width: 54px;
}

.identity-return-device-icon::after {
  background: #43505a;
  border-radius: 999px;
  bottom: -7px;
  content: "";
  height: 2px;
  left: 13px;
  position: absolute;
  width: 28px;
}

.identity-return-steps {
  counter-reset: identityReturnSteps;
  display: grid;
  gap: 11px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.identity-return-steps li {
  align-items: start;
  color: var(--hosted-ink);
  counter-increment: identityReturnSteps;
  display: grid;
  font-size: 14px;
  gap: 10px;
  grid-template-columns: 24px 1fr;
  line-height: 1.45;
}

.identity-return-steps li::before {
  align-items: center;
  background: var(--hosted-pink);
  border-radius: 50%;
  color: #ffffff;
  content: counter(identityReturnSteps);
  display: grid;
  font-size: 12px;
  font-weight: 700;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.identity-return-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.identity-return-note {
  border-top: 1px solid var(--hosted-line);
  color: var(--hosted-muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  padding-top: 15px;
}

/* ============================================================
   RAIL — vertical timeline
   The checklist was a flat list of bullets in a bordered box. It is now a
   timeline: a connective line runs through the markers, completed steps carry
   a tick plus a summary of what was answered, so the rail doubles as a record.
   ============================================================ */
.hosted-checklist {
  /* align-content defaults to stretch here, and this grid is handed a height by
     the flex column above it. When that height is smaller than the content --
     which on the account-update page is most window sizes -- the auto rows are
     stretched to fit, every entry ends up shorter than its own label + chip +
     caption, and the overflow paints over the entry below it. Sizing the tracks
     to their content and scrolling instead is the fix. */
  align-content: start;
  border: 0;
  border-radius: 0;
  flex: 1 1 auto;
  gap: 0;
  grid-auto-rows: min-content;
  margin-top: 32px;
  max-height: none;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  position: relative;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
  scrollbar-width: thin;
}

.hosted-sidebar-foot,
.hosted-sidebar-terms {
  flex: 0 0 auto;
}

.hosted-checklist-item::before {
  background: var(--rail-line);
  bottom: 0;
  content: "";
  left: 15px;
  position: absolute;
  top: 0;
  width: 1px;
  z-index: 0;
}

.hosted-checklist-item:first-child::before {
  top: 15px;
}

.hosted-checklist-item:last-child::before {
  bottom: auto;
  height: 15px;
}

.hosted-checklist-item,
.hosted-checklist-item:hover,
.hosted-checklist-item:focus-visible {
  align-items: start;
  gap: 12px;
  grid-template-columns: 15px minmax(0, 1fr);
  min-height: 0;
  padding: 7px 8px;
  position: relative;
  z-index: 1;
}

.hosted-checklist-item > span:first-child {
  align-self: start;
  z-index: 1;
  background: var(--rail);
  border: 1.5px solid var(--rail-line);
  border-radius: 999px;
  box-shadow: none;
  box-sizing: border-box;
  height: 15px;
  margin-top: 1px;
  position: relative;
  width: 15px;
}

.hosted-checklist-item.done > span:first-child {
  background: var(--green);
  border-color: var(--green);
}

.hosted-checklist-item.done > span:first-child::after {
  border: solid var(--rail);
  border-width: 0 1.6px 1.6px 0;
  content: "";
  height: 6px;
  left: 4.4px;
  position: absolute;
  top: 2.2px;
  transform: rotate(42deg);
  width: 3.4px;
}

.hosted-checklist-item.active > span:first-child {
  background: var(--rail);
  border-color: var(--hosted-pink);
  box-shadow: 0 0 0 3px rgba(241, 3, 87, 0.2);
}

.hosted-checklist-item.active > span:first-child::after {
  background: var(--hosted-pink);
  border-radius: 999px;
  content: "";
  height: 5px;
  left: 3.5px;
  position: absolute;
  top: 3.5px;
  width: 5px;
}

.hosted-checklist-item.locked > span:first-child {
  background: var(--rail);
  border-color: var(--rail-line);
}

.hosted-checklist-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  grid-column: 2;
  min-width: 0;
}

.hosted-checklist-top {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.hosted-checklist-top strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hosted-checklist-summary {
  color: var(--rail-muted);
  display: block;
  font-size: 11px;
  grid-column: 2;
  line-height: 1.35;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hosted-checklist-summary:empty {
  display: none;
}

/* Saved-state note under the timeline. Nothing previously told the merchant
   their progress was kept if they closed the tab. */
.hosted-sidebar-saved {
  align-items: center;
  color: var(--rail-muted);
  display: flex;
  font-size: 11px;
  gap: 7px;
  margin: 20px 0 5px;
}

.hosted-sidebar-saved::before {
  background: var(--green);
  border-radius: 999px;
  content: "";
  flex: 0 0 auto;
  height: 11px;
  position: relative;
  width: 11px;
}

.hosted-sidebar-reference {
  color: var(--rail-muted);
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   FIELD GROUPS
   Step 2 asks about twenty questions. Grouping them turns one long scroll
   into four labelled sections, each stating why the information is needed.
   ============================================================ */
.hosted-onboarding-redesign .subsection {
  border-top: 1px solid var(--hosted-line);
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding-top: 16px;
}

.hosted-onboarding-redesign .subsection h3 {
  align-items: baseline;
  color: var(--hosted-ink);
  display: flex;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  gap: 12px;
  justify-content: space-between;
  letter-spacing: 0.07em;
  margin: 0;
  text-transform: uppercase;
}

.hosted-group-count {
  color: var(--hosted-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.hosted-group-why {
  color: var(--hosted-muted);
  font-size: 12.5px;
  line-height: 1.5;
  margin: -6px 0 0;
  max-width: 54ch;
}

/* ============================================================
   ACTION BAR — pinned to the bottom of the form column
   ============================================================ */
.hosted-onboarding-redesign section.active > form > .actions:last-child,
.hosted-onboarding-redesign section.active > .actions:last-child {
  align-items: center;
  background: var(--ground);
  border-top: 1px solid var(--hosted-line);
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding: 14px 0 18px;
  position: sticky;
  z-index: 5;
}

/* The compact progress header replaces the rail on narrow viewports. It is the
   only progress affordance there, so it is never allowed to be display:none —
   which is exactly the bug it exists to fix. */
.hosted-mobile-progress {
  display: none;
}

/* One breakpoint for the whole hosted surface. This previously reflowed at 980
   and again at 620, while the account-update page reflowed at 560. */
@media (max-width: 900px) {
  .hosted-layout {
    grid-template-columns: 1fr;
  }

  /* The rail collapses into a sheet behind the header, closed by default. */
  .hosted-sidebar {
    display: none;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 18px 22px 20px;
    position: static;
  }

  /* The rail is the first grid child, so an open sheet rendered above the header
     that opened it. Anchor it directly under that header instead. */
  .hosted-layout[data-steps-open="true"] .hosted-sidebar {
    bottom: 0;
    display: flex;
    height: auto;
    left: 0;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 22px 28px;
    position: fixed;
    right: 0;
    top: var(--sheet-top, 96px);
    z-index: 19;
  }

  .hosted-sidebar-intro {
    display: none;
  }

  .hosted-checklist {
    grid-template-columns: 1fr;
    margin-top: 0;
    max-height: none;
    overflow: visible;
  }

  .hosted-sidebar-terms {
    margin-top: 18px;
  }

  .hosted-mobile-progress {
    background: var(--rail);
    color: #ffffff;
    display: block;
    margin: 0 -22px;
    padding: 12px 22px 13px;
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .hosted-mobile-progress-bar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .hosted-mobile-brand {
    font-size: 13px;
    font-weight: 600;
  }

  .hosted-mobile-saved {
    color: var(--rail-muted);
    font-size: 11px;
  }

  /* .hosted-main button:not(.secondary) paints every button in this column
     pink at (0,2,1), so this override has to outrank it rather than match it. */
  .hosted-onboarding-redesign .hosted-main button.hosted-mobile-progress-toggle,
  .hosted-onboarding-redesign .hosted-main button.hosted-mobile-progress-toggle:hover,
  .hosted-onboarding-redesign .hosted-main button.hosted-mobile-progress-toggle:focus-visible {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #ffffff;
    display: flex;
    font-size: 12.5px;
    font-weight: 600;
    gap: 12px;
    justify-content: space-between;
    letter-spacing: 0;
    min-height: 0;
    padding: 0;
    text-align: left;
    text-transform: none;
    width: 100%;
  }

  .hosted-onboarding-redesign .hosted-main button.hosted-mobile-progress-toggle:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
  }

  /* This was plain muted text, so nothing suggested the header opened anything.
     It now reads as a control, with the chevron turning when the sheet is open. */
  .hosted-mobile-progress-hint {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 600;
    gap: 7px;
    padding: 5px 11px;
  }

  .hosted-mobile-progress-hint::after {
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    content: "";
    height: 5px;
    margin-top: -3px;
    transform: rotate(45deg);
    width: 5px;
  }

  [aria-expanded="true"] .hosted-mobile-progress-hint::after {
    margin-top: 2px;
    transform: rotate(-135deg);
  }

  .hosted-onboarding-redesign .hosted-main button.hosted-mobile-progress-toggle:active
    .hosted-mobile-progress-hint {
    background: rgba(255, 255, 255, 0.2);
  }

  .hosted-mobile-meter {
    display: flex;
    gap: 3px;
    margin-top: 10px;
  }

  .hosted-mobile-meter span {
    background: var(--rail-line);
    border-radius: 3px;
    display: block;
    flex: 1 1 auto;
    height: 5px;
  }

  .hosted-mobile-meter span.is-complete {
    background: var(--pink);
  }

  .hosted-mobile-meter span.is-current {
    box-shadow: inset 0 0 0 1.5px var(--pink);
  }

  /* Desktop centres one child with flex-row. The header has to stack above the
     form here, not sit beside it. */
  .hosted-main {
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 22px 48px;
  }

  .hosted-main-inner {
    padding-top: 26px;
    width: 100%;
  }

  .hosted-onboarding-redesign .step-eyebrow {
    display: none;
  }

  .hosted-onboarding-redesign h2 {
    font-size: 26px;
  }

  .hosted-onboarding-redesign .section-heading p {
    font-size: 15px;
  }

  .hosted-onboarding-redesign .checkbox-row {
    font-size: 13px;
  }

  /* Thumb-sized targets. 16px is the threshold below which iOS Safari zooms
     the page on focus, which strands the merchant mid-form. */
  .hosted-onboarding-redesign input:not([type="checkbox"]):not([type="radio"]),
  .hosted-onboarding-redesign select,
  .hosted-onboarding-redesign textarea {
    font-size: 16px;
    min-height: 48px;
  }

  .identity-return-page {
    padding: 30px 18px 48px;
  }

  .identity-return-page h1 {
    font-size: 27px;
  }

  .identity-return-card {
    box-shadow: none;
    padding: 18px;
  }

  .identity-return-device {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .identity-return-actions {
    display: grid;
  }
}

.hosted-onboarding-redesign .hidden {
  display: none;
}
