/* ==========================================================================
   Veggie Mart Web App — Master Responsive Layout & Blinkit/Zepto 2026 UI Stylesheet (style.css)
   v6.0 (Blinkit/Zepto 2026 Aesthetic, Full-Bleed Catalog Product Cards, Dedicated #profileView & Print Support)
   ========================================================================== */

:root {
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 30px;
  --radius-full: 9999px;
  
  --shadow-soft: 0 4px 18px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-card: 0 12px 28px -6px rgba(4, 120, 87, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-elevated: 0 22px 44px -10px rgba(4, 120, 87, 0.18), 0 8px 18px -4px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.28);
  
  --color-primary: #064e3b;
  --color-primary-light: #047857;
  --color-accent: #10b981;
  --color-bg-subtle: #f4f7f6;
  --color-border: rgba(226, 232, 240, 0.95);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ================= UNIVERSAL BOX-SIZING & VIEWPORT CONTAINMENT ================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f7f6;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  -webkit-text-size-adjust: 100%;
  position: relative;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

main, aside, section, article, header, nav {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.break-words-safe,
.order-address-box,
.customer-address-box,
.email-break,
td, th, p, span, div {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.break-all-words {
  word-break: break-all !important;
  overflow-wrap: anywhere !important;
}

.hidden { display: none !important; }
.flex-modal { display: flex !important; }

/* Custom Scrollbar for Smooth UX */
.custom-scroll::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ================= 100% PERMANENT FIXED HEADER & CATEGORY TABS ================= */
#mainAppHeader {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 58px !important;
  z-index: 45 !important;
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%) !important;
  box-shadow: 0 4px 20px rgba(6, 78, 59, 0.22) !important;
}

#stickyCategoryNav {
  position: fixed !important;
  top: 58px !important;
  left: 0 !important;
  right: 0 !important;
  height: 88px !important;
  z-index: 35 !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(14px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

#stickyCategoryNav.hidden {
  display: none !important;
}

@media (min-width: 1024px) {
  #stickyCategoryNav {
    left: 16rem !important; /* 256px sidebar clearance on desktop */
  }
}

/* Top & Bottom clearance for scrolling views so products never hide under bars */
#storeView {
  padding-top: 154px !important;
  padding-bottom: calc(148px + env(safe-area-inset-bottom, 0px)) !important;
  max-width: 1080px;
}

@media (min-width: 640px) {
  #storeView {
    padding-top: 158px !important;
  }
}

/* Dedicated Full-Screen Profile Window (#profileView) */
#profileView {
  padding-top: 72px !important;
  padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
  max-width: 1080px;
  min-height: 100vh;
}

@media (min-width: 640px) {
  #profileView {
    padding-top: 80px !important;
  }
}

#adminView {
  padding-top: 76px !important;
  padding-bottom: 60px !important;
  max-width: 1120px !important;
  overflow-x: hidden !important;
}

@media (min-width: 640px) {
  #adminView {
    padding-top: 86px !important;
  }
}

/* ================= BLINKIT / ZEPTO 2026 FIXED BOTTOM NAVIGATION BAR ================= */
#vmBottomNav {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 44 !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(20px) saturate(195%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(195%) !important;
  border-top: 1px solid rgba(16, 185, 129, 0.22) !important;
  box-shadow: 0 -10px 32px rgba(2, 6, 23, 0.08), 0 -2px 8px rgba(16, 185, 129, 0.06) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#vmBottomNav.hidden {
  display: none !important;
}

@media (min-width: 1024px) {
  #vmBottomNav {
    left: 16rem !important;
  }
}

#vmBottomNav .vm-bnav-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  height: 68px;
  max-width: 660px;
  margin: 0 auto;
  padding: 0 6px;
  gap: 2px;
}

.vm-bnav-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 60px;
  border-radius: 18px !important;
  color: #64748b;
  font-weight: 700;
  font-size: 10.5px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  padding: 2px 4px;
}

