/* v4.2.44.0: iPhone-compatible true modal overlays; clean inbox search control. */
/* The Phase 3 modal is moved to document.body, outside clipped/transformed chat containers. */
html body.djs-mc3-modal-open{overflow:hidden!important;overscroll-behavior:none!important;}
html body.djs-mc3-modal-open #djs-portal #djs-screen-chat .djs-mc-composer{visibility:hidden!important;}
html body #djs-mc3-panel.djs-mc3-overlay[hidden]{display:none!important;}
html body #djs-mc3-panel.djs-mc3-overlay{
  position:fixed!important;inset:0!important;z-index:2147483000!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-end!important;
  box-sizing:border-box!important;width:100vw!important;max-width:100vw!important;
  height:100vh!important;height:100dvh!important;min-height:0!important;
  padding:14px 12px max(18px,env(safe-area-inset-bottom,0px))!important;
  margin:0!important;background:rgba(8,23,48,.56)!important;overflow:hidden!important;
  backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);
  font-family:inherit;color:#142d4d;
}
html body #djs-mc3-panel .djs-mc3-sheet{
  box-sizing:border-box!important;position:relative!important;flex:0 1 auto!important;
  display:flex!important;flex-direction:column!important;
  width:min(100%,520px)!important;max-width:520px!important;
  max-height:calc(100vh - 46px)!important;max-height:calc(100dvh - 46px - env(safe-area-inset-bottom,0px))!important;
  min-height:0!important;margin:0 auto!important;
  border:1px solid #d9e7f9!important;border-radius:24px!important;
  background:#fff!important;color:#132b49!important;
  box-shadow:0 18px 58px rgba(8,28,57,.26)!important;
  overflow:hidden!important;overscroll-behavior:contain!important;
}
html body #djs-mc3-panel .djs-mc3-sheet-top{
  display:flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:space-between!important;
  gap:12px!important;padding:18px 18px 13px!important;border-bottom:1px solid #e8eef7!important;
  background:#fff!important;
}
html body #djs-mc3-panel .djs-mc3-sheet-top strong{
  min-width:0!important;overflow-wrap:anywhere!important;
  font-size:clamp(18px,4.6vw,22px)!important;line-height:1.25!important;font-weight:800!important;
  color:#101e31!important;
}
html body #djs-mc3-panel .djs-mc3-sheet-top button{
  flex:0 0 44px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  min-width:44px!important;width:44px!important;height:44px!important;padding:0!important;
  border:0!important;border-radius:50%!important;background:#eef4fc!important;color:#132b49!important;
}
html body #djs-mc3-panel .djs-mc3-sheet-top button .ms{font-size:26px!important;line-height:1!important;}
html body #djs-mc3-panel .djs-mc3-content{
  flex:1 1 auto!important;min-height:0!important;max-height:100%!important;
  overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  display:flex!important;flex-direction:column!important;gap:13px!important;
  padding:18px 18px max(24px,env(safe-area-inset-bottom,0px))!important;
}
html body #djs-mc3-panel .djs-mc3-content p{
  font-size:15px!important;line-height:1.55!important;margin:0 0 4px!important;color:#3a4f6a!important;
}
html body #djs-mc3-panel .djs-mc3-content label{
  font-size:14px!important;font-weight:750!important;color:#143257!important;margin-top:4px!important;
}
html body #djs-mc3-panel .djs-mc3-content select,
html body #djs-mc3-panel .djs-mc3-content textarea{
  display:block!important;flex:0 0 auto!important;width:100%!important;max-width:100%!important;
  box-sizing:border-box!important;min-height:48px!important;
  font:inherit!important;font-size:16px!important;padding:12px!important;
  border:1px solid #bdd2ed!important;border-radius:13px!important;
  background:#f6f9fd!important;color:#172b44!important;
}
html body #djs-mc3-panel .djs-mc3-content textarea{min-height:112px!important;resize:vertical!important;}
html body #djs-mc3-panel .djs-mc3-primary{
  display:flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;width:100%!important;min-height:50px!important;
  margin-top:8px!important;padding:12px 14px!important;border:0!important;border-radius:13px!important;
  background:linear-gradient(105deg,#1aace3,#0969df)!important;color:#fff!important;
  font:inherit!important;font-size:15px!important;font-weight:800!important;text-align:center!important;
}
html body #djs-mc3-panel .djs-mc3-rate-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;}
html body #djs-mc3-panel .djs-mc3-rate-actions button{min-height:48px!important;background:#eef6ff!important;color:#1359a8!important;border:1px solid #bdd7f7!important;border-radius:12px!important;font-weight:750!important;}
html body #djs-mc3-panel .djs-mc3-content button:focus-visible,
html body #djs-mc3-panel .djs-mc3-sheet-top button:focus-visible{outline:3px solid #5baefd!important;outline-offset:2px!important;}
/* Do not let older homepage search rules turn the submit control into a giant floating arrow. */
html body #djs-portal #djs-screen-chat.djs-message-center:not(.is-thread) .djs-mc-v2-home .djs-mc-home-search-wrap-v24002{
  display:flex!important;align-items:center!important;position:relative!important;overflow:hidden!important;
  width:100%!important;max-width:100%!important;min-height:52px!important;height:52px!important;
  padding:0 5px 0 12px!important;margin:0 0 16px!important;
  border:1px solid #e1eaf5!important;border-radius:16px!important;
  background:#f1f5fa!important;box-shadow:none!important;
}
html body #djs-portal #djs-screen-chat.djs-message-center:not(.is-thread) .djs-mc-v2-home .djs-mc-v2-searchicon{display:none!important;}
html body #djs-portal #djs-screen-chat.djs-message-center:not(.is-thread) .djs-mc-v2-home .djs-mc-home-search-wrap-v24002 .djs-mc-home-filter{
  display:block!important;position:static!important;flex:1 1 auto!important;width:auto!important;min-width:0!important;
  height:50px!important;min-height:50px!important;margin:0!important;padding:0 9px!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;font-size:15px!important;color:#163253!important;
}
html body #djs-portal #djs-screen-chat.djs-message-center:not(.is-thread) .djs-mc-v2-home .djs-mc-home-search-wrap-v24002 .djs-mc-search-submit-v24002{
  display:flex!important;flex:0 0 42px!important;align-items:center!important;justify-content:center!important;
  position:static!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
  width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important;max-height:42px!important;
  margin:0!important;padding:0!important;background:#dfedff!important;color:#1465bd!important;
  border:0!important;border-radius:12px!important;box-shadow:none!important;transform:none!important;
}
html body #djs-portal #djs-screen-chat.djs-message-center:not(.is-thread) .djs-mc-v2-home .djs-mc-home-search-wrap-v24002 .djs-mc-search-submit-v24002 .ms{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:23px!important;height:23px!important;font-size:23px!important;
  line-height:1!important;color:#1465bd!important;-webkit-text-fill-color:#1465bd!important;
}
@media(min-width:769px){
 html body #djs-mc3-panel.djs-mc3-overlay{align-items:center!important;justify-content:center!important;padding:24px!important;}
 html body #djs-mc3-panel .djs-mc3-sheet{max-height:min(82vh,720px)!important;border-radius:23px!important;}
}
@media(max-width:355px){
 html body #djs-mc3-panel.djs-mc3-overlay{padding-left:8px!important;padding-right:8px!important;}
 html body #djs-mc3-panel .djs-mc3-sheet-top{padding:12px 13px!important;}
 html body #djs-mc3-panel .djs-mc3-content{padding:14px 13px 18px!important;}
}
@media(prefers-reduced-motion:reduce){html body #djs-mc3-panel .djs-mc3-sheet{animation:none!important;}}
