/* Carte compacte responsive, thèmes clair / sombre. */
html body .member-identity-editor{
  box-sizing:border-box;min-width:0;max-width:100%;margin:0;
  padding:16px;border:1px solid var(--line);border-radius:12px;
  background:var(--surface);color:var(--text);
}
html body .member-identity-editor>legend{padding:0 6px;font-size:15px;font-weight:600;color:var(--text)}
html body .member-identity-help{margin:2px 0 12px;font-size:13px;line-height:1.5;color:var(--muted)}
html body .member-identity-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
html body .member-identity-choice-item{
  display:flex;align-items:center;gap:11px;min-width:0;min-height:66px;
  padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);
  cursor:pointer;
}
html body .member-identity-choice-item:has(input:checked){border-color:var(--accent);background:var(--surface)}
html body .member-identity-choice-item>input[type=radio]{
  flex:none;width:18px;height:18px;margin:0;accent-color:var(--accent)
}
html body .member-identity-choice-item>span{display:grid;min-width:0;gap:4px}
html body .member-identity-choice-item strong{font-size:14px;font-weight:600;color:var(--text)}
html body .member-identity-choice-item small{font-size:12px;line-height:1.35;color:var(--muted)}
html body .member-identity-company-fields{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
  margin-top:16px;padding-top:16px;border-top:1px solid var(--line)
}
html body .member-identity-company-fields[hidden]{display:none!important}
html body .member-identity-company-heading{display:grid;grid-column:1/-1;gap:3px}
html body .member-identity-company-heading>strong{font-size:14px;font-weight:600;color:var(--text)}
html body .member-identity-company-heading>small{font-size:12px;line-height:1.45;color:var(--muted)}
html body .member-identity-address-heading{margin-top:5px}
html body .member-identity-company-fields>label{display:grid;gap:6px;min-width:0;color:var(--text)}
html body .member-identity-company-fields>label input{box-sizing:border-box;width:100%;min-width:0;max-width:100%}
html body .member-identity-company-fields>label small{font-size:12px;line-height:1.4;color:var(--muted)}
html body .member-identity-company-fields>.member-identity-full{grid-column:1/-1}
@media(max-width:620px){
  html body .member-identity-choice,
  html body .member-identity-company-fields{grid-template-columns:minmax(0,1fr)}
}

