/* ==========================================================================
   Luminous Wholesale - Mobile Display UI CSS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Requested Color Theme Tokens (#ff4082 buttons, #FF40B1 text) */
  --color-canvas-bg: #fff0f7;
  --color-phone-bg: #ffffff;
  
  /* Primary Button Color (#ff4082) */
  --color-brown-primary: #ff4082;
  --color-brown-hover: #e62b6f;
  --color-brown-active: #d01b5f;
  --color-brown-light: #fff0f8;
  
  /* CTA Button Color (#ff4082) */
  --color-green-cta: #ff4082;
  --color-green-cta-hover: #e62b6f;
  
  /* Accent Text Color (#FF40B1) */
  --color-text-accent: #FF40B1;
  
  /* Badge Colors */
  --badge-bg: #fff0f8;
  --badge-border: #ffd0e8;
  --badge-text: #FF40B1;
  
  /* Icon Background Colors */
  --icon-gift-bg: #fff0f8;
  --icon-gift-color: #FF40B1;
  
  --icon-delivery-bg: #ecfdf5;
  --icon-delivery-color: #65a30d;
  
  --icon-cashback-bg: #fff0f8;
  --icon-cashback-color: #FF40B1;
  
  /* Card Styling */
  --card-bg: #ffffff;
  --card-border: #ffd0e8;
  --card-shadow: 0 4px 16px rgba(255, 64, 177, 0.05);
  --card-radius: 18px;
  
  /* Text Colors */
  --text-main: #1c1917;
  --text-sub: #666059;
  --text-muted: #948e85;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background: radial-gradient(circle at 50% 30%, #fff0f7 0%, #fde2f0 55%, #fbc4e2 100%);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  color: var(--text-main);
  overflow-x: hidden;
}

/* ==========================================================================
   Desktop Canvas & Mobile Frame
   ========================================================================== */

.desktop-canvas {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Top Canvas Window Bar */
.canvas-window-header {
  display: none !important;
}

/* The Mobile Viewport Container */
.mobile-viewport-container {
  width: 390px;
  max-width: 100%;
  height: 780px;
  min-height: 680px;
  max-height: calc(100vh - 40px);
  background: var(--color-phone-bg);
  border-radius: 32px;
  box-shadow: 
    0 20px 45px -10px rgba(255, 64, 177, 0.18),
    0 8px 20px -5px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.9),
    0 0 0 10px #ffffff;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

/* Internal Mobile Viewport Screen */
.mobile-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: var(--color-phone-bg);
}

/* Scrollable Content Body */
.screen-content {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
}

/* Custom Scrollbar inside Phone */
.screen-content::-webkit-scrollbar {
  width: 4px;
}
.screen-content::-webkit-scrollbar-thumb {
  background: rgba(255, 64, 177, 0.2);
  border-radius: 4px;
}

/* ==========================================================================
   Hero Section & Header Banner
   ========================================================================== */

.hero-header-banner {
  position: relative;
  width: 100%;
  padding: 24px 20px 32px 20px;
  background: linear-gradient(180deg, #fff0f8 0%, #fde2f0 70%, var(--color-phone-bg) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

/* Subtle Soft Glow Effect */
.hero-header-banner::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(253, 226, 240, 0.4) 50%, transparent 75%);
  pointer-events: none;
  border-radius: 50%;
}

.hero-header-banner::after {
  display: none;
}

/* Top App Status / Nav Row */
.app-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  z-index: 2;
}

/* Retailer / Bulk Order Portal Badge */
.retailer-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff0f8;
  border: 1px solid #ffd0e8;
  color: #FF40B1;
  padding: 8px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(255, 64, 177, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex: 1;
  min-width: 0;
}

