/* 全站表单提示：与 common.css 深色底 + 表单绿按钮气质一致 */
.es-site-toast-host {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99990;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  padding: 20px 16px;
  padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.es-site-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 14px 16px 14px 18px;
  border-radius: 14px;
  font-family: InterLocal, system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(25, 28, 28, 0.97);
  border: 1px solid rgba(117, 255, 158, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.es-site-toast--visible {
  transform: translateY(0);
  opacity: 1;
}

.es-site-toast--success {
  border-color: rgba(117, 255, 158, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(117, 255, 158, 0.08);
}

.es-site-toast--error {
  border-color: rgba(255, 120, 120, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 20px rgba(255, 100, 100, 0.06);
}

.es-site-toast__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.es-site-toast--success .es-site-toast__icon {
  color: #0c1111;
  background: #75ff9e;
}

.es-site-toast--error .es-site-toast__icon {
  color: #1a0a0a;
  background: #ff8a8a;
}

.es-site-toast__body {
  flex: 1;
  min-width: 0;
}

.es-site-toast__msg {
  margin: 0;
  /* 覆盖 common.css 中 body * 的 keep-all，便于长英文错误换行 */
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.es-site-toast__close {
  flex-shrink: 0;
  margin: -4px -6px -4px 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.es-site-toast__close:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
}

.es-site-toast__close:focus-visible {
  outline: 2px solid rgba(117, 255, 158, 0.55);
  outline-offset: 2px;
}