.vm-bnav-icon-wrap {
  position: relative;
  width: 44px;
  height: 30px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(241, 245, 249, 0.75);
  color: #475569;
  font-size: 15px;
  line-height: 1;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.vm-bnav-btn:hover .vm-bnav-icon-wrap {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

/* Individual Theme Accents for 2026 Pill Containers */
#bnavBtnVeg .vm-bnav-icon-wrap {
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
}
#bnavBtnJuice .vm-bnav-icon-wrap {
  color: #d97706;
  background: rgba(245, 158, 11, 0.12);
}
#bnavBtnStore10 .vm-bnav-icon-wrap {
  color: #e11d48;
  background: rgba(225, 29, 72, 0.1);
}
#bnavBtnOrders .vm-bnav-icon-wrap {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
}
#bnavBtnProfile .vm-bnav-icon-wrap {
  color: #0f766e;
  background: rgba(13, 148, 136, 0.1);
}

.vm-bnav-btn.active {
  color: #064e3b;
  font-weight: 900;
}

.vm-bnav-btn.active .vm-bnav-icon-wrap {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 14px rgba(5, 150, 105, 0.32);
  border-color: rgba(255, 255, 255, 0.5);
}

#bnavBtnJuice.active .vm-bnav-icon-wrap {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%) !important;
  box-shadow: 0 6px 14px rgba(234, 88, 12, 0.32);
}

#bnavBtnStore10.active .vm-bnav-icon-wrap {
  background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%) !important;
  box-shadow: 0 6px 14px rgba(225, 29, 72, 0.32);
}

.vm-bnav-btn.active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #059669, #10b981);
}

.vm-bnav-label {
  display: block;
  line-height: 1.1;
  letter-spacing: -0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: transform 0.2s ease, font-weight 0.2s ease;
}

.vm-bnav-btn.active .vm-bnav-label {
  font-weight: 900;
  color: #064e3b;
}

.vm-bnav-badge-new {
  position: absolute;
  top: -5px;
  right: -8px;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  color: #ffffff;
  font-size: 7.5px;
  font-weight: 900;
  padding: 1.5px 4.5px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.45);
  border: 1.5px solid #ffffff;
  line-height: 1;
  z-index: 2;
}

.vm-bnav-badge-pulse {
  animation: stepPulse 1.6s infinite;
}

.vm-bnav-badge-deal {
  position: absolute;
  top: -5px;
  right: -8px;
  background: linear-gradient(90deg, #e11d48, #f59e0b);
  color: #ffffff;
  font-size: 7.5px;
  font-weight: 900;
  padding: 1.5px 4.5px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.45);
  border: 1.5px solid #ffffff;
  line-height: 1;
  z-index: 2;
}

.vm-bnav-badge-count {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  background: #ef4444;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  padding: 0 4px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45);
  z-index: 2;
}

.vm-bnav-online-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #10b981;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.28);
  z-index: 2;
}

/* ================= FLOATING CART BAR & LIVE TRACKER DOCK POSITIONING ================= */
#floatCartBar {
  bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 43 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#floatingTrackerDock {
  bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 42 !important;
  transition: bottom 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease;
}

#floatingTrackerDock.with-cart-open {
  bottom: calc(138px + env(safe-area-inset-bottom, 0px)) !important;
}

#floatingLiveTrackingWindow {
  bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 48 !important;
}

#backToTopBtn {
  bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
}

/* ================= BLINKIT / ZEPTO 2026 FULL-BLEED CATALOG PRODUCT CARDS ================= */
.vm-product-card {
  border-radius: 22px !important;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: var(--shadow-soft);
  padding: 10px !important;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.26s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.26s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vm-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(16, 185, 129, 0.55) !important;
}

/* Exact Full-Bleed Image Container & Image Rules (Requirement 4) */
.vm-product-img-box {
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  height: 155px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vm-product-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 18px;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  display: block;
}

.vm-product-card:hover .vm-product-img {
  transform: scale(1.06);
}

/* Modern Blinkit/Zepto Pill Buttons & Micro-Interactions */
.tier-pill-btn {
  border-radius: var(--radius-full) !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.tier-pill-btn:hover:not(:disabled) {
  border-color: #10b981;
}

.tier-pill-btn:active:not(:disabled) {
  transform: scale(0.93);
}

.vm-add-btn {
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  color: #065f46;
  border: 1.5px solid #34d399;
  border-radius: var(--radius-full) !important;
  font-weight: 900;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.vm-add-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border-color: #047857;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.28);
  transform: translateY(-1px);
}

.vm-add-btn:active:not(:disabled) {
  transform: scale(0.94);
}

.vm-qty-stepper {
  background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
  color: #ffffff;
  border-radius: var(--radius-full) !important;
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.25);
}

