/* One control group fits both a company card and the compact phone roster. */
.office-boarding { display: grid; gap: 8px; }
.office-boarding--compact { padding: 12px 22px; border-bottom: 1px solid var(--hair); }
.office-boarding__title, .office-boarding__status, .office-boarding__prompt { margin: 0; overflow-wrap: anywhere; }
.office-boarding__title { font-size: inherit; font-weight: 600; }
.office-boarding__status, .office-boarding__prompt { font-size: 0.875rem; }
.office-boarding__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* A Sandbox-wide setting has its own card in desktop and phone Settings. */
.gateway-switch { display: grid; gap: 12px; }
.gateway-switch[hidden], .gateway-switch__actions[hidden] { display: none; }
.gateway-switch > h2, .gateway-switch > p { margin: 0; overflow-wrap: anywhere; }
.gateway-switch > h2 { font-size: 1rem; }
.gateway-switch__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* Use the roster row inset for the section heading and the full row height
   for the switch hit target without changing the size of its visible track. */
.gateway-person-permissions > .m-eyebrow,
.gateway-person-permissions > .m-meta { margin: 8px 22px; }
.gateway-person-permissions .m-toggle { position: relative; }
.gateway-person-permissions .m-toggle::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.gateway-merchant-setup { min-width: 0; max-width: 100%; }
.gateway-merchant-setup > summary {
  box-sizing: border-box;
  min-height: 44px;
  padding: 12px 4px;
  cursor: pointer;
  font-weight: 600;
}
.gateway-merchant-setup__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.gateway-merchant-setup__choices > button {
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
  text-align: start;
}

.office-boarding__billing {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
  display: grid;
  gap: 10px;
  min-width: 0;
}
.office-boarding__billing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
  min-width: 0;
}
.office-boarding__billing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.office-boarding__billing-actions > button { min-height: 44px; }
