.az-custom-alert {
  --az-alert-color: #2563eb;
  --az-alert-soft: #eff6ff;
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(15 23 42 / 58%);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

body.az-custom-alert-open { overflow: hidden; }

.az-custom-alert.is-visible {
  opacity: 1;
  visibility: visible;
}

.az-custom-alert__dialog {
  width: min(100%, 430px);
  overflow: hidden;
  border: 1px solid rgb(148 163 184 / 25%);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgb(15 23 42 / 28%);
  color: #172033;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transform: translateY(12px) scale(.98);
  transition: transform 180ms ease;
}

.az-custom-alert.is-visible .az-custom-alert__dialog { transform: none; }
.az-custom-alert[data-type="sucesso"] { --az-alert-color: #16803c; --az-alert-soft: #ecfdf3; }
.az-custom-alert[data-type="erro"] { --az-alert-color: #c62828; --az-alert-soft: #fff1f1; }

.az-custom-alert__accent { height: 5px; background: var(--az-alert-color); }
.az-custom-alert__content { padding: 26px 28px 24px; text-align: center; }
.az-custom-alert__icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--az-alert-soft);
  color: var(--az-alert-color);
}
.az-custom-alert__icon svg { width: 27px; height: 27px; }
.az-custom-alert__title { margin: 0 0 8px; font-size: 1.2rem; font-weight: 750; }
.az-custom-alert__message { margin: 0; color: #526078; font-size: .97rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.az-custom-alert__button {
  min-width: 116px;
  margin-top: 22px;
  padding: 11px 22px;
  border: 0;
  border-radius: 11px;
  background: var(--az-alert-color);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.az-custom-alert__button:hover { filter: brightness(.94); }
.az-custom-alert__button:focus-visible { outline: 3px solid color-mix(in srgb, var(--az-alert-color) 30%, transparent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .az-custom-alert, .az-custom-alert__dialog { transition: none; }
}