/* ================= DEDICATED PROFILE VIEW CARDS & RE-ORDER STYLING ================= */
.vm-profile-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.vm-profile-card:hover {
  box-shadow: var(--shadow-card);
}

.vm-reorder-btn {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border-radius: 14px !important;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.vm-reorder-btn:hover {
  background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.36);
}

.vm-reorder-btn:active {
  transform: scale(0.96);
}

/* ================= RIDER DIRECTORY & MODAL CURVED SQUIRCLE RENOVATION ================= */
.vm-rider-card {
  border-radius: var(--radius-xl) !important;
  background: #ffffff;
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
}

.vm-rider-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.6) !important;
  box-shadow: var(--shadow-card);
}

.vm-rider-avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full) !important;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #064e3b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 10px rgba(4, 120, 87, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.vm-rider-card:hover .vm-rider-avatar-circle {
  transform: scale(1.06);
}

.vm-rider-modal-box {
  border-radius: var(--radius-2xl) !important;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(2, 6, 23, 0.35) !important;
  border: 2px solid rgba(16, 185, 129, 0.25);
}

.vm-rider-modal-header {
  border-top-left-radius: var(--radius-2xl) !important;
  border-top-right-radius: var(--radius-2xl) !important;
}

.vm-metric-card {
  border-radius: var(--radius-lg) !important;
  background: #ffffff;
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.vm-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -4px rgba(4, 120, 87, 0.1);
  border-color: rgba(16, 185, 129, 0.5);
}

.vm-metric-card:active {
  transform: scale(0.96);
}

.vm-curved-table-box {
  border-radius: var(--radius-lg) !important;
  overflow: hidden !important;
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  background: #ffffff;
}

.vm-curved-table-box table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100%;
}

