/* MH Customers — accessible ChatGPT-inspired neutral workspace; no rebranding or API changes. */
body.mh-chat-customer {background:#fff!important;color:#202123!important;}
body.mh-chat-customer #app {background:#fff!important;color:#202123!important;}
body.mh-chat-customer #app header.top {
 position:sticky!important;top:0!important;z-index:85!important;
 width:100%!important;max-width:100%!important;
 height:auto!important;min-height:68px!important;
 padding:10px clamp(12px,2vw,28px)!important;
 display:flex!important;flex-wrap:wrap!important;
 align-items:center!important;justify-content:space-between!important;
 gap:9px 16px!important;
 background:#fff!important;color:#212121!important;
 border-bottom:1px solid #ededed!important;
 box-shadow:none!important;
}
body.mh-chat-customer #app header.top .brand,
body.mh-chat-customer #app header.top .brand-main {
 min-width:0!important;max-width:100%!important;
 gap:10px!important;color:#212121!important;
}
body.mh-chat-customer #app header.top .brand-main div {min-width:0;overflow-wrap:anywhere;}
body.mh-chat-customer #app header.top .brand-main div span {
 color:#222!important;font-weight:650!important;
 font-size:clamp(16px,2vw,21px)!important;
}
body.mh-chat-customer #app header.top .brand-main small {color:#747474!important;}
body.mh-chat-customer #app header.top .brand-logo {
 object-fit:contain!important;transform:none!important;
 border:1px solid #eaeaea!important;
 border-radius:12px!important;box-shadow:none!important;
 background:#fff!important;
}
body.mh-chat-customer #app header.top button,
body.mh-chat-customer #app header.top select {
 background:#fff!important;color:#282828!important;
 border:1px solid #e5e5e5!important;box-shadow:none!important;
 border-radius:11px!important;min-height:43px!important;
}
body.mh-chat-customer #app header.top button:hover,
body.mh-chat-customer #app header.top select:hover{
 background:#f6f6f6!important;
}
body.mh-chat-customer #app header.top .top-actions {
 display:flex!important;align-items:center!important;
 justify-content:flex-end!important;
 flex-wrap:wrap!important;gap:9px!important;
 min-width:0!important;max-width:100%!important;
}
body.mh-chat-customer #app .shell {background:#fff!important;min-width:0!important;}
body.mh-chat-customer #app #side {
 background:#f9f9f9!important;color:#303030!important;
 border:0!important;border-inline-end:1px solid #ececec!important;
 box-shadow:none!important;
}
body.mh-chat-customer #app #side .nav button,
body.mh-chat-customer #app #side .nav a:not([hidden]) {
 min-height:43px!important;
 width:100%!important;
 background:transparent!important;color:#333!important;
 border:0!important;border-radius:10px!important;
 box-shadow:none!important;padding:10px 13px!important;
 text-align:start!important;font-size:14px!important;
 font-weight:500!important;
}
body.mh-chat-customer #app #side .nav button.active,
body.mh-chat-customer #app #side .nav button:hover,
body.mh-chat-customer #app #side .nav a:hover {
 background:#eaeaea!important;color:#242424!important;
}
body.mh-chat-customer #app main.main {
 background:#fff!important;color:#212121!important;
 min-width:0!important;max-width:100%!important;
}
body.mh-chat-customer #app .main h1,
body.mh-chat-customer #app .main h2 {
 color:#242424!important;letter-spacing:-.012em;
 overflow-wrap:anywhere;
}
body.mh-chat-customer #app .main .card,
body.mh-chat-customer #app .main .panel,
body.mh-chat-customer #app .main .stat {
 background:#fff!important;color:#252525!important;
 border:1px solid #e9e9e9!important;
 border-radius:16px!important;
 box-shadow:none!important;
}
body.mh-chat-customer #app .main button:focus-visible,
body.mh-chat-customer #app .side button:focus-visible {
 outline:2px solid #444!important;outline-offset:2px!important;
}
body.mh-chat-customer #app .main .welcome,
body.mh-chat-customer #app .main .hero {
 border-radius:17px!important;box-shadow:none!important;
}
@media(min-width:901px){
 body.mh-chat-customer #app main.main {
   width:min(100%,1200px)!important;
   margin-inline:auto!important;
   padding-inline:clamp(16px,2.5vw,35px)!important;
 }
}
@media(max-width:900px){
 body.mh-chat-customer #app header.top {
  min-height:65px!important;
  height:auto!important;
  padding:9px 12px!important;
  align-items:center!important;
 }
 body.mh-chat-customer #app header.top .brand-main {
  width:100%!important;flex:1 1 100%!important;
 }
 body.mh-chat-customer #app header.top .top-actions {
  width:100%!important;flex:1 1 100%!important;
  margin:0!important;gap:8px!important;
 }
 body.mh-chat-customer #app header.top .top-language {
  flex:0 1 160px!important;width:auto!important;
  min-width:100px!important;max-width:calc(100% - 104px)!important;
 }
 body.mh-chat-customer #app header.top #logoutBtn {
  flex:0 0 auto!important;
  min-height:43px!important;padding:8px 12px!important;
 }
 body.mh-chat-customer #app #side {
  position:fixed!important;
  z-index:1200!important;
  top:0!important;right:0!important;bottom:0!important;left:auto!important;
  inset:0 0 0 auto!important;
  width:min(250px,78vw)!important;max-width:78vw!important;
  height:100dvh!important;
  background:#f9f9f9!important;
  display:flex!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  transform:translateX(105%)!important;
  transition:transform .18s ease!important;
 }
 body.mh-chat-customer #app #side.open {
  transform:translateX(0)!important;
 }
 body.mh-chat-customer #app .shell {
  display:block!important;width:100%!important;
  max-width:100%!important;
  grid-template-columns:minmax(0,1fr)!important;
 }
 body.mh-chat-customer #app main.main {
  width:100%!important;max-width:100%!important;
  padding:clamp(12px,3.7vw,24px)!important;
  margin:0!important;
 }
 body.mh-chat-customer #app .mh-chat-customer-veil {
  position:fixed!important;inset:0!important;z-index:1199!important;
  background:rgba(0,0,0,.35)!important;
  visibility:hidden!important;opacity:0!important;
  pointer-events:none!important;
  transition:opacity .18s ease!important;
 }
 body.mh-chat-customer:has(#side.open) #app .mh-chat-customer-veil {
  visibility:visible!important;opacity:1!important;pointer-events:auto!important;
 }
}
@media(prefers-reduced-motion:reduce){
 body.mh-chat-customer #app #side,
 body.mh-chat-customer #app .mh-chat-customer-veil {transition:none!important;}
}



