/**
 * E2U automatic WCFM storefront media display.
 * Applies to approved and existing vendor storefronts only.
 * Doesn't modify the uploaded source files or payment/commerce settings.
 */
body.e2u-auto-vendor-store-media #wcfmmp-store .wcfm_banner_area {
  max-width: 100%;
}
body.e2u-auto-vendor-store-media #wcfmmp-store .banner_area,
body.e2u-auto-vendor-store-media #wcfmmp-store .banner_img {
  height: auto !important;
  max-height: none !important;
}
body.e2u-auto-vendor-store-media #wcfmmp-store .banner_img {
  background-image: none !important;
  background-color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  box-sizing: border-box;
  padding: 8px 0;
  min-height: 0;
}
body.e2u-auto-vendor-store-media #wcfmmp-store .banner_img > img {
  display: block !important;
  width: auto !important;
  max-width: 92% !important;
  height: auto !important;
  max-height: 430px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto !important;
}
body.e2u-auto-vendor-store-media #wcfmmp-store #wcfm_store_header .logo_area {
  background: #fff !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  box-shadow: 0 0 0 4px #fff, 0 2px 10px rgba(0,0,0,.14) !important;
}
body.e2u-auto-vendor-store-media #wcfmmp-store #wcfm_store_header .logo_area > a {
  display: block !important;
  width: 100%;
  height: 100%;
}
body.e2u-auto-vendor-store-media #wcfmmp-store #wcfm_store_header .logo_area > a > img {
  background-color: #fff !important;
  border-radius: 50% !important;
  width: calc(100% - 12px) !important;
  height: calc(100% - 12px) !important;
  padding: 3px !important;
  box-sizing: border-box !important;
  object-fit: contain !important;
  object-position: center center !important;
}
@media (max-width:640px) {
  body.e2u-auto-vendor-store-media #wcfmmp-store .banner_img {
    padding: 6px 0;
  }
  body.e2u-auto-vendor-store-media #wcfmmp-store .banner_img > img {
    max-width: 96% !important;
    max-height: 230px !important;
  }
  body.e2u-auto-vendor-store-media #wcfmmp-store #wcfm_store_header .logo_area > a > img {
    width: calc(100% - 8px) !important;
    height: calc(100% - 8px) !important;
    padding: 2px !important;
  }
}

/* E2U storefront media refinement v2: smaller whole-artwork banner and opaque logo disc. */
body.e2u-auto-vendor-store-media #wcfmmp-store .banner_area .banner_img {
  background-color:#fff !important;
  background-image:none !important;
  overflow:hidden !important;
  padding:12px 0 !important;
}
body.e2u-auto-vendor-store-media #wcfmmp-store .banner_area .banner_img > img {
  display:block !important;
  width:84% !important;
  max-width:860px !important;
  max-height:290px !important;
  height:auto !important;
  object-fit:contain !important;
  object-position:center center !important;
  opacity:1 !important;
}
body.e2u-auto-vendor-store-media #wcfmmp-store #wcfm_store_header .logo_area {
  border:4px solid #fff !important;
  background:#fff !important;
  border-radius:50% !important;
  overflow:hidden !important;
  isolation:isolate;
}
body.e2u-auto-vendor-store-media #wcfmmp-store #wcfm_store_header .logo_area::before {
  content:"";
  position:absolute;
  inset:0;
  background:#fff;
  border-radius:50%;
  z-index:0;
  pointer-events:none;
}
body.e2u-auto-vendor-store-media #wcfmmp-store #wcfm_store_header .logo_area > a > img {
  position:absolute !important;
  z-index:1 !important;
  width:100% !important;
  height:100% !important;
  padding:9px !important;
  background-color:#fff !important;
  border-radius:50% !important;
  object-fit:contain !important;
}
@media (max-width:640px) {
  body.e2u-auto-vendor-store-media #wcfmmp-store .banner_area .banner_img {
    padding:8px 0 !important;
  }
  body.e2u-auto-vendor-store-media #wcfmmp-store .banner_area .banner_img > img {
    width:90% !important;
    max-width:90% !important;
    max-height:190px !important;
  }
  body.e2u-auto-vendor-store-media #wcfmmp-store #wcfm_store_header .logo_area > a > img {
    padding:6px !important;
  }
}
/* eDIRECT USA — fuller artwork display after E/DIRECT spacing correction.
   Store-specific: other vendors retain their automatic no-crop defaults. */
body.e2u-edirect-usa-banner-fit #wcfmmp-store .banner_area .banner_img > img {
  width:92% !important;
  max-width:1040px !important;
  max-height:340px !important;
  height:auto !important;
  object-fit:contain !important;
  object-position:center center !important;
}
body.e2u-edirect-usa-banner-fit #wcfmmp-store #wcfm_store_header .logo_area {
  width:168px !important;
  height:168px !important;
  background:#fff !important;
  border-radius:50% !important;
}
body.e2u-edirect-usa-banner-fit #wcfmmp-store #wcfm_store_header .logo_area > a > img {
  width:100% !important;
  height:100% !important;
  padding:3px !important;
  background:#fff !important;
  object-fit:contain !important;
  border-radius:50% !important;
}
@media (max-width:640px) {
  body.e2u-edirect-usa-banner-fit #wcfmmp-store .banner_area .banner_img > img {
    width:96% !important;
    max-width:96% !important;
    max-height:215px !important;
  }
  body.e2u-edirect-usa-banner-fit #wcfmmp-store #wcfm_store_header .logo_area {
    width:112px !important;
    height:112px !important;
  }
  body.e2u-edirect-usa-banner-fit #wcfmmp-store #wcfm_store_header .logo_area > a > img {
    padding:2px !important;
  }
}
