.omie-toast-host {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}

.omie-toast {
  position: relative;
  width: min(540px, calc(100vw - 32px));
  min-height: 96px;
  padding: 28px 28px 20px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.08);
  color: #22325f;
  text-align: center;
  pointer-events: auto;
  overflow: hidden;
  animation: omie-toast-in 220ms ease-out;
}

.omie-toast.is-leaving {
  animation: omie-toast-out 180ms ease-in forwards;
}

.omie-toast-message {
  margin: 0;
  padding: 0 28px;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
  color: #22325f;
}

.omie-toast-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #7c8aa8;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.omie-toast-close:hover {
  background: rgba(148, 163, 184, 0.12);
  color: #475569;
}

.omie-toast-progress {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 10px;
  height: 4px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.9);
  overflow: hidden;
}

.omie-toast-progress-bar {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  animation-name: omie-toast-progress;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.omie-toast--success .omie-toast-progress-bar {
  background: #6ee7f5;
}

.omie-toast--error .omie-toast-progress-bar,
.omie-toast--danger .omie-toast-progress-bar {
  background: #ef4444;
}

.omie-toast--warning .omie-toast-progress-bar {
  background: #f59e0b;
}

.omie-toast--info .omie-toast-progress-bar,
.omie-toast--message .omie-toast-progress-bar {
  background: #60a5fa;
}

.omie-flash-source {
  display: none !important;
}

@keyframes omie-toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes omie-toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes omie-toast-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@media (max-width: 640px) {
  .omie-toast-host {
    top: 18px;
  }

  .omie-toast {
    min-height: 88px;
    padding: 24px 18px 18px;
    border-radius: 16px;
  }

  .omie-toast-message {
    padding: 0 20px;
    font-size: 14px;
  }
}
