/* Configurator Layout */
.configurator {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 40px;
  min-height: calc(100vh - 143px);
}

/* 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: 70px;
}

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

@media (max-width: 768px) {
  .sticky-summary-bar {
    top: 60px;
  }
}

.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: 183px;
  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 - 180px);
}

.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;
  padding-top: 16px;
  border-top: 2px solid #e2e8f0;
  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-price {
  font-size: 14px;
  font-weight: 600;
  color: #0f766e;
}

/* 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: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

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

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

@media (max-width: 768px) {
  .configurator {
    padding: 20px;
  }

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

  .progress-bar {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }

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

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

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

  .configurator-body {
    padding: 24px;
  }

  .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: 160px;
  min-width: 0;
  overflow: hidden;
}

/* 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;
  }
}

/* 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;
}

.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;
  margin-bottom: 10px;
}

.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;
}

.back-to-product {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
  margin-bottom: 8px;
}

.back-to-product:hover {
  color: #1e40af;
}

/* 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;
}

/* Wizard Navigation - Sticky at bottom */
.wizard-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  bottom: 0;
  background: white;
  padding: 16px 24px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.wizard-navigation .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
}

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

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

.wizard-navigation .btn-secondary: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;
  justify-content: space-between;
  align-items: center;
  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;
}

.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-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-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;
}

/* Cart Sidebar */
.cart-sidebar {
  position: sticky;
  top: 140px;
  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 {
  margin-bottom: 4px;
}

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

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

.summary-line-qty {
  font-size: 13px;
  color: #64748b;
}

.summary-line-total {
  font-size: 14px;
  font-weight: 600;
  color: #0a0a0a;
}

/* 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: 8px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
}

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

.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-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: 140px;
  height: fit-content;
}

.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 {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.order-item .item-name {
  color: #334155;
  font-size: 14px;
}

.order-item .item-price {
  font-weight: 600;
  color: #0a0a0a;
}

.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,
  .order-summary {
    max-width: 500px;
    margin: 0 auto 32px;
  }

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

  .step-connector {
    display: none;
  }
}

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

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

  .cart-item {
    flex-direction: column;
  }

  .cart-item-image {
    width: 100%;
    height: 150px;
  }

  .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;
  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;
}

.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;
}

.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;
}

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

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

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

/* ============================================
   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;
}
