.drawerFooter {
  display: flex;
  justify-content: end;
  gap: $section-spacing;

  button {
    padding: 0 2em;
  }
}

.backdrop {
  position: fixed;
  inset: 0;
  background-color: $backdrop-color;
  transition: opacity 300ms cubic-bezier(0.45, 1.005, 0, 1.005);

  &[data-starting-style],
  &[data-ending-style] {
    opacity: 0;
  }
}

.drawer {
  box-sizing: border-box;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;

  width: 40rem;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;

  display: flex;
  flex-direction: column;
  padding-block: 1rem 1.5rem;

  background-color: $gray-1250;
  color: $ui-white;
  border-left: 1px solid $gray-1100;

  &[data-open] {
    transform: translateX(0%);
    transition: transform 300ms cubic-bezier(0.45, 1.005, 0, 1.005);
  }

  &[data-starting-style],
  &[data-ending-style] {
    transform: translateX(100%);
    transition: transform 500ms cubic-bezier(0.45, 1.005, 0, 1.005);
  }

  // take the whole screen in mobile devices
  @media (max-width: $min-tablet) {
    width: 100vw;
  }
}

.header {
  padding-inline: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;

  font-weight: 600;
  font-size: 1.25rem;
}

.body {
  flex: 1;
  padding-inline: 1rem;
  padding-bottom: 10vh;
  overflow-y: auto;
}

.footer {
  display: flex;
  padding-inline: 1rem;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
}

.sectionList {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-right: 0.5rem;
}

.info {
  margin-bottom: 1rem;
}
