/* Configurator Layout */
.configurator-page {
  min-height: 100vh;
  width: 100%;
}

.configurator-page > .breadcrumbs {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 40px 0;
}

.configurator {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 40px;
}

/* Sticky Summary Bar - Mobile only, hidden by default */
.sticky-summary-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  z-index: 1001;
  top: 0;
}

@media (max-width: 1024px) {
  .configurator-page > .breadcrumbs {
    display: none;
  }

  .sticky-summary-bar.visible {
    display: block;
  }
}

.sticky-summary-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sticky-summary-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.sticky-summary-image {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 6px;
  padding: 4px;
  flex-shrink: 0;
}

.sticky-summary-name {
  font-weight: 700;
  color: #0a0a0a;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-summary-price {
  font-weight: 700;
  color: #0f766e;
  font-size: 16px;
  white-space: nowrap;
  margin-left: auto;
}

.sticky-summary-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.sticky-summary-toggle:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #1e293b;
}

/* Mobile sticky bar */
@media (max-width: 480px) {
  .sticky-summary-content {
    padding: 10px 16px;
  }

  .sticky-summary-info {
    gap: 10px;
  }

  .sticky-summary-image {
    width: 38px;
    height: 38px;
  }

  .sticky-summary-name {
    font-size: 13px;
    max-width: 120px;
  }

  .sticky-summary-price {
    font-size: 14px;
  }

  .sticky-summary-toggle {
    width: 32px;
    height: 32px;
  }
}

.configurator-header-old {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 24px;
}

.configurator-header h1 {
  font-size: 42px;
  font-weight: 800;
  color: #0a0a0a;
  margin-bottom: 0;
  letter-spacing: -1px;
}

/* Meter Info Header */
.meter-info-header {
  grid-column: 1 / -1;
  margin-bottom: 24px;
}

.meter-info-content {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 16px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.meter-info-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  background: #f8fafc;
  border-radius: 4px;
  padding: 8px;
}

.meter-info-details {
  flex: 1;
  min-width: 0;
}

.meter-info-details h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0 0 6px 0;
}

.meter-info-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.meter-case,
.meter-family {
  font-size: 12px;
  padding: 3px 10px;
  background: #f1f5f9;
  border-radius: 3px;
  color: #64748b;
  font-weight: 600;
}

.meter-price {
  font-size: 14px;
  font-weight: 700;
  color: #0a0a0a;
}

.meter-description {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Inline Progress Bar Container */
.progress-bar-container {
  grid-column: 1 / -1;
  margin-bottom: 32px;
}

/* Progress Bar - Inline Flow */
.progress-bar {
  display: flex;
  justify-content: flex-start;
  gap: 0;
  background: white;
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  position: relative;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  flex: 1;
  position: relative;
  transition: all 0.2s;
}

.progress-step::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 30px;
  background: #e2e8f0;
}

.progress-step:last-child::after {
  display: none;
}

.progress-step.completed {
  opacity: 0.7;
}

.progress-step.active {
  background: #eff6ff;
  border-radius: 3px;
  opacity: 1;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #94a3b8;
  transition: all 0.2s;
  flex-shrink: 0;
}

.progress-step.active .step-number {
  background: #1e40af;
  color: white;
}

.progress-step.completed .step-number {
  background: #10b981;
  color: white;
}

.step-label {
  font-weight: 600;
  font-size: 14px;
  color: #94a3b8;
  white-space: nowrap;
}

.progress-step.active .step-label {
  color: #1e40af;
}

.progress-step.completed .step-label {
  color: #10b981;
}

/* Floating Progress Bar */
.floating-progress-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 1000;
  background: white;
  border-radius: 6px;
  padding: 12px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease-out;
  max-width: calc(100vw - 40px);
}

.floating-progress-bar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.floating-progress-content {
  display: flex;
  align-items: center;
  gap: 24px;
}

.floating-steps {
  display: flex;
  gap: 8px;
  align-items: center;
}

.floating-step {
  position: relative;
}

.floating-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: all 0.2s;
}

.floating-step.active .floating-step-dot {
  background: #1e40af;
  width: 12px;
  height: 12px;
}

.floating-step.completed .floating-step-dot {
  background: #10b981;
}

.floating-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 24px;
  border-left: 1px solid #e2e8f0;
}

.floating-total {
  font-size: 16px;
  font-weight: 700;
  color: #1e40af;
}

/* Configurator Body */
.configurator-body {
  background: white;
  border-radius: 4px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}

.step-content {
  margin-bottom: 40px;
}

.step-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid #e2e8f0;
}

.step-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.step-header p {
  font-size: 16px;
  color: #64748b;
}

.step-loading {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

/* Configurator Actions */
.configurator-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* Meter Grid */
.meter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.meter-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.meter-card:hover {
  border-color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.meter-card.selected {
  border-color: #1e40af;
  background: #eff6ff;
}

.meter-image {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  overflow: hidden;
}

.meter-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meter-info {
  padding: 20px;
}

.meter-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0a0a0a;
  margin-bottom: 8px;
}

.meter-subtype {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}

.meter-description {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meter-price {
  font-size: 20px;
  font-weight: 700;
  color: #0a0a0a;
}

.configurator .selected-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #1e40af;
  color: white;
  padding: 6px 16px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Module Selection */
.module-selection {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.module-group {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 24px;
  background: #f8fafc;
}

.module-group h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 8px;
}

.module-group-description {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
}

.module-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.module-option {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 3px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.module-option:hover {
  border-color: #1e40af;
  transform: translateY(-1px);
  box-shadow: 0 1px 4px rgba(59, 130, 246, 0.1);
}

.module-option.selected {
  border-color: #1e40af;
  background: #eff6ff;
}

.module-option-image {
  aspect-ratio: 16/9;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.module-option-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.module-option-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.module-option-content strong {
  font-size: 15px;
  color: #0a0a0a;
  font-weight: 600;
}

.module-subtype {
  font-size: 12px;
  color: #64748b;
}

.module-price {
  font-size: 14px;
  font-weight: 700;
  color: #1e40af;
  margin-top: 4px;
}

.selected-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: #1e40af;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.none-option {
  background: #fafafa;
}

.module-info {
  text-align: center;
  padding: 60px 40px;
  color: #64748b;
}

.module-info p {
  font-size: 16px;
  margin-bottom: 12px;
}

/* Customer Form */
.customer-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #0a0a0a;
  margin-bottom: 8px;
  font-size: 15px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 3px;
  font-size: 15px;
  transition: all 0.2s;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.08);
}

.form-help {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-top: 6px;
}

.form-info {
  display: flex;
  gap: 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 3px;
  padding: 20px;
  margin-top: 32px;
}

.form-info svg {
  flex-shrink: 0;
  color: #1e40af;
}

.form-info strong {
  display: block;
  color: #0a0a0a;
  margin-bottom: 6px;
  font-size: 15px;
}

.form-info p {
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
  margin: 0;
}

/* Confirmation */
.confirmation {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.confirmation-header {
  margin-bottom: 40px;
}

.confirmation-header svg {
  margin-bottom: 24px;
}

.confirmation-header h3 {
  font-size: 28px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 12px;
}

.confirmation-header p {
  font-size: 16px;
  color: #64748b;
}

.confirmation-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

.detail-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 24px;
  text-align: left;
}

.detail-section h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-section p {
  margin-bottom: 8px;
  color: #334155;
  font-size: 15px;
}

.product-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.product-line:last-child {
  border-bottom: none;
}

.product-line strong {
  display: block;
  color: #0a0a0a;
  font-size: 15px;
  margin-bottom: 4px;
}

.product-type-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 2px;
}

.product-line .product-price {
  font-weight: 700;
  color: #0a0a0a;
  font-size: 16px;
}

.total-section {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
}

.total-amount {
  font-size: 36px;
  font-weight: 800;
  color: #0a0a0a;
  margin-bottom: 8px;
}

.total-note {
  font-size: 13px;
  color: #64748b;
  font-style: italic;
}

.btn-large {
  padding: 18px 48px;
  font-size: 17px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 40px;
}

.success-message svg {
  margin-bottom: 24px;
}

.success-message h2 {
  font-size: 36px;
  font-weight: 800;
  color: #0a0a0a;
  margin-bottom: 12px;
}

.success-message > p {
  font-size: 18px;
  color: #64748b;
  margin-bottom: 32px;
}

.success-details {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 32px;
}

.success-details p {
  margin-bottom: 12px;
  color: #334155;
  font-size: 15px;
}

.success-details p:last-child {
  margin-bottom: 0;
}

.success-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Configuration Sidebar */
.configurator-sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
  margin-top: 0;
}

.config-summary {
  background: white;
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 80px);
}

.config-summary h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
}

.summary-content {
  margin-bottom: 20px;
}

.summary-empty {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-size: 14px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.summary-item:last-child {
  border-bottom: none;
}

.item-name {
  font-size: 14px;
  color: #334155;
  line-height: 1.4;
  flex: 1;
}

.item-price {
  font-weight: 600;
  color: #0a0a0a;
  font-size: 14px;
  white-space: nowrap;
}

/* Scrollable steps wrapper */
.summary-steps-wrapper {
  flex: 1;
  overflow-y: auto;
  margin: 0 -20px;
  padding: 0 20px;
  min-height: 0;
}

/* Footer with total and button - always visible */
.summary-footer {
  flex-shrink: 0;
  margin-top: 16px;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 16px;
}

.total-price {
  font-size: 22px;
  font-weight: 800;
  color: #1e40af;
}

/* Summary Meter Header */
.summary-meter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 16px;
}

.summary-meter-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 6px;
  padding: 4px;
}

.summary-meter-info {
  flex: 1;
  min-width: 0;
}