.badge-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.badge-main-title {
  font-size: 0.875rem;
  font-weight: 800;
  color: #FF40B1;
  letter-spacing: -0.2px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.badge-sub-tagline {
  font-size: 0.68rem;
  font-weight: 600;
  color: #666059;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.retailer-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 64, 177, 0.15);
}

.retailer-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #FF40B1;
  color: #fff;
  border-radius: 50%;
  font-size: 0.6875rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Feature Cards List Section
   ========================================================================== */

.cards-container {
  padding: 0 16px;
  margin-top: -12px;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Single Feature Card */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 20px 18px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: #e5e3d9;
}

.feature-card:active {
  transform: scale(0.985);
}

/* Icon Container */
.card-icon-wrapper {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.feature-card:hover .card-icon-wrapper {
  transform: scale(1.08);
}

/* Specific Card Icon Variants */
.card-icon-gift {
  background-color: var(--icon-gift-bg);
  color: var(--icon-gift-color);
}

.card-icon-delivery {
  background-color: var(--icon-delivery-bg);
  color: var(--icon-delivery-color);
}

.card-icon-cashback {
  background-color: var(--icon-cashback-bg);
  color: var(--icon-cashback-color);
}

/* Card Content Area */
.card-body {
  flex: 1;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 5px;
  line-height: 1.25;
}

.card-description {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-sub);
  line-height: 1.45;
}

/* ==========================================================================
   Bottom Action CTA Bar (matching ss1)
   ========================================================================== */

.sticky-bottom-bar {
  background: #ffffff;
  border-top: 1px solid var(--card-border);
  padding: 16px 20px;
  position: relative;
  z-index: 10;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}

.btn-start-ordering {
  width: 100%;
  background: var(--color-brown-primary);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 16px 24px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(115, 84, 50, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-start-ordering:hover {
  background: var(--color-brown-hover);
  box-shadow: 0 6px 18px rgba(115, 84, 50, 0.45);
  transform: translateY(-1px);
}

.btn-start-ordering:active {
  background: var(--color-brown-active);
  transform: scale(0.98);
}

.btn-arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.btn-start-ordering:hover .btn-arrow-icon {
  transform: translateX(4px);
}

/* Ripple effect on click */
.btn-start-ordering .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background-color: rgba(255, 255, 255, 0.35);
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ==========================================================================
   Multi-Screen Views & Buyer Details Form Styling
   ========================================================================== */

.app-view {
  display: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.22s ease-in-out;
}

.app-view.active-view {
  display: flex;
  opacity: 1;
}

/* Nav back header */
.view-nav-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 8px 20px;
}

.btn-back-link {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1c1917;
  transition: background 0.2s ease;
  margin-left: -6px;
}

.btn-back-link:hover {
  background: #eae9e5;
}

/* Page Title Block matching screenshot */
.page-title-block {
  padding: 8px 20px 20px 20px;
}

.page-main-heading {
  font-size: 26px;
  font-weight: 800;
  color: #1c1917;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.page-sub-heading {
  font-size: 13.5px;
  font-weight: 400;
  color: #666059;
  line-height: 1.45;
}

/* Form Card Container matching screenshot */
.form-card-container {
  margin: 0 16px 20px 16px;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0efe9;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: #44403c;
}

.input-with-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.form-input {
  width: 100%;
  background: #f6f5f3;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 14px 16px;
  font-family: var(--font-family);
  font-size: 14.5px;
  font-weight: 500;
  color: #1c1917;
  outline: none;
  transition: all 0.2s ease;
}

.form-input::placeholder {
  color: #c4beba;
  font-weight: 400;
}

.form-input:focus {
  background: #ffffff;
  border-color: var(--color-brown-primary);
  box-shadow: 0 0 0 3px rgba(115, 84, 50, 0.12);
}

.icon-padded-left {
  padding-left: 46px;
}

.icon-padded-country-left {
  padding-left: 125px;
}

.icon-padded-right {
  padding-right: 44px;
}

.country-code-select {
  position: absolute;
  left: 40px;
  background: transparent;
  border: none;
  font-family: var(--font-family);
  font-size: 13.5px;
  font-weight: 700;
  color: #44403c;
  outline: none;
  cursor: pointer;
  z-index: 2;
  padding: 4px 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 14px;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2210%22%20height%3D%2210%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23795734%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right center;
}

.field-left-icon {
  position: absolute;
  left: 14px;
  color: #948e85;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.field-right-check {
  position: absolute;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff4082;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ==========================================================================
   Cart Review Screen Layout (Fixed Top/Bottom & Scrollable Cart Items)
   ========================================================================== */

#viewCatalog {
  display: none;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}

#viewCatalog.active-view {
  display: flex;
}

.cart-fixed-top {
  flex-shrink: 0;
  background: var(--color-phone-bg);
  z-index: 10;
}

.cart-items-scroll-area {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
}

.cart-fixed-bottom {
  flex-shrink: 0;
  background: var(--color-phone-bg);
  z-index: 10;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.cart-screen-content {
  padding: 0;
}

.cart-nav-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #ffffff;
  border-bottom: 1px solid #f0efe9;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #faf5ef;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee2d4;
}

.cart-screen-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1c1917;
  letter-spacing: -0.3px;
}

