/**
 * Order-page utility classes formerly provided by Tailwind CDN.
 * Scoped helpers + common layout utilities used by order.html / script.js.
 */
#order-app {
  --nisir-emerald: #6edc5f;
  --nisir-deep: #0b3d2e;
}

.hidden {
  display: none !important;
}

.block {
  display: block;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-md {
  max-width: 28rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.w-5 {
  width: 1.25rem;
}

.h-5 {
  height: 1.25rem;
}

.w-8 {
  width: 2rem;
}

.h-8 {
  height: 2rem;
}

.w-10 {
  width: 2.5rem;
}

.h-10 {
  height: 2.5rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.leading-relaxed {
  line-height: 1.625;
}

.text-white {
  color: #fff;
}

.text-white\/75 {
  color: rgba(255, 255, 255, 0.75);
}

.text-white\/85 {
  color: rgba(255, 255, 255, 0.85);
}

.text-nisir-emerald {
  color: var(--nisir-emerald, #6edc5f);
}

.text-red-200 {
  color: #fecaca;
}

.text-red-300 {
  color: #fca5a5;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.border {
  border-width: 1px;
  border-style: solid;
}

.border-red-500\/40 {
  border-color: rgba(239, 68, 68, 0.4);
}

.border-red-400 {
  border-color: #f87171 !important;
}

.bg-red-950\/50 {
  background-color: rgba(69, 10, 10, 0.5);
}

@media (prefers-color-scheme: dark) {
  .dark\:border-red-500 {
    border-color: #ef4444 !important;
  }
}

@keyframes nisir-spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: nisir-spin 0.85s linear infinite;
}

/* peer helpers used by service/payment radios */
.peer:focus-visible + .order-service-card {
  box-shadow: 0 0 0 2px rgba(110, 220, 95, 0.4);
}