.summary-meter-name {
  font-size: 16px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 2px;
}

.summary-meter-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.summary-meter-meta .badge {
  font-size: 11px;
  padding: 3px 8px;
  background: #f1f5f9;
  border-radius: 4px;
  color: #64748b;
  font-weight: 600;
}

.summary-meter-meta .series-badge-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.summary-meter-meta .series-badge-meta img {
  height: 14px;
  width: auto;
}

.summary-meter-price {
  font-size: 14px;
  font-weight: 600;
  color: #0f766e;
}

.summary-back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #64748b;
  transition: background 0.2s, color 0.2s;
}

.summary-back-link:hover {
  background: #f1f5f9;
  color: #1e40af;
}

/* Hide consolidated elements in desktop sidebar */
.wizard-sidebar .summary-back-link,
.wizard-sidebar .summary-meter-meta .badge,
.wizard-sidebar .summary-meter-meta .series-badge-meta {
  display: none;
}


/* Summary Steps List */
.summary-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.summary-step {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  border: 2px solid transparent;
}

.summary-step:hover {
  background: #f8fafc;
}

.summary-step.active {
  background: #eff6ff;
  border-color: #1e40af;
}

.summary-step.completed .step-indicator-sidebar {
  background: #059669;
  color: white;
}

.step-indicator-sidebar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  flex-shrink: 0;
}

.step-indicator-sidebar svg {
  stroke: white;
}

.step-content-sidebar {
  flex: 1;
  min-width: 0;
}

.step-title-sidebar {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
}

.summary-step.active .step-title-sidebar {
  color: #1e40af;
}

.optional-tag {
  font-weight: 400;
  color: #94a3b8;
}

.step-selection {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-selection .selection-thumb {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 2px;
}

.step-selection .selection-name {
  font-size: 14px;
  font-weight: 600;
  color: #0a0a0a;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-selection .selection-price {
  font-size: 13px;
  font-weight: 600;
  color: #059669;
  white-space: nowrap;
}

.step-selection .selection-price.included {
  color: #64748b;
  font-weight: 500;
}

.step-selection-empty {
  font-size: 13px;
  color: #94a3b8;
  font-style: italic;
}

/* Summary Cart Button */
.summary-cart-btn {
  width: 100%;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .configurator {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .configurator-sidebar {
    position: static;
    order: -1;
  }

  .config-summary {
    max-width: 600px;
    margin: 0 auto;
  }

  .configurator-header h1 {
    font-size: 32px;
  }

  .progress-bar {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 0;
    box-shadow: none;
    border-left: none;
    border-right: none;
  }

  .progress-step {
    padding: 12px 16px;
  }

  .progress-step::after {
    display: none;
  }

  .step-label {
    font-size: 13px;
  }

  .configurator-body {
    padding: 16px;
    border-radius: 0;
    box-shadow: none;
    border-left: none;
    border-right: none;
  }

  .configurator-wizard {
    gap: 0;
  }

  .meter-grid {
    grid-template-columns: 1fr;
  }

  .module-options {
    grid-template-columns: 1fr;
  }

  .configurator-actions {
    flex-direction: column;
  }

  .btn-back,
  .btn-next {
    width: 100%;
  }

  .success-actions {
    flex-direction: column;
  }

  .success-actions .btn {
    width: 100%;
  }

  .floating-progress-bar {
    bottom: 10px;
    padding: 10px 20px;
  }

  .floating-progress-content {
    gap: 16px;
  }

  .floating-summary {
    padding-left: 16px;
  }

  .floating-total {
    font-size: 14px;
  }
}

/* Module Category Styles (for category-based rendering) */
.section-note {
  color: #7f8c8d;
  margin-bottom: 15px;
  font-size: 0.95em;
}

.built-in-section {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  border-left: 3px solid #95a5a6;
}

.built-in-category {
  margin-bottom: 8px;
  line-height: 1.5;
  color: #555;
}

.built-in-category:last-child {
  margin-bottom: 0;
}

.built-in-category strong {
  color: #34495e;
}

.module-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  background: #f8f9fa;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.module-item:hover {
  background: #e9ecef;
  border-left-color: #3498db;
}

.module-item.selected {
  background: #e3f2fd;
  border-left-color: #2196f3;
}

.module-item.highlighted {
  background: #fafafa;
  border-left-color: #e0e0e0;
}

.module-item-image {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.module-item-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.module-placeholder {
  width: 60px;
  height: 60px;
  background: #ddd;
  border: 2px dashed #bbb;
  border-radius: 4px;
}

.module-item-content {
  flex: 1;
  min-width: 0;
}

.module-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.module-item-name {
  font-weight: 600;
  color: #2c3e50;
  text-decoration: none;
}

.module-item-name:hover {
  color: #2196f3;
  text-decoration: underline;
}

.module-item-price {
  font-weight: 600;
  color: #27ae60;
  font-size: 0.95em;
}

.module-item-desc {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 4px;
}

.module-item-functions {
  color: #999;
  font-size: 0.75em;
  line-height: 1.3;
}

.category-selected {
  color: #27ae60;
  font-weight: 600;
  font-size: 0.9em;
  margin-left: auto;
}

/* Functions Section */
.functions-section {
  background: white;
  padding: 25px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin-bottom: 20px;
}

.functions-section h2 {
  font-size: 1.8em;
  color: #2c3e50;
  margin-bottom: 20px;
  border-bottom: 2px solid #ecf0f1;
  padding-bottom: 10px;
}

.module-category {
  margin-bottom: 15px;
  border: 1px solid #ecf0f1;
  border-radius: 4px;
}

.module-category-header {
  padding: 12px 15px;
  background: #f8f9fa;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.module-category-header:hover {
  background: #e9ecef;
}

.module-category-header .toggle {
  font-weight: bold;
  width: 20px;
}

.module-name {
  font-weight: 600;
  color: #2c3e50;
}

.module-link {
  color: #3498db;
  text-decoration: none;
}

.module-link:hover {
  text-decoration: underline;
}

.module-category-content {
  padding: 15px;
}

/* ============================================
   CONFIGURATOR WIZARD LAYOUT
   ============================================ */

.configurator-wizard {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.wizard-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.step-container {
  flex: 1;
}

.wizard-sidebar {
  position: sticky;
  top: 20px;
  min-width: 0;
  overflow: hidden;
}

/* Chevron on summary-meter - hidden on desktop */
.summary-meter-chevron {
  display: none;
}

/* Mobile footer - hidden on desktop */
.mobile-footer {
  display: none;
}

/* Inline functions text - hidden on desktop */
.module-option-inline-desc {
  display: none;
}

/* Mobile summary - hidden on desktop */
.mobile-summary {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-summary {
    display: block;
  }

  .mobile-summary .config-summary {
    max-width: none;
  }

  .wizard-sidebar {
    display: none;
  }

  .configurator {
    margin-top: 0;
    padding: 0;
  }

  .mobile-summary .config-summary {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    box-shadow: none;
    padding: 8px 16px;
  }

  /* Summary-meter: compact on mobile */
  .mobile-summary .summary-meter {
    cursor: pointer;
    position: relative;
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
    gap: 10px;
  }

  .mobile-summary .summary-meter-image {
    width: 40px;
    height: 40px;
  }

  .mobile-summary .summary-meter-name {
    font-size: 14px;
    margin-bottom: 0;
  }

  .mobile-summary .summary-meter-meta {
    gap: 6px;
  }

  .mobile-summary .summary-meter-price {
    font-size: 13px;
  }

  .mobile-summary .summary-meter.expanded {
    padding-bottom: 8px;
    margin-bottom: 8px;
  }

  /* Chevron vertically centered on summary-meter */
  .mobile-summary .summary-meter-chevron {
    display: block;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    color: #64748b;
    transition: transform 0.2s;
  }

  .mobile-summary .summary-meter.expanded .summary-meter-chevron {
    transform: translateY(-50%) rotate(180deg);
  }

  /* Steps list: hidden by default on mobile */
  .mobile-summary .summary-steps-wrapper {
    display: none;
  }

  .mobile-summary .summary-steps-wrapper.expanded {
    display: block;
  }

  /* Hide summary footer on mobile (moved to mobile-footer) */
  .mobile-summary .summary-footer {
    display: none;
  }

  /* Mobile footer below selection area */
  .mobile-footer {
    display: block;
    margin-top: 4px;
    padding: 8px 16px;
  }

  .mobile-footer .summary-total {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 8px;
  }

  .mobile-footer .summary-cart-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .step-content {
    margin-bottom: 0;
  }

  /* Step container flush */
  .step-container {
    margin-top: 0;
  }

  /* Remove border on module-categories on mobile */
  .module-categories {
    border: none;
    border-radius: 0;
  }

}

/* Meter Info Card */
.meter-info-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-top: 24px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .meter-info-card {
    display: none;
  }
}

.meter-info-card .meter-thumb {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 6px;
  padding: 8px;
  flex-shrink: 0;
}

.meter-info-card .meter-info-details {
  flex: 1;
  min-width: 0;
}

.meter-info-card .meter-info-details h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #0a0a0a;
}

.meter-info-card .meter-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.meter-info-card .badge {
  font-size: 11px;
  padding: 3px 8px;
  background: #f1f5f9;
  border-radius: 4px;
  color: #64748b;
  font-weight: 600;
}

.meter-info-card .meter-price {
  font-size: 15px;
  font-weight: 700;
  color: #0a0a0a;
}

.meter-info-card .meter-price.call-for-price {
  color: #94a3b8;
  font-weight: 500;
}

/* Wizard Progress Bar */
.wizard-progress {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 24px;
  overflow: hidden;
  min-width: 0;
  margin-bottom: 24px;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  min-width: 0;
  flex-shrink: 1;
  transition: background 0.2s;
}

.wizard-step:hover {
  background: #f8fafc;
}

.wizard-step.active {
  background: #eff6ff;
}

.step-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: #e2e8f0;
  color: #64748b;
  flex-shrink: 0;
  transition: all 0.2s;
}

