.flash-container {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 500px;
  width: calc(100% - 32px);
}

.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  animation: flash-slide-in 0.3s ease-out;
  box-shadow: 0 4px 12px var(--shadow-black-30);
}

.flash--notice {
  background: var(--flash-notice-bg);
  color: var(--flash-notice-text);
  border: 1px solid var(--flash-notice-border);
}

.flash--alert {
  background: var(--flash-alert-bg);
  color: var(--flash-alert-text);
  border: 1px solid var(--flash-alert-border);
}

.flash__text {
  flex: 1;
  margin-right: 12px;
}

.flash__dismiss {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.7;
  transition: opacity 0.15s ease;
  line-height: 1;
}

.flash__dismiss:hover {
  opacity: 1;
}

.flash--dismissing {
  animation: flash-slide-out 0.2s ease-in forwards;
}

@keyframes flash-slide-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flash-slide-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
