.fakeorder-root {
  --fo-bg: #0f172a;
  --fo-card: #1e293b;
  --fo-text: #f8fafc;
  --fo-muted: #94a3b8;
  --fo-accent: #38bdf8;
  position: fixed;
  z-index: 99990;
  pointer-events: none;
  max-width: min(400px, calc(100vw - 24px - env(safe-area-inset-right, 0px) - env(safe-area-inset-left, 0px)));
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
}

.fakeorder-root--bottom-right {
  right: max(16px, env(safe-area-inset-right, 16px));
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
}

.fakeorder-root--bottom-left {
  left: max(16px, env(safe-area-inset-left, 16px));
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
}

.fakeorder-root--top-right {
  right: max(16px, env(safe-area-inset-right, 16px));
  top: max(16px, env(safe-area-inset-top, 16px));
}

.fakeorder-root--top-left {
  left: max(16px, env(safe-area-inset-left, 16px));
  top: max(16px, env(safe-area-inset-top, 16px));
}

.fakeorder-toast {
  pointer-events: auto;
  background: var(--fo-card);
  color: var(--fo-text);
  border-radius: 20px;
  box-shadow:
    0 20px 50px rgba(2, 6, 23, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  gap: 14px;
  padding: 16px 40px 16px 16px;
  align-items: flex-start;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translate3d(0, 14px, 0) scale(0.98);
  opacity: 0;
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .fakeorder-toast {
    transition-duration: 0.01ms;
  }
}

.fakeorder-toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.fakeorder-toast.is-leaving {
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.98);
  transition-duration: 0.38s;
}

.fakeorder-toast__media {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2px;
}

.fakeorder-toast__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fakeorder-toast__body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.fakeorder-toast__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fo-card);
  background: linear-gradient(145deg, var(--fo-accent), #e0f2fe);
  box-shadow: 0 10px 22px rgba(56, 189, 248, 0.22);
}

.fakeorder-toast__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--fo-text);
}

.fakeorder-toast__meta {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fo-muted);
}

.fakeorder-toast__meta a {
  text-decoration: none;
}

.fakeorder-toast__meta a:hover,
.fakeorder-toast__meta a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.fakeorder-toast__accent {
  color: var(--fo-accent);
  font-weight: 600;
}

.fakeorder-toast__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fo-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.fakeorder-toast__close:hover,
.fakeorder-toast__close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: var(--fo-text);
  outline: none;
}

.fakeorder-toast__close:active {
  transform: scale(0.96);
}

.fakeorder-toast__close-icon {
  font-size: 20px;
  line-height: 1;
  display: block;
  margin-top: -1px;
}

.fakeorder-toast__wrap {
  position: relative;
  width: 100%;
}

@media (max-width: 768px) {
  .fakeorder-root {
    left: max(12px, env(safe-area-inset-left, 12px)) !important;
    right: max(12px, env(safe-area-inset-right, 12px)) !important;
    max-width: none;
    width: auto;
  }

  .fakeorder-root--top-left,
  .fakeorder-root--top-right {
    top: max(12px, env(safe-area-inset-top, 12px));
  }

  .fakeorder-root--bottom-left,
  .fakeorder-root--bottom-right {
    bottom: max(12px, env(safe-area-inset-bottom, 12px));
  }

  .fakeorder-toast {
    padding: 18px 44px 18px 16px;
    gap: 12px;
    border-radius: 18px;
  }

  .fakeorder-toast__title {
    font-size: 13.5px;
  }

  .fakeorder-toast__close {
    width: 40px;
    height: 40px;
    top: 8px;
    right: 8px;
    border-radius: 12px;
  }
}