/* Buyer Details Summary Card */
.buyer-summary-card {
  margin: 0.625rem 0.875rem 0.5rem 0.875rem;
  background: #ffffff;
  border-radius: 0.875rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid #ffd0e8;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  box-shadow: 0 0.125rem 0.625rem rgba(255, 64, 177, 0.03);
}

.buyer-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #fff0f8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.buyer-text-info {
  flex: 1;
}

.buyer-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1c1917;
}

.buyer-contact-line {
  font-size: 0.71875rem;
  color: #666059;
  font-weight: 500;
  margin-top: 0.0625rem;
}

.btn-edit-buyer {
  background: none;
  border: none;
  font-size: 0.84375rem;
  font-weight: 700;
  color: #FF40B1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}

.btn-edit-buyer:hover {
  background: #fff0f8;
}

/* Cart Product Items Container */
.cart-items-container {
  padding: 0 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-product-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid #ffd0e8;
  display: flex;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  position: relative;
  box-shadow: 0 0.125rem 0.375rem rgba(255, 64, 177, 0.03);
  flex-wrap: nowrap !important;
}

.mix-match-badge {
  display: none !important;
}

/* Locked Link Badge for Item 4 */
.locked-link-badge {
  position: absolute;
  top: -0.55rem;
  left: 0.625rem;
  background: #fff0f8;
  color: #FF40B1;
  font-size: 0.5625rem;
  font-weight: 800;
  padding: 0.1rem 0.4375rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid #ffd0e8;
  box-shadow: 0 0.0625rem 0.25rem rgba(255, 64, 177, 0.08);
  z-index: 5;
  white-space: nowrap;
}

.qty-ctrl-box.locked-ctrl {
  background: #f5f5f4;
  border-color: #e7e5e4;
  opacity: 0.85;
}

.qty-ctrl-box.locked-ctrl .btn-qty {
  color: #a8a29e;
  cursor: not-allowed;
}

.qty-input-box.locked-input {
  cursor: not-allowed;
  color: #78716c;
}

.product-img-box {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.5rem;
  background: #fff0f8;
  border: 1px solid #ffd0e8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-img-box svg {
  color: #FF40B1;
}

.product-details-block {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.0625rem;
}

.product-title-text {
  font-size: 0.78125rem;
  font-weight: 700;
  color: #1c1917;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
  margin-top: 0.0625rem;
}

.discount-pill-tag {
  background: #fff0f8;
  color: #ff4082;
  font-size: 0.5625rem;
  font-weight: 800;
  padding: 0.0625rem 0.25rem;
  border-radius: 0.25rem;
  border: 1px solid #ffd0e8;
  white-space: nowrap;
}

.mrp-del-text {
  font-size: 0.625rem;
  color: #999999;
  text-decoration: line-through;
  white-space: nowrap;
}

.selling-price-text {
  font-size: 0.875rem;
  font-weight: 800;
  color: #1c1917;
}

/* Horizontal Quantity Controller with Manual Editable Input */
.qty-ctrl-box {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff0f8;
  border: 1px solid #ffd0e8;
  border-radius: 0.5rem;
  padding: 0.0625rem 0.125rem;
  height: 1.875rem;
  flex-shrink: 0;
  width: auto;
  align-self: center;
}

.btn-qty {
  background: none;
  border: none;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 0.25rem;
  font-size: 0.84375rem;
  font-weight: 700;
  color: #ff4082;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.btn-qty:hover {
  background: #ffe5f3;
}

.btn-qty:active {
  background: #ffd0e8;
}

.qty-input-box {
  width: 2.25rem;
  height: 1.375rem;
  border: none;
  background: transparent;
  text-align: center;
  font-family: var(--font-family);
  font-size: 0.8125rem;
  font-weight: 800;
  color: #1c1917;
  outline: none;
  padding: 0 0.0625rem;
  -moz-appearance: textfield;
}

.btn-qty:hover {
  background: #ffe5f3;
}

.btn-qty:active {
  background: #ffd0e8;
}

.qty-input-box {
  width: 2.75rem;
  height: 1.625rem;
  border: none;
  background: transparent;
  text-align: center;
  font-family: var(--font-family);
  font-size: 0.84375rem;
  font-weight: 800;
  color: #1c1917;
  outline: none;
  padding: 0 0.125rem;
  -moz-appearance: textfield;
}

.qty-input-box::-webkit-outer-spin-button,
.qty-input-box::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Lazy Load Indicator */
.lazy-load-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  font-size: 0.78125rem;
  color: #FF40B1;
  font-weight: 600;
}

