/**
 * AI Order Generator - Professional Frontend Stylesheet
 * Modern, High-End UI with Responsive Design & Smooth Animations
 * Version: 2.5.0
 */

:root {
  --wqog-primary: #4f46e5;
  --wqog-primary-hover: #4338ca;
  --wqog-primary-light: #eef2ff;
  --wqog-primary-ring: rgba(79, 70, 229, 0.16);
  
  --wqog-ai-start: #4f46e5;
  --wqog-ai-mid: #7c3aed;
  --wqog-ai-end: #db2777;
  
  --wqog-success: #10b981;
  --wqog-success-dark: #059669;
  --wqog-success-light: #ecfdf5;
  --wqog-success-border: #a7f3d0;
  
  --wqog-error: #ef4444;
  --wqog-error-light: #fef2f2;
  --wqog-error-border: #fecaca;
  
  --wqog-slate-900: #0f172a;
  --wqog-slate-800: #1e293b;
  --wqog-slate-700: #334155;
  --wqog-slate-600: #475569;
  --wqog-slate-500: #64748b;
  --wqog-slate-400: #94a3b8;
  --wqog-slate-300: #cbd5e1;
  --wqog-slate-200: #e2e8f0;
  --wqog-slate-100: #f1f5f9;
  --wqog-slate-50: #f8fafc;
  
  --wqog-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hind Siliguri", "Noto Sans Bengali", Helvetica, Arial, sans-serif;
  --wqog-radius-lg: 18px;
  --wqog-radius-md: 12px;
  --wqog-radius-sm: 8px;
  
  --wqog-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --wqog-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --wqog-shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --wqog-shadow-xl: 0 20px 30px -10px rgba(15, 23, 42, 0.08), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
}

/* Base Scope Reset */
.wqog-generator-container,
.wqog-public-order {
  font-family: var(--wqog-font);
  color: var(--wqog-slate-800);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  box-sizing: border-box;
}

.wqog-generator-container *,
.wqog-public-order * {
  box-sizing: border-box;
}

/* ==========================================================
   1. INTERACTIVE QUICK ORDER GENERATOR (Card 1: Input)
   ========================================================== */
.wqog-generator-container {
  max-width: 800px;
  margin: 28px auto;
  padding: 0 14px;
}

.wqog-card {
  background: #ffffff;
  border: 1px solid var(--wqog-slate-200);
  border-radius: var(--wqog-radius-lg);
  box-shadow: var(--wqog-shadow-lg);
  margin-bottom: 26px;
  overflow: hidden;
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.wqog-card:hover {
  box-shadow: var(--wqog-shadow-xl);
  border-color: var(--wqog-slate-300);
}

/* Card Header */
.wqog-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 26px;
  background: linear-gradient(180deg, var(--wqog-slate-50) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--wqog-slate-200);
}

.wqog-header-icon {
  font-size: 22px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1.5px solid var(--wqog-slate-200);
  border-radius: var(--wqog-radius-md);
  box-shadow: var(--wqog-shadow-sm);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.wqog-card:hover .wqog-header-icon {
  transform: scale(1.05);
}

.wqog-card-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--wqog-slate-900);
  letter-spacing: -0.015em;
}

.wqog-card-sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--wqog-slate-500);
  line-height: 1.5;
}

.wqog-card-body {
  padding: 26px;
}

/* Raw Textarea */
.wqog-textarea {
  width: 100%;
  min-height: 130px;
  padding: 16px 18px;
  border: 1.5px solid var(--wqog-slate-200);
  border-radius: var(--wqog-radius-md);
  font-size: 14.5px;
  line-height: 1.65;
  background: var(--wqog-slate-50);
  color: var(--wqog-slate-900);
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
  resize: vertical;
  font-family: inherit;
}

.wqog-textarea:hover {
  background: #ffffff;
  border-color: var(--wqog-slate-300);
}

.wqog-textarea:focus {
  background: #ffffff;
  border-color: var(--wqog-primary);
  box-shadow: 0 0 0 4px var(--wqog-primary-ring);
}