/* Restore official MH brand colours without undoing ChatGPT-inspired layout. */
body.mh-chat-customer {background:#f7f6f4!important;color:#212121!important;}
body.mh-chat-customer #app {background:#f7f6f4!important;color:#212121!important;}
body.mh-chat-customer #app header.top {
 background:#191515!important;border-bottom:1px solid #3f292d!important;
 color:#fff!important;
}
body.mh-chat-customer #app header.top .brand-main div span {
 color:#fff!important;
}
body.mh-chat-customer #app header.top .brand-main small {color:#ddc7ca!important;}
body.mh-chat-customer #app header.top .brand-logo {border-color:#58383d!important;}
body.mh-chat-customer #app header.top button,
body.mh-chat-customer #app header.top select {
 background:#2a2224!important;color:#fff!important;
 border:1px solid #503037!important;
}
body.mh-chat-customer #app header.top button:hover,
body.mh-chat-customer #app header.top select:hover {
 background:#5b2029!important;
}
body.mh-chat-customer #app .shell {background:#f7f6f4!important;}
body.mh-chat-customer #app #side {
 background:#191515!important;border-color:#392628!important;
 color:#fff!important;
}
body.mh-chat-customer #app #side .nav button,
body.mh-chat-customer #app #side .nav a:not([hidden]) {
 color:#f6efef!important;
}
body.mh-chat-customer #app #side .nav button.active {
 background:#941922!important;color:#fff!important;
}
body.mh-chat-customer #app #side .nav button:hover,
body.mh-chat-customer #app #side .nav a:hover {
 background:#452b30!important;color:#fff!important;
}
body.mh-chat-customer #app main.main {
 background:#f7f6f4!important;color:#222!important;
}
body.mh-chat-customer #app .main h1,
body.mh-chat-customer #app .main h2 {color:#8f1119!important;}
body.mh-chat-customer #app .main .card,
body.mh-chat-customer #app .main .panel,
body.mh-chat-customer #app .main .stat {
 border-color:#eadcdc!important;background:#fff!important;
}
body.mh-chat-customer #app .main .btn-primary,
body.mh-chat-customer #app .main button.primary {background:#b51923!important;color:#fff!important;}
@media(max-width:900px){
 html[dir="rtl"] body.mh-chat-customer #app #side {
  right:0!important;left:auto!important;transform:translateX(105%)!important;
 }
 html[dir="ltr"] body.mh-chat-customer #app #side {
  left:0!important;right:auto!important;transform:translateX(-105%)!important;
 }
 html[dir="rtl"] body.mh-chat-customer #app #side.open,
 html[dir="ltr"] body.mh-chat-customer #app #side.open {
  transform:translateX(0)!important;
 }
}


/* MH full-width customer portal fix: use entire width available after sidebar. */
@media (min-width:901px) {
 body.mh-chat-customer #app main.main {
   box-sizing:border-box!important;
   width:100%!important;
   max-width:none!important;
   margin-inline:0!important;
   min-width:0!important;
   padding-inline:clamp(20px,2.3vw,36px)!important;
 }
 body.mh-chat-customer #app .shell {
   width:100%!important;
   max-width:none!important;
 }
}
@media (max-width:900px){
 body.mh-chat-customer #app main.main {
   box-sizing:border-box!important;width:100%!important;max-width:100%!important;
   margin-inline:0!important;
 }
}
