.es-notify {
  position: fixed;
  z-index: 100000;
  left: 16px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.es-notify[hidden] {
  display: none;
}

.es-notify__panel {
  pointer-events: auto;
  width: min(34rem, 100%);
  padding: 18px 18px 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  color: #f8fafc;
}

.es-notify__title {
  margin: 0;
  font-family: Outfit, Inter, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f8fafc;
}

.es-notify__lead,
.es-notify__note {
  margin: 8px 0 0;
  font-family: Inter, sans-serif;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.es-notify__note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.es-notify__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.es-notify__accept,
.es-notify__later {
  min-height: 44px;
  min-width: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: Inter, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.es-notify__accept {
  border: 0;
  color: #04221c;
  background: linear-gradient(90deg, #2fe0c8, #0d9488);
}

.es-notify__later {
  background: transparent;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.es-notify__panel:focus-visible,
.es-notify__accept:focus-visible,
.es-notify__later:focus-visible {
  outline: 2px solid #2fe0c8;
  outline-offset: 2px;
}

.es-notify__panel:focus:not(:focus-visible),
.es-notify__accept:focus:not(:focus-visible),
.es-notify__later:focus:not(:focus-visible) {
  outline: none;
}

html[data-theme="mimetico-chiaro"] .es-notify__panel,
[data-theme="mimetico-chiaro"] .es-notify__panel {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 18px 50px rgba(15, 23, 42, 0.12);
}

html[data-theme="mimetico-chiaro"] .es-notify__title,
[data-theme="mimetico-chiaro"] .es-notify__title,
html[data-theme="mimetico-chiaro"] .es-notify__later,
[data-theme="mimetico-chiaro"] .es-notify__later {
  color: #0f172a;
}

html[data-theme="mimetico-chiaro"] .es-notify__lead,
[data-theme="mimetico-chiaro"] .es-notify__lead {
  color: #334155;
}

html[data-theme="mimetico-chiaro"] .es-notify__note,
[data-theme="mimetico-chiaro"] .es-notify__note {
  color: #64748b;
}

html[data-theme="mimetico-chiaro"] .es-notify__later,
[data-theme="mimetico-chiaro"] .es-notify__later {
  border-color: rgba(15, 23, 42, 0.14);
}

@media (max-width: 600px) {
  .es-notify {
    left: 10px;
    right: 10px;
    bottom: max(84px, calc(76px + env(safe-area-inset-bottom)));
  }

  .es-notify__actions {
    flex-direction: column;
  }

  .es-notify__accept,
  .es-notify__later {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .es-notify,
  .es-notify * {
    animation: none !important;
    transition: none !important;
  }
}