/* Hide placeholder immediately upon selection/focus so typing is clean */
.wqog-textarea:focus::placeholder {
  color: transparent !important;
  opacity: 0 !important;
}
.wqog-textarea:focus::-webkit-input-placeholder {
  color: transparent !important;
  opacity: 0 !important;
}
.wqog-textarea:focus::-moz-placeholder {
  color: transparent !important;
  opacity: 0 !important;
}

/* Textarea Scanning Wrapper & Laser Beam */
.wqog-textarea-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--wqog-radius-md);
  margin-bottom: 12px;
}

.wqog-scan-beam {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #818cf8 20%, #c084fc 50%, #f472b6 80%, transparent 100%);
  box-shadow: 0 0 14px 3px rgba(168, 85, 247, 0.75), 0 0 24px 6px rgba(99, 102, 241, 0.5);
  pointer-events: none;
  z-index: 10;
}

.wqog-textarea-wrap.wqog-is-scanning .wqog-scan-beam {
  display: block;
  animation: wqogScanBeam 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

@keyframes wqogScanBeam {
  0% {
    top: 4px;
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 8px);
    opacity: 0.75;
  }
}

.wqog-textarea-scanning {
  border-color: #818cf8 !important;
  background: linear-gradient(180deg, #faf8ff 0%, #ffffff 100%) !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.22), 0 8px 24px -4px rgba(99, 102, 241, 0.12) !important;
}

/* ==========================================================
   Toolbar & Buttons (Unified 1-Row Desktop & Mobile Layout)
   ========================================================== */
.wqog-toolbar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  margin-top: 18px;
  width: 100%;
}

.wqog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  padding: 0 16px;
  border-radius: var(--wqog-radius-md);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  font-family: inherit;
  white-space: nowrap;
  text-align: center;
}

.wqog-btn-icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

/* AI Smart Button */
.wqog-btn-ai {
  flex: 1.25 1 0;
  min-width: 0;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff !important;
  border: 1.5px solid transparent;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.35);
  position: relative;
  overflow: hidden;
}

.wqog-btn-ai:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
  filter: brightness(1.08);
}

.wqog-btn-ai:active {
  transform: translateY(0);
}

.wqog-btn-ai:disabled {
  opacity: 0.7;
  transform: none;
  cursor: not-allowed;
  box-shadow: none;
}

.wqog-icon-sparkle {
  color: #fbbf24;
}

/* Offline Process Button */
.wqog-btn-secondary {
  flex: 1 1 0;
  min-width: 0;
  background: #ffffff;
  color: var(--wqog-slate-800);
  border: 1.5px solid var(--wqog-slate-300);
  box-shadow: var(--wqog-shadow-sm);
}

.wqog-btn-secondary:hover {
  background: var(--wqog-slate-50);
  border-color: var(--wqog-slate-400);
  color: var(--wqog-slate-900);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.wqog-btn-secondary:active {
  transform: translateY(0);
}

.wqog-icon-zap {
  color: #d97706;
}

/* Standard Process Button */
.wqog-btn-primary {
  flex: 1.25 1 0;
  min-width: 0;
  background: var(--wqog-primary);
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.3);
}

.wqog-btn-primary:hover {
  background: var(--wqog-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
}

/* Clear Button */
.wqog-btn-clear {
  flex: 0.85 1 0;
  min-width: 0;
  background: #ffffff;
  color: var(--wqog-slate-600);
  border: 1.5px solid var(--wqog-slate-200);
  box-shadow: var(--wqog-shadow-sm);
}

.wqog-btn-clear:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.12);
}

.wqog-btn-clear:active {
  transform: translateY(0);
}

