.dmwp-alert-dialog {
  width: min(90vw, 34rem);
  max-width: 90vw;
  max-height: min(80vh, 26rem);
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  color: #272b30;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.45);
}

.dmwp-alert-dialog.size-large {
  width: min(92vw, 48rem);
  max-height: min(85vh, 34rem);
}

.dmwp-alert-dialog[open] {
  display: flex;
  flex-direction: column;
}

.dmwp-alert-dialog.boxcolor-red {
  background: var(--dm-red, #8a1003);
}

.dmwp-alert-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.dmwp-alert-box {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 1.5rem;
}

.dmwp-alert-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 0 0 auto;
}

.dmwp-alert-dialog .dmwp-alert-headline {
  margin: 0;
  color: #272b30 !important;
  flex: 1 1 auto;
}

.dmwp-alert-content {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin-top: 1rem;
  padding-right: 0.5rem;
}

.dmwp-alert-dialog .dmwp-alert-content,
.dmwp-alert-dialog .dmwp-alert-content p,
.dmwp-alert-dialog .dmwp-alert-content li,
.dmwp-alert-dialog .dmwp-alert-content h2,
.dmwp-alert-dialog .dmwp-alert-content h3,
.dmwp-alert-dialog .dmwp-alert-content h4 {
  color: #272b30 !important;
}

.dmwp-alert-dialog .dmwp-alert-content a {
  color: #272b30 !important;
}

.dmwp-alert-dialog .dmwp-alert-content a:not(.wrs-btn) {
  text-decoration: underline;
}

.dmwp-alert-dialog .dmwp-alert-content a:hover,
.dmwp-alert-dialog .dmwp-alert-content a:focus-visible {
  color: #272b30 !important;
}

.dmwp-alert-dialog .dmwp-alert-content a.wrs-btn:hover,
.dmwp-alert-dialog .dmwp-alert-content a.wrs-btn:focus-visible {
  background-color: #272b30;
  color: #ffffff !important;
}

.dmwp-alert-dialog button.dmwp-alert-close {
  flex: 0 0 auto;
  padding: 0.5rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #272b30 !important;
  cursor: pointer;
  line-height: 0;
}

.dmwp-alert-dialog button.dmwp-alert-close:hover {
  background: rgba(0, 0, 0, 0.08);
}

.dmwp-alert-dialog button.dmwp-alert-close:focus-visible {
  outline: 3px solid #272b30;
  outline-offset: 2px;
}

.dmwp-alert-dialog button.dmwp-alert-close .icon {
  color: currentColor;
  height: 1.5rem;
  width: 1.5rem;
}

@media all and (min-width: 768px) {
  .dmwp-alert-box {
    padding: 2rem;
  }
}
