/* Frontend layout recovery — semantic scope aliases + fail-safe geometry. */

/* Never allow a closed cart preview to participate in document flow. */
.sam-cart-popover[aria-hidden="true"]{display:none!important}
.sam-header-cart-wrap{position:relative}

/* Inline action icons must stay icons even when a third-party/global SVG rule is present. */
.sam-btn svg,
.sam-text-link svg,
.sam-live-project-link svg,
.sam-project-info>a svg,
.sam-p16-card-actions svg,
.sam-p32-actions svg{
  width:18px!important;
  height:18px!important;
  max-width:18px!important;
  max-height:18px!important;
  flex:0 0 18px!important;
}

/* Header controls must never leak their popover into page geometry. */
.sam-header-actions .sam-cart-popover{max-width:min(340px,calc(100vw - 24px))}

/* Defensive containment for cached/combined stylesheets from earlier builds. */
.sam-site,.sam-main{width:100%;max-width:100%}
.sam-header-system{max-width:100vw}

@media(max-width:782px){
  body.admin-bar .sam-header-system{top:46px}
}