.wqog-icon-trash {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.wqog-btn-clear:hover .wqog-icon-trash {
  color: #ef4444;
}

/* Strict 1-Row Responsive Layout for Mobile */
@media (max-width: 640px) {
  .wqog-toolbar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .wqog-toolbar .wqog-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 42px !important;
    padding: 0 6px !important;
    font-size: 12px !important;
    gap: 5px !important;
    border-radius: var(--wqog-radius-sm) !important;
    white-space: nowrap !important;
  }
  .wqog-toolbar .wqog-btn-icon {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
  }
  .wqog-toolbar .wqog-btn span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

@media (max-width: 380px) {
  .wqog-toolbar {
    gap: 4px !important;
  }
  .wqog-toolbar .wqog-btn {
    padding: 0 4px !important;
    font-size: 11px !important;
    gap: 3px !important;
  }
  .wqog-toolbar .wqog-btn-icon {
    width: 13px !important;
    height: 13px !important;
  }
}

/* ==========================================================
   AI Neural Processing Loading State (Ultra-Modern UI)
   ========================================================== */
.wqog-process-status {
  margin-top: 14px;
}

/* AI Button Loading Animation */
.wqog-btn-ai.wqog-btn-loading {
  background: linear-gradient(135deg, #4338ca 0%, #6366f1 50%, #8b5cf6 100%) !important;
  background-size: 200% 200% !important;
  animation: wqogAiBtnPulse 2.4s ease infinite !important;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5) !important;
  cursor: wait !important;
  opacity: 1 !important;
}

@keyframes wqogAiBtnPulse {
  0% { background-position: 0% 50%; box-shadow: 0 0 14px rgba(99, 102, 241, 0.4); }
  50% { background-position: 100% 50%; box-shadow: 0 0 24px rgba(139, 92, 246, 0.65); }
  100% { background-position: 0% 50%; box-shadow: 0 0 14px rgba(99, 102, 241, 0.4); }
}

.wqog-spin-orbital {
  animation: wqogSpin 0.9s linear infinite;
  flex-shrink: 0;
}

@keyframes wqogSpin {
  100% { transform: rotate(360deg); }
}

/* AI Loading Card */
.wqog-ai-loading-card {
  padding: 16px 18px;
  background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 50%, #eef2ff 100%);
  border: 1.5px solid #ddd6fe;
  border-radius: var(--wqog-radius-md);
  box-shadow: 0 8px 20px -4px rgba(124, 58, 237, 0.08), 0 2px 6px -1px rgba(99, 102, 241, 0.04);
  position: relative;
  overflow: hidden;
  animation: wqogFadeSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wqogFadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wqog-ai-loading-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wqog-ai-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wqog-ai-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.35);
  animation: wqogPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes wqogPing {
  75%, 100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.wqog-ai-icon-box {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
  animation: wqogIconGlow 2s ease-in-out infinite alternate;
}

@keyframes wqogIconGlow {
  0% { transform: scale(0.96); filter: brightness(1); }
  100% { transform: scale(1.04); filter: brightness(1.15); }
}

.wqog-ai-loading-meta {
  flex: 1;
  min-width: 0;
}

.wqog-ai-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.wqog-ai-title {
  font-size: 14px;
  font-weight: 700;
  color: #5b21b6;
  letter-spacing: -0.01em;
}

.wqog-ai-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 9999px;
  background: #ede9fe;
  border: 1px solid #c4b5fd;
  color: #6d28d9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wqog-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: wqogLiveBlink 1.2s ease infinite alternate;
}

@keyframes wqogLiveBlink {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.wqog-ai-step-text {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.25s ease;
}

/* Glowing Progress Bar */
.wqog-ai-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(221, 214, 254, 0.7);
  border-radius: 9999px;
  margin: 14px 0 12px;
  overflow: hidden;
  position: relative;
}

.wqog-ai-progress-indicator {
  position: absolute;
  top: 0;
  height: 100%;
  width: 45%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 35%, #ec4899 70%, #6366f1 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
  animation: wqogProgressFlow 1.6s ease-in-out infinite;
}

@keyframes wqogProgressFlow {
  0% {
    left: -45%;
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    left: 100%;
    background-position: 0% 50%;
  }
}

/* Chips Grid */
.wqog-ai-chips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

@media (max-width: 600px) {
  .wqog-ai-chips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wqog-ai-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.wqog-ai-chip .wqog-chip-icon {
  font-size: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.wqog-ai-chip.wqog-chip-active {
  background: #ffffff;
  border-color: #86efac;
  color: #166534;
  box-shadow: 0 2px 6px rgba(22, 101, 52, 0.08);
}

.wqog-ai-chip.wqog-chip-active .wqog-chip-icon {
  background: #22c55e;
  color: #ffffff;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

/* AI Success Flash Card */
.wqog-ai-success-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1.5px solid #86efac;
  border-radius: var(--wqog-radius-md);
  color: #166534;
  animation: wqogFadeSlideIn 0.25s ease-out;
}

.wqog-ai-success-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.wqog-ai-success-info h4 {
  margin: 0 0 2px;
  font-size: 13.5px;
  font-weight: 700;
  color: #14532d;
}

.wqog-ai-success-info p {
  margin: 0;
  font-size: 12px;
  color: #166534;
  opacity: 0.9;
}

/* Modern Error Card */
.wqog-status-error-modern {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: var(--wqog-radius-md);
  animation: wqogFadeSlideIn 0.25s ease-out;
}

.wqog-error-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wqog-error-info {
  flex: 1;
  min-width: 0;
}

.wqog-error-info h4 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: #991b1b;
}

.wqog-error-info p {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: #b91c1c;
  line-height: 1.5;
}

.wqog-btn-retry-offline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid #f87171;
  border-radius: var(--wqog-radius-sm);
  background: #ffffff;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.wqog-btn-retry-offline:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

/* ==========================================================
   2. PROGRESSIVE REVEAL INTERACTIVE CHECKOUT CARD
   ========================================================== */
.wqog-checkout-card {
  position: relative;
  border-color: #cbd5e1;
}

.wqog-checkout-card .wqog-card-header {
  padding: 14px 20px;
}

.wqog-checkout-card .wqog-card-body {
  padding: 18px 20px;
}

/* Revealed Banner */
.wqog-revealed-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: linear-gradient(90deg, #ecfdf5 0%, #f0fdf4 100%);
  border-bottom: 1px solid var(--wqog-success-border);
  color: #166534;
  font-size: 13px;
  font-weight: 500;
}

.wqog-banner-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--wqog-success);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Compact Form Sections */
.wqog-form-section {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--wqog-slate-200);
}

