/* Wlif brand logo — 40×40px rounded square */
.wlif-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px !important;
  background: transparent;
  padding: 0;
  overflow: hidden;
  line-height: 0;
  flex-shrink: 0;
  border-radius: 12px;
}

.wlif-brand-badge.app-brand-logo.demo {
  width: 40px !important;
  height: 40px !important;
  overflow: hidden !important;
}

.wlif-brand-logo-img {
  display: block;
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 12px;
}

/* Override theme rules (front-page.css, demo.css) */
.app-brand .wlif-brand-logo-img.logo,
.app-brand-logo img.wlif-brand-logo-img,
.app-brand .app-brand-logo img.wlif-brand-logo-img {
  width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  max-height: 40px !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* Admin sidebar */
#layout-menu .app-brand .app-brand-link {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  line-height: 0;
}

#layout-menu .app-brand {
  overflow: visible;
}

/* Merchant / Doctors sidebar — platform logo */
#layout-menu .menu-brand-stack .menu-brand-platform {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  line-height: 0;
}

#layout-menu .menu-brand-stack > .app-brand-link,
#layout-menu .menu-brand-stack > .app-brand-link > a {
  align-items: flex-start !important;
}

/* Login / auth pages */
.login-header-top .app-brand-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

/* Placeholder when shopping/wlifans sections have no image */
.site-logo-fallback-img {
  object-fit: contain !important;
  object-position: center center !important;
  background: #f2f3f9;
  padding: 8px;
}

/* Shopping wlifans strip — same 52px circle as regular adoption thumbs */
.adoption-card .adoption-thumb.site-logo-fallback-img,
img.adoption-thumb.site-logo-fallback-img {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  min-width: 52px;
  min-height: 52px;
  object-fit: cover !important;
  object-position: center center !important;
  padding: 0 !important;
  background: #26235c !important;
  transform: none !important;
  border-radius: 50%;
  flex-shrink: 0;
}

.shop-hero-cover.is-logo-fallback::after {
  background: linear-gradient(to bottom, rgba(9, 12, 24, 0.15) 0%, rgba(9, 12, 24, 0.4) 100%);
}

.shop-hero-cover-logo {
  margin: auto auto 4px;
  width: auto !important;
  height: auto !important;
  max-width: 70% !important;
  max-height: 50% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block;
  border-radius: 12px;
}
