/* Build 48: only uploaded agent logos change header/footer sizing. Default brand unchanged. */
.cp-brand.cp-agent-custom-logo,
.cp-classic-brand.cp-agent-custom-logo,
.cpn5-brand img.cp-agent-custom-logo,
.cp-classic-footer img.cp-agent-custom-logo,
.cpn5-footer img.cp-agent-custom-logo,
.cp-footer-brand img.cp-agent-custom-logo {
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:min(230px,40vw) !important;
  max-height:68px !important;
  object-fit:contain !important;
  object-position:left center !important;
}
.cp-footer-brand img.cp-agent-custom-logo,
.cp-classic-footer img.cp-agent-custom-logo,
.cpn5-footer img.cp-agent-custom-logo {max-height:65px !important; max-width:205px !important;}
.cpn327-branding-settings{margin-top:24px}
.cpn327-brand-preview{display:flex;align-items:center;gap:22px;padding:18px;background:#f2f8f8;border:1px solid #d2e4e5;border-radius:16px;margin:17px 0 22px;flex-wrap:wrap}
.cpn327-brand-preview-image{width:min(300px,100%);min-height:110px;background:white;border-radius:12px;border:1px solid #dbe6e7;display:flex;align-items:center;justify-content:center;padding:15px}
.cpn327-brand-preview-image img{max-width:100%;max-height:90px;object-fit:contain}
.cpn327-brand-preview p{margin:7px 0 0;color:#556b78;line-height:1.6}
.cpn327-branding-settings input[type=file]{display:block;margin:12px 0;padding:12px;border:1px dashed #a2c7cd;background:#fff;border-radius:10px;width:min(100%,620px)}
.cpn327-branding-settings form button{margin-top:10px}
.cpn327-brand-reset{margin-top:16px}
@media(max-width:620px){.cp-brand.cp-agent-custom-logo,.cp-classic-brand.cp-agent-custom-logo,.cpn5-brand img.cp-agent-custom-logo{max-width:150px !important;max-height:52px !important}.cpn327-brand-preview{align-items:flex-start}}
