/*
 * Demo-only styles. Loaded BEFORE store.css so the app's design styles win.
 *  1. Reset matching the app's (Tailwind preflight), so store.css renders the same as in the app
 *  2. The few utility classes the app's markup relies on
 *  3. Demo chrome: top bar, design picker, cart sheet, QR card, toast
 * Everything inside the restaurant page uses the design's CSS variables
 * (--bg, --surface, --text, --accent…), so it follows whichever design is active.
 */

/* ---------- 1. Reset ---------- */

*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

:root {
  --font-ibm-arabic: 'IBM Plex Sans Arabic';
  --font-plus-jakarta: 'Plus Jakarta Sans';
  --on-accent: #fff;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: var(--font-ibm-arabic), var(--font-plus-jakarta), system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

body {
  margin: 0;
  line-height: inherit;
  color: #111827;
  background: #171717;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

h1, h2, h3, h4, h5, h6, p, figure, fieldset {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: inherit;
}

small {
  font-size: 80%;
}

button, input, textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button {
  text-transform: none;
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  color: #9ca3af;
}

img, svg {
  display: block;
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent, #ff6b35);
  outline-offset: 2px;
}

/* ---------- 2. Utilities used by the app's markup ---------- */

.flex { display: flex; }
.relative { position: relative; }
.min-w-0 { min-width: 0; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-2-5 { gap: 0.625rem; }
.mb-3 { margin-bottom: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-3 { width: 0.75rem; }
.h-3-5 { height: 0.875rem; }
.w-3-5 { width: 0.875rem; }
.h-4 { height: 1rem; }
.w-4 { width: 1rem; }
.h-5 { height: 1.25rem; }
.w-5 { width: 1.25rem; }
.h-8 { height: 2rem; }
.w-8 { width: 2rem; }

.tw-search-pad {
  padding-left: 2.5rem !important;
  padding-right: 2.75rem !important;
}

.tw-search-icon {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.tw-search-clear {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--surface2);
  border-radius: 9999px;
}

.tw-banners-track {
  position: relative;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.tw-banners-track::-webkit-scrollbar {
  display: none;
}

.tw-banner-slide {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 2 / 1;
  scroll-snap-align: center;
}

@media (min-width: 640px) {
  .tw-banner-slide {
    aspect-ratio: 3 / 1;
  }
}

.tw-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tw-banner-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  color: #fff;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}

.tw-banner-dots {
  display: flex;
  justify-content: center;
  margin-top: 0.25rem;
}

.tw-banner-dots button {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tw-banner-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--border);
  transition: all 0.3s ease;
}

.tw-banner-dot[data-active='true'] {
  width: 1rem;
  background: var(--accent);
}

/* ---------- 3. Demo chrome ---------- */

/* Top bar */
.demo-bar {
  color: #fff;
  background: #171717;
}

.demo-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.75rem;
  padding: 0.5rem 1rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.demo-ribbon-cta {
  font-weight: 700;
  color: #ffad85;
  white-space: nowrap;
}

.demo-ribbon-cta:hover {
  text-decoration: underline;
}

.demo-designs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.375rem 1rem 0.625rem;
}

.demo-designs-label {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #a8a29e;
}

.demo-designs-row {
  display: flex;
  gap: 0.5rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  /* room for the focus ring */
  padding: 0.125rem;
}

.demo-designs-row::-webkit-scrollbar {
  display: none;
}

.design-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.25rem 0.75rem 0.25rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e7e5e4;
  white-space: nowrap;
  background: #262626;
  border: 1px solid #3f3f3f;
  border-radius: 9999px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.design-chip:hover {
  border-color: #737373;
}

.design-chip[aria-pressed='true'] {
  color: #171717;
  font-weight: 700;
  background: #fff;
  border-color: #fff;
}

.design-swatch {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 9999px;
  border: 1px solid rgba(128, 128, 128, 0.45);
  /* two-tone dot: page color + accent */
  background: linear-gradient(135deg, var(--sw-bg) 0 50%, var(--sw-accent) 50% 100%);
}

/* "Simple menu" switch (the app's plainMenu setting) */
.switch {
  position: relative;
  flex-shrink: 0;
  width: 2.25rem;
  height: 1.25rem;
  background: #525252;
  border-radius: 9999px;
  transition: background 0.15s ease;
}

.switch::after {
  content: '';
  position: absolute;
  top: 0.125rem;
  right: 0.125rem;
  width: 1rem;
  height: 1rem;
  background: #fff;
  border-radius: 9999px;
  transition: transform 0.15s ease;
}

[aria-checked='true'] > .switch {
  background: #22a06b;
}

[aria-checked='true'] > .switch::after {
  transform: translateX(-1rem);
}

.plain-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  padding: 0.25rem 0.5rem 0.25rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e7e5e4;
  white-space: nowrap;
  background: #262626;
  border: 1px solid #3f3f3f;
  border-radius: 9999px;
}

.plain-toggle:hover {
  border-color: #737373;
}

@media (max-width: 639px) {
  .demo-designs-label {
    display: none;
  }
}

.plain-tile {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 0.875rem 1rem;
  text-align: right;
  background: #262626;
  border-radius: 1rem;
}

.plain-tile strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
}

.plain-tile small {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: #a8a29e;
}

/* Floating design button */
.design-fab {
  position: fixed;
  z-index: 40;
  left: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.12s ease, bottom 0.2s ease;
}

.design-fab:active {
  transform: scale(0.96);
}

/* Lift it above the cart bar on phones */
@media (max-width: 639px) {
  body.has-cart .design-fab {
    bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 4rem);
  }
}

