.hap-alert-overlay[hidden] { display: none !important; }
.hap-alert-overlay {
  align-items: center;
  background: rgba(15, 23, 42, .72);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 22px;
  position: fixed;
  transition: opacity .2s ease;
  z-index: 999999;
}
.hap-alert-overlay.is-visible { opacity: 1; }
body.hap-alert-open { overflow: hidden; }
.hap-alert {
  --hap-accent: #c62828;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0,0,0,.38);
  box-sizing: border-box;
  color: #334155;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-height: calc(100vh - 44px);
  max-width: 560px;
  opacity: 0;
  overflow: auto;
  padding: 38px 38px 34px;
  position: relative;
  text-align: center;
  transform: translateY(12px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
  width: 100%;
}
.hap-alert-overlay.is-visible .hap-alert { opacity: 1; transform: none; }
.hap-alert-accent { background: var(--hap-accent); height: 7px; left: 0; position: absolute; right: 0; top: 0; }
.hap-alert-close {
  align-items: center;
  background: #f1f5f9;
  border: 0;
  border-radius: 50%;
  color: #475569;
  cursor: pointer;
  display: flex;
  font-size: 27px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 3px;
  position: absolute;
  right: 16px;
  top: 18px;
  width: 38px;
}
.hap-alert-close:hover, .hap-alert-close:focus { background: #e2e8f0; color: #0f172a; outline: 0; }
.hap-alert-icon {
  align-items: center;
  background: color-mix(in srgb, var(--hap-accent) 12%, white);
  border-radius: 50%;
  color: var(--hap-accent);
  display: flex;
  font-size: 28px;
  font-weight: 850;
  height: 58px;
  justify-content: center;
  margin: 0 auto 17px;
  width: 58px;
}
.hap-alert h2 { color: #0f172a; font-size: clamp(24px, 5vw, 32px); font-weight: 800; line-height: 1.18; margin: 0 42px 13px; padding: 0; }
.hap-alert-message { font-size: 16px; line-height: 1.65; }
.hap-alert-message p { margin: 0 0 12px; }
.hap-alert-message p:last-child { margin-bottom: 0; }
.hap-alert-message a { color: var(--hap-accent); text-decoration: underline; }
.hap-alert-button {
  background: var(--hap-accent);
  border-radius: 999px;
  box-shadow: 0 7px 18px color-mix(in srgb, var(--hap-accent) 24%, transparent);
  color: #fff !important;
  display: inline-block;
  font-size: 15px;
  font-weight: 750;
  margin-top: 23px;
  padding: 12px 24px;
  text-decoration: none !important;
}
.hap-alert-button:hover, .hap-alert-button:focus { filter: brightness(.9); outline: 3px solid color-mix(in srgb, var(--hap-accent) 25%, transparent); outline-offset: 2px; }

@media (max-width: 600px) {
  .hap-alert-overlay { align-items: flex-end; padding: 0; }
  .hap-alert { border-radius: 20px 20px 0 0; max-height: calc(100vh - 30px); max-width: none; padding: 34px 22px 28px; }
  .hap-alert h2 { margin-left: 30px; margin-right: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .hap-alert-overlay, .hap-alert { transition: none; }
}

