
slide-panels {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 100;
}

slide-panels:before {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3); 
  transition: opacity 0.35s ease;
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
}

slide-panels[open]:before {
  opacity: 1;
  pointer-events: all;
}

slide-panel {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #fff;
  box-shadow: 0 0 5px 1px rgba(0,0,0,0.15);
  transform: translate3d(-100%, 0%, 0);
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 1;
  opacity: 1;
  pointer-events: all;
}

slide-panel[options~="right"] {
  left: auto;
  right: 0;
  transform: translate3d(100%, 0%, 0);
}

slide-panel[options~="bottom"] {
  transform: translate3d(0%, 100%, 0);
}

slide-panel[options~="fade"]:not([open]) {
  opacity: 0;
}

slide-panel[open] {
  transform: translate3d(0%, 0%, 0);
}

slide-panel:not([open]):not([options~="pointer-events"]) {
  pointer-events: none;
}

slide-panel > * {
  box-sizing: border-box;
}

/* slide-panel > *:not(header):not(footer) {
  flex: 1;
} */

slide-panel > section {
  overflow: auto;
}

slide-panel > header,
slide-panel > footer {
  flex: none;
  z-index: 1;
}