/* Design picker sheet */
.design-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  animation: demo-fade 0.2s ease;
}

.design-sheet {
  width: 100%;
  max-width: 34rem;
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  padding: 1.125rem 1.25rem max(1.25rem, env(safe-area-inset-bottom));
  color: #fff;
  background: #1c1c1c;
  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
  animation: demo-rise 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 640px) {
  .design-overlay {
    align-items: center;
    padding: 1.5rem;
  }

  .design-sheet {
    border-radius: 1.5rem;
  }
}

.design-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.design-sheet-head h2 {
  font-size: 1.125rem;
  font-weight: 700;
}

.design-sheet-head p {
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  color: #a8a29e;
}

.design-sheet-close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2e2e2e;
  border-radius: 9999px;
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .design-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.design-card {
  display: block;
  padding: 0.375rem;
  text-align: center;
  background: #262626;
  border: 2px solid transparent;
  border-radius: 1rem;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.design-card:active {
  transform: scale(0.97);
}

.design-card[aria-pressed='true'] {
  border-color: #fff;
}

/* Mini mock of the page in the design's own colors */
.design-thumb {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 4.75rem;
  padding: 0.5rem;
  background: var(--sw-bg);
  border-radius: 0.625rem;
}

.design-thumb i {
  display: block;
  border-radius: 9999px;
}

.design-thumb i:nth-child(1) {
  width: 45%;
  height: 0.5rem;
  background: var(--sw-ink);
}

.design-thumb i:nth-child(2) {
  width: 70%;
  height: 0.3rem;
  background: var(--sw-ink);
  opacity: 0.3;
}

.design-thumb i:nth-child(3) {
  width: 2.25rem;
  height: 0.875rem;
  margin-top: auto;
  background: var(--sw-accent);
}

.design-card span {
  display: block;
  padding: 0.5rem 0.25rem 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Footer inside the page */
.demo-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 4rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.demo-footer a {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--accent);
}

.demo-footer a:hover {
  text-decoration: underline;
}

.demo-empty {
  margin-top: 0.5rem;
  padding: 2.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border: 1px dashed var(--muted);
  border-radius: 0.75rem;
}

.link-btn {
  display: block;
  margin: 0.75rem auto 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

/* Floating cart bar */
.cart-fab {
  position: fixed;
  z-index: 30;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 1rem;
  right: 1rem;
  max-width: 24rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0 0.75rem 0 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--on-accent);
  border-radius: 9999px;
  background: var(--accent2, var(--accent));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 40%, transparent);
  animation: demo-rise 0.25s ease;
}

.cart-fab:active {
  transform: scale(0.98);
}

.cart-fab-count {
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
}

.cart-fab-total {
  margin-inline-start: auto;
  padding: 0.25rem 0.625rem;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
}

/* Overlays & sheets (cart, QR) */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  animation: demo-fade 0.2s ease;
}

.overlay--center {
  align-items: center;
  padding: 1rem;
}

