/* default */
:host {
  position: fixed;
  contain: strict;
  z-index: 2002;
  left: 0;
  top: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: none;
  width: 100vw;
  height: 100vh;
}

:host(.dialog-open) {
  display: flex;
}

.--c-dialog-backdrop {
  inset: 0px;
  display: block;
  position: absolute;
  transform: translateZ(0px);
  contain: strict;
  touch-action: none;
  background-color: var(--color-dialog-backdrop);
}

.--c-dialog-backdrop.--c-dialog-backdrop-dismiss {
  cursor: pointer;
}

.--c-dialog-backdrop.--c-dialog-hide-backdrop {
  background-color: transparent;
}

.--c-dialog-contents {
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 1;
  box-shadow: var(--color-dialog-shadow);
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-dialog-bg);
  color: var(--color-dialog-text);
  margin: 24px;
  width: 480px;
  height: 600px;
  max-width: calc(100% - 42px);
  max-height: calc(100% - 42px);
}

/* size */
:host(.small) .--c-dialog-contents {
  width: 320px;
  height: 432px;
}

:host(.large) .--c-dialog-contents {
  width: 640px;
  height: 432px;
}

:host(.xlarge) .--c-dialog-contents {
  width: 960px;
  height: 600px;
}