/**
 * Aarlika Commercial Batch Selector & Sample Cart Styles
 */

/* Batch Selector Grid */
.batch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin: 24px 0 32px 0;
}

.batch-card {
  background: #FFFFFF;
  border: 2px solid #E5E7EB;
  border-radius: 14px;
  padding: 22px;
  position: relative;
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.batch-card:hover {
  border-color: #D9770B;
  box-shadow: 0 8px 24px rgba(217, 119, 11, 0.08);
}

.batch-card.is-selected {
  border-color: #2D6A4F;
  background: #FBFDFB;
  box-shadow: 0 0 0 2px #2D6A4F, 0 8px 25px rgba(45, 106, 79, 0.1);
}

.batch-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  background: #D1FAE5;
  color: #065F46;
}

.batch-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
}

.batch-status-dot.bargur {
  background: #F59E0B;
}

.batch-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #1F2937;
  margin: 10px 0 6px 0;
}

.batch-stats-row {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.batch-stat-pill {
  background: #F3F4F6;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.batch-card.is-selected .batch-stat-pill {
  background: #E8F5E9;
  color: #1B4D3E;
}

/* Stock Location Filter Bar */
.stock-filter-bar {
  display: flex;
  gap: 10px;
  margin: 16px 0 24px 0;
  flex-wrap: wrap;
}

.stock-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid #E5E7EB;
  background: #FFFFFF;
  color: #4B5563;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stock-filter-btn:hover {
  border-color: #D9770B;
  color: #1F2937;
}

.stock-filter-btn.active {
  background: #2D6A4F;
  border-color: #2D6A4F;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.2);
}

.stock-filter-count {
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.78rem;
  padding: 2px 7px;
  border-radius: 999px;
}

.stock-filter-btn.active .stock-filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Dual QR Code Display Section */
.batch-dual-qr-section {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 14px;
  margin: 16px 0;
}

.batch-dual-qr-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6B7280;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.batch-dual-qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.qr-stage-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.qr-stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  width: fit-content;
}

.qr-stage-tag.bargur {
  background: #FEF3C7;
  color: #92400E;
}

.qr-stage-tag.houston {
  background: #E0F2FE;
  color: #0369A1;
}

.qr-stage-body {
  display: flex;
  gap: 10px;
  align-items: center;
}

.qr-stage-img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  border: 1px solid #E5E7EB;
  padding: 2px;
  background: #FFFFFF;
  flex-shrink: 0;
}

.qr-stage-meta {
  font-size: 11px;
  color: #4B5563;
  line-height: 1.35;
  flex: 1;
}

.qr-stage-meta strong {
  color: #1F2937;
  display: block;
  font-size: 11.5px;
  margin-bottom: 2px;
}

.qr-stage-link {
  font-size: 11px;
  font-weight: 600;
  color: #D9770B;
  text-decoration: underline;
  margin-top: 6px;
  display: inline-block;
}

.qr-stage-link:hover {
  color: #B45309;
}

.batch-select-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1.5px solid #2D6A4F;
  background: #FFFFFF;
  color: #2D6A4F;
  margin-top: 10px;
}

.batch-card.is-selected .batch-select-btn {
  background: #2D6A4F;
  color: #FFFFFF;
}


/* Sample Cart Summary Card */
.sample-cart-box {
  background: #FFFDF9;
  border: 1.5px solid #F59E0B;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 24px;
}

.sample-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #FDE68A;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.sample-cart-title {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1F2937;
}

.sample-cart-badge {
  background: #FEF3C7;
  color: #92400E;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.sample-cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 6px 0;
}

/* Slide-over Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cart-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
  z-index: 99999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer-head {
  padding: 20px 24px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFDF9;
}

.cart-drawer-head h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  margin: 0;
  color: #1F2937;
}

.cart-drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6B7280;
  padding: 4px 8px;
}

.cart-drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid #E5E7EB;
  background: #F9FAFB;
}

/* ==========================================================================
   Commercial Inventory Table & View Toggle Styles
   ========================================================================== */

.view-toggle-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.view-mode-btns {
  display: inline-flex;
  background: #F3F4F6;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid #E5E7EB;
}

