/* EPA V229: Registration, consent and welcome positioning repairs.
   Target only the account dialog; leave all other EPA panels untouched. */
#accountOverlay:not([hidden]){
  box-sizing:border-box!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))!important;
  place-items:center!important;
}
#accountOverlay .account-modal{
  box-sizing:border-box!important;
  min-width:0!important;
  width:min(440px,100%)!important;
  max-width:100%!important;
  max-height:calc(100dvh - 20px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
}
#accountOverlay .account-modal *,#accountOverlay .account-modal *::before,#accountOverlay .account-modal *::after{box-sizing:border-box}
#accountOverlay .epa-login-brand{min-width:0!important;max-width:100%;}
#accountOverlay .epa-login-brand >div{min-width:0;flex:1 1 auto;overflow-wrap:anywhere}
#accountOverlay .epa-login-brand h2,#accountOverlay .epa-login-brand p{overflow-wrap:anywhere}
#accountOverlay #accountForm,#accountOverlay #epaV37RegistrationTerms{min-width:0!important;max-width:100%!important;width:100%;}
#accountOverlay #accountForm>input:not([type=checkbox]){display:block;min-width:0;max-width:100%!important;width:100%!important;}
#accountOverlay #accountForm>input[hidden]{display:none!important}
#accountOverlay #epaV37RegistrationTerms[hidden]{display:none!important}
#accountOverlay #epaV37RegistrationTerms{padding:12px!important;overflow:hidden!important;overflow-wrap:anywhere;}
#accountOverlay #epaV37RegistrationTerms .epa-v37-inline{display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;min-width:0!important;gap:8px!important;}
#accountOverlay #epaV37RegistrationTerms .epa-v37-inline button{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:left;line-height:1.4;}
#accountOverlay #epaV37RegistrationTerms label{
  display:flex!important;flex-wrap:nowrap!important;align-items:flex-start!important;
  gap:10px!important;min-width:0!important;max-width:100%!important;
  width:100%!important;white-space:normal!important;cursor:pointer!important;
  margin:10px 0 6px!important;font-size:12px!important;line-height:1.5!important;
}
/* The generic account-modal input rule was making checkboxes 100% wide / 43px tall.
   Its flex:none caused the legal statement to shoot off the right edge. */
#accountOverlay #epaV37RegistrationTerms label input[type=checkbox]{
  appearance:auto!important;-webkit-appearance:checkbox!important;
  display:block!important;flex:0 0 18px!important;
  width:18px!important;min-width:18px!important;max-width:18px!important;
  height:18px!important;min-height:18px!important;max-height:18px!important;
  margin:1px 0 0!important;padding:0!important;
  border:1px solid #8ca6be!important;border-radius:3px!important;
}
#accountOverlay #epaV37RegistrationTerms label span{display:block!important;flex:1 1 auto!important;min-width:0!important;overflow-wrap:anywhere!important;white-space:normal!important;font-weight:500!important;}
#accountOverlay #epaV37RegistrationTerms small{display:block!important;max-width:100%!important;font-size:11px!important;overflow-wrap:anywhere!important;line-height:1.55!important;}
#accountOverlay .saved-account-item{max-width:100%;min-width:0;flex-wrap:nowrap}
#accountOverlay .saved-account-copy{min-width:0;flex:1 1 auto}
#accountOverlay .saved-account-item button{flex:0 0 auto}
#accountOverlay .account-note{max-width:100%;overflow-wrap:anywhere}
#accountOverlay .account-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important;min-width:0!important}
#accountOverlay .account-tabs button{min-width:0!important;white-space:normal!important;}
@media(max-width:520px){
 #accountOverlay .account-modal{padding:18px 14px!important;border-radius:16px!important;}
 #accountOverlay .epa-login-brand{gap:10px!important;margin-right:28px!important;}
 #accountOverlay .epa-login-brand img{width:56px!important;height:56px!important;}
 #accountOverlay .epa-login-brand h2{font-size:18px!important;line-height:1.3!important;}
 #accountOverlay .account-modal input:not([type=checkbox]){font-size:16px!important;}
 #accountOverlay #epaV37RegistrationTerms .epa-v37-inline button{flex:1 1 160px!important;}
}
/* Welcome artwork includes rendered lettering; never stretch that lettering.
   Keep buttons' original percentages relative to the uncropped image. */
#epaEntryV75 .epa-v81-welcome-frame{
  width:min(100vw,46.19dvh)!important;
  height:min(100dvh,216.49vw)!important;
  aspect-ratio:946 / 2048!important;
  max-width:100vw!important;max-height:100dvh!important;
  margin:auto!important;overflow:hidden!important;
}
#epaEntryV75 .epa-v81-welcome-image{object-fit:contain!important;object-position:center!important;}
@supports not (height:100dvh){
 #epaEntryV75 .epa-v81-welcome-frame{width:min(100vw,46.19vh)!important;height:min(100vh,216.49vw)!important}
}
