:host {
  /**
  * @part wrapper - css part hook to style modal wrapper
  */
  /**
  * @prop --modal-title-color: Modal title color
  */
  --modal-title-color: var(--color-default-text);
  /**
  * @prop --modal-background-color: Modal background color
  */
  --modal-background-color: var(--color-surface);
  /**
  * @prop --modal-border-color: Modal border color
  */
  --modal-border-color: var(--color-primary);
  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;
  height: 13.5rem;
  border: 0;
  margin: auto;
  padding: 0;
  user-select: none;
  box-shadow: 0 4px 4px 1px rgba(0, 0, 0, 0.25), 0 4px 4px 3px rgba(0, 0, 0, 0.12), 0 4px 4px rgba(0, 0, 0, 0.2);
}
.rux-modal__titlebar {
  display: flex;
  flex-grow: 0;
  flex-shrink: 0;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  background-color: var(--color-dialog-header);
  color: var(--modal-title-color);
  user-select: none;
  cursor: move;
  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__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1rem;
  color: var(--color-default-text);
}
.rux-modal__message {
  margin: 0.5rem 1.875rem 2.5rem 1.875rem;
}
.rux-modal .rux-button {
  box-shadow: none !important;
}

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;
  }
}