[data-fluid-portal-screen-area][data-fluid-portal-fullscreen-active] {
  overflow: hidden;
}

[data-fluid-remote-dom-widget-frame][data-fluid-remote-dom-widget-fullscreen] {
  position: fixed;
  z-index: 20;
  top: var(--fluid-portal-fullscreen-top);
  left: var(--fluid-portal-fullscreen-left);
  box-sizing: border-box;
  display: flex;
  width: var(--fluid-portal-fullscreen-width);
  height: var(--fluid-portal-fullscreen-height);
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--background);
  color: var(--foreground);
}

[data-fluid-remote-dom-widget-frame][data-fluid-remote-dom-widget-fullscreen]
  > [data-fluid-remote-dom-widget] {
  min-width: 0;
  min-height: 0;
  flex: 1;
  overflow: auto;
}

.fluid-portal-fullscreen-exit {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--background);
  color: var(--foreground);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  cursor: pointer;
}

.fluid-portal-fullscreen-exit:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.fluid-portal-fullscreen-exit:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
