/* Padrão compartilhado para os controles de perfil e unidade. */
body.bk-school-home-identity [data-my-profile-menu] summary>span:last-child::after,body.bk-school-home-identity .uh-unit-context::after,body.bk-school-home-identity .bk-header-unit-name::after{content:"";display:inline-block;width:7px;height:7px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:rotate(45deg);vertical-align:3px}
body.bk-school-home-identity [data-my-profile-menu] summary>span:last-child::after{margin-left:8px}
body.bk-school-home-identity .uh-unit-context{position:relative}
body.bk-school-home-identity .uh-unit-context>span{font-weight:800;letter-spacing:0;text-transform:none}
body.bk-school-home-identity .uh-unit-context select{appearance:none!important;-webkit-appearance:none!important;background-image:none!important;padding-right:28px!important}
body.bk-school-home-identity .uh-unit-context::after{position:absolute;right:12px;bottom:15px;pointer-events:none}

/* Keep the native selector and its keyboard behavior, while displaying its full value with wrapping. */
body.bk-school-home-identity .uh-unit-context::after{display:none!important}
body.bk-school-home-identity .uh-unit-context .bk-unit-control{position:relative;display:block;flex:0 1 auto;width:max-content;min-width:0;max-width:100%;line-height:1.3}
body.bk-school-home-identity .uh-unit-context .bk-unit-value{display:block;width:max-content;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal;text-overflow:clip;padding-right:2px}
body.bk-school-home-identity .uh-unit-context .bk-unit-value::after{content:"";display:inline-block;width:7px;height:7px;margin:0 3px 2px 8px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:rotate(45deg);vertical-align:middle}
body.bk-school-home-identity .uh-unit-context .bk-unit-control select[data-uh-unit]{position:absolute!important;inset:0!important;z-index:2;width:100%!important;height:100%!important;min-height:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:4px!important;background:transparent!important;opacity:0!important;cursor:pointer}
body.bk-school-home-identity .uh-unit-context .bk-unit-control:has(select:focus-visible) .bk-unit-value{outline:3px solid #8bc5ff;outline-offset:3px;border-radius:3px}

/* Perfil e unidade usam somente a largura necessária. */
body.bk-school-home-identity .app>main>header .uh-content{grid-template-columns:minmax(160px,1fr) auto 38px minmax(0,var(--bk-header-user-width,260px))}
body.bk-school-home-identity .hn-user{width:var(--bk-header-user-width,260px)!important;max-width:100%}
body.bk-school-home-identity .hn-user .mp-user-menu{width:100%!important}

/* A unidade única é texto: somente o nome quebra e permanece alinhado ao próprio início. */
body.bk-school-home-identity .hn-user .hn-single-unit{display:flex;align-items:flex-start;gap:4px;max-width:100%;padding:0;color:#e5f6f7;font-size:12px;line-height:1.3;white-space:normal;overflow-wrap:normal;word-break:normal;text-align:left}
body.bk-school-home-identity .hn-user .hn-single-unit strong{flex:0 0 auto;font-weight:800}
body.bk-school-home-identity .hn-user .bk-header-unit-name{display:block;flex:1 1 auto;min-width:0}
body.bk-school-home-identity .hn-user .bk-header-unit-name::after{margin-left:8px;pointer-events:none}
body.bk-school-home-identity .hn-user.bk-unit-name-wrapped,body.bk-school-home-identity .hn-user.bk-unit-name-wrapped .mp-user-menu summary{min-height:76px}

/* A unidade selecionável usa o mesmo desenho de seta, logo após o nome selecionado. */
body.bk-school-home-identity .hn-user .uh-unit-context{display:flex!important;align-items:flex-start;gap:4px;width:auto!important;max-width:none!important;min-width:0}
body.bk-school-home-identity .hn-user .uh-unit-context>span{display:inline!important;flex:0 0 auto;color:#e5f6f7;font-size:12px;font-weight:800;letter-spacing:0}
body.bk-school-home-identity .hn-user .uh-unit-context .bk-unit-control{flex:1 1 0;width:0;max-width:none;min-width:0}
body.bk-school-home-identity .hn-user .uh-unit-context .bk-unit-value{width:auto}
body.bk-school-home-identity .hn-user .uh-unit-context select{width:100%!important;min-width:0;height:100%;min-height:100%;padding:0!important;color:#e5f6f7;font-size:12px;line-height:1.3}
body.bk-school-home-identity .hn-user .uh-unit-context::after{right:4px;bottom:9px}
@media(max-width:1250px){body.bk-school-home-identity .app>main>header .uh-content{grid-template-columns:minmax(120px,1fr) 36px minmax(0,var(--bk-header-user-width,240px))}}
@media(max-width:750px){body.bk-school-home-identity .app>main>header .uh-content{grid-template-columns:minmax(0,1fr) 40px}body.bk-school-home-identity .uh-unit-context::after{bottom:14px}body.bk-school-home-identity .hn-user.bk-unit-name-wrapped,body.bk-school-home-identity .hn-user.bk-unit-name-wrapped .mp-user-menu summary{min-height:84px}}

/* Home-only Benefits action: compact gift button before the school profile. */
body.bk-school-home-identity .hv-benefits-button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;width:132px;min-width:132px;height:44px;min-height:44px;padding:0 10px;border:1px solid rgba(191,231,255,.58);border-bottom-width:3px;border-radius:10px;background:rgba(191,231,255,.14);color:#f1fbff;font-family:inherit;font-size:13px;font-weight:700;line-height:1.1;white-space:nowrap;cursor:pointer;transition:background-color .16s ease,border-color .16s ease}
body.bk-school-home-identity .hv-benefits-button svg{display:block;flex:0 0 20px;width:20px;height:20px}
body.bk-school-home-identity .hv-benefits-button:hover{background:rgba(191,231,255,.24);border-color:#bfe7ff}
body.bk-school-home-identity .hv-benefits-button:focus-visible{outline:3px solid #ffd46b;outline-offset:2px}
body.bk-school-home-identity .hv-benefits-notice{position:fixed;top:0;right:20px;z-index:10000;box-sizing:border-box;width:max-content;max-width:min(360px,calc(100vw - 24px));padding:11px 14px;border:1px solid #9aafc5;border-top:3px solid #00526a;border-radius:10px;background:#fff;color:#173b59;box-shadow:0 8px 24px rgba(8,45,89,.18);font:500 13px/1.4 system-ui,sans-serif;opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .16s ease,transform .16s ease,visibility .16s ease}
body.bk-school-home-identity .hv-benefits-notice.is-visible{opacity:1;visibility:visible;transform:translateY(0)}
body.bk-school-home-identity .app>main>header .uh-content:has(.hv-benefits-button){grid-template-columns:minmax(160px,1fr) auto 38px 132px minmax(0,var(--bk-header-user-width,260px))}
body.bk-school-home-identity .app>main>header .uh-content:has(.hv-benefits-button)>.hv-benefits-button{grid-column:4;grid-row:1;justify-self:center;align-self:center}
body.bk-school-home-identity .app>main>header .uh-content:has(.hv-benefits-button)>.hn-user{grid-column:5;grid-row:1}
@container home-header (max-width:900px){
 body.bk-school-home-identity .app>main>header .uh-content:has(.hv-benefits-button){grid-template-columns:minmax(100px,1fr) 36px 132px minmax(0,var(--bk-header-user-width,260px))}
 body.bk-school-home-identity .app>main>header .uh-content:has(.hv-benefits-button)>.hv-benefits-button{grid-column:3;grid-row:1}
 body.bk-school-home-identity .app>main>header .uh-content:has(.hv-benefits-button)>.hn-user{grid-column:4;grid-row:1}
}
@container home-header (max-width:650px){
 body.bk-school-home-identity .app>main>header .uh-content:has(.hv-benefits-button){grid-template-columns:minmax(0,1fr) 36px 132px}
 body.bk-school-home-identity .app>main>header .uh-content:has(.hv-benefits-button)>.hv-benefits-button{grid-column:3;grid-row:1}
 body.bk-school-home-identity .app>main>header .uh-content:has(.hv-benefits-button)>.hn-user{grid-column:1/-1;grid-row:2}
}
@media(max-width:1250px){
 body.bk-school-home-identity .app>main>header .uh-content:has(.hv-benefits-button){grid-template-columns:minmax(120px,1fr) 36px 132px minmax(0,var(--bk-header-user-width,240px))}
 body.bk-school-home-identity .app>main>header .uh-content:has(.hv-benefits-button)>.hv-benefits-button{grid-column:3;grid-row:1}
 body.bk-school-home-identity .app>main>header .uh-content:has(.hv-benefits-button)>.hn-user{grid-column:4;grid-row:1}
}
@media(max-width:750px){
 body.bk-school-home-identity .hv-benefits-notice{right:12px;width:calc(100vw - 24px)}
 body.bk-school-home-identity .app>main>header .uh-content:has(.hv-benefits-button){grid-template-columns:minmax(0,1fr) 40px 132px}
 body.bk-school-home-identity .app>main>header .uh-content:has(.hv-benefits-button)>.hv-benefits-button{grid-column:3;grid-row:1}
 body.bk-school-home-identity .app>main>header .uh-content:has(.hv-benefits-button)>.hn-user{grid-column:1/-1;grid-row:2}
}