.sheet {
  position: relative;
  width: 100%;
  max-width: 32rem;
  max-height: 94vh;
  max-height: 94dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: demo-rise 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 640px) {
  .overlay {
    align-items: center;
    padding: 1.5rem;
  }

  .sheet {
    border-radius: 1.5rem;
  }
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.sheet-head h2 {
  font-size: 1.125rem;
  font-weight: 700;
}

.sheet-close {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--surface2);
  border-radius: 9999px;
}

.cart-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem max(1.25rem, env(safe-area-inset-bottom));
}

.cart-empty {
  padding: 2.5rem 1rem;
  text-align: center;
}

.cart-empty-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--surface2);
  border-radius: 9999px;
}

.cart-empty h3 {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.cart-empty p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-thumb {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  overflow: hidden;
  background: var(--surface2);
  border-radius: 0.875rem;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
}

.cart-item-opts {
  font-size: 0.6875rem;
  color: var(--muted);
}

.cart-item-price {
  margin-top: 0.125rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
}

.qty {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--surface2);
  border-radius: 9999px;
}

.qty button {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--surface);
  border-radius: 9999px;
}

.qty button:active {
  transform: scale(0.9);
}

.qty span {
  min-width: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.totals {
  margin: 1rem 0;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  background: var(--surface2);
  border-radius: 1rem;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0;
  color: var(--muted);
}

.totals-row--free span:last-child {
  font-weight: 700;
  color: var(--accent);
}

.totals-row--total {
  margin-top: 0.375rem;
  padding-top: 0.625rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  border-top: 1px dashed var(--muted);
}

.totals-hint {
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  color: var(--muted);
}

.form-title {
  margin: 1.25rem 0 0.625rem;
  font-size: 0.9375rem;
  font-weight: 700;
}

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  padding: 0.25rem;
  margin-bottom: 0.75rem;
  background: var(--surface2);
  border-radius: 9999px;
}

.seg button {
  min-height: 2.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 9999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.seg button[aria-pressed='true'] {
  color: var(--on-accent);
  font-weight: 700;
  background: var(--accent2, var(--accent));
}

.field {
  display: block;
  margin-bottom: 0.625rem;
}

.field span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 0.875rem;
  /* 16px keeps iOS from zooming the page on focus */
  font-size: 1rem;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  outline: none;
  resize: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.field input[aria-invalid='true'] {
  border-color: #e5484d;
}

.form-note {
  margin: 0.25rem 0 0.875rem;
  font-size: 0.6875rem;
  color: var(--muted);
}

.cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0 1rem 0 0.625rem;
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--on-accent);
  border-radius: 9999px;
  background: var(--accent2, var(--accent));
  transition: transform 0.12s ease, filter 0.15s ease;
}

.cta:hover {
  filter: brightness(1.05);
}

.cta:active {
  transform: scale(0.98);
}

.cta--center {
  justify-content: center;
  padding: 0 1rem;
}

.cta-total {
  padding: 0.25rem 0.625rem;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
}

.btn-ghost {
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface2);
  border-radius: 9999px;
}

/* Success screen */
.success {
  padding: 1.5rem 0.5rem 0.5rem;
  text-align: center;
}

.success-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #22a06b;
  border-radius: 9999px;
  box-shadow: 0 10px 24px rgba(34, 160, 107, 0.35);
}

.success h3 {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.success p {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.success-box {
  margin: 1.25rem 0;
  padding: 1rem;
  font-size: 0.8125rem;
  line-height: 1.7;
  text-align: right;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 1rem;
}

.success-box strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

/* QR card */
.qr-card {
  width: 100%;
  max-width: 20rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--text);
  background: var(--surface);
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: demo-rise 0.25s ease;
}

.qr-card h2 {
  font-size: 1.125rem;
  font-weight: 700;
}

.qr-card p {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.qr-card img {
  width: 100%;
  max-width: 13.75rem;
  margin: 1rem auto 0;
  background: #fff;
  border-radius: 1rem;
}

.qr-card .qr-url {
  margin-top: 0.625rem;
  font-weight: 700;
  color: var(--text);
}

/* Toast */
.toast {
  position: fixed;
  z-index: 80;
  top: 1rem;
  left: 50%;
  max-width: calc(100vw - 2rem);
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translate(-50%, -1rem);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast[data-show='true'] {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes demo-fade {
  from { opacity: 0; }
}

@keyframes demo-rise {
  from { opacity: 0; transform: translateY(1.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
