/* Shared, compact help labels and attention notices. */
.pm-tooltip {
  position: fixed;
  z-index: 2147483647;
  max-width: min(280px, calc(100vw - 24px));
  padding: 7px 11px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 9px;
  background: #243041;
  color: #fff;
  box-shadow: 0 4px 14px rgb(15 23 42 / 14%);
  font-family: Vazirmatn, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.65;
  text-align: start;
  direction: rtl;
  pointer-events: none;
  overflow-wrap: anywhere;
  animation: pm-feedback-in 120ms ease-out;
}
.pm-tooltip[hidden] { display: none; }
#modal-toast > .pm-notice {
  width: min(100%, 380px);
  padding: 22px;
  border: 1px solid rgb(100 116 139 / 14%);
  border-radius: 18px;
  background: var(--color-surface, #fff);
  color: var(--color-text, #243041);
  box-shadow: 0 16px 48px rgb(15 23 42 / 14%);
  position: relative;
}
.pm-notice-close {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7b8796;
  cursor: pointer;
}
.pm-notice-close:hover { background: rgb(100 116 139 / 8%); color: #243041; }
.pm-notice-close .material-symbols-rounded { font-size: 19px; }
.pm-notice-content { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; padding-inline-end: 14px; }
#modal-toast #toast-icon-wrap { width: 36px; height: 36px; border-radius: 11px; background: color-mix(in srgb, var(--color-primary, #4c2d91) 8%, transparent); }
#modal-toast #toast-icon { font-size: 22px; }
#modal-toast #toast-message { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.9; text-align: start; color: inherit; overflow-wrap: anywhere; }
#modal-toast #toast-action-btn { grid-column: 2; width: auto; justify-self: start; padding: 7px 13px; border-radius: 9px; font-size: 12px; font-weight: 600; box-shadow: none; }
.pm-notice-close:focus-visible { outline: 2px solid var(--color-primary, #4c2d91); outline-offset: 2px; }
@keyframes pm-feedback-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .pm-tooltip { animation: none; } }
