.flashToast,
.siteFlash,
.backofficeFlash {
  position: fixed;
  z-index: 20;
  top: 72px;
  left: 16px;
  width: max-content;
  max-width: min(350px, calc(100vw - 32px));
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  pointer-events: none;
  animation: flashToastIn 0.35s ease forwards;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

body.backoffice .flashToast,
body.backoffice .backofficeFlash {
  top: 64px;
}

.flashToast.is-hiding,
.siteFlash.is-hiding,
.backofficeFlash.is-hiding {
  opacity: 0;
  transform: translateX(-120%);
  pointer-events: none;
}

.siteFlash .notice,
.siteFlash .alert,
.backofficeFlash.notice,
.backofficeFlash.alert,
.flashToast .notice,
.flashToast .alert,
p.notice.flashToast,
p.alert.flashToast {
  pointer-events: auto;
  display: block;
  width: 100%;
  max-width: 350px;
  box-sizing: border-box;
  padding: 12px 14px;
  margin: 0 0 8px 0;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.2);
}

.siteFlash .notice,
.backofficeFlash.notice,
.flashToast .notice,
p.notice.flashToast {
  background: #1e3a2f;
  border: 1px solid #40f29c;
  color: #fff;
}

.siteFlash .alert,
.backofficeFlash.alert,
.flashToast .alert,
p.alert.flashToast {
  background: #3a1e1e;
  border: 1px solid #f24040;
  color: #fff;
}

@keyframes flashToastIn {
  from {
    opacity: 0;
    transform: translateX(-120%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 987px) {
  .flashToast,
  .siteFlash,
  .backofficeFlash {
    top: 72px;
    left: 12px;
  }
}
