.wt-public-notice {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 2147483647;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: min(420px, calc(100vw - 2rem));
  padding: 0.95rem 1rem;
  box-sizing: border-box;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-lg, 18px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.18);
  color: #2f3745;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.24s ease, transform 0.24s ease;
  backdrop-filter: blur(18px);
}

.wt-public-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.wt-public-notice__icon {
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 auto;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(52, 168, 83, 0.14);
  color: #188038;
}

.wt-public-notice__icon::before {
  content: "";
  width: 0.55rem;
  height: 0.9rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
}

.wt-public-notice[data-type="error"] .wt-public-notice__icon {
  background: rgba(217, 48, 37, 0.12);
  color: #b3261e;
}

.wt-public-notice[data-type="error"] .wt-public-notice__icon::before {
  width: 0.85rem;
  height: 0.85rem;
  border: 0;
  background:
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
  transform: rotate(45deg);
}

.wt-public-notice__message {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .wt-public-notice {
    right: auto;
    left: 50%;
    bottom: max(0.875rem, env(safe-area-inset-bottom));
    width: calc(100vw - 1.5rem);
    transform: translate(-50%, 12px);
    font-size: 0.92rem;
  }

  .wt-public-notice.is-visible {
    transform: translate(-50%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wt-public-notice {
    transition: opacity 0.01ms linear;
  }
}
