body {
  background-color: #fefefe;
  font-family: var(--fontFamily-Regular-0);
}
html h1,
html h2 {
  text-transform: var(--h1-uppercase);
}
@font-face {
  font-family: "TitlingGothicFBCond-Bold";
  src: url("../fonts/TitlingGothic.ttf") format("truetype");
}
@font-face {
  font-family: "Harmonia Sans Pro";
  src: url("../fonts/HarmoniaSansPro-Regular.otf") format("opentype");
}
@font-face {
  font-family: "Harmonia Sans Pro";
  src: url("../fonts/HarmoniaSansPro-Black.otf") format("opentype");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Harmonia Sans Pro";
  src: url("../fonts/HarmoniaSansPro-Black.otf") format("opentype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Harmonia Sans Pro";
  src: url("../fonts/HarmoniaSansPro-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Harmonia Sans Pro";
  src: url("../fonts/HarmoniaSansPro-SemiBd.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Harmonia Sans Pro";
  src: url("../fonts/HarmoniaSansPro-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("../fonts/ProximaNova-Extrabld.ttf");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("../fonts/ProximaNova-Bold.ttf");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("../fonts/ProximaNova-Semibold.ttf");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Proxima Nova";
  src: url("../fonts/ProximaNova-Regular.ttf");
  font-weight: 400;
  font-display: swap;
}

.desktopHamburger {
  display: flex;
  border: 0;
  height: 48px;
  width: 48px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;

  .line {
    display: flex;
    transition: all 0.1s ease-in;
    width: 100%;
    height: 4px;
  }

  .line:nth-child(2) {
    margin: 6px 0;
  }

  &.open {
    .line {
      &:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
      }

      &:nth-child(2) {
        opacity: 0;
      }

      &:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
      }
    }
  }
}

.hamburger {
  border: 0;
  cursor: pointer;

  .line {
    display: block;
    margin: 6px 0;
    height: 3px;
    width: 30px;
    transition: all 0.1s ease-in;
  }

  &.open {
    .line {
      &:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
      }

      &:nth-child(2) {
        opacity: 0;
      }

      &:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
      }
    }
  }
}

