.roomPackageFilter {
  display: flex;
  gap: var(--Space-x1);
  flex-direction: column-reverse;
  align-items: flex-start;
}

.selectedPackages {
  display: flex;
  gap: var(--Space-x1);
  flex-wrap: wrap;
}

.modalOverlay {
  position: fixed;
  inset: 0;
  background-color: var(--Overlay-40);

  &[data-entering] {
    animation: overlay-fade 200ms;
  }

  &[data-exiting] {
    animation: overlay-fade 150ms reverse ease-in;
  }
}

.modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--Space-x2) var(--Space-x05);
  border-radius: var(--Corner-radius-md) var(--Corner-radius-md) 0 0;
  background-color: var(--Surface-Primary-Default);
  box-shadow: 0px 0px 14px 6px rgba(0, 0, 0, 0.1);

  &[data-entering] {
    animation: modal-anim 200ms;
  }

  &[data-exiting] {
    animation: modal-anim 150ms reverse ease-in;
  }
}

.modalDialog {
  display: grid;
  gap: var(--Space-x2);
}

.dialog {
  display: grid;
  gap: var(--Space-x2);
  max-width: 340px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--Space-x15);
}

.footer {
  display: grid;
  gap: var(--Space-x1);
  padding: 0 var(--Space-x15);
}

.selectedPackage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--Space-x1);
  gap: var(--Space-x05);
  border-radius: var(--Corner-radius-sm);
  background-color: var(--Surface-Secondary-Default-dark);
  color: var(--Text-Interactive-Default);
}

.removeButton {
  background-color: transparent;
  border-width: 0;
  cursor: pointer;
  padding: var(--Space-x05);
  margin: calc(-1 * var(--Space-x05));
}

@media screen and (max-width: 767px) {
  .popover {
    display: none;
  }
}

@media screen and (min-width: 768px) {
  .roomPackageFilter {
    flex-direction: row;
    align-items: stretch;
  }

  .modalOverlay {
    display: none;
  }

  .popover {
    padding: var(--Space-x2);
    border-radius: var(--Corner-radius-md);
    background-color: var(--Surface-Primary-Default);
    box-shadow: 0px 0px 14px 6px rgba(0, 0, 0, 0.1);
    max-width: 340px;
  }

  .checkboxContainer {
    padding: 0 var(--Space-x1);
  }

  .header {
    display: none;
  }
}

@keyframes overlay-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modal-anim {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}
