:host {
  /**
  * @part wrapper - css part hook to style modal wrapper
  */
  /**
  * @prop --modal-title-color: [DEPRECATED] Modal title color
  */
  --modal-title-color: var(--color-text-primary);
  /**
  * @prop --modal-background-color: [DEPRECATED] Modal background color
  */
  --modal-background-color: var(--color-background-surface-default);
  /**
  * @prop --modal-border-color: [DEPRECATED] Modal border color
  */
  --modal-border-color: var(--color-background-interactive-default);
  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-modal__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-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--modal-background-color);
  width: 28rem;
  border: 0;
  margin: auto;
  padding: 0;
  user-select: none;
  box-shadow: var(--shadow-outer-dialog);
}
.rux-modal__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(--modal-title-color);
  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-modal__header ::slotted(h6),
.rux-modal__header ::slotted(h5),
.rux-modal__header ::slotted(h4),
.rux-modal__header ::slotted(h3),
.rux-modal__header ::slotted(h2),
.rux-modal__header ::slotted(h1) {
  margin-block-start: 0;
  margin-block-end: 0;
}
.rux-modal__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1rem 1rem 0 1rem;
  color: var(--color-text-primary);
}
.rux-modal__footer {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 0 1rem 1rem 1rem;
  color: var(--color-text-primary);
}
.rux-modal__message {
  margin: 0.5rem 1.875rem 2.5rem 1.875rem;
}
.rux-modal .rux-button {
  box-shadow: none !important;
}
.rux-modal__header.hidden {
  display: none;
}
.rux-modal__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;
  }
}