:root {
  /** beacon colors **/
  /**
    * @tokens Colors
    * @presenter Color
    */
  --primary900: #011d2f;
  --primary800: #0c1d36;
  --primary700: #01395f;
  --primary600: #1f4b8f;
  --primary500: #025f9e;
  --primary400: #3171ba;
  --primary300: #4585ce;
  --primary200: #76a5db;
  --primary100: #aecaea;
  --primary50: #dcf1ff;
  --primarydisable: #93aecc;

  --secondary900: #513302;
  --secondary800: #875403;
  --secondary700: #bd7604;
  --secondary600: #f39805;
  --secondary500: #faa41a;
  --secondary400: #fbad31;
  --secondary300: #fcbf5f;
  --secondary200: #fdd28c;
  --secondary100: #feedd1;
  --secondary50: #fff6e8;

  --neutral900: #16191c;
  --neutral800: #25272a;
  --neutral700: #3b3e41;
  --neutral600: #676b70;
  --neutral500: #84888c;
  --neutral400: #94989c;
  --neutral300: #bfc3c7;
  --neutral200: #dfe2e5;
  --neutral100: #eeeff0;
  --neutral50: #fafafa;

  --success900: #064e3b;
  --success800: #065f46;
  --success700: #047857;
  --success600: #059669;
  --success500: #10b981;
  --success400: #6ee7b7;
  --success300: #6ee7b7;
  --success200: #a7f3d0;
  --success100: #d1fae5;
  --success50: #ecfdf5;

  --warning900: #78350f;
  --warning800: #92400e;
  --warning700: #b45309;
  --warning600: #d97706;
  --warning500: #f59e0b;
  --warning400: #fbbf24;
  --warning300: #fcd34d;
  --warning200: #fde68a;
  --warning100: #fef3c7;
  --warning50: #fffbeb;

  --danger900: #7f1d1d;
  --danger800: #991b1b;
  --danger700: #b61b1b;
  --danger600: #dc2626;
  --danger500: #ef4444;
  --danger400: #f87171;
  --danger300: #fca5a5;
  --danger200: #fecaca;
  --danger100: #fee2e2;
  --danger50: #fef2f2;

  --dealprimary900: #000b24;
  --dealprimary800: #001033;
  --dealprimary700: #001542;
  --dealprimary600: #001b57;
  --dealprimary500: #00216a;
  --dealprimary400: #003099;
  --dealprimary300: #1a61ff;
  --dealprimary200: #6696ff;
  --dealprimary100: #99b8ff;
  --dealprimary50: #e5edff;
  --dealprimarydisable: #93aecc;

  --dealsecondary900: #76091b;
  --dealsecondary800: #8e0b21;
  --dealsecondary700: #a10d25;
  --dealsecondary600: #b30e29;
  --dealsecondary500: #c8102e;
  --dealsecondary400: #ed1c36;
  --dealsecondary300: #f0425e;
  --dealsecondary200: #f6899b;
  --dealsecondary100: #fbd0d7;
  --dealsecondary50: #fef1f3;

  --qxoprimary900: #001570;
  --qxoprimary800: #001e87;
  --qxoprimary700: #002aa8;
  --qxoprimary600: #0039c9;
  --qxoprimary500: #004bea;
  --qxoprimary400: #3c7cf2;
  --qxoprimary300: #639df8;
  --qxoprimary200: #97c2fc;
  --qxoprimary100: #cbe2fd;
  --qxoprimary50: #e6f1fe;
  --qxoprimarydisable: #93aecc;

  --qxosecondary900: #001570;
  --qxosecondary800: #001e87;
  --qxosecondary700: #002aa8;
  --qxosecondary600: #0039c9;
  --qxosecondary500: #004bea;
  --qxosecondary400: #3c7cf2;
  --qxosecondary300: #639df8;
  --qxosecondary200: #97c2fc;
  --qxosecondary100: #cbe2fd;
  --qxosecondary50: #e6f1fe;

  --qxosuccess900: #064e3b;
  --qxosuccess800: #065f46;
  --qxosuccess700: #047857;
  --qxosuccess600: #059669;
  --qxosuccess500: #10b981;
  --qxosuccess400: #34d399;
  --qxosuccess300: #6ee7b7;
  --qxosuccess200: #a7f3d0;
  --qxosuccess100: #d1fae5;
  --qxosuccess50: #ecfdf5;

  --white: #ffffff;
  --black: #0a0a0a;
  --pewter: #323640;

  /** beacon colors end **/

  --background: hsl(0 0% 100%);
  --foreground: hsl(222.2 47.4% 11.2%);

  --muted: hsl(210 40% 96.1%);
  --muted-foreground: hsl(215.4 16.3% 46.9%);

  --popover: hsl(0 0% 100%);
  --popover-foreground: hsl(222.2 47.4% 11.2%);

  --border: hsl(214.3 31.8% 91.4%);

  --card: hsl(0 0% 100%);
  --card-foreground: hsl(222.2 47.4% 11.2%);

  --primary-foreground: hsl(210 40% 98%);

  --secondary: hsl(210 40% 96.1%);
  --secondary-foreground: hsl(222.2 47.4% 11.2%);

  --accent: hsl(210 40% 96.1%);
  --accent-foreground: hsl(222.2 47.4% 11.2%);

  --destructive: hsl(0 100% 50%);
  --destructive-foreground: hsl(210 40% 98%);

  --ring: hsl(215 20.2% 65.1%);

  --radius: $global-radius;
}

.nice-scroll::-webkit-scrollbar {
  width: 20px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--neutral200);
  border-radius: 20px;
  border: 6px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--neutral600);
}

input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

input[type="checkbox"] {
  accent-color: var(--colors-primary);
}

.dark-blue input[type="checkbox"] {
  accent-color: var(--dealprimary500);
}

.protip-skin-default--scheme-pro.protip-container {
  background-color: var(--colors-primary) !important;
}

.protip-skin-default--scheme-pro[data-pt-position="right"] .protip-arrow {
  border-right-color: var(--colors-primary) !important;
}

.protip-skin-default--scheme-pro[data-pt-position="top"] .protip-arrow {
  border-top-color: var(--colors-primary) !important;
}

.protip-skin-default--scheme-pro[data-pt-position="top-left-corner"]
  .protip-arrow {
  border-right-color: var(--colors-primary) !important;
}

.dark-blue .protip-skin-default--scheme-pro.protip-container {
  background-color: var(--dealprimary500) !important;
}

.dark-blue
  .protip-skin-default--scheme-pro[data-pt-position="right"]
  .protip-arrow {
  border-right-color: var(--dealprimary500) !important;
}

