/* Applies only to the optional editable page name; existing branding remains the default. */
/* Four independent header elements; the logo wrapper retains the original dimensions. */
.brand .brand-icon{display:inline-flex;align-items:center;justify-content:center;flex:none}
.brand .brand-title #wa-brand-name{display:inline-block}

.wordmark .brand-title .page-name-photo{display:inline-block;width:auto;max-width:min(48vw,220px);height:1.06em;object-fit:contain;vertical-align:middle}
.corporate-portal header .corporate-brand>.page-name-text{display:inline-block;border:0;padding:0;max-width:min(45vw,250px);font-size:clamp(19px,3vw,28px);font-weight:800;line-height:1.15;color:#175b50;overflow-wrap:anywhere}
.corporate-portal header .corporate-brand>.page-name-photo{display:block;max-width:min(45vw,250px);width:auto;height:48px;object-fit:contain}
@media(max-width:800px){.corporate-portal header .corporate-brand>.page-name-photo{height:40px}.corporate-portal header .corporate-brand>.page-name-text{font-size:20px}}
body[data-visual-preview] [data-element-dragging]{outline:2px dashed #06b6a3!important;outline-offset:4px!important;cursor:grabbing!important;z-index:3;position:relative}


/* WHATSAPP header: fixed alignment slots. Movements belong to the four IDs, not
   to their common text container; a draft reload keeps the same grid anchors. */
body:not(.corporate-portal)>header .brand{
  display:grid;
  grid-template-columns:55px minmax(0,1fr);
  gap:9px;
  align-items:center;
  min-width:0;
  flex:0 1 auto;
  width:max-content;
  max-width:calc(100% - 6px);
}
body:not(.corporate-portal)>header .brand #wa-brand-logo{
  grid-column:1;
  grid-row:1;
  width:55px;
  height:55px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:none;
}
body:not(.corporate-portal)>header .brand #wa-brand-logo img{
  width:55px;
  height:55px;
  flex:none;
  object-fit:contain;
}
body:not(.corporate-portal)>header .brand .wordmark{
  display:grid;
  grid-column:2;
  grid-row:1;
  grid-template-columns:minmax(0,max-content) auto;
  grid-template-rows:auto auto;
  column-gap:6px;
  row-gap:7px;
  align-content:center;
  align-items:center;
  min-width:0;
  max-width:100%;
}
body:not(.corporate-portal)>header .brand .brand-title{display:contents}
body:not(.corporate-portal)>header .brand #wa-brand-name{
  grid-column:1;
  grid-row:1;
  display:block;
  min-width:0;
  line-height:1;
  white-space:normal;
  overflow-wrap:anywhere;
}
body:not(.corporate-portal)>header .brand #wa-verified-badge{
  grid-column:2;
  grid-row:1;
  width:.7em;
  height:.7em;
  display:block;
  align-self:end;
  justify-self:start;
  position:relative;
  top:0;
  flex:none;
}
body:not(.corporate-portal)>header .brand #wa-brand-description{
  grid-column:1/-1;
  grid-row:2;
  min-width:0;
  max-width:100%;
  margin:0;
  justify-self:start;
  align-self:start;
  line-height:1.4;
  overflow-wrap:break-word;
}
@media(max-width:800px){
  body:not(.corporate-portal)>header .brand{
    grid-template-columns:45px minmax(0,1fr);
    gap:9px;
  }
  body:not(.corporate-portal)>header .brand #wa-brand-logo{
    width:45px;
    height:45px;
  }
  body:not(.corporate-portal)>header .brand #wa-brand-logo img{
    width:45px;
    height:45px;
  }
}


/* The fallback WhatsApp glyph follows the photo logo dimensions exactly. */
body:not(.corporate-portal)>header .brand #wa-brand-logo .mark{
  width:55px;
  height:55px;
}
body:not(.corporate-portal)>header .brand #wa-brand-logo .mark svg{
  width:38px;
  height:38px;
}
@media(max-width:800px){
  body:not(.corporate-portal)>header .brand #wa-brand-logo .mark{
    width:45px;
    height:45px;
  }
  body:not(.corporate-portal)>header .brand #wa-brand-logo .mark svg{
    width:31px;
    height:31px;
  }
}