.vm-curved-table-box thead tr th {
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

/* ================= UNIVERSAL SMOOTH ROUNDED ELEMENTS ================= */
input[type="text"],
input[type="number"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="time"],
select,
textarea {
  border-radius: var(--radius-md) !important;
  border: 1.5px solid #cbd5e1;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

button {
  border-radius: var(--radius-md);
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

button:active {
  transform: scale(0.96);
}

.badge-pill,
[class*="rounded-full"] {
  border-radius: var(--radius-full) !important;
}

[id$="Modal"] > div {
  border-radius: var(--radius-2xl) !important;
  box-shadow: 0 25px 50px -12px rgba(2, 6, 23, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

/* ================= ANIMATIONS & KEYFRAMES ================= */
@keyframes scaleInPop {
  0% { transform: scale(0.65); opacity: 0; }
  70% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes pulseRing {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 16px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes stepPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.85; }
}
@keyframes slideInFromRight {
  0% { opacity: 0.25; transform: translateX(24px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes slideInFromLeft {
  0% { opacity: 0.25; transform: translateX(-24px); }
  100% { opacity: 1; transform: translateX(0); }
}

.animate-scale-in { animation: scaleInPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-pulse-ring { animation: pulseRing 1.8s infinite; }
.animate-float-bounce { animation: floatBounce 2.5s ease-in-out infinite; }
.animate-step-pulse { animation: stepPulse 1.5s infinite; }
.swipe-slide-right { animation: slideInFromRight 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.swipe-slide-left { animation: slideInFromLeft 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* ================= RESPONSIVE CONTAINMENT & MOBILE OPTIMIZATIONS ================= */
@media (min-width: 1024px) {
  .admin-card-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .admin-tab-pane {
    max-width: 1080px !important;
  }
}

.table-responsive,
.overflow-x-auto {
  max-width: 100% !important;
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

@media (max-width: 639px) {
  #adminView {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  #adminCustomersTable,
  #adminOrdersTable,
  #adminRidersTable {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  #adminView > div:first-child {
    padding: 0.5rem !important;
    gap: 0.35rem !important;
  }

  #multiRouteActionBar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .modal-container,
  .modal > div,
  [id$="Modal"] > div {
    width: 100% !important;
    max-width: calc(100vw - 1rem) !important;
    margin: auto !important;
    padding: 1.15rem !important;
    border-radius: 28px !important;
  }
}

/* ================= INTERACTIVE CHECKOUT CART ITEMS & TIER SWITCHER ================= */
.vm-checkout-item-card {
  background: #f8fafc;
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  padding: 10px 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.vm-checkout-item-card:hover {
  border-color: rgba(16, 185, 129, 0.45);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.vm-checkout-tier-pill {
  border-radius: 9999px !important;
  font-size: 10px;
  padding: 2.5px 9px;
  line-height: 1.35;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.vm-checkout-tier-pill:active {
  transform: scale(0.93);
}

.vm-checkout-qty-stepper {
  background: linear-gradient(135deg, #047857 0%, #064e3b 100%);
  color: #ffffff;
  border-radius: 9999px !important;
  box-shadow: 0 2px 8px rgba(6, 78, 59, 0.2);
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}

.vm-checkout-qty-btn {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  color: #ffffff;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.vm-checkout-qty-btn:hover {
  background-color: rgba(255, 255, 255, 0.14);
}

.vm-checkout-qty-btn:active {
  transform: scale(0.88);
}

/* ================= PRINT INVOICE & MANDI PACKING SUMMARY STYLES ================= */
@media print {
  body * { visibility: hidden !important; }
  .no-print, .no-print * { display: none !important; visibility: hidden !important; }
  #printableInvoiceArea, #printableInvoiceArea *,
  #printableCustomerInvoiceArea, #printableCustomerInvoiceArea *,
  #printableMandiSummaryArea, #printableMandiSummaryArea *,
  #tab-profitfolio, #tab-profitfolio * { visibility: visible !important; }
  #printableInvoiceArea, #printableCustomerInvoiceArea, #printableMandiSummaryArea {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
    border: none !important;
    box-shadow: none !important;
    background: white !important;
  }
}


/* v6.4 Customer UPI Pay Modal & Admin Customer Orders Modal Enhancements */
#directInstallModal,
#pwaInstallGuideModal {
  display: none !important;
}

#customerUpiPayModal.flex-modal,
#adminCustomerOrdersModal.flex-modal {
  display: flex !important;
}


/* ================= BILINGUAL LEGAL CENTER (#policyModal) & ZERO-FRICTION T&C CHECKBOXES ================= */
#policyModal {
  z-index: 60 !important;
}

.vm-policy-tab-btn {
  border-radius: 9999px !important;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  background: #f8fafc;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
}

.vm-policy-tab-btn:hover {
  border-color: #10b981;
  color: #065f46;
  background: #ecfdf5;
}

.vm-policy-tab-btn.active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  border-color: #047857 !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28);
}

.vm-lang-pill-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9999px !important;
  padding: 2px;
}

.vm-lang-pill-btn {
  border-radius: 9999px !important;
  font-size: 10px;
  font-weight: 800;
  padding: 3.5px 9px;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.2;
}

.vm-lang-pill-btn.active {
  background: #ffffff !important;
  color: #064e3b !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  font-weight: 900;
}

/* Custom Emerald Consent Checkbox & Row */
.vm-terms-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 14px;
  background: #f0fdf4;
  border: 1.5px solid #a7f3d0;
  transition: all 0.22s ease;
  text-align: left;
}

.vm-terms-consent-row.vm-terms-error-shake {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.vm-emerald-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  border-radius: 6px !important;
  border: 2px solid #059669;
  background-color: #ffffff;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  margin-top: 1px;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.15);
}

.vm-emerald-checkbox::before {
  content: "";
  width: 9px;
  height: 5.5px;
  border-left: 2.2px solid #ffffff;
  border-bottom: 2.2px solid #ffffff;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.14s ease-in-out;
  margin-top: -1.5px;
}

.vm-emerald-checkbox:checked {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: #047857;
}

.vm-emerald-checkbox:checked::before {
  transform: rotate(-45deg) scale(1);
}

.vm-emerald-checkbox:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.vm-policy-link {
  color: #047857;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.vm-policy-link:hover {
  color: #064e3b;
}

.vm-legal-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
}
