/* Opt-in model only. Keep the existing direct/menu and manual group styles untouched. */
body.gu-site .gu-auto-group-bar{border-top:1px solid var(--gu-line);background:#fff;color:var(--gu-text);padding:8px 4px calc(8px + env(safe-area-inset-bottom,0px))}
body.gu-site .gu-auto-group-bar .gu-mobile-group-item{min-height:48px;padding:2px;gap:3px;color:var(--gu-text);font-weight:700;font-size:13px;line-height:1.4;white-space:nowrap}
body.gu-site .gu-auto-group-bar .gu-mobile-group-item img{width:24px;height:24px;filter:none}
body.gu-site .gu-auto-group-bar .gu-mobile-group-item:is(.is-current,[aria-expanded=true]){background:var(--gu-brand);color:#fff;opacity:1}
body.gu-site .gu-auto-group-bar .gu-mobile-group-item:is(.is-current,[aria-expanded=true]) img{filter:brightness(0) invert(1)}
body.gu-site .gu-auto-group-bar .gu-mobile-group-item:focus-visible{outline:2px solid var(--gu-heading-color);outline-offset:-3px}
@media(min-width:768px){
 body.gu-site:not(:has(.gu-header-pc-row)):has(.gu-auto-group-bar){--gu-bottom-clearance:0px;padding-bottom:0}
 body.gu-site:not(:has(.gu-header-pc-row)) .gu-auto-group-bar{display:none}
}
@media(max-width:767px){body.gu-site:has(.gu-auto-group-bar){--gu-bottom-clearance:calc(73px + env(safe-area-inset-bottom,0px));padding-bottom:var(--gu-bottom-clearance)}}

body.gu-site .gu-auto-group-bar:has(> :nth-child(4)) .gu-mobile-group-item{font-size:clamp(11px,3.4vw,13px)}
body.gu-site .gu-auto-group-bar:has(> :nth-child(5)) .gu-mobile-group-item{font-size:clamp(9.5px,2.8vw,13px)}

/* Match the existing floating menu's spacing, type, close button and radius. */
.gu-auto-sheet .gu-group-sheet-panel{left:12px;right:12px;bottom:calc(var(--gu-group-bar-height,65px) + 8px);max-width:560px;max-height:min(65dvh,calc(100dvh - var(--gu-group-bar-height,65px) - 24px));margin-inline:auto;padding:20px;border:1px solid var(--gu-line);border-radius:var(--gu-radius-panel);box-shadow:var(--gu-shadow-overlay)}
.gu-auto-sheet .gu-group-sheet-handle{display:none}
.gu-auto-sheet .gu-group-sheet-header{border:0;padding:0;margin-bottom:12px}
body.gu-site .gu-auto-sheet .gu-group-sheet-header h2:where(:not(.gu-heading-label,.gu-heading-feature,.gu-prose h2:not(.gu-component-heading,.gu-heading-hidden,[data-gu-style-component],[data-gu-style-component] *))){font-weight:700;font-size:20px;color:var(--gu-heading-color)}
.gu-auto-sheet .gu-group-sheet-header button{display:block;width:auto;height:auto;min-height:44px;padding:8px 12px;border:1px solid var(--gu-line);border-radius:var(--gu-radius-control);background:#fff;color:inherit;font:inherit}
.gu-auto-sheet .gu-group-sheet-header button::before{content:none}
.gu-auto-sheet .gu-group-sheet-links{padding:0}
.gu-auto-sheet .gu-group-sheet-link{min-height:44px;padding:12px 8px;border-color:var(--gu-line);font-size:14px}
.gu-auto-sheet-drawer .gu-group-sheet-panel{top:0;left:auto;right:0;bottom:var(--gu-group-bar-height,65px);width:min(88vw,380px);max-width:none;max-height:none;margin:0;border-radius:0}
.gu-auto-sheet::backdrop{background:rgb(15 25 32 / 48%)}