.wqog-section-heading {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--wqog-slate-900);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.wqog-step-badge {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--wqog-slate-900);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.wqog-req {
  color: var(--wqog-error);
  margin-left: 2px;
}

/* Grids */
.wqog-grid {
  display: grid;
  gap: 12px;
}

.wqog-grid-2 {
  grid-template-columns: 1fr 1fr;
}

/* Quantity & Delivery Charge in the EXACT SAME ROW (Desktop & Mobile) */
.wqog-grid-compact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .wqog-grid-2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .wqog-grid-compact-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .wqog-checkout-card .wqog-card-header {
    padding: 12px 14px !important;
  }
  .wqog-checkout-card .wqog-card-body {
    padding: 14px !important;
  }
}

/* Compact Form Fields */
.wqog-field {
  margin-bottom: 10px;
}

.wqog-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--wqog-slate-700);
}

.wqog-field input,
.wqog-field select,
.wqog-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--wqog-slate-200);
  border-radius: var(--wqog-radius-sm);
  padding: 9px 12px;
  font-size: 13.5px;
  background: var(--wqog-slate-50);
  outline: none;
  color: var(--wqog-slate-900);
  font-family: inherit;
  transition: all 0.2s ease;
}

.wqog-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px;
  padding-right: 36px;
  cursor: pointer;
}

.wqog-field input:hover,
.wqog-field select:hover,
.wqog-field textarea:hover {
  background: #ffffff;
  border-color: var(--wqog-slate-300);
}

.wqog-field input:focus,
.wqog-field select:focus,
.wqog-field textarea:focus {
  background: #ffffff;
  border-color: var(--wqog-primary);
  box-shadow: 0 0 0 3px var(--wqog-primary-ring);
}

.wqog-product-field select {
  font-weight: 600;
  color: var(--wqog-slate-800);
  background-color: #ffffff;
}

/* Editable Price Field Highlight */
.wqog-field-highlight {
  background: var(--wqog-success-light);
  border: 1.5px solid var(--wqog-success-border);
  border-radius: var(--wqog-radius-sm);
  padding: 8px 10px 10px;
}

.wqog-badge-edit {
  background: #dcfce7;
  color: var(--wqog-success-dark);
  border: 1px solid var(--wqog-success-border);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Input Affix (Currency Badge) */
.wqog-input-affix {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--wqog-slate-200);
  border-radius: var(--wqog-radius-sm);
  overflow: hidden;
  background: #ffffff;
  transition: all 0.2s ease;
}