.wizard-step.active .step-indicator {
  background: #1e40af;
  color: white;
}

.wizard-step.completed .step-indicator,
.wizard-step.has-selection .step-indicator {
  background: #10b981;
  color: white;
}

.step-title {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wizard-step.active .step-title {
  color: #1e40af;
}

.wizard-step.completed .step-title,
.wizard-step.has-selection .step-title {
  color: #10b981;
}

.step-connector {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 8px;
  min-width: 20px;
}

/* Step Content */
.step-container {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}

.step-content .step-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.step-content .step-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0 0 4px 0;
}

.step-content .step-header p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

/* Filter Banner - Friendly Style */
.filter-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.filter-banner.friendly {
  background: #fefefe;
  border-color: #e2e8f0;
}

.filter-banner-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.filter-message {
  font-size: 14px;
  color: #475569;
  line-height: 1.4;
}

.btn-toggle-filter {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #1e40af;
  background: white;
  border: 1px solid #93c5fd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-toggle-filter:hover {
  background: #dbeafe;
  border-color: #3b82f6;
}

/* Module Options List (compact, like category content) */
.module-options-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: white;
}

.module-options-list .module-option {
  padding: 8px 10px;
  border-radius: 4px;
}

.module-options-list .module-option-image {
  width: 40px;
  height: 40px;
}

.module-options-list .module-option-image img {
  max-width: 36px;
  max-height: 36px;
}

.module-options-list .module-option-name {
  font-size: 13px;
}

.module-options-list .module-option-price {
  font-size: 12px;
}

.module-options-list .module-option-desc {
  font-size: 11px;
}

.module-options-list .module-option-functions {
  font-size: 11px;
}

/* Module Categories (for inputs) */
.module-categories {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.module-category {
  background: white;
  border-bottom: 1px solid #e2e8f0;
}

.module-category:last-child {
  border-bottom: none;
}

.module-category-header {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  background: #f8fafc;
  transition: background 0.2s;
}

.module-category-header:hover {
  background: #f1f5f9;
}

.category-name {
  font-size: 13px;
  font-weight: 600;
  color: #0a0a0a;
  flex: 1;
}

.category-info {
  margin-right: 8px;
}

.category-count {
  font-size: 12px;
  color: #64748b;
}

.category-selected {
  font-size: 12px;
  color: #10b981;
  font-weight: 600;
}

.category-chevron {
  color: #94a3b8;
  transition: transform 0.2s;
  width: 14px;
  height: 14px;
}

.module-category.collapsed .category-chevron {
  transform: rotate(-90deg);
}

.module-category-content {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: white;
}

.module-category.collapsed .module-category-content {
  display: none;
}

/* Compact module options inside categories */
.module-category .module-option {
  padding: 8px 10px;
  border-radius: 4px;
}

.module-category .module-option-image {
  width: 40px;
  height: 40px;
}

.module-category .module-option-image img {
  max-width: 36px;
  max-height: 36px;
}

.module-category .module-option-name {
  font-size: 13px;
}

.module-category .module-option-price {
  font-size: 12px;
}

.module-category .module-option-desc {
  font-size: 11px;
}

.module-category .module-option-functions {
  font-size: 11px;
}

/* None option for optional steps */
.module-option.none-option {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  margin-bottom: 16px;
  padding: 12px 16px;
}

.module-option.none-option:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.module-option.none-option.selected {
  background: #eff6ff;
  border-color: #1e40af;
  border-style: solid;
}

.module-option.none-option .module-option-name {
  color: #64748b;
}

.module-option.none-option.selected .module-option-name {
  color: #1e40af;
}

/* Input Warning Modal */
.input-warning-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.input-warning-modal.active {
  opacity: 1;
  pointer-events: all;
}

.warning-modal-content {
  max-width: 500px;
  width: 90%;
}

.warning-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px;
}

.warning-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fef3c7;
}

.warning-content {
  text-align: center;
}

.warning-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0 0 12px 0;
}

.warning-content p {
  font-size: 15px;
  color: #64748b;
  margin: 0 0 8px 0;
  line-height: 1.6;
}

.warning-note {
  font-size: 13px !important;
  color: #92400e !important;
  font-weight: 500;
}

.warning-actions {
  flex-direction: row;
  gap: 12px;
  width: 100%;
}

.warning-actions .btn {
  flex: 1;
}

@media (max-width: 600px) {
  .warning-modal-body {
    padding: 30px 24px;
  }

  .warning-icon {
    width: 64px;
    height: 64px;
  }

  .warning-icon svg {
    width: 40px;
    height: 40px;
  }

  .warning-content h3 {
    font-size: 20px;
  }

  .warning-actions {
    flex-direction: column;
  }
}

/* Wizard Navigation - Sticky at bottom */
.wizard-navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.wizard-navigation .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  justify-content: center;
}

.wizard-navigation .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.wizard-navigation .btn-secondary,
.wizard-navigation .btn-primary {
  background: white;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

.wizard-navigation .btn-secondary:hover:not(:disabled),
.wizard-navigation .btn-primary:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

/* Module Sections */
.module-section {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}

.module-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.module-section h3 .optional {
  font-weight: 400;
  color: #94a3b8;
  font-size: 14px;
}

.built-in-info {
  background: #f8fafc;
  border-left: 3px solid #94a3b8;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  color: #64748b;
}

/* Module Options */
.module-option {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  margin-bottom: 8px;
  background: #f8fafc;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: all 0.2s;
}

.module-option:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.module-option.selected {
  background: #eff6ff;
  border-color: #1e40af;
}

/* Radio button styling */
.module-option-radio {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.module-option-radio .radio-custom {
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: white;
  transition: all 0.15s;
  position: relative;
}

.module-option-radio .radio-custom.checked {
  border-color: #1e40af;
}

.module-option-radio .radio-custom.checked::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  background: #1e40af;
  border-radius: 50%;
}

.module-option:hover .radio-custom {
  border-color: #94a3b8;
}

.module-option-none {
  background: white;
  border: 1px solid #e2e8f0;
}

.module-option-none.selected {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.module-option-image {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.module-option-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.module-option-image .placeholder {
  width: 100%;
  height: 100%;
  background: #e2e8f0;
  border-radius: 4px;
}

.module-option-content {
  flex: 1;
  min-width: 0;
}

.module-option-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.module-option-name {
  font-weight: 600;
  color: #0a0a0a;
  font-size: 15px;
  text-decoration: none;
}

a.module-option-name:hover {
  color: #1e40af;
  text-decoration: underline;
}

.module-option-price {
  font-weight: 600;
  color: #059669;
  font-size: 14px;
  margin-left: auto;
}

.module-option-price:not(:empty) {
  white-space: nowrap;
}

.module-option-price.call-for-price {
  color: #94a3b8;
  font-weight: 500;
  font-size: 13px;
}

.module-option-desc {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 4px;
}

.module-option-functions {
  font-size: 12px;
  color: #94a3b8;
}

/* Category Toggle */
.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background 0.2s;
}

.category-header:hover {
  background: #f1f5f9;
}

.category-header.has-selection {
  background: #eff6ff;
}

.category-header .toggle {
  color: #64748b;
  font-size: 12px;
  width: 14px;
}

.category-header .category-name {
  font-weight: 600;
  color: #334155;
  flex: 1;
}

.category-header .selection-indicator {
  font-size: 12px;
  color: #1e40af;
  font-weight: 500;
  background: #dbeafe;
  padding: 2px 8px;
  border-radius: 10px;
}

.category-content {
  padding-left: 24px;
}

/* Module list (for outputs without categories) */
.module-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Summary Actions */
.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.btn-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
}

.btn-continue {
  padding: 12px 24px;
}

.summary-cart-link {
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.summary-cart-link a {
  color: #1e40af;
  text-decoration: none;
  font-size: 14px;
}

.summary-cart-link a:hover {
  text-decoration: underline;
}

.summary-items {
  margin-bottom: 20px;
}

/* Summary item cards with images and descriptions */
.summary-item-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 6px;
  margin-bottom: 10px;
  position: relative;
}

.summary-item-card:last-child {
  margin-bottom: 0;
}

.summary-item-card.meter-item {
  background: #fff;
  border: 1px solid #e2e8f0;
}

.summary-item-label {
  position: absolute;
  top: 4px;
  left: 12px;
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.summary-item-card:has(.summary-item-label) {
  padding-top: 22px;
}

.summary-item-image {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #e2e8f0;
}

.summary-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
}

.summary-item-image .placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.summary-item-info {
  flex: 1;
  min-width: 0;
}

.summary-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
  margin-bottom: 2px;
}

.summary-item-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

.summary-item-price {
  font-size: 13px;
  font-weight: 600;
  color: #0f766e;
  white-space: nowrap;
}

/* Legacy summary item styles */
.summary-item.meter-item {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.summary-item .item-label {
  font-size: 12px;
  color: #94a3b8;
  display: block;
  margin-bottom: 2px;
}

/* Cart Toast Notification */
.cart-toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: #0a0a0a;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  transition: bottom 0.3s ease;
}

.cart-toast.show {
  bottom: 30px;
}

.cart-toast svg {
  color: #22c55e;
}

.cart-toast a {
  color: #1e40af;
  text-decoration: none;
  font-weight: 600;
  margin-left: 8px;
}

.cart-toast a:hover {
  text-decoration: underline;
}