.dark-blue
  .protip-skin-default--scheme-pro[data-pt-position="top"]
  .protip-arrow {
  border-top-color: var(--dealprimary500) !important;
}

.dark-blue
  .protip-skin-default--scheme-pro[data-pt-position="top-left-corner"]
  .protip-arrow {
  border-right-color: var(--colors-primary) !important;
}

label.error {
  color: #f00;
}

#username:-webkit-autofill,
#username:-webkit-autofill:hover,
#username:-webkit-autofill:focus,
#username:-webkit-autofill:active,
#password:-webkit-autofill,
#password:-webkit-autofill:hover,
#password:-webkit-autofill:focus,
#password:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #16191C !important;
  background-color: #ffffff !important;
}

/* Detect WebKit autofill on identify email so remember-me can restore after logout return. */
@keyframes kc-remember-me-autofill {
  from {
    opacity: 0.99;
  }
  to {
    opacity: 1;
  }
}

#identifier:-webkit-autofill {
  animation-name: kc-remember-me-autofill;
  animation-duration: 0.001s;
}

/* COMX-1994: html.otp-gate-* is the single source of truth for identify visibility.
   pending/legacy hide the new-login chrome (logo-only <header> from displayChrome=false,
   plus background + form). ready shows the form. Do not also toggle Tailwind hidden/flex. */
html.otp-gate-pending body > header,
html.otp-gate-pending .otp-login-bg,
html.otp-gate-legacy body > header,
html.otp-gate-legacy .otp-login-bg {
  display: none !important;
}

html.otp-gate-pending #otp-identify-root,
html.otp-gate-legacy #otp-identify-root {
  display: none !important;
}

html.otp-gate-pending #otp-identify-loading,
html.otp-gate-legacy #otp-identify-loading {
  min-height: 100vh;
  display: flex !important;
}

html.otp-gate-bfcache-restore body > header,
html.otp-gate-bfcache-restore .otp-login-bg,
html.otp-gate-bfcache-restore #otp-identify-root,
html.otp-gate-bfcache-restore #otp-identify-loading {
  display: none !important;
}

html.otp-gate-bfcache-restore #otp-bfcache-fallback {
  min-height: 100vh;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

html.otp-gate-ready #otp-identify-loading {
  display: none !important;
}

html.otp-gate-ready #otp-identify-root {
  display: flex !important;
}

html.otp-signup-deeplink-pending body > header {
  display: none !important;
}

/* Out of the flow but still laid out: a positioned, visibility-hidden ancestor keeps
   #kc-otp-signup-link.offsetParent non-null so signupDeepLink.js can still submit it. */
html.otp-signup-deeplink-pending .otp-login-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  visibility: hidden !important;
}

html.otp-signup-deeplink-pending #otp-identify-loading {
  min-height: 100vh;
  display: flex !important;
  visibility: visible !important;
}

