import { style } from '@vanilla-extract/css';
import { config, toRem } from 'folds';

export const WidgetsPanel = style({
  width: toRem(360),
  '@media': {
    '(max-width: 750px)': {
      position: 'fixed',
      inset: 0,
      width: '100%',
      zIndex: 500,
    },
  },
});

export const WidgetsPanelHeader = style({
  flexShrink: 0,
  padding: `0 ${config.space.S200} 0 ${config.space.S300}`,
  borderBottomWidth: config.borderWidth.B300,
});

export const WidgetsPanelContent = style({
  position: 'relative',
  overflow: 'hidden',
});