.spinner-dot {
  width: 0.875rem;
  height: 0.875rem;
  border: 0.125rem solid #ffd0e8;
  border-top-color: #ff4082;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* Stuck Cashback Tier Card in cart-fixed-bottom */
.cashback-tier-card {
  margin: 0.375rem 0.875rem 0.25rem 0.875rem;
  background: linear-gradient(135deg, #fff0f8 0%, #ffe5f3 100%);
  border-radius: 0.875rem;
  padding: 0.625rem 0.875rem;
  color: #FF40B1;
  box-shadow: 0 0.125rem 0.625rem rgba(255, 64, 177, 0.05);
  border: 1px solid #ffd0e8;
}

.tier-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.375rem;
}

.tier-label {
  font-size: 0.59375rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #c21870;
}

.tier-value {
  font-size: 1.0625rem;
  font-weight: 800;
  color: #FF40B1;
}

.tier-next-label {
  font-size: 0.59375rem;
  font-weight: 800;
  text-align: right;
  color: #c21870;
}

.tier-next-val {
  font-size: 0.8125rem;
  font-weight: 800;
  text-align: right;
  color: #FF40B1;
}

.tier-progress-track {
  height: 0.375rem;
  background: rgba(255, 208, 232, 0.6);
  border-radius: 0.1875rem;
  overflow: hidden;
  margin-bottom: 0.375rem;
}

.tier-progress-fill {
  height: 100%;
  background: #ff4082;
  border-radius: 0.1875rem;
  transition: width 0.4s ease;
}

.tier-milestones-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.59375rem;
  font-weight: 600;
  color: #c21870;
}

/* Order Totals Card */
.order-totals-card {
  margin: 0.25rem 0.875rem 0.375rem 0.875rem;
  background: #fff8fc;
  border-radius: 0.875rem;
  padding: 0.625rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  border: 1px solid #ffd0e8;
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.84375rem;
  font-weight: 600;
  color: #44403c;
}

.total-row.free-gifts-row {
  color: #FF40B1;
  font-weight: 700;
}

.total-row.discount-row {
  color: #ff4082;
}

.total-row.cashback-row {
  color: #059669;
  font-weight: 700;
  align-items: center;
}

.cashback-label-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.0625rem;
}

.cashback-note-tag {
  font-size: 0.625rem;
  font-weight: 600;
  color: #059669;
  opacity: 0.85;
}

.total-row.net-value-row {
  font-size: 1.03125rem;
  font-weight: 800;
  color: #1c1917;
  padding-top: 0.5rem;
  border-top: 1px dashed #ffd0e8;
  margin-top: 0.0625rem;
}

/* Custom #ff4082 CTA Button */
#btnConfirmFinalOrder {
  background: var(--color-green-cta);
  box-shadow: 0 4px 14px rgba(255, 64, 130, 0.35);
}

