#toastMessage {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: auto;              /* Let it size based on content */
  max-width: 453px;         /* Prevent it from growing too wide */
  height: auto;             /* Allow height to expand with text */
  min-height: 64px;         /* Keep default size for short text */
  word-wrap: break-word;    /* Allow wrapping of long words */
  white-space: normal;      /* Allow line breaks */
  padding: 16px 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}

.toast-close {
  width: 32px;
  height: 32px;
  opacity: 1;
  transform: rotate(0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  display: none;
}

.toast-icon i {
  font-size: 20px;
}

.toast-close i {
  font-size: 16px;
  cursor: pointer;
}

.toast-text {
  flex: 1;
  color: #4a4a4a; /* Grey 700 */
  font-family: "Segoe UI", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0px;
  text-align: center;       /* Optional — center text horizontally */
  word-break: break-word;
}