:host {
  display: contents;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

:host([hidden]) {
  display: none;
}

rux-button-group {
  margin-top: auto;
  margin-left: auto;
  align-self: flex-end;
}

.rux-dialog__wrapper {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.5s;
  -webkit-animation: fadeIn 0.5s;
  -moz-animation: fadeIn 0.5s;
  -o-animation: fadeIn 0.5s;
  -ms-animation: fadeIn 0.5s;
}
.rux-dialog__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--color-background-surface-default);
  width: 28rem;
  border: 0;
  margin: auto;
  padding: 0;
  user-select: none;
  box-shadow: var(--shadow-outer-dialog);
}
.rux-dialog__header {
  display: flex;
  flex-grow: 0;
  flex-shrink: 0;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  background-color: var(--color-background-surface-header);
  color: var(--color-text-primary);
  user-select: none;
  font-family: var(--font-heading-2-font-family);
  font-size: var(--font-heading-2-font-size);
  font-weight: var(--font-heading-2-font-weight);
  letter-spacing: var(--font-heading-2-letter-spacing);
}
.rux-dialog__header ::slotted(h6),
.rux-dialog__header ::slotted(h5),
.rux-dialog__header ::slotted(h4),
.rux-dialog__header ::slotted(h3),
.rux-dialog__header ::slotted(h2),
.rux-dialog__header ::slotted(h1) {
  margin-block-start: 0;
  margin-block-end: 0;
}
.rux-dialog__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1rem 1rem 0 1rem;
  color: var(--color-text-primary);
}
.rux-dialog__footer {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 0 1rem 1rem 1rem;
  color: var(--color-text-primary);
}
.rux-dialog__message {
  margin: 0.5rem 1.875rem 2.5rem 1.875rem;
}
.rux-dialog .rux-button {
  box-shadow: none !important;
}
.rux-dialog__header.hidden {
  display: none;
}
.rux-dialog__message.hidden {
  display: none;
}

rux-icon {
  margin-right: 0.75rem;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-moz-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-o-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-ms-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}