#btnConfirmFinalOrder:hover {
  background: var(--color-green-cta-hover);
  box-shadow: 0 6px 18px rgba(255, 64, 130, 0.45);
}


.drawer-drag-handle {
  width: 40px;
  height: 4px;
  background: #e4e4e7;
  border-radius: 4px;
  align-self: center;
  margin-bottom: 4px;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.btn-close-drawer {
  background: #f4f4f5;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #71717a;
  font-size: 16px;
  transition: background 0.2s;
}

.btn-close-drawer:hover {
  background: #e4e4e7;
}

/* Modal Content Modules */
.product-item-card {
  border: 1px solid #f0efe9;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fafafa;
}

.product-img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  background: #e4e4e7;
}

.product-info {
  flex: 1;
}

.product-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}

.product-price {
  font-size: 13px;
  color: var(--color-brown-primary);
  font-weight: 600;
}

.product-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  padding: 4px 8px;
}

.btn-qty {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-main);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-val {
  font-size: 13px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

/* General Modal Info Box */
.info-highlight-box {
  background: #fdf8f2;
  border: 1px solid #f5e4d2;
  border-radius: 12px;
  padding: 14px;
  color: #7c542c;
  font-size: 13px;
  line-height: 1.5;
}

/* Pincode Tracker Input */
.pincode-form {
  display: flex;
  gap: 8px;
}

.input-pincode {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #d4d4d8;
  border-radius: 10px;
  font-family: var(--font-family);
  font-size: 14px;
  outline: none;
}

.input-pincode:focus {
  border-color: var(--color-brown-primary);
}

.btn-check-pin {
  background: var(--color-brown-primary);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
}

/* Volume Slider */
.slider-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.slider-val-display {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-brown-primary);
  text-align: center;
}

/* Toast Notification */
.toast-notification {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #18181b;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 200;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Screen 4: Order Summary Screen Styles
   ========================================================================== */
.summary-screen-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.summary-section-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-card);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.summary-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border-subtle);
  margin-bottom: 0.75rem;
}

.summary-card-icon {
  font-size: 1.125rem;
}

.summary-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.summary-info-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84375rem;
}

.info-label {
  color: var(--color-text-muted);
}

.info-val {
  font-weight: 600;
  color: var(--color-text-main);
}

.summary-totals-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.875rem;
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-total-row.free-gifts-row {
  color: #FF40B1;
}

.summary-total-row.discount-row {
  color: #ff4082;
}

.summary-total-row.cashback-row {
  color: #059669;
}

.summary-total-row.net-billing-row {
  font-size: 1.0625rem;
  font-weight: 800;
  color: #1c1917;
  padding-top: 0.625rem;
  border-top: 1px dashed #ffd0e8;
  margin-top: 0.25rem;
}

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

.font-extra-bold {
  font-weight: 800;
}

.summary-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 14rem;
  overflow-y: auto;
}

.summary-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.625rem;
  background: #fdf2f8;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
}