/* Configurator Loading */
.configurator-loading {
  text-align: center;
  padding: 80px 40px;
  color: #64748b;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #1e40af;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

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

.configurator-error {
  text-align: center;
  padding: 80px 40px;
}

.configurator-error h2 {
  color: #ef4444;
  margin-bottom: 12px;
}

.configurator-error p {
  color: #64748b;
  margin-bottom: 24px;
}

.no-modules {
  text-align: center;
  padding: 40px;
  color: #64748b;
}

/* ============================================
   CART PAGE STYLES
   ============================================ */

.cart-wrapper {
  min-height: calc(100vh - 200px);
  width: 100%;
}

.cart-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.cart-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.cart-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0;
}

.cart-count {
  font-size: 16px;
  color: #64748b;
}

.cart-header.checkout-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.btn-back-to-cart {
  order: -1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: none;
  color: #64748b;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: -6px;
}

.btn-back-to-cart:hover {
  background: #f1f5f9;
  color: #334155;
}

.btn-back-to-cart svg {
  flex-shrink: 0;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.cart-item.incomplete {
  border-color: #f59e0b;
  background: #fffbeb;
}

.cart-item-warning {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  color: #92400e;
  font-size: 13px;
  font-weight: 500;
}

.cart-item-warning svg {
  flex-shrink: 0;
  color: #f59e0b;
}

.cart-item-image {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  background: #f8fafc;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-item-image .placeholder {
  width: 100%;
  height: 100%;
  background: #e2e8f0;
  border-radius: 4px;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.cart-item-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0;
}

.cart-item-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cart-item-meta .badge {
  font-size: 12px;
  padding: 4px 10px;
  background: #f1f5f9;
  border-radius: 4px;
  color: #64748b;
  font-weight: 600;
}

.cart-item-meta .meter-base {
  font-size: 14px;
  color: #64748b;
}

.cart-item-modules {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 6px;
}

.module-line {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid #f1f5f9;
}

.module-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.module-line:first-child {
  padding-top: 0;
}

.module-type {
  color: #64748b;
  font-size: 12px;
}

.module-name {
  color: #334155;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
}

.module-price {
  color: #059669;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}

.module-price.included {
  color: #64748b;
  font-weight: 500;
}

.cart-item-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.item-total-price {
  font-size: 18px;
  font-weight: 700;
  color: #0a0a0a;
}

/* Standalone Accessory Cart Item */
.cart-item-accessory {
  display: flex;
  gap: 20px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.cart-item-accessory-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 8px;
  flex-shrink: 0;
}

.cart-item-accessory .cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-accessory-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.accessory-code-badge {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #e2e8f0;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: monospace;
}

.accessory-category-badge {
  font-size: 11px;
  font-weight: 500;
  color: #1e40af;
  background: #eff6ff;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #dbeafe;
}

.accessory-badge {
  background: #eff6ff !important;
  color: #1e40af !important;
  font-size: 10px !important;
  padding: 2px 6px !important;
}

.summary-line-badge {
  font-size: 10px;
  font-weight: 500;
  color: #1e40af;
  background: #eff6ff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
}

.item-badge {
  font-size: 10px;
  font-weight: 500;
  color: #1e40af;
  background: #eff6ff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
}

/* Standalone Module Cart Item */
.cart-item-module {
  display: flex;
  gap: 20px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.cart-item-module-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 8px;
  flex-shrink: 0;
}

.cart-item-module .cart-item-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.cart-item-module .cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
}

.cart-item-module .cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-module .cart-item-description {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.module-badge {
  background: #f0fdf4 !important;
  color: #166534 !important;
  font-size: 10px !important;
  padding: 2px 6px !important;
}

/* Cart Mobile Footer - hidden on desktop */
.cart-mobile-footer {
  display: none;
}

/* Cart Sidebar */
.cart-sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
}

.cart-summary {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
}

.cart-summary h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
  color: #64748b;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 2px solid #e2e8f0;
}

.total-amount {
  font-size: 24px;
  font-weight: 800;
  color: #0a0a0a;
}

.btn-checkout {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 20px;
}

.continue-shopping {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: #1e40af;
  text-decoration: none;
  font-size: 14px;
}

.continue-shopping:hover {
  text-decoration: underline;
}

/* Empty Cart */
.cart-empty {
  text-align: center;
  padding: 80px 40px;
}

.cart-empty svg {
  margin-bottom: 24px;
}

.cart-empty h2 {
  font-size: 28px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 12px;
}

.cart-empty p {
  color: #64748b;
  margin-bottom: 32px;
}

/* Cart Item Title */
.cart-item-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item-title .badge {
  font-size: 11px;
  padding: 3px 8px;
  background: #f1f5f9;
  border-radius: 4px;
  color: #64748b;
  font-weight: 600;
}

/* Cart Item Actions - Edit & Remove Buttons */
.cart-item-actions {
  display: flex;
  gap: 8px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-icon svg {
  flex-shrink: 0;
}

.btn-edit {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.btn-edit:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.btn-remove {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 6px;
}

.btn-remove:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

/* Cart Item Footer - Quantity & Pricing */
.cart-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.cart-item-quantity {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quantity-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  background: #f8fafc;
}

.qty-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #475569;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.qty-btn:hover:not(:disabled) {
  background: #e2e8f0;
  color: #1e40af;
}

.qty-btn:disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}

.qty-input {
  width: 48px;
  height: 36px;
  text-align: center;
  border: none;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  background: white;
  font-size: 15px;
  font-weight: 600;
  color: #0a0a0a;
  -moz-appearance: textfield;
}

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

.qty-input:focus {
  outline: none;
  background: #eff6ff;
}

