shwt-widget-gwc {
  display: block;
  width: 100%;
}

/* [active] is set by the widget in the same pass as the height it computes.
   Ungated, containment would zero the auto height of a canvas whose height no
   widget is managing — a view that opted out would collapse. */
shwt-widget-gwc[active] {
  min-height: 100%;
  /* Size container so 100cqh inside the canvas resolves to canvas height rather
     than the viewport, which they only coincide on for window-height canvases. */
  container-type: size;
}
