.adms-flash-hub {
  position: fixed;
  top: 82px;
  right: 22px;
  z-index: 1095;
  display: flex;
  width: min(390px, calc(100vw - 28px));
  max-height: calc(100vh - 110px);
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.adms-flash-toast {
  --flash-accent: #2f80ed;
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  gap: 12px;
  align-items: start;
  overflow: hidden;
  padding: 14px 12px 12px 14px;
  border: 1px solid rgba(18, 32, 47, 0.1);
  border-left: 4px solid var(--flash-accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(31, 45, 61, 0.18), 0 2px 8px rgba(31, 45, 61, 0.08);
  color: #263445;
  pointer-events: auto;
  transform: translateX(26px);
  opacity: 0;
  animation: admsFlashIn 260ms ease-out forwards;
}

.adms-flash-toast[data-type="success"] {
  --flash-accent: #1f9d68;
}

.adms-flash-toast[data-type="danger"] {
  --flash-accent: #d94b4b;
}

.adms-flash-toast[data-type="warning"] {
  --flash-accent: #d89b18;
}

.adms-flash-toast.is-hiding {
  animation: admsFlashOut 180ms ease-in forwards;
}

.adms-flash-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(47, 128, 237, 0.12);
  background: color-mix(in srgb, var(--flash-accent) 14%, #ffffff);
  color: var(--flash-accent);
  font-size: 18px;
}

.adms-flash-body {
  min-width: 0;
}

.adms-flash-title {
  display: block;
  margin-bottom: 3px;
  color: #17202a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.adms-flash-message {
  margin: 0;
  color: #526171;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.adms-flash-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7a8794;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.adms-flash-close:hover,
.adms-flash-close:focus {
  background: rgba(38, 52, 69, 0.08);
  color: #263445;
  outline: none;
}

.adms-flash-timer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--flash-accent);
  transform-origin: left center;
  animation: admsFlashTimer var(--flash-duration, 5200ms) linear forwards;
}

@keyframes admsFlashIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes admsFlashOut {
  to {
    transform: translateX(18px);
    opacity: 0;
  }
}

@keyframes admsFlashTimer {
  to {
    transform: scaleX(0);
  }
}

@media (max-width: 767px) {
  .adms-flash-hub {
    top: 14px;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .adms-flash-toast {
    grid-template-columns: 34px minmax(0, 1fr) 28px;
    padding: 12px 10px 11px 12px;
  }

  .adms-flash-icon {
    width: 34px;
    height: 34px;
  }
}
