/* MISCHEL – gemeinsamer Anmelde-Einstieg (Privatkunde / Firmenkunde). */
/* Sichtbarkeit im Header */
html.mischel-login-choice-mode header #mischel-login-choice{display:none!important}
html.mischel-login-choice-mode.mischel-auth-none header #mischel-login-choice{display:inline-flex!important}
html.mischel-login-choice-mode.mischel-auth-none header #account-register-open,
html.mischel-login-choice-mode.mischel-auth-none header #mischel-firma-nav,
html.mischel-login-choice-mode.mischel-auth-none header .firma-notify-header-bell,
html.mischel-login-choice-mode.mischel-auth-privat header #mischel-firma-nav,
html.mischel-login-choice-mode.mischel-auth-privat header #mischel-firma-user-menu,
html.mischel-login-choice-mode.mischel-auth-privat header .firma-notify-header-bell,
html.mischel-login-choice-mode.mischel-auth-firma header #account-register-open,
html.mischel-login-choice-mode.mischel-auth-firma header #mischel-usernav-menu,
html.mischel-login-choice-mode.mischel-auth-firma header .mischel-notify{display:none!important}

/* Button „Anmelden“ – gleiche Form wie die bisherigen Header-Buttons */
html.mischel-login-choice-mode header #mischel-login-choice{
  align-items:center;justify-content:center;gap:8px;
  border:1px solid #382f26!important;background:#382f26!important;color:#fff!important;
  min-width:145px;min-height:48px;padding:8px 18px!important;cursor:pointer;
  font:400 14px/1.2 Arial,sans-serif;
}
html.mischel-login-choice-mode header #mischel-login-choice:hover,
html.mischel-login-choice-mode header #mischel-login-choice:focus-visible{background:#554638!important;border-color:#554638!important}
html.mischel-login-choice-mode header #mischel-login-choice .mischel-header-person-icon{width:17px;height:17px;flex:0 0 17px}
@media(max-width:700px){
 html.mischel-login-choice-mode header #mischel-login-choice{
  min-width:115px;width:115px;min-height:44px;height:44px;font-size:12px;padding:4px 8px!important;gap:6px;
 }
 html.mischel-login-choice-mode header #mischel-login-choice .mischel-header-person-icon{width:14px;height:14px;flex-basis:14px}
}

/* Umschalter Privatkunde | Firmenkunde in den Anmelde- und Registrierungsfenstern */
.mlc-switch{display:grid;grid-template-columns:1fr 1fr;margin:0 0 18px;border:1px solid #cdbfa9;background:#fff}
.mlc-switch button{border:0;background:transparent;color:#5c4f42;padding:10px 8px;cursor:pointer;
  font:500 13px/1.2 Arial,sans-serif}
.mlc-switch button+button{border-left:1px solid #cdbfa9}
.mlc-switch button[aria-pressed="true"]{background:#302a24;color:#fff;cursor:default}
.mlc-switch button[aria-pressed="false"]:hover,.mlc-switch button[aria-pressed="false"]:focus-visible{background:#f1e9dc}
#mischel-firma-dialog .mlc-switch{grid-column:1/-1}

/* EIN Fenster: Firmenanmeldung eingebettet im Kunden-/Kassendialog (kein Fensterwechsel). */
#shop-checkout-dialog.mlc-firma-active > :not(.mlc-firma-slot):not(.shop-dialog-close){display:none!important}
#shop-checkout-dialog .mlc-firma-slot > #mischel-firma-dialog{
  position:static!important;inset:auto!important;transform:none!important;
  display:block;margin:0!important;padding:0!important;border:0!important;
  box-shadow:none!important;background:transparent!important;
  width:auto!important;max-width:none!important;max-height:none!important;overflow:visible!important;
}
#shop-checkout-dialog .mlc-firma-slot > #mischel-firma-dialog:not([open]){display:none!important}
#shop-checkout-dialog.mlc-firma-active:has(#mischel-firma-dialog.firma-dialog-wide){
  width:min(900px,94vw)!important;max-width:900px!important;
}

/* Anmeldefenster oben verankert (nicht mittig): beim Umschalten springt die Oberkante nicht. */
#shop-checkout-dialog.account-entry{margin-top:max(10px,3vh)!important;margin-bottom:auto!important;max-height:calc(100dvh - 2 * max(10px,3vh))!important}
/* Weniger Leerraum im Privat-Anmeldefenster (keine Bildlaufleiste auf normalen Bildschirmen). */
#shop-checkout-dialog.account-entry #checkout-login-title{margin-bottom:14px!important}
#shop-checkout-dialog .mlc-switch{margin-bottom:14px}
#shop-checkout-dialog.account-entry #checkout-login-status:empty{display:none!important}
#shop-checkout-dialog.account-entry #checkout-login-panel .checkout-create-account{margin-top:14px}

/* Eingebettete Firmenansicht (Registrierung / neues Passwort): gleiche Überschrift wie Privat. */
#shop-checkout-dialog .mlc-firma-slot .firma-close{display:none!important}
#shop-checkout-dialog .mlc-firma-slot .firma-dialog-head{margin:0 0 14px!important}
#shop-checkout-dialog .mlc-firma-slot #mischel-firma-title{
  font:400 32px/37px Georgia,serif!important;letter-spacing:normal!important;padding:0 44px 0 0!important;color:#302a24!important;
}
/* Gleiche Mindesthöhe für beide Anmeldeansichten: die Unterkante springt beim Umschalten nicht. */
#shop-checkout-dialog.account-entry{min-height:min(520px,calc(100dvh - 2 * max(10px,3vh)))}
@media(max-width:700px){
 #shop-checkout-dialog .mlc-firma-slot #mischel-firma-title{font-size:25px!important;line-height:30px!important;padding-right:34px!important}
}

/* Kompakter (14.11.): Privat-Anmeldung ohne Bildlaufleiste auch auf niedrigen Bildschirmen (ca. 560 px). */
#shop-checkout-dialog.account-entry{padding-top:22px!important;padding-bottom:20px!important}
#shop-checkout-dialog.account-entry #checkout-login-panel{padding-bottom:0!important}
#shop-checkout-dialog.account-entry #checkout-login-panel .form-row{margin:8px 0!important;gap:8px!important}
#shop-checkout-dialog.account-entry #checkout-login-panel .mischel-remember-option{margin:10px 0 6px!important}
#shop-checkout-dialog.account-entry #checkout-login-panel .checkout-account-actions{margin-top:8px!important;gap:6px!important}
#shop-checkout-dialog.account-entry #checkout-login-panel .checkout-create-account{margin-top:10px!important}

#shop-checkout-dialog .mlc-firma-slot #mischel-firma-title{line-height:normal!important;padding:0!important;width:100%}
#shop-checkout-dialog .mlc-firma-slot #mischel-firma-title:focus{outline:none}
#shop-checkout-dialog .mlc-firma-slot .firma-dialog-head{margin:0 0 14px!important}
#shop-checkout-dialog .mlc-firma-slot .firma-dialog-head > div{flex:1}
