/* Theme selection lives only in the header. */
html.approved-storefront.lab-design body>header .header-content.has-store-theme-control{grid-template-columns:44px minmax(0,1fr) 40px 36px 44px;gap:6px!important}
html.approved-storefront.lab-design body>header .has-store-theme-control :is(.approved-alex,.approved-perekrestok){font-size:clamp(16px,calc(5vw - 2px),28px)}
html.approved-storefront.lab-design body>header .has-store-theme-control .approved-shop-switch{gap:3px}
html.approved-storefront.lab-design body>header .has-store-theme-control .approved-shop-switch button{padding-left:3px;padding-right:3px}
html body .compact-theme-button,html body #profileNotifications{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:36px;height:44px;min-width:36px;min-height:44px;padding:8px;border:0;border-radius:12px;background:transparent!important;color:var(--ux-ink,#292c28)!important;box-shadow:none;cursor:pointer;pointer-events:auto}
html body .compact-theme-button svg,html body #profileNotifications svg{width:21px;height:21px;flex:none}
html body .compact-theme-button[aria-expanded=true],html body #profileNotifications[aria-expanded=true]{background:var(--ux-raised,#f3ece3)!important}
#storeThemeMenu{position:fixed;z-index:800;width:226px;max-width:calc(100vw - 20px);padding:8px;border:1px solid var(--ux-line,#dfd5ca);border-radius:16px;background:var(--ux-surface,#fffaf3);color:var(--ux-ink,#292c28);box-shadow:0 8px 28px #00000020;animation:compact-control-in 150ms ease-out}
#storeThemeMenu[hidden],#customerAccountModal #profileNotificationSettings[hidden]{display:none!important}
#storeThemeMenu .compact-popover-title{margin:3px 8px 6px;font:600 12px/1.5 var(--font-body);color:var(--ux-muted,#70665d)}
html body #storeThemeMenu button{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:8px;border:0;border-radius:9px;background:transparent!important;box-shadow:none;color:var(--ux-ink,#292c28)!important;font:600 13px/1.35 var(--font-body);text-align:left;cursor:pointer}
html body #storeThemeMenu button[aria-pressed=true]{background:var(--ux-raised,#f3ece3)!important}
#storeThemeMenu button[aria-pressed=true]::after{content:'✓';margin-left:auto;color:var(--ux-accent,#b83c26);font-size:16px}
.compact-theme-swatch{width:21px;height:21px;border:1px solid var(--ux-line,#dfd5ca);border-radius:7px;flex:none}
#customerAccountModal .project-account-heading.has-compact-notifications{position:relative;padding-right:96px;min-height:44px}
html body #profileNotifications{position:absolute;right:56px;top:-8px;width:36px}
#profileNotifications.is-enabled::after{content:'';position:absolute;top:8px;right:5px;width:6px;height:6px;border-radius:50%;background:var(--ux-accent,#b83c26);border:1px solid var(--ux-surface,#fffaf3)}
#customerAccountModal #profileNotificationSettings{position:absolute;z-index:20;right:0;top:52px;width:280px;max-width:calc(100vw - 64px);margin:0;padding:14px;border:1px solid var(--ux-line,#dfd5ca);border-radius:16px;background:var(--ux-surface,#fffaf3);color:var(--ux-ink,#292c28);text-align:left;box-shadow:0 8px 24px #0000001c;animation:compact-control-in 150ms ease-out}
#customerAccountModal #profileNotificationSettings .compact-popover-title{display:block;margin:0 0 10px;font:700 14px/1.4 var(--font-body)}
#customerAccountModal #profileNotificationSettings button{width:100%;min-height:40px;margin:0;padding:9px 10px;border:1px solid var(--ux-line,#dfd5ca);border-radius:10px;background:var(--ux-raised,#f3ece3)!important;color:var(--ux-ink,#292c28)!important;font:600 13px/1.4 var(--font-body);box-shadow:none}
#customerAccountModal #profileNotificationSettings p{margin:10px 0 0;color:var(--ux-muted,#70665d)!important;font:400 12px/1.5 var(--font-body)}
@keyframes compact-control-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media(max-width:360px){html.approved-storefront.lab-design body>header .header-content.has-store-theme-control{grid-template-columns:40px minmax(0,1fr) 36px 32px 40px;gap:3px!important}html body .compact-theme-button{width:32px;min-width:32px;padding:5px}}
@media(prefers-reduced-motion:reduce){#storeThemeMenu,#customerAccountModal #profileNotificationSettings{animation:none}}

html.approved-storefront.lab-design body>header #studioSearch{pointer-events:auto;width:40px;min-width:40px}
@media(max-width:360px){html.approved-storefront.lab-design body>header #studioSearch{width:36px;min-width:36px;padding:7px}}
