:root {
  --background: #fff;
  --foreground: #fff;
  --divider: #fff;
  --overlay: #888;
}

#sheet {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  visibility: visible;
  transition: opacity 0.5s, visibility 0.5s;
}

#sheet[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#sheet .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: var(--overlay);
  opacity: 0.5;
}

#sheet .contents {
  border-radius: 1rem 1rem 0 0;

  background: var(--background);

  position: relative;
  overflow-y: hidden;

  --default-transitions: transform 0.5s, border-radius 0.5s;

  transition: var(--default-transitions);
  transform: translateY(0);

  height: 350px;
  width: 100%;

  box-sizing: border-box;
  padding: 1rem;
  padding-top: 3rem;
  
}

@media (min-width: 992px) {
  #sheet .contents {
    width: 40%;
  }
}

#sheet .close-sheet {
  position: absolute;
  right: 10px;
  top: 10px;
  border: none;
  background-color: white;
}

#sheet .body {
  height: 100%;
  overflow-y: auto;
  gap: 1rem;
}