/* OTP identify page — flat surface background (COMX-2276) */
.otp-login-bg {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  /* Fill below the logo-only header exactly: it is h-16, and l:h-20 from 1024px.
     A short page would otherwise leak a strip of body #fefefe under the fill. */
  min-height: calc(100vh - 4rem);
  /* surface-base-3. No --QXO-color-tokens-* var is defined in this theme, so the
     literal is the live value — update it here if the Figma token changes. */
  background-color: var(--QXO-color-tokens-Surface-Base-surface-base-3, #E3E8EF);
  padding-top: 40px;
  padding-bottom: 40px;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .otp-login-bg {
    min-height: calc(100vh - 5rem);
  }
}

.otp-identify-shell {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.otp-identify-card {
  width: 600px;
  height: 725px;
  max-width: 95%;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  overflow: hidden;
  padding-top: 44px;
  padding-left: 60px;
  padding-right: 60px;
  padding-bottom: 48px;
  gap: 0;
}

.otp-login-card {
  width: 600px;
  min-height: 760px;
  height: auto;
}

.otp-signup-card {
  width: 600px;
  min-height: 1112px;
  height: auto;
  overflow: visible;
}

.otp-signup-card.otp-signup-card--journey-b {
  min-height: 786px;
  height: auto;
  max-height: none;
  overflow: visible;
}

@media (max-width: 639px) {
  .otp-login-bg {
    padding-top: 48px;
  }

  .otp-identify-card {
    width: 95%;
    height: auto;
    min-height: 0;
    padding: 24px 16px 32px;
    gap: 0;
  }

  .otp-login-card {
    width: 95%;
    height: auto;
    min-height: 0;
  }

  .otp-signup-card {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .otp-signup-card.otp-signup-card--journey-b {
    height: auto;
    min-height: 0;
    max-height: none;
  }
}

.otp-identify-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.otp-identify-field {
  margin-top: 12px;
  width: 100%;
}

.otp-identify-actions {
  margin-top: 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.otp-identify-benefits {
  margin-top: 28px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.otp-continue-btn:disabled,
.otp-continue-btn[disabled] {
  border-color: #717680;
  color: #717680;
  font-weight: 400;
  cursor: not-allowed;
  background: #ffffff;
}

.otp-continue-btn:disabled:hover,
.otp-continue-btn[disabled]:hover {
  background: #ffffff;
}

.otp-btn-spinner {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.35em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: otp-btn-spin 0.65s linear infinite;
  vertical-align: -0.125em;
}

/* Set-password CTAs: the clicked one shows a spinner, the other reads as unavailable. */
.otp-set-password-card .otp-identify-actions button[aria-busy="true"] {
  cursor: progress;
}

.otp-set-password-card .otp-identify-actions button:disabled:not([aria-busy="true"]) {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.otp-social-section {
  margin-top: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.otp-social-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.otp-social-divider-line {
  flex: 1 1 0;
  min-width: 0;
  height: 1px;
  background: #cdd5df;
}

.otp-social-divider-text {
  color: #16191c;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
}

.otp-social-buttons {
  display: flex;
  align-items: center;
  justify-content: stretch;
  width: 100%;
}

.otp-social-btn {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  height: 48px;
  padding: 15px;
  justify-content: center;
  align-items: center;
  gap: 15px;
  border-radius: 4px;
  border: 1px solid #cdd5df;
  background: #ffffff;
  color: #16191c;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  cursor: not-allowed;
  text-decoration: none;
}

a.otp-social-btn {
  cursor: pointer;
  color: #16191c;
}

a.otp-social-btn:hover {
  background: #f3f4f6;
  text-decoration: none;
  color: #16191c;
}

/* COMX-1369: the Passkey button is a <button>, not a link; .otp-social-btn's not-allowed cursor is
   for the disabled Google placeholder. */
button.otp-social-btn-passkey {
  cursor: pointer;
  font-family: inherit;
}

button.otp-social-btn-passkey:hover {
  background: #f3f4f6;
}

.otp-social-btn span {
  padding-top: 4px;
}

.otp-social-btn img,
.otp-social-btn svg {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Remember-me terms modal: force light surfaces so prefers-color-scheme: dark
   cannot leave dark text on dark:bg-neutral-700 (unreadable on identify/login). */
.remember-password-modal {
  background: rgb(6 6 6 / 50%);
}

.remember-password-modal__panel,
.remember-password-modal__panel > div {
  background-color: #ffffff !important;
  color: #16191c;
}

.remember-password-modal__body,
.remember-password-modal__body h3,
.remember-password-modal__body strong {
  color: #16191c !important;
}

.remember-password-modal #modalBtnCancel {
  background-color: #ffffff !important;
  color: #16191c !important;
  border-color: #d1d5db !important;
}

.remember-password-modal #modalCloseBtn {
  color: #697586 !important;
}

.otp-remember-me {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.otp-remember-me label {
  margin: 0;
  padding: 0;
  padding-top: 4px;
  line-height: 16px;
  display: flex;
  align-items: center;
}

.otp-remember-me input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: block;
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  border: 1px solid #697586;
  border-radius: var(--spacing-xs, 4px);
  background: #ffffff;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.otp-remember-me input[type="checkbox"]:checked {
  border-color: var(--Icons-icon-brand, #004BEA);
  background-color: var(--Icons-icon-brand, #004BEA);
  background-image: url("../svg/check.svg");
}

.otp-remember-me input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--Icons-icon-brand, #004BEA);
  outline-offset: 2px;
}

.otp-identify-footer {
  margin-top: 86px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.otp-account-prompt {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
}

.otp-account-prompt-text {
  margin: 0;
  color: #16191c;
  font-size: 17.5px;
  font-weight: 600;
  line-height: 28px;
  text-align: center;
}

.otp-account-toggle {
  display: flex;
  width: 100%;
  padding: 4px;
  border-radius: 999px;
  background: #e3e8ef;
  box-sizing: border-box;
}

.otp-account-toggle-option {
  flex: 1 1 0;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4b5565;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  cursor: pointer;
  outline: none;
  box-shadow: none;
}

.otp-account-toggle-option:focus,
.otp-account-toggle-option:focus-visible {
  outline: none;
  box-shadow: none;
}

.otp-account-toggle-option.is-selected {
  background: #ffffff;
  color: #004bea;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
  outline: none;
}

.otp-signup-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #eef2f6;
  box-sizing: border-box;
}

.otp-signup-callout svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.otp-signup-callout-text {
  margin: 0;
  color: #364152;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

#otp-signup-journey-b-callout[hidden],
#otp-signup-journey-c-fields[hidden] {
  display: none !important;
}

.otp-signup-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #f8fafc;
  box-sizing: border-box;
}

.otp-signup-callout[hidden] {
  display: none;
}

/* Same cascade as callout: Tailwind .flex after [hidden] would otherwise win. */
.otp-signup-profile[hidden] {
  display: none;
}

.otp-signup-callout svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.otp-signup-callout-text {
  margin: 0;
  color: #364152;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.otp-field-error {
  margin: 0;
  color: #d92d20;
  font-size: 14px;
  line-height: 20px;
}

.otp-signup-field.otp-signup-field--invalid {
  border-color: #d92d20;
}

.otp-recaptcha-badge {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
}

/* Custom badge already carries Privacy + Terms; hide Google's floating badge on that page. */
body:has(.otp-recaptcha-badge) .grecaptcha-badge {
  visibility: hidden;
}

.otp-recaptcha-icon {
  width: 32px;
  height: 32px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-left: -4px;
}

.otp-recaptcha-badge-text {
  margin: 0;
  color: #697586;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.otp-recaptcha-label {
  padding-right: 12px;
}

.otp-recaptcha-badge-text a {
  color: #697586;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.otp-recaptcha-badge-text a:hover {
  color: #697586;
  text-decoration: underline;
}

.otp-social-buttons-pair {
  justify-content: stretch;
  gap: 16px;
}

.otp-social-buttons-pair .otp-social-btn {
  flex: 1 1 0;
  width: auto;
}

/* COMX-1369: three buttons (Google, Apple, Passkey) do not fit side by side on a phone; stack them
   full-width. webPasskeys.js adds the class only when it shows the Passkey button, so the two-button
   row is unchanged while the gate is off. */
@media (max-width: 639px) {
  .otp-social-buttons-pair.otp-social-buttons-trio {
    flex-direction: column;
    gap: 16px;
  }

  .otp-social-buttons-pair.otp-social-buttons-trio .otp-social-btn {
    flex: 0 0 auto;
    width: 100%;
  }
}

.customer-type-card {
  display: flex;
  width: auto;
  height: 105px;
  padding: 0 12px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  border-radius: 4px;
  border: 1px solid var(--QXO-color-tokens-Border-Structure-border-default-1, #CDD5DF);
  box-sizing: border-box;
  background: #ffffff;
}

.customer-type-card-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.customer-type-card-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.customer-type-card-title {
  color: #16191c;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  text-align: left;
}

.customer-type-card-desc {
  display: block;
  width: 100%;
  color: #697586;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  text-align: left;
  overflow-wrap: anywhere;
}

.customer-type-card.is-selected,
.customer-type-card:has(input:checked) {
  border-color: var(--colors-primary, #004BEA);
  background-color: rgba(0, 75, 234, 0.05);
}

.customer-type-card:focus {
  outline: none;
}

.customer-type-card:focus-visible {
  outline: 2px solid var(--colors-primary, #004BEA);
  outline-offset: 2px;
}

.otp-signup-field {
  border-radius: var(--radius-xs, 4px);
  border: 1px solid var(--QXO-color-tokens-Border-Structure-border-strong-1, #4B5565);
}

select.otp-state-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%234B5565' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 32px;
}

.otp-address-suggestion {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.otp-address-suggestion-marker {
  display: inline-flex;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.otp-address-suggestion-marker svg {
  width: 20px;
  height: 20px;
  display: block;
}

.otp-address-suggestion-text {
  flex: 1;
  min-width: 0;
}

.otp-address-suggestion-manual-row {
  border-top: 1px solid #e5e7eb;
}

.otp-address-suggestion-manual {
  font-weight: 400;
}

.otp-address-suggestions:not(.hidden) {
  display: block;
}

.otp-address-clear {
  font-size: 20px;
  line-height: 1;
}

.otp-address-manual-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.otp-address-manual-modal.hidden {
  display: none;
}

.otp-address-manual-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.otp-address-manual-modal__panel {
  position: relative;
  z-index: 1;
  width: 600px;
  max-width: 95%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-sizing: border-box;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  padding: 44px 60px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 639px) {
  .otp-address-manual-modal__panel {
    padding: 24px 16px 32px;
  }
}

.otp-address-manual-modal__header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.otp-address-manual-modal__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.otp-address-manual-modal__title {
  margin: 0;
  flex: 1;
  text-align: center;
  color: #16191c;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  /* Optical center with back button on the left */
  padding-right: 40px;
}

.otp-address-manual-modal__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.otp-address-manual-modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.otp-address-manual-modal__footer {
  width: 100%;
}

.otp-signup-cancel {
  border-width: 1px;
  border-style: solid;
}

.otp-verify-card {
  position: relative;
  width: 600px;
  height: 750px;
  min-height: 750px;
}

.otp-set-password-card {
  position: relative;
  width: 600px;
  min-height: 760px;
  height: auto;
}

/* Password constraint indicators (COMX-2564). Icons stay hidden until password-constraints.js
   has run and the user has typed; without JavaScript the list is plain rule text. */
.password-constraint .constraint-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-constraint .constraint-check,
.password-constraint .constraint-x {
  display: none;
}

/* text-green-600 / text-red-500 are not in the committed tailwind.css, and green-600
   is not in tailwind.config.js. Color the icons here so they do not inherit text-neutral-700. */
.password-constraint .constraint-check {
  color: #059669;
}

.password-constraint .constraint-x {
  color: #dc2626;
}

/* space-y-2 is not generated. Match the previous list spacing (space-y-1 / 0.25rem). */
#password-rules > li + li {
  margin-top: 0.25rem;
}

.password-constraint .constraint-text {
  transition: color 0.2s ease-in-out;
}

.password-constraints-active .password-constraint.touched.satisfied .constraint-check,
.password-constraints-active .password-constraint.touched:not(.satisfied) .constraint-x {
  display: block;
}

.password-constraints-active .password-constraint.touched.satisfied .constraint-text {
  color: #059669;
}

.otp-set-password-close {
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.otp-verify-header {
  display: flex;
  align-items: center;
  /* 24px leaves room for 36px title in the 480px content box (50px wraps). */
  gap: 24px;
  width: 100%;
}

.otp-verify-title {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.otp-verify-destination,
.otp-verify-instruction {
  overflow-wrap: anywhere;
}

.otp-verify-instruction,
.otp-verify-resend {
  font-size: 18px;
  line-height: 24px;
}

/* Resting state stays Figma (no underline); restore affordance on keyboard/pointer focus. */
.otp-verify-change:focus,
.otp-verify-change:focus-visible {
  text-decoration: underline;
}

.otp-verify-back {
  position: static;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
  width: 24px;
  height: 24px;
  /* Expand hit area to ~44px without changing Figma 24px icon layout. */
  padding: 10px;
  margin: -10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.otp-code-boxes {
  display: flex;
  width: 100%;
  /* Intentional: spread boxes across the row on desktop. gap is a floor when
     the row is narrow enough that max-width: 60px boxes no longer leave free space. */
  justify-content: space-between;
  gap: 8px;
}

.otp-code-box {
  box-sizing: border-box;
  flex: 1 1 0;
  min-width: 0;
  max-width: 60px;
  aspect-ratio: 60 / 67;
  min-height: 48px;
  padding: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
  color: #16191c;
  border-radius: 4px;
  /* Keep Figma fill; use border-strong-1 (≥3:1 vs #F8FAFC / white card) for WCAG 1.4.11. */
  border: 1px solid var(--QXO-color-tokens-Border-Structure-border-strong-1, #4B5565);
  background: var(--QXO-color-tokens-Surface-Base-surface-base-1, #F8FAFC);
}

.otp-code-box:focus {
  outline: 2px solid var(--colors-primary, #004BEA);
  outline-offset: 1px;
}

@media (max-width: 639px) {
  .otp-set-password-card {
    min-height: 0;
  }

  .otp-verify-card {
    height: auto;
    min-height: 0;
  }

  .otp-verify-header {
    gap: 12px;
  }

  .otp-code-box {
    font-size: 18px;
  }
}