.view-mode-btn {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #4B5563;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-mode-btn.active {
  background: #FFFFFF;
  color: #1F2937;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* AI Inventory Copilot Omnibar */
.ai-inventory-chat-box {
  background: #FFFDF9;
  border: 1.5px solid #F59E0B;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 22px;
}

.inventory-table-container {
  width: 100%;
  overflow-x: auto;
  background: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.02);
  margin-bottom: 24px;
}

.inventory-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  min-width: 680px;
}

.inventory-table th {
  background: #F9FAFB;
  padding: 13px 14px;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4B5563;
  border-bottom: 1.5px solid #E5E7EB;
  white-space: nowrap;
}

.inventory-table td {
  padding: 14px 14px;
  border-bottom: 1px solid #F3F4F6;
  vertical-align: middle;
  color: #1F2937;
}

.inventory-table th.col-cart,
.inventory-table td.col-cart {
  text-align: center;
  white-space: nowrap;
}

.inventory-table th.col-cart {
  background: #F9FAFB;
}

/* Compact Inline Table Cart Action */
.table-cart-action-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  vertical-align: middle;
}

.table-format-select {
  height: 32px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #1F2937;
  background: #FFFFFF;
  border: 1.5px solid #D1D5DB;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  max-width: 120px;
}

.table-format-select:focus {
  border-color: #2D6A4F;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

.table-cart-icon-btn {
  height: 32px;
  padding: 0 10px;
  background: #2D6A4F;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(45, 106, 79, 0.25);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.table-cart-icon-btn:hover {
  background: #1B4332;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(45, 106, 79, 0.35);
}

.table-cart-icon-btn:active {
  transform: translateY(0);
}

.table-cart-icon-btn.in-cart {
  background: #047857;
}

.table-cart-icon-btn .btn-cart-plus {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.table-in-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #047857;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid #A7F3D0;
  flex-shrink: 0;
}

.table-batch-pill {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #1F2937;
}

.table-qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  background: #FAFAFA;
  border: 1px solid #E5E7EB;
  transition: all 0.15s ease;
}

.table-qr-badge:hover {
  border-color: #D9770B;
  background: #FFFBEB;
}

.table-qr-img {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  border: 1px solid #D1D5DB;
  background: #FFFFFF;
}

.table-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.table-stock-badge.houston {
  background: #D1FAE5;
  color: #065F46;
}

.table-stock-badge.bargur {
  background: #FEF3C7;
  color: #92400E;
}

.table-select-btn {
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid #2D6A4F;
  background: #FFFFFF;
  color: #2D6A4F;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.table-select-btn:hover {
  background: #2D6A4F;
  color: #FFFFFF;
}

.inventory-table tr.is-selected .table-select-btn {
  background: #2D6A4F;
  color: #FFFFFF;
}

.table-add-cart-btn {
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  background: #2D6A4F;
  color: #FFFFFF;
  transition: all 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.table-add-cart-btn:hover {
  background: #1B4332;
  box-shadow: 0 3px 8px rgba(45, 106, 79, 0.3);
}

/* ==========================================================================
   B2B Authenticated Buyer Portal & View Decoupling
   ========================================================================== */

body.buyer-logged-in #public-marketing-view {
  display: none !important;
}

body.buyer-logged-in #public-footer {
  display: none !important;
}

body.buyer-logged-in #authenticated-buyer-view {
  display: block !important;
}

body.buyer-logged-in #buyer-footer {
  display: block !important;
}

/* Commercial Buyer Welcome Banner */
.buyer-portal-banner {
  background: #FFFFFF;
  border-bottom: 1.5px solid #E5E7EB;
  padding: 28px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.buyer-banner-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.buyer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #D1FAE5;
  color: #065F46;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.buyer-banner-title {
  font-family: 'Fraunces', serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #1F2937;
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.buyer-banner-sub {
  font-size: 0.95rem;
  color: #4B5563;
  margin: 0 0 16px 0;
  max-width: 650px;
  line-height: 1.5;
}

.buyer-badges-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.buyer-chip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.buyer-chip-badge.highlight {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #92400E;
}

.buyer-actions-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* My Account Drawer Styles */
.account-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(3px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.account-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.account-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 960px;
  background: #FFFFFF;
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.25);
  z-index: 99999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.account-drawer.is-open {
  transform: translateX(0);
}

.account-drawer-head {
  padding: 20px 28px;
  background: #FFFDF9;
  border-bottom: 1.5px solid #F3E8D2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.account-drawer-title {
  font-family: 'Fraunces', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #1F2937;
  margin: 0 0 2px 0;
}

.account-drawer-sub {
  font-size: 0.85rem;
  color: #6B7280;
  margin: 0;
}

.account-drawer-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #9CA3AF;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease;
}

