.dialog {
  max-width: 440px;
  width: calc(100% - 2em);
  padding: 0;
  border: 0;
  background: transparent;
}
.dialog[open] {
  opacity: 1;
  transform: none;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}
@starting-style {
  .dialog[open] {
    opacity: 0;
    transform: translateY(8px);
  }
}
.dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.dialog__box {
  padding: 1.6em;
  border-radius: 16px;
  background: #FFF;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.dialog__box:focus {
  outline: none;
}

.dialog__title {
  margin-bottom: 0.5333333333em;
  font-size: 1.2em;
  font-weight: 600;
}

.dialog__text {
  margin-bottom: 1.3333333333em;
  color: var(--color-grey-text);
}

.dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6666666667em;
}

.dialog__actions--stack {
  flex-direction: column-reverse;
}
.dialog__actions--stack .btn {
  width: 100%;
}

@media (max-width: 500px) {
  .dialog__actions {
    flex-direction: column-reverse;
  }
  .dialog__actions .btn {
    width: 100%;
  }
}