.wqog-input-affix:focus-within {
  border-color: var(--wqog-primary);
  box-shadow: 0 0 0 3px var(--wqog-primary-ring);
}

.wqog-field-highlight .wqog-input-affix {
  border-color: var(--wqog-success-border);
}

.wqog-field-highlight .wqog-input-affix:focus-within {
  border-color: var(--wqog-success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.wqog-affix-label {
  padding: 8px 11px;
  background: var(--wqog-slate-100);
  color: var(--wqog-slate-700);
  font-weight: 700;
  font-size: 13.5px;
  border-right: 1.5px solid var(--wqog-slate-200);
  user-select: none;
}

.wqog-field-highlight .wqog-affix-label {
  background: #dcfce7;
  color: #166534;
  border-right-color: var(--wqog-success-border);
}

.wqog-input-affix input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 8px 11px !important;
  font-size: 14px;
  font-weight: 600;
}

/* Compact Live Order Calculation Summary Card */
.wqog-order-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: linear-gradient(145deg, var(--wqog-slate-50) 0%, #f1f5f9 100%);
  border: 1.5px solid var(--wqog-slate-200);
  border-radius: var(--wqog-radius-sm);
  margin: 16px 0 14px;
  gap: 12px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.wqog-summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wqog-summary-label {
  font-size: 11px;
  color: var(--wqog-slate-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.wqog-summary-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--wqog-slate-800);
}

.wqog-summary-total {
  border-left: 2px solid var(--wqog-slate-300);
  padding-left: 16px;
}

.wqog-summary-total .wqog-summary-label {
  color: var(--wqog-slate-900);
  font-weight: 700;
}

.wqog-summary-total .wqog-summary-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--wqog-success-dark);
  letter-spacing: -0.02em;
}

@media (max-width: 580px) {
  .wqog-order-summary {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  .wqog-summary-label {
    font-size: 10.5px !important;
  }
  .wqog-summary-val {
    font-size: 13.5px !important;
  }
  .wqog-summary-total {
    padding-left: 10px !important;
  }
  .wqog-summary-total .wqog-summary-val {
    font-size: 17px !important;
  }
}

/* Compact Confirm Order Button */
.wqog-btn-confirm {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--wqog-success) 0%, var(--wqog-success-dark) 100%);
  color: #ffffff !important;
  font-size: 15.5px;
  font-weight: 700;
  border-radius: var(--wqog-radius-sm);
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.3);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.wqog-btn-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
  filter: brightness(1.05);
}

.wqog-btn-confirm:active {
  transform: translateY(0);
}

.wqog-btn-confirm:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Trust Line */
.wqog-checkout-trust,
.wqog-public-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--wqog-slate-500);
  font-weight: 500;
}

/* Pulse animation on fill */
@keyframes wqogPulseAnim {
  0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(79, 70, 229, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

.wqog-pulse {
  animation: wqogPulseAnim 0.7s ease-out;
  border-color: var(--wqog-primary) !important;
}

/* Success / Error Alerts */
.wqog-alert {
  margin-top: 22px;
  padding: 20px 24px;
  border-radius: var(--wqog-radius-md);
  font-size: 14.5px;
  line-height: 1.6;
}

.wqog-alert-error {
  background: var(--wqog-error-light);
  border: 1.5px solid var(--wqog-error-border);
  color: #991b1b;
  font-weight: 600;
}

.wqog-alert-success {
  background: var(--wqog-success-light);
  border: 1.5px solid var(--wqog-success-border);
  color: #166534;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--wqog-shadow-md);
}

.wqog-success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wqog-success);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.wqog-success-content {
  flex-grow: 1;
}

.wqog-success-content h4 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #065f46;
}

.wqog-success-content p {
  margin: 4px 0;
  font-size: 14px;
  color: var(--wqog-slate-800);
}

.wqog-success-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wqog-btn-label {
  background: #059669;
  color: #ffffff !important;
  font-size: 13.5px;
  padding: 10px 18px;
}

.wqog-btn-label:hover {
  background: #047857;
  color: #ffffff;
}

.wqog-btn-invoice {
  background: var(--wqog-primary);
  color: #ffffff !important;
  font-size: 13.5px;
  padding: 10px 18px;
}

