/* v1.6.7: isolated login-brand customization and true viewport-sized mobile layout. */
body.bwch-guest-fullpage .bwch-auth-topbar-inner{position:relative;min-height:74px;}
body.bwch-guest-fullpage .bwch-auth-brand{max-width:min(55vw,350px);min-height:24px;flex:0 1 auto;}
body.bwch-guest-fullpage .bwch-auth-brand .bwch-auth-logo-desktop,
body.bwch-guest-fullpage .bwch-auth-brand .bwch-auth-logo-mobile{align-items:center;justify-content:center;gap:10px;min-width:0;max-width:100%;}
body.bwch-guest-fullpage .bwch-auth-brand .bwch-auth-logo-desktop{display:inline-flex;}
body.bwch-guest-fullpage .bwch-auth-brand .bwch-auth-logo-mobile{display:none;}
body.bwch-guest-fullpage .bwch-auth-brand .bwch-auth-site-logo{
  display:block;max-width:var(--bwch-logo-desktop-w,165px)!important;
  max-height:var(--bwch-logo-desktop-h,57px)!important;
  width:auto!important;height:auto!important;object-fit:contain;vertical-align:middle;
}
body.bwch-guest-fullpage .bwch-auth-brand.bwch-logo-bg-on>span{background:var(--bwch-logo-background,#fff);padding:5px 9px;border-radius:12px;}
body.bwch-guest-fullpage .bwch-auth-brand-fallback{font-size:14px;font-weight:800;white-space:nowrap;}
body.bwch-guest-fullpage .bwch-auth-topbar-inner.bwch-align-left{flex-direction:row-reverse;}
body.bwch-guest-fullpage .bwch-auth-topbar-inner.bwch-align-center{justify-content:center;}
body.bwch-guest-fullpage .bwch-auth-topbar-inner.bwch-align-center>.bwch-auth-back{position:absolute;left:26px;}
body.bwch-guest-fullpage .bwch-auth-brand.bwch-desktop-logo-hidden{display:none;}
body.bwch-guest-fullpage .bwch-auth-topbar-inner.bwch-align-left>.bwch-auth-back,
body.bwch-guest-fullpage .bwch-auth-topbar-inner.bwch-align-right>.bwch-auth-back{margin-inline-start:auto;}

@media (max-width:640px){
  html:has(body.bwch-guest-fullpage),
  body.bwch-guest-fullpage{height:100%!important;min-height:0!important;overflow:hidden!important;overscroll-behavior:none;}
  body.bwch-guest-fullpage{height:100svh!important;height:100dvh!important;}
  body.bwch-guest-fullpage .bwch-auth-page{
    height:100svh!important;height:100dvh!important;min-height:0!important;
    max-height:100dvh!important;overflow:hidden!important;display:flex;flex-direction:column;
  }
  body.bwch-guest-fullpage .bwch-auth-topbar{flex:0 0 auto;}
  body.bwch-guest-fullpage .bwch-auth-topbar-inner{min-height:0;max-width:100%;padding:9px 14px 7px;gap:8px;}
  body.bwch-guest-fullpage .bwch-auth-brand .bwch-auth-logo-desktop{display:none;}
  body.bwch-guest-fullpage .bwch-auth-brand .bwch-auth-logo-mobile{display:inline-flex;}
  body.bwch-guest-fullpage .bwch-auth-brand .bwch-auth-site-logo{
    width:auto!important;height:auto!important;
    max-width:min(48vw,var(--bwch-logo-mobile-w,110px))!important;
    max-height:var(--bwch-logo-mobile-h,44px)!important;
  }
  body.bwch-guest-fullpage .bwch-auth-brand.bwch-desktop-logo-hidden{display:inline-flex;}
  body.bwch-guest-fullpage .bwch-auth-brand.bwch-mobile-logo-hidden{display:none;}
  body.bwch-guest-fullpage .bwch-auth-topbar-inner[data-bwch-mobile-align="bwch-align-left"]{flex-direction:row-reverse;justify-content:space-between;}
  body.bwch-guest-fullpage .bwch-auth-topbar-inner[data-bwch-mobile-align="bwch-align-right"]{flex-direction:row;justify-content:space-between;}
  body.bwch-guest-fullpage .bwch-auth-topbar-inner[data-bwch-mobile-align="bwch-align-center"]{flex-direction:row;justify-content:center;}
  body.bwch-guest-fullpage .bwch-auth-topbar-inner[data-bwch-mobile-align="bwch-align-center"]>.bwch-auth-back{
    position:absolute;left:14px;margin:0;
  }
  body.bwch-guest-fullpage .bwch-auth-topbar-inner[data-bwch-mobile-align="bwch-align-center"] .bwch-auth-brand{max-width:44vw;}
  body.bwch-guest-fullpage .bwch-auth-back{font-size:10px;padding:7px 9px;line-height:1.3;min-height:33px;}
  body.bwch-guest-fullpage .bwch-auth-page-main{
    flex:1 1 0!important;min-height:0!important;overflow-y:auto;overflow-x:hidden;
    overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
    align-items:center!important;justify-content:center!important;padding:5px 12px!important;
  }
  body.bwch-guest-fullpage .bwch-auth-content{width:100%;max-width:480px;min-width:0;margin:auto!important;}
  body.bwch-guest-fullpage .bwch-auth-layout{display:block;min-width:0;max-width:100%;}
  body.bwch-guest-fullpage .bwch-auth-card{min-height:0!important;padding:clamp(12px,3.2vh,19px) 17px!important;border-radius:17px;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-auth-heading{margin:0 0 13px!important;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-auth-heading h1{margin:0 0 3px!important;font-size:clamp(19px,5.2vw,23px);line-height:1.5;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-auth-heading p{font-size:11px;line-height:1.7;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-phone-auth{min-height:0!important;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-auth-panel-title{margin:0 0 11px!important;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-auth-panel-title h2{font-size:16px;line-height:1.55;margin:0 0 4px;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-auth-panel-title p{font-size:11px;line-height:1.7;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-auth-method:not(.is-active){display:none!important;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-auth-method-panels{display:block;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-otp-form{gap:8px;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-otp-form input{height:46px;min-height:46px;font-size:18px;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-otp-form .bwch-auth-submit{min-height:45px;height:45px;margin:2px 0 0!important;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-auth-method-switch{margin-top:10px;padding-top:9px;}
  body.bwch-guest-fullpage .bwch-auth-page-footer{
    flex:0 0 auto!important;display:flex!important;flex-direction:column!important;gap:0!important;
    padding:4px 12px max(7px,env(safe-area-inset-bottom))!important;
    margin:0 auto!important;text-align:center;font-size:9px;line-height:1.55;
  }
  body.bwch-guest-fullpage .bwch-auth-page-footer span{display:block;}
  body.bwch-guest-fullpage .bwch-auth-page-footer a{font-size:9px;line-height:1.6;}
  /* The email-password form is taller; only this middle region can scroll when
     necessary, keeping the header and footer within the viewport. */
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-auth-method-email .form-row{margin-bottom:8px!important;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-auth-method-email input:not([type=checkbox]){min-height:44px;height:44px;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-auth-method-email .bwch-auth-panel-title{margin-bottom:8px!important;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-auth-method-email .bwch-auth-row{margin:6px 0!important;}
}
@media(max-width:640px) and (max-height:690px){
  body.bwch-guest-fullpage .bwch-auth-page-main{padding:2px 10px!important;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-auth-card{padding:11px 15px!important;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-auth-heading{margin-bottom:9px!important;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-auth-panel-title{margin-bottom:8px!important;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-auth-method-switch{padding-top:7px;margin-top:7px;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-step-kicker{padding:2px 8px;margin-bottom:4px;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-otp-form{gap:6px;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-auth-panel-title p{line-height:1.5;}
}
@media(max-width:370px){
  body.bwch-guest-fullpage .bwch-auth-topbar-inner[data-bwch-mobile-align="bwch-align-center"] .bwch-auth-back span{display:none;}
  body.bwch-guest-fullpage .bwch-auth-topbar-inner[data-bwch-mobile-align="bwch-align-center"] .bwch-auth-back{padding:8px;}
  body.bwch-guest-fullpage .bwch-phone-auth-page .bwch-auth-heading h1{font-size:19px;}
}
@media(max-width:640px) and (max-height:470px){
  body.bwch-guest-fullpage .bwch-auth-page-main{align-items:flex-start!important;}
  body.bwch-guest-fullpage .bwch-auth-content{margin:0 auto!important;}
}
