select.gender-choice-source{display:none!important}
.gender-choices{display:grid;grid-template-columns:repeat(var(--gender-choice-count,2),minmax(0,1fr));gap:8px;min-width:0;width:100%;margin-top:8px}
.gender-choices>button[role=radio]{display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;margin:0;padding:10px 8px;border:1px solid #dfe4e1;border-radius:12px;background:#fff;color:#58645d;font:inherit;font-size:14px;font-weight:500;line-height:1.4;cursor:pointer}
.gender-choices>button[aria-checked=true]{border-color:#202823;background:#edf3ef;color:#202823;box-shadow:inset 0 0 0 1px #202823}
.gender-choices>button:focus-visible{outline:2px solid #668a72;outline-offset:3px}
.gender-choices>button:disabled{opacity:.5;cursor:default}
.customer-gender-edit .gender-choices{width:auto;flex:1;min-width:200px}

#obSalutation+.gender-choices{width:180px;flex:0 0 180px;margin:0;gap:8px}
#obSalutation+.gender-choices>button{min-height:38px;padding:7px 14px;font-size:13px}
@media(max-width:540px){#obSalutation+.gender-choices{width:160px;flex-basis:160px}}

/* Keep owner name and salutation inside the onboarding form grid. */
#onboardingView .onboarding-field:has(#obOwner) .onboarding-region-row{width:100%!important;max-width:100%;min-width:0;grid-template-columns:minmax(0,1fr) 150px!important;gap:10px!important;box-sizing:border-box}
#onboardingView #obOwner{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
#onboardingView #obSalutation+.gender-choices{width:100%;min-width:0;max-width:100%;margin:0;box-sizing:border-box}
#onboardingView #obSalutation+.gender-choices>button{min-width:0;padding:7px 8px;box-sizing:border-box}
@media(max-width:640px){
 #onboardingView .onboarding-field:has(#obOwner){height:auto!important;min-height:68px!important;padding:12px 0}
 #onboardingView .onboarding-field:has(#obOwner) .onboarding-region-row{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
 #onboardingView #obSalutation+.gender-choices{width:min(100%,180px)}
}