/* Cart Item Pricing */
.cart-item-pricing {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-breakdown {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.unit-price {
  font-size: 13px;
  color: #64748b;
}

.qty-multiplier {
  font-size: 13px;
  color: #94a3b8;
}

.line-total {
  font-size: 18px;
  font-weight: 700;
  color: #0a0a0a;
}

/* Order Summary Line Items */
.summary-line-item {
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.summary-line-item:last-child {
  border-bottom: none;
}

.summary-line-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.summary-line-name {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.summary-line-qty {
  font-size: 12px;
  color: #94a3b8;
}

.summary-line-total {
  font-size: 13px;
  font-weight: 600;
  color: #0a0a0a;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Summary Sub-Items (accessories, options, calibration under each meter) */
.summary-sub-items {
  margin-top: 4px;
}

.summary-sub-group {
  margin-top: 2px;
}

.summary-sub-group-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 0 3px 8px;
  font-size: 11px;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}

.summary-sub-group-toggle:hover {
  color: #334155;
}

.summary-chevron {
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.summary-sub-group:not(.collapsed) .summary-chevron {
  transform: rotate(90deg);
}

.summary-sub-group.collapsed .summary-sub-group-content {
  display: none;
}

.summary-sub-group-content {
  padding-left: 10px;
  padding-bottom: 2px;
}

.summary-sub-section-label {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 5px;
  margin-bottom: 1px;
}

.summary-sub-section-label:first-child {
  padding-top: 0;
}

.summary-sub-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2px 0;
  gap: 8px;
}

.summary-sub-name {
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.summary-sub-price {
  font-size: 11px;
  color: #475569;
  font-weight: 500;
  white-space: nowrap;
}

/* Summary Group Labels (standalone modules/accessories) */
.summary-group-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 10px;
  margin-bottom: 0;
}

/* Summary Items Scroll Container */
.summary-items-scroll {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.summary-line-code {
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  word-break: break-word;
  line-height: 1.4;
  display: block;
}

/* ============================================
   CHECKOUT PAGE STYLES
   ============================================ */

.checkout-page .cart-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.checkout-page .btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}

.checkout-page .btn-back svg {
  flex-shrink: 0;
  vertical-align: middle;
}

.checkout-page .btn-back:hover {
  color: #1e40af;
}

/* Checkout Warning Banner for Missing Input Module */
.checkout-warning-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  color: #92400e;
  font-size: 14px;
  line-height: 1.5;
}

.checkout-warning-banner svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #f59e0b;
}

.checkout-warning-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkout-warning-content strong {
  font-weight: 600;
  color: #78350f;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
}

.checkout-form {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 32px;
}

.checkout-form h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.form-intro {
  color: #64748b;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #334155;
}

.form-group label .optional {
  font-weight: 400;
  color: #94a3b8;
  font-size: 13px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-help {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #94a3b8;
}

.form-info {
  display: flex;
  gap: 16px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  padding: 20px;
  margin-top: 32px;
}

.form-info svg {
  flex-shrink: 0;
  color: #0284c7;
}

.form-info strong {
  display: block;
  margin-bottom: 4px;
  color: #0369a1;
}

.form-info p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

/* Checkout Sidebar */
.checkout-sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
}

.checkout-step-nav {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.checkout-step-nav .btn {
  flex: 1;
  min-width: 0;
}

.checkout-step-nav .btn-submit-order {
  margin-top: 0;
}

.order-summary {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
}

.order-summary h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.order-items {
  margin-bottom: 16px;
}

.order-item {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.order-item:last-child {
  border-bottom: none;
}

/* Shared row layout: thumbnail + body */
.order-item-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.order-item-thumb {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #f8fafc;
}

.order-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb-placeholder {
  width: 100%;
  height: 100%;
  background: #f1f5f9;
}

.order-item-body {
  flex: 1;
  min-width: 0;
}

.order-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.order-item-body .item-code {
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  word-break: break-word;
  line-height: 1.4;
}

.order-item-body .item-name {
  font-size: 13px;
  color: #334155;
  line-height: 1.4;
}

.order-item-body .item-total {
  font-size: 13px;
  font-weight: 600;
  color: #0a0a0a;
  white-space: nowrap;
  flex-shrink: 0;
}

.order-item-body .item-qty {
  font-size: 12px;
  color: #94a3b8;
}

.order-total {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 2px solid #e2e8f0;
  font-weight: 600;
}

.btn-submit-order {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.checkout-note {
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  margin-top: 16px;
}

/* Order Success */
.order-success {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 20px;
}

.order-success svg {
  margin-bottom: 24px;
}

.order-success h1 {
  font-size: 36px;
  font-weight: 800;
  color: #0a0a0a;
  margin-bottom: 12px;
}

.success-subtitle {
  font-size: 18px;
  color: #64748b;
  margin-bottom: 32px;
}

.order-success .success-details {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
  text-align: left;
}

.order-success .success-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .configurator-wizard,
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .wizard-sidebar,
  .cart-sidebar,
  .checkout-sidebar {
    position: static;
  }

  .cart-summary {
    max-width: 500px;
    margin: 0 auto 16px;
  }

  .order-summary {
    max-width: none;
    margin: 0 0 16px;
  }

  .wizard-progress {
    flex-wrap: wrap;
    gap: 8px;
  }

  .step-connector {
    display: none;
  }
}

@media (max-width: 1024px) {
  .cart-page {
    padding: 8px 0 20px;
  }

  .cart-header {
    gap: 10px;
    margin-bottom: 8px;
    padding: 0 12px;
  }

  .cart-header h1 {
    font-size: 16px;
  }

  .cart-count {
    font-size: 13px;
  }

  .btn-back-to-cart {
    font-size: 13px;
  }

  .cart-items {
    gap: 0;
  }

  .cart-item {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin-bottom: -1px;
  }

  .cart-item-image {
    width: 64px;
    height: 64px;
    border-radius: 4px;
  }

  img.cart-series-badge {
    width: 30px;
    bottom: 2px;
    right: 2px;
  }

  .cart-item-header {
    margin-bottom: 4px;
  }

  .cart-item-header h3 {
    font-size: 14px;
  }

  .cart-item-meta {
    gap: 6px;
    margin-bottom: 6px;
  }

  .cart-item-meta .badge {
    font-size: 11px;
    padding: 2px 6px;
  }

  .cart-item-meta .meter-base {
    font-size: 12px;
  }

  .cart-item-modules {
    margin-bottom: 6px;
    padding: 6px 8px;
    border-radius: 4px;
  }

  .module-line {
    grid-template-columns: 80px 1fr auto;
    gap: 4px;
    font-size: 11px;
    padding: 2px 0;
  }

  .module-type {
    font-size: 10px;
  }

  .module-name {
    font-size: 11px;
  }

  .module-price {
    font-size: 10px;
  }

  .cart-item-accessories {
    padding: 6px 8px;
    margin-top: 4px;
    border-radius: 4px;
  }

  .cart-item-accessories .accessories-label {
    font-size: 10px;
    margin-bottom: 3px;
  }

  .cart-accessory-line {
    gap: 8px;
    padding: 2px 0;
  }

  .cart-accessory-name {
    font-size: 11px;
  }

  .cart-accessory-code {
    font-size: 9px;
  }

  .cart-accessory-price {
    font-size: 10px;
  }

  .cart-item-footer {
    padding-top: 8px;
    margin-top: 8px;
  }

  .cart-item-quantity {
    gap: 3px;
  }

  .quantity-label {
    font-size: 10px;
  }

  .quantity-controls {
    border-radius: 4px;
  }

  .qty-btn {
    width: 28px;
    height: 28px;
  }

  .item-total-price {
    font-size: 15px;
  }

  .cart-item-actions .btn-icon {
    padding: 4px 8px;
    font-size: 11px;
  }

  .cart-sidebar {
    display: none;
  }

  .cart-mobile-footer {
    display: block;
    padding: 16px 12px 0;
  }

  .cart-mobile-footer .summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }

  .cart-mobile-footer .total-amount {
    font-size: 20px;
    font-weight: 800;
    color: #0a0a0a;
  }

  .cart-mobile-footer .btn-checkout {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    margin-top: 0;
  }

  .cart-mobile-footer .continue-shopping {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
  }

  .checkout-form {
    padding: 20px;
  }

  .order-success .success-actions {
    flex-direction: column;
  }

  .order-success .success-actions .btn {
    width: 100%;
  }
}

/* Order Status Page */
.order-status-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.status-container {
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.status-container h1 {
  font-size: 28px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 8px;
}

.status-container .subtitle {
  color: #64748b;
  margin-bottom: 32px;
}

.lookup-form {
  margin-bottom: 24px;
}

.lookup-form .input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.lookup-form input {
  flex: 1;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.lookup-form input[name="ref"] {
  text-transform: uppercase;
}

.lookup-form input:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.lookup-form .error-msg {
  color: #dc2626;
  font-size: 14px;
}

.help-text {
  font-size: 14px;
  color: #64748b;
}

.status-header {
  margin-bottom: 32px;
}

.status-header svg {
  margin-bottom: 16px;
}

.status-header.success svg {
  stroke: #10b981;
}

.status-header.failed svg,
.status-header.cancelled svg {
  stroke: #ef4444;
}

.status-header.pending svg {
  stroke: #f59e0b;
}

.status-details {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
  text-align: left;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .label {
  color: #64748b;
  font-size: 14px;
}

.detail-row .value {
  font-weight: 600;
  color: #0a0a0a;
}

.detail-row .value.amount-primary {
  font-size: 18px;
}

.detail-row .value.amount-secondary {
  font-weight: 400;
  color: #64748b;
}

.status-notice {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}

.status-notice.info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.status-notice.warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.status-notice.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
}

.status-badge.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.status-confirmed,
.status-badge.payment-paid {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.status-processing {
  background: #dbeafe;
  color: #1e40af;
}

.status-badge.status-shipped {
  background: #e0e7ff;
  color: #3730a3;
}

.status-badge.status-cancelled,
.status-badge.payment-failed {
  background: #fee2e2;
  color: #991b1b;
}

.status-badge.payment-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

.status-container .message {
  color: #64748b;
  margin-bottom: 16px;
}

.status-container .ref {
  margin-bottom: 32px;
}

.btn-outline {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #374151;
}

.btn-outline:hover {
  background: #f3f4f6;
}

/* Order Contents Section */
.order-contents-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  text-align: left;
}

.order-contents-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.order-contents-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.view-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-toggle {
  display: flex;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.view-btn {
  padding: 6px 10px;
  background: #fff;
  border: none;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn:not(:last-child) {
  border-right: 1px solid #e2e8f0;
}

.view-btn:hover {
  background: #f8fafc;
}

.view-btn.active {
  background: #1e40af;
  color: #fff;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.sort-controls label {
  color: #64748b;
}

.sort-controls select {
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #1e293b;
  font-size: 13px;
  cursor: pointer;
}

.sort-controls select:focus {
  outline: none;
  border-color: #3b82f6;
}

/* Table View */
.order-contents-section {
  transition: max-width 0.15s ease-out;
}

.order-contents-section.table-view-active {
  width: calc(100vw - 80px);
  max-width: 900px;
  margin-left: 50%;
  transform: translateX(-50%);
}

.order-contents-list,
.order-contents-table {
  transition: opacity 0.1s ease-out;
  opacity: 1;
}

.order-contents-list.fade-out,
.order-contents-table.fade-out {
  opacity: 0;
}

.order-contents-table {
  overflow-x: auto;
}

.order-contents-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border: 1px solid #d1d5db;
}

.order-contents-table th,
.order-contents-table td {
  padding: 10px 12px;
  text-align: left;
  border: 1px solid #d1d5db;
  vertical-align: top;
}

.order-contents-table th {
  background: #f3f4f6;
  font-weight: 600;
  color: #374151;
  font-size: 12px;
  white-space: nowrap;
}

.order-contents-table td {
  color: #1f2937;
}

.order-contents-table .col-name {
  min-width: 120px;
}

.order-contents-table .col-name strong {
  display: block;
  font-weight: 600;
}

.order-contents-table .item-type {
  font-size: 11px;
  color: #6b7280;
}

.order-contents-table .col-details {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.4;
}

.order-contents-table .col-qty,
.order-contents-table .col-unit,
.order-contents-table .col-total {
  text-align: right;
  white-space: nowrap;
}

.order-contents-table .col-qty {
  width: 50px;
}

.order-contents-table .col-unit {
  width: 80px;
}

.order-contents-table .col-total {
  width: 90px;
  font-weight: 600;
}

.order-contents-table tr.not-charged td {
  opacity: 0.5;
}

.order-contents-table tr.not-charged td.col-name,
.order-contents-table tr.not-charged td.col-details,
.order-contents-table tr.not-charged td.col-qty,
.order-contents-table tr.not-charged td.col-unit {
  text-decoration: line-through;
}

.order-contents-table tr.fully-refunded td {
  opacity: 0.6;
  background: #fef2f2;
}

.order-contents-table tr.fully-refunded td.col-name,
.order-contents-table tr.fully-refunded td.col-details,
.order-contents-table tr.fully-refunded td.col-qty,
.order-contents-table tr.fully-refunded td.col-unit {
  text-decoration: line-through;
  color: #94a3b8;
}

.order-contents-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-content-item {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 16px;
  cursor: default;
}

.order-content-item:hover {
  background: #fff;
  transform: none;
  box-shadow: none;
}

.order-content-item.meter {
}

.order-content-item.accessory-item,
.order-content-item.module-item {
  align-items: flex-start;
}

.order-content-item-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  overflow: hidden;
}

.order-content-item-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.order-content-item-image .placeholder-image {
  width: 100%;
  height: 100%;
  background: #e2e8f0;
}

.order-content-item-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 6px;
}

.order-content-item-body {
  flex: 1;
  min-width: 0;
}

.order-content-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.order-content-item-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 15px;
}

.order-content-item-code {
  font-size: 12px;
  color: #64748b;
  font-family: ui-monospace, monospace;
  margin-bottom: 4px;
}

.order-content-item-badge {
  font-size: 10px;
  padding: 2px 8px;
  background: transparent;
  color: #64748b;
  border: 1px solid #e2e8f0;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.order-content-qty {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.order-content-config {
  margin-top: 12px;
  padding: 12px;
  background: #f8fafc;
}

.config-line {
  display: flex;
  font-size: 13px;
  padding: 6px 0;
}

.config-line:not(:last-child) {
  border-bottom: 1px solid #e2e8f0;
}

.config-label {
  color: #64748b;
  min-width: 120px;
  flex-shrink: 0;
}

.config-value {
  color: #1e293b;
  font-weight: 500;
}

.order-content-extras {
  font-size: 13px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.extras-label {
  color: #64748b;
  font-weight: 500;
  margin-right: 6px;
}

.extras-value {
  color: #475569;
}

.calibration-details {
  margin-top: 10px;
  padding: 10px 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  font-size: 12px;
}

.calibration-details .cal-title {
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.calibration-details .cal-item {
  color: #475569;
  padding: 3px 0;
}

.calibration-details .cal-item:not(:last-child) {
  border-bottom: 1px dashed #cbd5e1;
}

/* Special Options in Order Status */
.special-options-list {
  margin-top: 10px;
  font-size: 12px;
}

.special-options-list .special-options-title {
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.special-options-list .so-table {
  width: 100%;
  border-collapse: collapse;
}

.special-options-list .so-table td {
  padding: 4px 8px;
  border: 1px solid #ebebeb;
  color: #475569;
  vertical-align: top;
}

.special-options-list .so-table .so-name {
  font-weight: 500;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.special-options-list .so-table .so-detail {
  color: #64748b;
  font-style: italic;
}

.special-options-list .so-table .so-price-cell {
  white-space: nowrap;
  text-align: right;
  width: 1%;
}

.special-options-list .so-charged {
  font-weight: 500;
  color: #475569;
}

.special-options-list .so-not-charged {
  color: #94a3b8;
  font-size: 11px;
}

.special-options-list .so-refunded {
  color: #3b82f6;
  font-size: 11px;
}

.special-options-list .so-table tr.not-charged {
  opacity: 0.6;
}

.special-options-list .so-table tr.not-charged .so-name,
.special-options-list .so-table tr.not-charged .so-detail {
  text-decoration: line-through;
}

.special-options-list .so-table tr.refunded .so-name,
.special-options-list .so-table tr.refunded .so-detail,
.special-options-list .so-table tr.refunded .so-charged {
  text-decoration: line-through;
  color: #94a3b8;
}

.order-content-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.order-content-base {
  font-size: 12px;
  color: #94a3b8;
  margin-right: 8px;
}

.order-content-unit {
  font-size: 13px;
  color: #64748b;
}

.order-content-price {
  font-weight: 600;
  color: #1e293b;
  font-size: 15px;
}

/* Item Price Block */
.item-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.item-price-block .price-charged {
  font-weight: 600;
  color: #1e293b;
  font-size: 15px;
}

.item-price-block .price-original {
  font-size: 11px;
  color: #94a3b8;
}

.item-price-block .price-original-strike {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
}

.item-price-block .price-not-charged {
  font-size: 12px;
  color: #94a3b8;
}

.item-price-block .price-refunded {
  font-size: 12px;
  color: #3b82f6;
  font-weight: 500;
}

/* Table view price styles */
.table-charged {
  font-weight: 600;
  color: #1e293b;
}

.table-not-charged {
  color: #94a3b8;
  font-style: italic;
}

.table-original-strike {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 11px;
}

/* Table view detail line styles for special options/accessories */
.detail-not-charged {
  color: #94a3b8;
  text-decoration: line-through;
}

.detail-refunded {
  color: #94a3b8;
  text-decoration: line-through;
}

.table-refunded {
  color: #3b82f6;
  font-size: 12px;
}

/* Item Payment Status Tags */
.item-payment-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.payment-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
}

.payment-tag.charged {
  color: #166534;
}

.payment-tag.not-charged {
  color: #94a3b8;
}

.payment-tag.refunded {
  color: #7c3aed;
}

/* Item states */
.order-content-item.not-charged {
  opacity: 0.6;
  border-style: dashed;
}

.order-content-item.fully-refunded {
  opacity: 0.7;
  background: #faf5ff;
}

/* Fees Section */
.order-fees-section {
  margin-top: 4px;
  padding-top: 4px;
}

.order-fees-section h4 {
  display: none;
}

.order-fees-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-fee-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}

.order-fee-item.not-charged {
  opacity: 0.6;
}

.order-fee-item.fully-refunded {
  opacity: 0.7;
}

.order-fee-item.fully-refunded .fee-label,
.order-fee-item.fully-refunded .fee-amount {
  text-decoration: line-through;
  color: #94a3b8;
}

.order-fee-item .fee-label {
  font-weight: 500;
  color: #374151;
  flex: 1;
}

.order-fee-item .fee-status {
  display: flex;
  gap: 6px;
  margin: 0 12px;
}

.order-fee-item .fee-amount {
  font-weight: 600;
  color: #1e293b;
  min-width: 70px;
  text-align: right;
}

/* Discount fee items (card view) */
.order-fee-item.discount .fee-label,
.order-fee-item.discount .fee-amount {
  color: #2563eb;
}

/* Table fee rows */
.order-contents-table tr.fee-row {
}

.order-contents-table tr.fee-row.discount td {
  color: #2563eb;
}

.order-contents-table tr.fee-row td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.order-contents-table tr.fee-row.not-charged {
  opacity: 0.6;
}

.order-contents-table tr.fee-row.fully-refunded {
  opacity: 0.7;
  background: #faf5ff;
}

/* Table total row */
.order-contents-table tr.total-row {
  background: none;
}

.order-contents-table tr.total-row td {
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 15px;
}

.order-contents-table tr.total-row .total-label {
  text-align: right;
  padding-right: 16px;
}

/* Card view total section */
.order-total-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding: 8px 0;
}

.order-total-section .total-label {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.order-total-section .total-amount {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

@media (max-width: 640px) {
  .lookup-form .input-group {
    flex-direction: column;
  }

  .status-actions {
    flex-direction: column;
  }

  .status-actions .btn {
    width: 100%;
  }

  .order-fee-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .order-fee-item .fee-status {
    margin: 0;
  }

  .order-fee-item .fee-amount {
    align-self: flex-end;
  }
}

/* ============================================
   DISPLAY & POWER SUPPLY OPTIONS STYLES
   ============================================ */

.options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: #f8fafc;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.option-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.option-item.selected {
  background: #eff6ff;
  border-color: #1e40af;
}

.option-radio {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.option-radio .radio-custom {
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: white;
  transition: all 0.15s;
  position: relative;
}

.option-radio .radio-custom.checked {
  border-color: #1e40af;
}

.option-radio .radio-custom.checked::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  background: #1e40af;
  border-radius: 50%;
}

.option-item:hover .radio-custom {
  border-color: #94a3b8;
}

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

.option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.option-code {
  font-weight: 700;
  color: #0a0a0a;
  font-size: 15px;
}

.option-price {
  font-weight: 600;
  color: #059669;
  font-size: 14px;
  white-space: nowrap;
}

.option-price.included {
  color: #64748b;
  font-weight: 500;
}

.option-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}

/* ============================================
   ACCESSORIES STEP STYLES - COMPACT CATEGORIES
   ============================================ */

.accessories-categories {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acc-category {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.acc-category-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  cursor: pointer;
  transition: background 0.15s;
}

.acc-category-header:hover {
  background: #f1f5f9;
}

.acc-chevron {
  transition: transform 0.2s;
  color: #64748b;
}

.acc-category:not(.collapsed) .acc-chevron {
  transform: rotate(90deg);
}

.acc-category-name {
  font-weight: 600;
  font-size: 13px;
  color: #334155;
  flex: 1;
}

.acc-category-count {
  font-size: 12px;
  color: #64748b;
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 10px;
}

.acc-category-items {
  display: flex;
  flex-direction: column;
}

.acc-category.collapsed .acc-category-items {
  display: none;
}

/* Compact accessory item row - description primary, code secondary */
.acc-item {
  display: grid;
  grid-template-columns: 18px 1fr 100px 65px;
  gap: 8px;
  align-items: center;
  padding: 7px 14px;
  border-top: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 13px;
}

.acc-item:hover {
  background: #f8fafc;
}

.acc-item.selected {
  background: #eff6ff;
}

.acc-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 2px solid #cbd5e1;
  border-radius: 3px;
  background: white;
  transition: all 0.15s;
  flex-shrink: 0;
}

.acc-checkbox.checked {
  background: #1e40af;
  border-color: #1e40af;
}

.acc-checkbox.checked svg {
  stroke: white;
}

.acc-item:hover .acc-checkbox {
  border-color: #94a3b8;
}

/* Description is the primary text */
.acc-name {
  color: #334155;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Code is secondary - smaller and muted */
.acc-code {
  font-size: 11px;
  color: #94a3b8;
  font-family: ui-monospace, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acc-price {
  font-weight: 600;
  color: #059669;
  text-align: right;
  white-space: nowrap;
  font-size: 12px;
}

/* Summary Accessories Styles */
.step-selection-accessories {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.accessory-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid #f1f5f9;
}

.accessory-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.accessory-line:first-child {
  padding-top: 0;
}

.accessory-line-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Description is primary in summary */
.accessory-line-name {
  font-size: 13px;
  color: #334155;
  line-height: 1.3;
}

/* Code is secondary - smaller, monospace */
.accessory-line-code {
  font-size: 10px;
  color: #94a3b8;
  font-family: ui-monospace, monospace;
}

.accessory-line-price {
  font-size: 12px;
  font-weight: 600;
  color: #059669;
  white-space: nowrap;
  margin-top: 1px;
}

.accessory-remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  margin-top: 2px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s;
  flex-shrink: 0;
}

.accessory-remove-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

.accessory-count-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #1e40af;
  color: white;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 4px;
}

/* Selection Description (text under selections) */
.selection-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
  margin-top: 4px;
}

/* ============================================
   CART PAGE - ACCESSORIES STYLES
   ============================================ */

.cart-item-accessories {
  background: #f8fafc;
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 8px;
}

.cart-item-accessories .accessories-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.cart-accessory-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px solid #f1f5f9;
}

.cart-accessory-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-accessory-line:first-child {
  padding-top: 0;
}

.cart-accessory-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Description/name is primary */
.cart-accessory-name {
  font-size: 13px;
  color: #334155;
  line-height: 1.3;
}

/* Code is secondary - smaller, monospace */
.cart-accessory-code {
  font-size: 10px;
  color: #94a3b8;
  font-family: ui-monospace, monospace;
}

.cart-accessory-price {
  font-size: 12px;
  font-weight: 600;
  color: #059669;
  white-space: nowrap;
}

/* Compact Cart Items for Accessories and Modules */
.cart-standalone-section {
  margin-top: 24px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e2e8f0;
}

.cart-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.cart-section-header svg {
  color: #64748b;
}

.cart-compact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-compact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  gap: 12px;
}

.cart-compact-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-compact-desc {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

.cart-compact-code {
  font-size: 11px;
  color: #64748b;
  font-family: ui-monospace, monospace;
}

.cart-compact-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-compact-qty {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 2px;
}

.qty-btn-sm {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.qty-btn-sm:hover:not(:disabled) {
  background: #e2e8f0;
  color: #1e293b;
}

.qty-btn-sm:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.cart-compact-price {
  font-size: 13px;
  font-weight: 600;
  color: #059669;
  min-width: 60px;
  text-align: right;
}

.btn-remove-sm {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-remove-sm:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* ============================================
   ADDITIONAL MOBILE RESPONSIVE STYLES
   ============================================ */

@media (max-width: 480px) {
  .configurator-header h1 {
    font-size: 24px;
  }

  /* Progress steps mobile */
  .progress-step {
    padding: 10px 12px;
    font-size: 13px;
  }

  .step-number {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  /* Module items mobile */
  .module-item {
    padding: 10px;
  }

  .module-item-image {
    width: 50px;
    height: 50px;
  }

  .module-item-name {
    font-size: 14px;
  }

  .module-item-description {
    font-size: 12px;
  }

  /* Option items mobile */
  .option-item {
    padding: 12px;
    gap: 12px;
  }

  .option-label {
    font-size: 14px;
  }

  /* Buttons mobile */
  .btn-next,
  .btn-back {
    padding: 14px 20px;
    font-size: 16px;
  }

  /* Cart page mobile */
  .cart-page {
    padding: 16px;
  }

  .cart-header h1 {
    font-size: 22px;
  }

  .cart-item-info {
    padding: 12px;
  }

  /* Checkout mobile */
  .checkout-form {
    padding: 16px;
  }

  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .form-group input,
  .form-group select {
    font-size: 16px; /* Prevents iOS zoom */
    padding: 14px;
  }

  /* Summary section mobile */
  .config-summary,
  .cart-summary,
  .order-summary {
    padding: 16px;
  }

  .summary-row {
    padding: 10px 0;
  }

  /* Sticky summary bar mobile */
  .sticky-summary-bar {
    top: 0;
  }

  .sticky-summary-content {
    padding: 8px 12px;
    gap: 8px;
  }

  .sticky-total {
    font-size: 15px;
  }

  .sticky-btn-cart {
    padding: 8px 12px;
    font-size: 12px;
  }

  .mobile-summary h3 {
    font-size: 16px;
  }

  /* Status page mobile */
  .status-container h1 {
    font-size: 22px;
  }

  .status-details {
    padding: 16px;
  }

  .detail-row {
    flex-direction: column;
    gap: 4px;
    text-align: left;
  }

  .detail-row .label {
    font-size: 12px;
  }

  /* Lookup form mobile */
  .lookup-form input {
    font-size: 16px; /* Prevents iOS zoom */
    padding: 14px 16px;
  }

  .lookup-form .btn {
    padding: 14px 20px;
    font-size: 16px;
  }
}

/* ============================================
   Cart Item Special Options (Calibration)
   ============================================ */

.cart-item-options {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.cart-item-options .options-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-item-options .option-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 6px;
  margin-bottom: 6px;
}

.cart-item-options .option-line:last-child {
  margin-bottom: 0;
}

.cart-item-options .option-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.cart-item-options .option-name {
  font-weight: 500;
  font-size: 13px;
  color: #0f172a;
}

.cart-item-options .option-code {
  font-size: 11px;
  color: #64748b;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

.cart-item-options .option-detail {
  font-size: 12px;
  color: #475569;
  margin-top: 4px;
  line-height: 1.4;
}

.cart-item-options .option-price {
  font-weight: 600;
  font-size: 13px;
  color: #0f766e;
  white-space: nowrap;
}

/* ============================================
   Calibration Options Panel
   ============================================ */

.calibration-options-panel {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.calibration-header {
  margin-bottom: 16px;
}

.calibration-header h4 {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.calibration-subtitle {
  font-size: 13px;
  color: #64748b;
}

.calibration-option {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.calibration-option.enabled {
  background: #f0fdfa;
  border-color: #14b8a6;
}

.calibration-option-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.calibration-option-header:hover {
  background: rgba(0, 0, 0, 0.02);
}

.calibration-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  transition: all 0.15s;
  flex-shrink: 0;
}

.calibration-checkbox.checked {
  background: #14b8a6;
  border-color: #14b8a6;
}

.calibration-checkbox svg {
  color: white;
}

.calibration-option-info {
  flex: 1;
  min-width: 0;
}

.calibration-option-name {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #0f172a;
}

.calibration-option-code {
  font-size: 12px;
  color: #64748b;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

.calibration-option-price {
  font-weight: 600;
  font-size: 14px;
  color: #0f766e;
  white-space: nowrap;
}

.calibration-option-body {
  padding: 0 16px 16px;
  border-top: 1px solid #e2e8f0;
  margin-top: 0;
  padding-top: 16px;
  background: white;
}

.calibration-option.enabled .calibration-option-body {
  background: #f0fdfa;
}

.calibration-desc {
  font-size: 13px;
  color: #475569;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

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

.calibration-field label {
  font-size: 13px;
  font-weight: 500;
  color: #334155;
}

.calibration-input {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.calibration-input:focus {
  outline: none;
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.calibration-input::placeholder {
  color: #94a3b8;
}

/* Per-channel calibration */
.calibration-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calibration-channel {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
}

.channel-header {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.channel-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.channel-field-group label {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

.channel-range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.channel-range-inputs input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  min-width: 0;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.channel-range-inputs input:focus {
  outline: none;
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.channel-range-inputs input::placeholder {
  color: #94a3b8;
}

.range-separator {
  font-size: 12px;
  color: #94a3b8;
  flex-shrink: 0;
}

/* Per-output calibration (ZS_AO) */
.calibration-outputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calibration-output {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
}

.output-header {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.output-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.output-field-group label {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

.output-field-group > input {
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.output-field-group > input:focus {
  outline: none;
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.output-field-group > input::placeholder {
  color: #94a3b8;
}

/* Calibration mobile adjustments */
@media (max-width: 640px) {
  .calibration-options-panel {
    margin-top: 24px;
    padding-top: 20px;
  }

  .calibration-option-header {
    padding: 12px 14px;
    gap: 10px;
  }

  .calibration-option-body {
    padding: 12px 14px 14px;
  }

  .calibration-checkbox {
    width: 18px;
    height: 18px;
  }

  .calibration-option-name {
    font-size: 13px;
  }

  .calibration-option-price {
    font-size: 13px;
  }

  .channel-range-inputs {
    flex-wrap: wrap;
  }

  .channel-range-inputs input {
    min-width: 70px;
  }

  .range-separator {
    width: 100%;
    text-align: center;
    padding: 4px 0;
  }
}

/* ============================================
   Channel Groups within Categories
   ============================================ */

.channel-group {
  margin-bottom: 16px;
}

.channel-group:last-child {
  margin-bottom: 0;
}

.channel-group-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 6px;
  margin-bottom: 8px;
}

/* ============================================
   Inline Calibration Options
   ============================================ */

.inline-calibration {
  margin: 8px 0 12px 32px;
  padding: 12px 16px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 8px;
}

.inline-calibration-header {
  font-size: 12px;
  font-weight: 600;
  color: #0f766e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.inline-calibration-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inline-cal-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 0;
}

.inline-cal-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #14b8a6;
  cursor: pointer;
}

.inline-cal-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.inline-cal-name {
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
}

.inline-cal-price {
  font-size: 13px;
  font-weight: 600;
  color: #0f766e;
}

.inline-cal-fields {
  margin-top: 8px;
  padding: 10px 12px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.inline-cal-fields input[type="text"] {
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 13px;
  width: 100%;
  margin-bottom: 6px;
}

.inline-cal-fields input[type="text"]:last-child {
  margin-bottom: 0;
}

.inline-cal-fields input[type="text"]:focus {
  outline: none;
  border-color: #14b8a6;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.1);
}

.compact-channel,
.compact-output {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.compact-channel:last-child,
.compact-output:last-child {
  margin-bottom: 0;
}

.compact-channel .channel-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  min-width: 35px;
}

.compact-channel input,
.compact-output input,
.compact-output select {
  flex: 1;
  min-width: 60px;
  max-width: 80px;
  padding: 5px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 0 !important;
  background: white;
}

.compact-output select {
  cursor: pointer;
}

.compact-channel input:focus,
.compact-output input:focus,
.compact-output select:focus {
  outline: none;
  border-color: #14b8a6;
}

.compact-channel .arrow,
.compact-output .arrow {
  color: #94a3b8;
  font-size: 12px;
}

/* Mobile adjustments for inline calibration */
@media (max-width: 640px) {
  .inline-calibration {
    margin-left: 0;
    margin-top: 12px;
  }

  .compact-channel,
  .compact-output {
    flex-direction: column;
    align-items: stretch;
  }

  .compact-channel input,
  .compact-output input {
    max-width: none;
  }

  .compact-channel .arrow,
  .compact-output .arrow {
    text-align: center;
    padding: 4px 0;
  }
}

/* ===========================================
   Multi-Step Checkout Styles
   =========================================== */

/* Checkout Progress Steps */
.checkout-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  padding: 20px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
}

.checkout-step .step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #94a3b8;
  transition: all 0.2s;
  flex-shrink: 0;
}

.checkout-step.active .step-number {
  background: #1e40af;
  color: white;
}

.checkout-step.completed .step-number {
  background: #10b981;
  color: white;
}

.checkout-step .step-label {
  font-weight: 600;
  font-size: 14px;
  color: #94a3b8;
  white-space: nowrap;
}

.checkout-step.active .step-label {
  color: #1e40af;
}

.checkout-step.completed .step-label {
  color: #10b981;
}

.step-connector {
  width: 40px;
  height: 2px;
  background: #e2e8f0;
  flex-shrink: 0;
}

/* Form Sections */
.form-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 24px;
  padding-bottom: 0;
}

.form-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0 0 16px 0;
}

/* Form Row - Two columns */
.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

/* Radio Groups */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.radio-label:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.radio-label input[type="radio"] {
  margin-top: 2px;
  flex-shrink: 0;
}

.radio-label span {
  flex: 1;
  color: #334155;
  font-size: 14px;
  line-height: 1.4;
}

.radio-label strong {
  color: #0a0a0a;
}

.radio-note {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  margin: 8px 0 4px 0;
}

/* Checkbox Labels */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.checkbox-label span {
  color: #334155;
  font-size: 14px;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.form-actions .btn {
  min-width: 140px;
}

/* Select styling */
.form-control select,
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

/* Textarea styling */
textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

/* Order Totals in Sidebar */
.order-totals {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.order-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: #64748b;
}

.order-line:last-child {
  padding-bottom: 0;
}

.total-amount {
  font-size: 22px;
  font-weight: 700;
  color: #0f766e;
}

/* Billing Section */
.billing-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.billing-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

/* Item badges in order summary */
.item-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  background: #e0e7ff;
  color: #3730a3;
  margin-left: 8px;
}

.item-qty {
  color: #64748b;
  font-size: 13px;
  margin-left: 4px;
}

/* Order item info */
.order-item-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

/* Mobile responsive for multi-step checkout */
@media (max-width: 1024px) {
  .checkout-progress {
    padding: 16px;
    gap: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .checkout-step {
    padding: 8px 12px;
    flex: 0 0 auto;
  }

  .checkout-step .step-label {
    display: none;
  }

  .step-connector {
    width: 24px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .checkout-progress {
    padding: 12px;
  }

  .checkout-step {
    padding: 6px 8px;
  }

  .checkout-step .step-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .step-connector {
    width: 16px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .radio-label {
    padding: 10px 12px;
  }
}

/* International Shipping Modal */
.international-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.international-modal.active {
  opacity: 1;
}

.international-modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.international-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 480px;
  width: calc(100% - 40px);
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.international-modal-icon {
  margin-bottom: 16px;
}

.international-modal-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 16px;
}

.international-modal-content p {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 12px;
}

.international-modal-content p:last-of-type {
  margin-bottom: 24px;
}

.international-modal-content a {
  color: #2e368f;
  text-decoration: none;
}

.international-modal-content a:hover {
  text-decoration: underline;
}

.international-modal-content .btn {
  min-width: 120px;
}

/* ===============================================
   Special Options Styles (similar to accessories)
   =============================================== */

.special-options-categories {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.so-category {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.so-category-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  cursor: pointer;
  transition: background 0.15s;
}

.so-category-header:hover {
  background: #f1f5f9;
}

.so-chevron {
  transition: transform 0.2s;
  color: #64748b;
}

.so-category:not(.collapsed) .so-chevron {
  transform: rotate(90deg);
}

.so-category-name {
  font-weight: 600;
  font-size: 13px;
  color: #334155;
  flex: 1;
}

.so-category-count {
  font-size: 12px;
  color: #64748b;
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 10px;
}

.so-category-items {
  display: flex;
  flex-direction: column;
}

.so-category.collapsed .so-category-items {
  display: none;
}

/* Special option item - more complex layout for text inputs */
.so-item {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-top: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s;
}

.so-item:hover {
  background: #f8fafc;
}

.so-item.selected {
  background: #eff6ff;
}

.so-item-header {
  display: grid;
  grid-template-columns: 18px 1fr 80px 70px;
  gap: 8px;
  align-items: center;
}

.so-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 2px solid #cbd5e1;
  border-radius: 3px;
  background: white;
  transition: all 0.15s;
  flex-shrink: 0;
}

.so-checkbox.checked {
  background: #1e40af;
  border-color: #1e40af;
}

.so-checkbox.checked svg {
  stroke: white;
}

.so-item:hover .so-checkbox {
  border-color: #94a3b8;
}

.so-name {
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.so-code {
  font-size: 11px;
  color: #94a3b8;
  font-family: ui-monospace, monospace;
  white-space: nowrap;
}

.so-price {
  font-weight: 600;
  color: #059669;
  text-align: right;
  white-space: nowrap;
  font-size: 12px;
}

.so-price.variable {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.so-price-input {
  width: 60px;
  padding: 3px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #059669;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  text-align: right;
}

.so-price-input:focus {
  outline: none;
  border-color: #1e40af;
}

.so-price-input:disabled {
  background: #f1f5f9;
  color: #94a3b8;
}

.so-description {
  margin-top: 6px;
  padding-left: 26px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

/* Text input for special options */
.so-text-input {
  display: none;
  margin-top: 10px;
  padding-left: 26px;
}

.so-text-input.visible {
  display: block;
}

.so-text-input label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.so-text-input input {
  width: 100%;
  max-width: 300px;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  transition: border-color 0.15s;
}

.so-text-input input:focus {
  outline: none;
  border-color: #1e40af;
}

.so-text-input input:disabled {
  background: #f1f5f9;
  color: #94a3b8;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .so-item-header {
    grid-template-columns: 18px 1fr 70px;
  }

  .so-code {
    display: none;
  }
}

/* ============================================
   MOBILE COMPACT OVERRIDES (must be last)
   ============================================ */
@media (max-width: 1024px) {
  /* Compact module options for non-input steps */
  .module-options-list .module-option {
    padding: 6px 10px;
    gap: 8px;
    margin-bottom: 0;
    align-items: center;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    background: white;
  }

  .module-options-list .module-option:last-child {
    border-bottom: none;
  }

  .module-options-list .module-option.selected {
    background: #eff6ff;
    border: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .module-options-list .module-option.selected:last-child {
    border-bottom: none;
  }

  .module-options-list .module-option-image {
    width: 32px;
    height: 32px;
  }

  .module-options-list .module-option-header {
    margin-bottom: 0;
  }

  .module-options-list .module-option-desc {
    margin-bottom: 0;
    font-size: 11px;
    line-height: 1.3;
  }

  .module-options-list {
    gap: 0;
    padding: 0;
    border: none;
  }

  /* Compact module options inside input categories */
  .module-category-content .module-option {
    padding: 6px 10px;
    gap: 8px;
    margin-bottom: 0;
    align-items: center;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    background: white;
  }

  .module-category-content .module-option:last-child {
    border-bottom: none;
  }

  .module-category-content .module-option.selected {
    background: #eff6ff;
    border: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .module-category-content .module-option.selected:last-child {
    border-bottom: none;
  }

  .module-category-content .module-option-image {
    width: 32px;
    height: 32px;
  }

  .module-category-content .module-option-header {
    margin-bottom: 0;
  }

  .module-category-content .module-option-desc {
    margin-bottom: 0;
    font-size: 11px;
    line-height: 1.3;
  }

  .module-category-content {
    gap: 0;
    padding: 0;
  }

  .module-option-functions {
    display: none;
  }

  .module-option-inline-desc {
    display: inline;
    font-size: 12px;
    color: #64748b;
    font-weight: 400;
  }

  .step-content .step-header {
    margin-bottom: 4px;
    padding: 8px 16px 0;
    border-bottom: none;
    text-align: left;
  }

  .step-content .step-header h2 {
    font-size: 15px;
    margin: 0 0 1px 0;
  }

  .step-content .step-header p {
    font-size: 12px;
    margin: 0;
  }

  .step-content {
    margin-bottom: 0;
  }

  .step-container {
    margin-top: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 0;
    margin-bottom: 0;
  }

  .module-categories {
    border: none;
    border-radius: 0;
  }

  .module-options-list {
    border: none;
    border-radius: 0;
    padding: 0;
  }

  .module-option {
    border-radius: 0;
  }

  .mobile-footer .summary-total {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 8px;
  }
}
