/* Bar: today’s order on every app page (shared with receipt-today.js) — high-visibility */
@keyframes receipt-bar-shine {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes receipt-label-pulse {
  0%,
  100% {
    filter: brightness(1);
    text-shadow:
      0 0 8px rgba(255, 220, 80, 0.9),
      0 0 16px rgba(255, 140, 0, 0.55);
  }
  50% {
    filter: brightness(1.15);
    text-shadow:
      0 0 12px rgba(255, 240, 120, 1),
      0 0 24px rgba(255, 100, 200, 0.45);
  }
}

.app-todays-order-bar {
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(
    125deg,
    #1a0f2e 0%,
    #0d2137 25%,
    #123d5c 50%,
    #0a2540 75%,
    #1a0f2e 100%
  );
  background-size: 200% 200%;
  animation: receipt-bar-shine 8s ease-in-out infinite;
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  margin: 0 0 0.5rem;
  box-sizing: border-box;
  box-shadow:
    0 0 0 1px rgba(0, 240, 255, 0.45),
    0 0 20px rgba(0, 200, 255, 0.25),
    0 0 32px rgba(255, 100, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.app-todays-order-bar::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: 0;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(120deg, #00f0ff, #7c3aed, #f472b6, #fbbf24, #00f0ff);
  background-size: 300% 300%;
  animation: receipt-bar-shine 6s ease infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.app-todays-order-bar.hidden {
  display: none !important;
}

.app-todays-order-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.65rem;
  position: relative;
  z-index: 1;
}

.app-todays-order-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.app-todays-order-rows {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  width: 100%;
}

.app-todays-order-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff0a0;
  white-space: nowrap;
  text-shadow:
    0 0 10px rgba(255, 200, 60, 1),
    0 0 20px rgba(255, 120, 0, 0.65),
    0 1px 0 #8b4513;
  animation: receipt-label-pulse 2.2s ease-in-out infinite;
}

.app-todays-order-row {
  font-size: 0.88rem;
  font-weight: 600;
  color: #b4f5ff;
  min-width: 0;
  text-align: left;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.35);
  line-height: 1.3;
  word-break: break-word;
}

.app-todays-order-view {
  flex-shrink: 0;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
  color: #1a0a00;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.55);
}

.app-todays-order-view:hover,
.app-todays-order-view:focus {
  filter: brightness(1.08);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.75);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .app-todays-order-bar,
  .app-todays-order-bar::before {
    animation: none;
  }
  .app-todays-order-label {
    animation: none;
  }
}

/* Receipt detail overlay (minimal; matches public/styles confirm-overlay pattern) */
.receipt-today-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
  box-sizing: border-box;
}

.receipt-today-overlay.hidden {
  display: none !important;
}

.receipt-today-popup {
  width: 100%;
  max-width: 28rem;
  max-height: 85dvh;
  overflow: auto;
  background: #0f1419;
  color: #e6edf3;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.receipt-today-popup h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  text-align: center;
}

.receipt-saved-body .r-line {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.receipt-saved-body .r-store-line {
  font-size: 0.9rem;
  font-weight: 600;
  color: #7ee787;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  word-break: break-word;
}

.receipt-saved-body .r-head {
  margin: 0 0 0.4rem;
}

.receipt-saved-body .r-meta {
  font-size: 0.75rem;
  color: #8b949e;
  margin: 0.4rem 0 0;
}

.receipt-saved-body .r-preorder-date {
  margin: 0.35rem 0 0.55rem;
  font-size: 0.88rem;
  line-height: 1.35;
  color: #e6edf3;
}

.receipt-saved-body .r-order-sep {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin: 0.9rem 0;
}

.receipt-saved-body .r-order-block {
  margin: 0;
}

.receipt-today-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.8rem;
}

.receipt-today-close {
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: #58a6ff;
  color: #0f1419;
  cursor: pointer;
}
