#parliamento-modal-host-v1 {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  isolation: isolate;
  pointer-events: none;
}

#parliamento-modal-host-v1[hidden] {
  display: none !important;
}

#parliamento-modal-overlay-v1 {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: auto;
  background: rgba(8, 15, 28, .56);
  opacity: 1;
}

#parliamento-modal-viewport-v1 {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 16px;
  overflow: auto;
  pointer-events: none;
}

#parliamento-modal-viewport-v1[data-placement="right"] {
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
}

#parliamento-modal-viewport-v1[data-placement="stretch"] {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  overflow: hidden;
}

#parliamento-modal-viewport-v1 > [data-parliamento-modal-surface="1"] {
  pointer-events: auto;
}

#parliamento-modal-viewport-v1 > dialog[data-parliamento-modal-surface="1"] {
  position: relative;
  inset: auto;
  display: block;
  margin: 0;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

#parliamento-modal-viewport-v1 > dialog[data-parliamento-modal-surface="1"]::backdrop {
  background: transparent !important;
}

#parliamento-modal-viewport-v1[data-placement="right"] > .drawer-backdrop[data-parliamento-modal-surface="1"] {
  position: relative !important;
  inset: auto !important;
  z-index: auto !important;
  display: grid !important;
  width: min(1240px, 100vw);
  height: 100%;
  justify-items: end;
  background: transparent !important;
}

#parliamento-modal-viewport-v1[data-placement="stretch"] > .memo-links-overlay[data-parliamento-modal-surface="1"] {
  position: relative !important;
  inset: auto !important;
  z-index: auto !important;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: transparent !important;
  backdrop-filter: none !important;
}

#parliamento-modal-viewport-v1 > [data-parliamento-protected-modal="1"][data-parliamento-modal-surface="1"] {
  background-color: transparent !important;
  backdrop-filter: none !important;
}

body.parliamento-modal-open-v1 {
  overscroll-behavior: none;
}
