/* july4.css - festive 4th of July banner + confetti for /order.
   Inert unless july4.js adds .j4-show (only on July 4, viewer local date). */

.j4-banner { display: none; }
.j4-banner.j4-show { display: block; }

.j4-banner {
  position: relative;
  z-index: 55;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg, #7d1128 0%, #0a2a5e 50%, #7d1128 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.j4-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: translateX(-100%);
  animation: j4-shimmer 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes j4-shimmer {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

.j4-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  text-align: center;
  font-size: 0.92rem;
}
.j4-emoji { font-size: 1.15rem; line-height: 1; }
.j4-text { color: rgba(255, 255, 255, 0.94); }
.j4-text strong { color: #fff; }
.j4-countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.8rem;
  color: #ffd97a;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 3px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.j4-cta {
  background: #fff;
  color: #0a2a5e;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 8px;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.j4-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32); }
.j4-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  margin-left: 2px;
  transition: color 0.15s ease;
}
.j4-close:hover { color: #fff; }

.j4-confetti {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}
.j4-confetti.j4-show { display: block; }

@media (max-width: 640px) {
  .j4-cta { display: none; }
  .j4-inner { font-size: 0.85rem; padding: 9px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .j4-banner::before { animation: none; }
  .j4-confetti { display: none !important; }
}