.account-drawer-close:hover {
  color: #1F2937;
}

/* Split-Panel Account Console Layout */
.account-split-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100% - 75px);
}

.account-left-panel {
  width: 270px;
  min-width: 260px;
  background: #F9FAFB;
  border-right: 1px solid #E5E7EB;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  flex-shrink: 0;
}

.account-user-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.account-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #4B5563;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 4px;
}

.account-nav-btn:hover {
  background: #EEF2F6;
  color: #1F2937;
}

.account-nav-btn.active {
  background: #E8F5E9;
  color: #1B4D3E;
  font-weight: 700;
  box-shadow: inset 3.5px 0 0 #2D6A4F;
}

.account-right-panel {
  flex: 1;
  padding: 26px 30px;
  overflow-y: auto;
  background: #FFFFFF;
}

.account-tab-pane {
  display: none;
}

.account-tab-pane.active {
  display: block;
}

.account-form-section {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.account-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1F2937;
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   E-Commerce Faceted Catalog Layout & Filter Sidebar
   ========================================================================== */

.catalog-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 20px;
}

.catalog-filter-sidebar {
  width: 270px;
  min-width: 260px;
  flex-shrink: 0;
  background: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  border-radius: 14px;
  padding: 20px;
  position: sticky;
  top: 80px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.catalog-main-content {
  flex: 1;
  min-width: 0;
}

.filter-sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #F3F4F6;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.filter-sidebar-head h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1F2937;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-reset-link {
  font-size: 11.5px;
  font-weight: 600;
  color: #D9770B;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.filter-reset-link:hover {
  text-decoration: underline;
}

.filter-group {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F3F4F6;
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6B7280;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  color: #374151;
}

.filter-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.filter-checkbox-item input {
  accent-color: #2D6A4F;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.catalog-sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  background: #FFFFFF;
  padding: 12px 18px;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
}

/* ==========================================================================
   Full Multi-Item Commercial Checkout Drawer Styles
   ========================================================================== */

.checkout-drawer {
  width: 100%;
  max-width: 580px;
}

.cart-item-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cart-item-card.complimentary {
  background: #FBFDFB;
  border-color: #BBF7D0;
}

.cart-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #D1D5DB;
  border-radius: 6px;
  overflow: hidden;
  background: #FFFFFF;
}

.cart-qty-stepper button {
  border: none;
  background: #F3F4F6;
  width: 28px;
  height: 28px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  transition: background 0.15s;
}

.cart-qty-stepper button:hover {
  background: #E5E7EB;
}

.cart-qty-val {
  width: 32px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1F2937;
}

.promo-container {
  background: #FFFDF9;
  border: 1.5px dashed #F59E0B;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 18px 0;
}

.promo-input-group {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.promo-badge-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #D1FAE5;
  color: #065F46;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 8px;
}

.checkout-summary-table {
  width: 100%;
  font-size: 0.9rem;
  margin-top: 14px;
  border-collapse: collapse;
}

.checkout-summary-table td {
  padding: 6px 0;
  color: #4B5563;
}

.checkout-summary-table tr.total-row td {
  border-top: 1.5px dashed #E5E7EB;
  padding-top: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1F2937;
}

/* Responsive console collapse on mobile */
@media (max-width: 860px) {
  .account-drawer {
    max-width: 100%;
  }
  .account-split-body {
    flex-direction: column;
    height: auto;
    overflow-y: auto;
  }
  .account-left-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #E5E7EB;
  }
  .catalog-layout {
    flex-direction: column;
  }
  .catalog-filter-sidebar {
    width: 100%;
    position: static;
  }
}

/* ==========================================================================
   AI-First Top Omnisearch Bar & Amazon-Style Promo Ribbon
   ========================================================================== */

.portal-top-ai-container {
  background: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(45, 106, 79, 0.05);
  position: relative;
}

.portal-top-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-top-ai-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.portal-top-ai-input {
  flex: 1;
  min-width: 280px;
  padding: 12px 20px;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1.5px solid #D1D5DB;
  background: #F9FAFB;
  transition: all 0.2s ease;
  font-family: inherit;
}