.sum-item-name {
  font-weight: 600;
  color: var(--color-text-main);
  max-width: 65%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sum-item-qty {
  font-weight: 700;
  color: var(--color-brand-primary);
}

/* ==========================================================================
   Screen 5: Verified Order Success Screen
   ========================================================================== */
.success-screen-content {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}

.success-card {
  background: #ffffff;
  border: 1px solid #ffd0e8;
  border-radius: 1.25rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(255, 64, 177, 0.08);
  width: 100%;
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.verified-green-check-wrapper {
  margin-bottom: 1.25rem;
}

.green-circle-pulse {
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
  animation: pulseSuccess 2s infinite ease-in-out;
}

@keyframes pulseSuccess {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.success-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #064e3b;
  margin-bottom: 0.375rem;
}

.success-subtext {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.order-ref-pill {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.375rem;
  align-items: center;
}

.ref-label {
  color: #047857;
  font-weight: 600;
}

.ref-id {
  color: #065f46;
  font-weight: 800;
}

.success-details-box {
  background: #fcf5f9;
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.success-row {
  display: flex;
  justify-content: space-between;
  color: var(--color-text-main);
}

/* ==========================================================================
   Confirmation Popup Modal Styles
   ========================================================================== */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: fadeInModal 0.25s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 20rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: scaleInModal 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleInModal {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-icon-wrapper {
  width: 3.25rem;
  height: 3.25rem;
  background: #fdf2f8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
}

.modal-title {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 0.375rem;
}

.modal-text {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.modal-btn-group {
  display: flex;
  gap: 0.625rem;
  width: 100%;
}

.btn-modal-cancel {
  flex: 1;
  padding: 0.6875rem 0;
  border-radius: 0.75rem;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-cancel:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-modal-confirm {
  flex: 1.4;
  padding: 0.6875rem 0;
  border-radius: 0.75rem;
  border: none;
  background: var(--color-green-cta);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 64, 130, 0.3);
  transition: all 0.2s ease;
}

.btn-modal-confirm:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 16px rgba(255, 64, 130, 0.4);
}

/* Past Orders Button in Top Nav */
.btn-past-orders-nav {
  background: #ffffff;
  border: 1px solid #ffd0e8;
  color: #FF40B1;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.45rem 0.65rem;
  border-radius: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(255, 64, 177, 0.1);
}

.btn-past-orders-nav:hover {
  background: #FF40B1;
  color: #ffffff;
  border-color: #FF40B1;
  transform: translateY(-1px);
}

/* Success Screen Double Button Sticky Bar */
.sticky-bottom-bar.success-btn-group {
  display: flex;
  gap: 0.5rem;
}

.btn-secondary-outline {
  flex: 1;
  background: #ffffff;
  border: 1.5px solid #FF40B1;
  color: #FF40B1;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 0.75rem;
  padding: 0.6875rem 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-outline:hover {
  background: #fff0f7;
}

/* Read-Only Past Order Details Modal */
.order-details-modal-card {
  max-width: 22rem;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.25rem;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
}

.btn-close-modal:hover {
  color: #0f172a;
}

.readonly-badge {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  margin: 0.625rem 0;
  width: 100%;
  text-align: center;
}

.modal-scroll-content {
  overflow-y: auto;
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-right: 0.25rem;
  margin-bottom: 0.75rem;
}

.past-order-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.78125rem;
}

.past-order-id {
  font-weight: 800;
  color: #0f172a;
}

.past-order-date {
  color: #64748b;
}

.past-section-box {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 0.625rem;
  padding: 0.625rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.8125rem;
  text-align: left;
}

.past-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.past-info-line {
  display: flex;
  justify-content: space-between;
  color: #334155;
}

.past-info-line.free-gift-color {
  color: #FF40B1;
}

.past-info-line.discount-color {
  color: #ff4082;
}

.past-info-line.cashback-color {
  color: #059669;
}

.past-info-line.net-color {
  font-weight: 800;
  color: #0f172a;
  padding-top: 0.375rem;
  border-top: 1px dashed #e2e8f0;
}

.past-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.past-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fcf5f9;
  padding: 0.375rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
}

.past-item-name {
  font-weight: 600;
  color: #1e293b;
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.past-item-right-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.past-item-mrp {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  background: #ffffff;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.past-item-qty {
  font-weight: 700;
  color: #FF40B1;
  white-space: nowrap;
}

.btn-full-width-close {
  width: 100%;
  padding: 0.625rem 0;
  background: var(--color-green-cta);
  color: #ffffff;
  border: none;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

/* Blue Notice Box on Order Confirmation Success Screen */
.blue-notice-info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  padding: 0.75rem 0.875rem;
  margin-top: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  text-align: left;
}

.notice-icon-part {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-top: 0.0625rem;
}

.notice-text-part {
  font-size: 0.75rem;
  line-height: 1.45;
  color: #1e40af;
  font-weight: 600;
}

@media (max-width: 500px) {
  body {
    padding: 0;
    background: var(--color-phone-bg);
  }

  .desktop-canvas {
    height: 100vh;
    height: 100dvh;
  }

  .canvas-window-header {
    display: none;
  }

  .mobile-viewport-container {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  .mobile-screen {
    height: 100%;
  }

  .screen-content {
    flex: 1;
  }
}