.wqog-btn-invoice:hover {
  background: var(--wqog-primary-hover);
  color: #ffffff;
}

.wqog-btn-edit {
  background: var(--wqog-slate-700);
  color: #ffffff !important;
  font-size: 13.5px;
  padding: 10px 18px;
}

.wqog-btn-edit:hover {
  background: var(--wqog-slate-800);
  color: #ffffff;
}

.wqog-btn-new {
  background: #ffffff;
  border: 1.5px solid var(--wqog-slate-200);
  color: var(--wqog-slate-700);
  font-size: 13.5px;
  padding: 10px 18px;
}

.wqog-btn-new:hover {
  background: var(--wqog-slate-100);
  color: var(--wqog-slate-900);
}

/* Spinners */
.wqog-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: wqogSpin 0.6s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

.wqog-spinner-dark {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid var(--wqog-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: wqogSpin 0.6s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes wqogSpin {
  to { transform: rotate(360deg); }
}

/* ==========================================================
   3. PUBLIC LANDING PAGE ORDER FORM ([Order_Make_marjan])
   ========================================================== */
.wqog-public-order {
  max-width: 640px;
  margin: 32px auto;
  padding: 32px 30px;
  border: 1px solid var(--wqog-slate-200);
  border-radius: var(--wqog-radius-lg);
  background: #ffffff;
  box-shadow: 0 12px 35px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
}

.wqog-public-head {
  text-align: center;
  margin-bottom: 26px;
}

.wqog-public-pill {
  display: inline-block;
  background: var(--wqog-primary-light);
  color: var(--wqog-primary);
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.wqog-public-head h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  color: var(--wqog-slate-900);
  letter-spacing: -0.015em;
}

.wqog-product-name {
  font-size: 14px;
  color: var(--wqog-slate-500);
  font-weight: 500;
}

.wqog-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .wqog-public-order {
    padding: 22px 18px;
    border-radius: var(--wqog-radius-md);
  }
  .wqog-row {
    grid-template-columns: 1fr;
  }
}

/* Selected Product Box on Public Form */
.wqog-selected-product {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 14px 0 20px;
  padding: 14px 18px;
  border: 1.5px solid var(--wqog-slate-200);
  border-radius: var(--wqog-radius-md);
  background: var(--wqog-slate-50);
  transition: all 0.2s ease;
}

.wqog-selected-product:hover {
  background: #ffffff;
  border-color: var(--wqog-slate-300);
  box-shadow: var(--wqog-shadow-sm);
}

.wqog-selected-product__image {
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--wqog-slate-200);
}

.wqog-selected-product__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wqog-selected-product__info {
  min-width: 0;
}

.wqog-selected-product__label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--wqog-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.wqog-selected-product__name {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--wqog-slate-900);
}

.wqog-selected-product__price {
  margin-top: 6px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--wqog-success-dark);
}

.wqog-selected-product__price del {
  opacity: 0.55;
  font-weight: 500;
  margin-right: 6px;
  font-size: 14px;
}

.wqog-selected-product__price ins {
  text-decoration: none;
}

/* Public Form Submit Button */
#wqog-public-submit {
  width: 100%;
  border: 0;
  border-radius: var(--wqog-radius-md);
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--wqog-primary) 0%, var(--wqog-primary-hover) 100%);
  color: #ffffff;
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

#wqog-public-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45);
  filter: brightness(1.05);
}

#wqog-public-submit:active {
  transform: translateY(0);
}

#wqog-public-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.wqog-public-success,
.wqog-public-error {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: var(--wqog-radius-md);
  line-height: 1.6;
  font-size: 14px;
}

.wqog-public-success {
  background: var(--wqog-success-light);
  color: #166534;
  border: 1.5px solid var(--wqog-success-border);
  font-weight: 600;
}

.wqog-public-error {
  background: var(--wqog-error-light);
  color: #991b1b;
  border: 1.5px solid var(--wqog-error-border);
  font-weight: 600;
}

.wqog-honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
}

/* ==========================================================================
   Searchable Select Component (District & Thana Real-Time Search)
   ========================================================================== */
.wqog-select-enhanced {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  overflow: hidden !important;
}

.wqog-ss-wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}