.portal-top-ai-input:focus {
  outline: none;
  border-color: #1F2937;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.12);
}

.portal-top-ai-btn {
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 999px;
  background: #1F2937;
  color: #FFFDF9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  box-shadow: 0 3px 10px rgba(31, 41, 55, 0.25);
}

.portal-top-ai-btn:hover {
  background: #111827;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(17, 24, 39, 0.35);
}

/* Amazon-Style Promotional Announcement Banner */
.portal-promo-banner {
  background: linear-gradient(90deg, #102A1E 0%, #1B4D3E 60%, #245A45 100%);
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 20px;
  color: #F9FAFB;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-promo-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  line-height: 1.45;
}

.portal-promo-tag {
  background: #FEF3C7;
  color: #92400E;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.portal-promo-link {
  color: #FCD34D;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
  margin-left: 6px;
  transition: color 0.15s;
}

.portal-promo-link:hover {
  color: #FDE68A;
}

.portal-promo-close {
  background: none;
  border: none;
  color: #9CA3AF;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}

.portal-promo-close:hover {
  color: #FFFFFF;
}

/* Portal Mode Switcher Toolbar */
.portal-mode-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid #E5E7EB;
  flex-wrap: wrap;
  gap: 12px;
}

.portal-view-switcher {
  display: inline-flex;
  background: #F3F4F6;
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
}

.portal-view-btn {
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #4B5563;
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portal-view-btn:hover {
  color: #1F2937;
}

.portal-view-btn.active {
  background: #FFFFFF;
  color: #1F2937;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* In-Page Two-Panel Account Console (Zero Popups) */
.account-inpage-container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 10px;
}

.account-inpage-left-rail {
  width: 280px;
  min-width: 260px;
  flex-shrink: 0;
  background: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  position: sticky;
  top: 80px;
}

.account-inpage-right-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 860px) {
  .account-inpage-container {
    flex-direction: column;
  }
  .account-inpage-left-rail {
    width: 100%;
    position: static;
  }
}

/* Authenticated Minimal B2B Footer */
.buyer-b2b-footer {
  background: #111827;
  color: #9CA3AF;
  padding: 36px 0 24px 0;
  font-size: 0.88rem;
  border-top: 2px solid #2D6A4F;
  display: none;
}

.buyer-b2b-footer a {
  color: #F59E0B;
  text-decoration: none;
}

/* ==========================================================================
   In-Page Two-Panel Checkout View (Zero Slide-Over Modals)
   ========================================================================== */

.checkout-inpage-container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 10px;
}

.checkout-inpage-left-rail {
  width: 340px;
  min-width: 300px;
  flex-shrink: 0;
  background: #FFFFFF;
  border: 1.5px solid #E5E7EB;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  position: sticky;
  top: 80px;
}

.checkout-inpage-right-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 860px) {
  .checkout-inpage-container {
    flex-direction: column;
  }
  .checkout-inpage-left-rail {
    width: 100%;
    position: static;
  }
}



/* Section Commercial CTAs (Sections 2 to 8) */
.section-commercial-cta-card {
  margin-top: 36px;
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 50%, #FFFDF9 100%);
  border: 1.5px solid #A7F3D0;
  border-radius: 16px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 4px 18px rgba(45, 106, 79, 0.05);
}

.section-commercial-cta-info {
  flex: 1;
  min-width: 280px;
}

.section-commercial-cta-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #065F46;
  background: #D1FAE5;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.section-commercial-cta-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1F2937;
  margin: 0 0 4px 0;
}

.section-commercial-cta-desc {
  font-size: 0.92rem;
  color: #4B5563;
  margin: 0;
  line-height: 1.5;
}

.section-commercial-cta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .section-commercial-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Simple checkout progress strip */
.checkout-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
}

.checkout-progress li {
  padding: 2px 10px;
  border-radius: 999px;
  background: #F3F4F6;
  color: #6B7280;
}

.checkout-progress li.done {
  background: #D1FAE5;
  color: #065F46;
}

.checkout-progress li.active {
  background: #2D6A4F;
  color: #FFFFFF;
}

#portal-auth-error {
  max-width: 1120px;
  margin: 12px auto;
  padding: 10px 14px;
  border-radius: 8px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  font-size: 0.88rem;
}
