/* AVELLON v4.0.3 — signed-out account layout only.
   WooCommerce account wrapper is a 220px + 1fr grid for logged-in account nav.
   When signed out it contains just the form-login section. Without resetting the
   PARENT grid, the whole login is confined to its 220px sidebar track.
   Keep authenticated .woocommerce-MyAccount-navigation/content untouched. */
body.woocommerce-account:not(.logged-in) .woocommerce {
  display:block!important;
  width:min(1120px,calc(100% - 40px))!important;
  max-width:1120px!important;
  margin:36px auto 64px!important;
  padding:0!important;
  min-width:0!important;
  grid-template-columns:none!important;
  grid-template-rows:none!important;
  float:none!important;
  clear:both!important;
}
body.woocommerce-account:not(.logged-in) .woocommerce > .av-auth-shell {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  width:100%!important;
  max-width:none!important;
  margin:0 auto!important;
  min-width:0!important;
  min-height:570px!important;
  align-items:stretch!important;
  overflow:hidden!important;
  border-radius:12px!important;
}
body.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-notices-wrapper,
body.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-error,
body.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-message {
  width:100%!important;
  max-width:100%!important;
  grid-column:1/-1!important;
}
body.woocommerce-account:not(.logged-in) .av-auth-shell__visual,
body.woocommerce-account:not(.logged-in) .av-auth-shell__panel {
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
}
body.woocommerce-account:not(.logged-in) .av-auth-shell__panel form,
body.woocommerce-account:not(.logged-in) .av-auth-shell__panel form p,
body.woocommerce-account:not(.logged-in) .av-auth-shell__panel form input:not([type="checkbox"]) {
  max-width:100%!important;
}
/* Standalone registration uses the same visual but its own full-width main. */
.av-register-page{width:100%!important;max-width:none!important;min-width:0!important}
.av-register-page .av-auth-shell{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
@media (max-width:760px){
  body.woocommerce-account:not(.logged-in) .woocommerce {
    display:block!important;
    width:calc(100% - 28px)!important;
    max-width:none!important;
    margin:22px auto 40px!important;
    padding:0!important;
  }
  body.woocommerce-account:not(.logged-in) .woocommerce > .av-auth-shell,
  .av-register-page .av-auth-shell {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
    margin:0 auto!important;
    min-height:0!important;
    border-radius:10px!important;
  }
  body.woocommerce-account:not(.logged-in) .av-auth-shell__visual,
  .av-register-page .av-auth-shell__visual {
    min-height:186px!important;
    padding:18px!important;
    background-position:center 42%!important;
  }
  body.woocommerce-account:not(.logged-in) .av-auth-shell__panel,
  .av-register-page .av-auth-shell__panel {
    min-width:0!important;
    padding:24px 20px 30px!important;
  }
  body.woocommerce-account:not(.logged-in) .av-auth-shell__visual h2,
  .av-register-page .av-auth-shell__visual h2{font-size:23px!important}
  body.woocommerce-account:not(.logged-in) .av-auth-shell__panel>h1,
  .av-register-page .av-auth-shell__panel>h1{font-size:25px!important}
}