/* Identités radio sans encadrement autour du choix. Le cercle reste accessible. */
html body .member-identity-choice-item,
html body .member-identity-choice-item:has(input:checked){
  border:0!important;border-radius:0!important;box-shadow:none!important;
  background:transparent!important;padding:10px 4px!important;
}
html body .member-identity-choice-item:has(input:checked) strong{color:var(--accent)!important}
html body .member-identity-choice-item:focus-within{outline:2px solid var(--accent);outline-offset:2px}
/* Une seule adresse active selon le type de compte. */
html body .member-personal-address{display:grid;gap:11px;min-width:0;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-sizing:border-box}
html body .member-personal-address[hidden],
html body [data-shop-location-for-professionals][hidden]{display:none!important}
html body .member-personal-address>legend{font-size:15px;font-weight:600;padding:0 6px}
html body .member-personal-address>p{margin:0;font-size:12px;line-height:1.5;color:var(--muted)}
html body .member-personal-address-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html body .member-personal-address-grid>label{display:grid;gap:6px;min-width:0}
html body .member-personal-address-grid input{width:100%;min-width:0;box-sizing:border-box}
html body .member-personal-address-full{grid-column:1/-1}
@media(max-width:620px){html body .member-personal-address-grid{grid-template-columns:minmax(0,1fr)}}
/* Champ intérieur vert lorsque la localisation est effectivement validée. */
html body .location-entry.is-confirmed .location-picker-control>input[data-location-picker-input]{
  background:color-mix(in srgb,#3cd088 22%,var(--surface))!important;
  border-color:#23b86d!important;color:var(--text)!important;
}
html body .location-entry.is-confirmed .location-picker-control{
  background:color-mix(in srgb,#3cd088 22%,var(--surface))!important;
}

/* Suggestion des communes après saisie d'un code postal, sans API tierce. */
html body [data-member-address] label:has([data-address-city]){position:relative;min-width:0}
html body .member-address-suggestions{
  position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:50;
  display:grid;gap:3px;max-height:230px;overflow-y:auto;
  padding:6px;border:1px solid var(--line);border-radius:10px;
  background:var(--bg);box-shadow:0 12px 30px rgba(0,0,0,.18)
}
html body .member-address-suggestions[hidden]{display:none!important}
html body .member-address-suggestions>button{
  width:100%;min-height:35px;padding:7px 10px;text-align:left;
  color:var(--text);background:transparent;border:0;border-radius:7px;
  cursor:pointer;font-size:13px
}
html body .member-address-suggestions>button:is(:hover,:focus-visible){
  background:var(--surface);color:var(--accent);outline:2px solid var(--accent)
}


/* LMS_ACCOUNT_TYPE_SEGMENT_V2 — un seul sélecteur, pas de cercles radio apparents. */
html body .member-identity-choice{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:4px!important;padding:4px!important;border:1px solid var(--line)!important;
  border-radius:12px!important;background:var(--bg)!important;
}
html body .member-identity-choice>label.member-identity-choice-item{
  position:relative!important;display:flex!important;justify-content:center!important;
  min-height:44px!important;padding:10px 12px!important;margin:0!important;
  border:0!important;border-radius:8px!important;background:transparent!important;
  box-shadow:none!important;cursor:pointer!important;text-align:center!important;
}
html body .member-identity-choice>label.member-identity-choice-item>input[type=radio]{
  position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;
  overflow:hidden!important;clip-path:inset(50%)!important;pointer-events:none!important;
  margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;
}
html body .member-identity-choice>label.member-identity-choice-item:has(input:checked){
  background:var(--accent)!important;color:#fff!important;
}
html body .member-identity-choice>label.member-identity-choice-item:has(input:checked)>span{
  color:#fff!important;
}
html body .member-identity-choice>label.member-identity-choice-item>span{
  display:block!important;font-size:14px!important;line-height:1.3!important;
  font-weight:600!important;letter-spacing:normal!important;color:var(--text)!important;
}
html body .member-identity-choice>label.member-identity-choice-item:focus-within{
  outline:2px solid var(--accent)!important;outline-offset:3px!important;
}
html body .member-identity-company-fields[hidden],
html body .member-personal-address[hidden],
html body [data-shop-location-for-professionals][hidden]{display:none!important;}
/* Reuse the same search semantics as the global magnifying-glass location overlay. */
html body .member-location-search{position:relative!important;min-width:0!important;max-width:100%!important}
html body .member-location-search>label{display:block!important;margin:0!important;min-width:0!important}
html body .member-location-search .location-picker-control{
  position:relative!important;display:flex!important;align-items:center!important;
  width:100%!important;min-height:49px!important;padding:0!important;
  border:1px solid var(--line)!important;border-radius:11px!important;
  background:var(--bg)!important;box-sizing:border-box!important;
}
html body .member-location-search .location-picker-control>svg{
  display:block!important;flex:none!important;width:18px!important;height:18px!important;
  margin-left:14px!important;color:var(--text)!important;stroke:currentColor!important;
}
html body .member-location-search .location-picker-control>input[data-location-picker-input]{
  flex:1 1 auto!important;min-width:0!important;width:100%!important;
  padding:13px 42px 13px 11px!important;min-height:47px!important;
  border:0!important;background:transparent!important;border-radius:11px!important;
  font-size:14px!important;font-weight:500!important;line-height:1.35!important;
  outline:0!important;box-shadow:none!important;color:var(--text)!important;
}
html body .member-location-search .location-picker-control:focus-within{
  border-color:var(--accent)!important;outline:2px solid color-mix(in srgb,var(--accent) 18%,transparent)!important;
}
html body .member-location-search .location-picker-control>button[data-location-picker-clear]{
  position:absolute!important;right:10px!important;top:50%!important;transform:translateY(-50%)!important;
  width:25px!important;height:25px!important;min-width:25px!important;min-height:25px!important;
  display:none!important;align-items:center!important;justify-content:center!important;
  border:0!important;border-radius:50%!important;background:var(--accent)!important;
  color:#fff!important;padding:0!important;margin:0!important;z-index:3!important;
}
html body .member-location-search.is-confirmed .location-picker-control>button[data-location-picker-clear]{
  display:inline-flex!important;
}
html body .member-location-search .explore-location-suggestions[data-location-picker-suggestions]{
  position:absolute!important;left:0!important;right:0!important;top:calc(100% + 6px)!important;
  width:100%!important;max-height:300px!important;overflow:auto!important;
  display:grid!important;gap:2px!important;margin:0!important;padding:7px!important;
  border:1px solid var(--line)!important;border-radius:12px!important;
  background:var(--surface)!important;color:var(--text)!important;
  box-shadow:0 14px 36px rgba(0,0,0,.26)!important;z-index:60!important;
  box-sizing:border-box!important;
}
html body .member-location-search [data-location-picker-suggestions][hidden]{display:none!important}
html body .member-location-search [data-location-picker-suggestions]>button{
  width:100%!important;display:flex!important;align-items:center!important;
  gap:12px!important;min-height:44px!important;padding:10px 12px!important;
  color:var(--text)!important;background:transparent!important;
  border:0!important;border-radius:8px!important;text-align:left!important;
  font-size:13px!important;font-weight:500!important;cursor:pointer!important;
}
html body .member-location-search [data-location-picker-suggestions]>button>svg{
  width:17px!important;height:17px!important;flex:none!important;
  color:var(--text)!important;stroke:currentColor!important;
}
html body .member-location-search [data-location-picker-suggestions]>button:is(:hover,:focus-visible){
  background:color-mix(in srgb,var(--accent) 12%,var(--surface))!important;
  outline:2px solid var(--accent)!important;outline-offset:-2px!important;
}
html body .member-location-search .location-picker-control>input[data-location-picker-input]::-webkit-search-cancel-button{
  display:none;
}
html body .member-location-search.is-confirmed .location-picker-control,
html body .member-location-search.is-confirmed .location-picker-control>input[data-location-picker-input]{
  background:color-mix(in srgb,#3cd088 22%,var(--surface))!important;
  border-color:#23b86d!important;color:var(--text)!important;
}
html body .member-location-search [data-location-picker-status]{
  display:block!important;margin-top:5px!important;color:var(--muted)!important;font-size:12px!important;
}
@media(max-width:560px){
  html body .member-identity-choice>label.member-identity-choice-item{min-height:43px!important}
  html body .member-location-search [data-location-picker-suggestions]{max-height:260px!important}
}

/* LMS_PROFILE_LOCATION_SINGLE_SURFACE_V5 */
html body.lms-navigation-v2.page-shell .member-personal-address,
html body.lms-navigation-v2.page-shell .member-identity-company-fields{
  min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
}
html body.lms-navigation-v2.page-shell .member-personal-address{
  border:0!important;border-radius:0!important;box-shadow:none!important;
  background:transparent!important;padding:14px 0!important;
}
html body.lms-navigation-v2.page-shell .member-location-search.location-entry,
html body.lms-navigation-v2.page-shell .member-location-search.location-entry.is-confirmed{
  box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
  padding:0!important;margin:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;outline:0!important;
}
html body.lms-navigation-v2.page-shell .member-location-search.location-entry>label{
  box-sizing:border-box!important;display:block!important;padding:0!important;margin:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
html body.lms-navigation-v2.page-shell .member-location-search .location-picker-control,
html body.lms-navigation-v2.page-shell .member-location-search .location-picker-control:focus-within{
  display:flex!important;align-items:center!important;gap:0!important;
  padding:0!important;margin:6px 0 0!important;border-radius:11px!important;
  border:1px solid var(--line)!important;background:var(--bg)!important;
  min-height:46px!important;box-shadow:none!important;max-width:100%!important;
}
html body.lms-navigation-v2.page-shell .member-location-search .location-picker-control>svg{
  width:17px!important;height:17px!important;min-width:17px!important;
  margin:0 10px 0 13px!important;padding:0!important;flex:none!important;
  color:var(--muted)!important;
}
html body.lms-navigation-v2.page-shell .member-location-search .location-picker-control>input[data-location-picker-input]{
  box-sizing:border-box!important;display:block!important;flex:1 1 auto!important;
  width:100%!important;min-width:0!important;min-height:44px!important;
  height:44px!important;margin:0!important;padding:9px 34px 9px 0!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;outline:0!important;font-size:13px!important;font-weight:400!important;
  text-transform:none!important;letter-spacing:normal!important;line-height:1.35!important;
}
html body.lms-navigation-v2.page-shell .member-location-search .location-picker-control:focus-within{
  border-color:var(--accent)!important;
}
html body.lms-navigation-v2.page-shell .member-location-search.is-confirmed .location-picker-control{
  background:color-mix(in srgb,#35ca80 17%,var(--bg))!important;
  border-color:#27b975!important;
}
html body.lms-navigation-v2.page-shell .member-location-search.is-confirmed .location-picker-control>input[data-location-picker-input]{
  background:transparent!important;border:0!important;
}
html body.lms-navigation-v2.page-shell .member-identity-company-fields>label{
  display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
  align-items:stretch!important;gap:7px!important;min-height:0!important;margin:0!important;
}
html body.lms-navigation-v2.page-shell .member-identity-company-fields>label>input{
  display:block!important;box-sizing:border-box!important;min-height:46px!important;height:46px!important;
  width:100%!important;margin:0!important;
}
html body.lms-navigation-v2.page-shell .member-identity-company-fields>label>small{
  display:block!important;line-height:1.4!important;min-height:0!important;margin:0!important;
}
html body.lms-navigation-v2.page-shell .member-identity-company-fields{
  align-items:start!important;grid-auto-rows:min-content!important;row-gap:13px!important;
}
