/* MoverCalcs SSC post-process: notification readability.
   Visual-only styles for the existing in-page toast notifications. */

@media (max-width: 480px) {
  #toast-container > div {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    padding: 16px 16px 16px 50px;
    font-size: 16px !important;
    line-height: 1.4 !important;
  }

  #toast-container .toast-title {
    font-size: 17px !important;
    line-height: 1.35 !important;
  }

  #toast-container .toast-message {
    font-size: 16px !important;
    line-height: 1.4 !important;
  }
}

.mc-notification-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
}

.mc-notification-dialog {
  width: min(100%, 440px);
  padding: 24px;
  border-radius: 8px;
  background: #ffffff;
  color: #222222;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  font-size: 18px;
  line-height: 1.5;
}

.mc-notification-dialog h2 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.3;
}

.mc-notification-dialog p {
  margin: 0 0 20px;
  white-space: pre-line;
}

.mc-notification-ok {
  min-width: 88px;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 4px;
  background: #1f5f3a;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.mc-notification-ok:focus-visible {
  outline: 3px solid #1b75d0;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .mc-notification-dialog {
    animation: mc-notification-dialog-in 120ms ease-out;
  }
}

@keyframes mc-notification-dialog-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .mc-notification-overlay {
    align-items: flex-end;
    padding: 12px;
  }

  .mc-notification-dialog {
    width: 100%;
    padding: 20px;
    font-size: 18px;
  }
}