.wqog-ss-trigger {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1.5px solid var(--wqog-slate-200);
  border-radius: var(--wqog-radius-sm);
  font-size: 14px;
  color: var(--wqog-slate-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s ease;
  box-shadow: var(--wqog-shadow-sm);
  text-align: left;
  user-select: none;
  font-family: inherit;
  outline: none;
}

.wqog-ss-trigger:hover {
  background: #ffffff;
  border-color: var(--wqog-slate-300);
}

.wqog-ss-trigger:focus,
.wqog-ss-wrapper.is-open .wqog-ss-trigger {
  border-color: var(--wqog-primary);
  box-shadow: 0 0 0 3px var(--wqog-primary-ring);
  background: #ffffff;
}

.wqog-ss-trigger.is-disabled {
  background: var(--wqog-slate-100);
  border-color: var(--wqog-slate-200);
  color: var(--wqog-slate-400);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.wqog-ss-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
}

.wqog-ss-label.is-placeholder {
  color: var(--wqog-slate-400);
}

.wqog-ss-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--wqog-slate-500);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
  flex-shrink: 0;
}

.wqog-ss-arrow svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.wqog-ss-wrapper.is-open .wqog-ss-arrow {
  transform: rotate(180deg);
  color: var(--wqog-primary);
}

/* Dropdown Container */
.wqog-ss-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1.5px solid var(--wqog-slate-200);
  border-radius: var(--wqog-radius-sm);
  box-shadow: var(--wqog-shadow-xl);
  z-index: 999999;
  display: none;
  overflow: hidden;
  box-sizing: border-box;
  animation: wqogSsSlide 0.15s ease-out;
}

.wqog-ss-wrapper.is-open .wqog-ss-dropdown {
  display: block;
}

@keyframes wqogSsSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Search Bar Box */
.wqog-ss-search-box {
  position: relative;
  padding: 8px 10px;
  background: var(--wqog-slate-50);
  border-bottom: 1px solid var(--wqog-slate-200);
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.wqog-ss-search-icon {
  position: absolute;
  left: 18px;
  width: 14px;
  height: 14px;
  color: var(--wqog-slate-400);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wqog-ss-search-icon svg {
  width: 14px;
  height: 14px;
}

.wqog-ss-search-input {
  width: 100%;
  padding: 7px 28px 7px 30px;
  font-size: 13px;
  border: 1.5px solid var(--wqog-slate-300);
  border-radius: 6px;
  outline: none;
  background: #ffffff;
  color: var(--wqog-slate-800);
  box-sizing: border-box;
  font-family: inherit;
  transition: all 0.15s ease;
}

.wqog-ss-search-input:focus {
  border-color: var(--wqog-primary);
  box-shadow: 0 0 0 2px var(--wqog-primary-ring);
}

.wqog-ss-clear-search {
  position: absolute;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--wqog-slate-400);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s ease;
}

.wqog-ss-clear-search:hover {
  color: var(--wqog-slate-700);
}

/* Items List Menu */
.wqog-ss-menu {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
}

.wqog-ss-menu::-webkit-scrollbar {
  width: 6px;
}

.wqog-ss-menu::-webkit-scrollbar-track {
  background: var(--wqog-slate-50);
}

.wqog-ss-menu::-webkit-scrollbar-thumb {
  background: var(--wqog-slate-300);
  border-radius: 3px;
}

.wqog-ss-menu::-webkit-scrollbar-thumb:hover {
  background: var(--wqog-slate-400);
}

.wqog-ss-item {
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--wqog-slate-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.12s ease, color 0.12s ease;
  user-select: none;
  box-sizing: border-box;
}

.wqog-ss-item:hover,
.wqog-ss-item.is-highlighted {
  background: var(--wqog-primary-light);
  color: var(--wqog-primary);
}

.wqog-ss-item.is-selected {
  background: var(--wqog-primary-light);
  color: var(--wqog-primary);
  font-weight: 600;
}

.wqog-ss-item.is-selected::after {
  content: '✓';
  color: var(--wqog-primary);
  font-weight: 700;
  margin-left: 8px;
  font-size: 12px;
}

.wqog-ss-empty {
  padding: 16px 14px;
  text-align: center;
  color: var(--wqog-slate-400);
  font-size: 13px;
  display: none;
}



