/* Masque prix / panier / quantité PS natifs — uniquement sur les produits avec ce module */
.product-prices,
.product-actions,
#product-availability {
  display: none !important;
}

.bs-configurator {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 24px 32px;
  margin: 24px 0;
  background: #fafafa;
  font-family: inherit;
  /* Pleine largeur — casse les contraintes de colonnes parentes */
  width: 100%;
  box-sizing: border-box;
  clear: both;
}

.bs-config-heading {
  font-size: 1.15em;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
}

.bs-preview-wrap {
  text-align: center;
  margin-top: 4px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 14px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#bs-canvas {
  max-width: 100%;
  height: auto;
}

#bs-no-bandeau-msg {
  color: #999;
  font-style: italic;
}

.bs-dashed-toggle-row {
  margin-top: 6px;
  margin-bottom: 14px;
}

.bs-line-block {
  border: 1px solid #e4e4e4;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: #fefefe;
}

.bs-line-heading-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.bs-line-heading {
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1976d2;
  margin-bottom: 0;
}

.bs-btn-remove-line {
  background: none;
  border: none;
  color: #999;
  font-size: 1.1em;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s;
}
.bs-btn-remove-line:hover { color: #c62828; }

.bs-add-line2-row {
  margin-bottom: 14px;
}

.bs-btn-add-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 2px dashed #1976d2;
  border-radius: 6px;
  background: transparent;
  color: #1976d2;
  font-size: 0.88em;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.bs-btn-add-line:hover {
  background: #e3f2fd;
}

.bs-font-row {
  flex-wrap: wrap;
  gap: 8px;
}

.bs-font-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.bs-font-group label:first-child {
  font-weight: 600;
  font-size: 0.9em;
  color: #444;
  white-space: nowrap;
  min-width: auto;
  margin: 0;
}

.bs-font-import-sep {
  font-size: 0.82em;
  color: #999;
  white-space: nowrap;
}

.bs-btn-import {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid #1976d2;
  border-radius: 5px;
  background: #fff;
  color: #1976d2;
  font-size: 0.82em;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.bs-btn-import:hover {
  background: #1976d2;
  color: #fff;
}

.bs-import-font-name {
  font-size: 0.8em;
  color: #2e7d32;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bs-slider-row label {
  min-width: 160px;
  font-size: 0.85em;
  font-weight: 500;
  color: #555;
}

.bs-form-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.bs-form-row label {
  min-width: 160px;
  font-weight: 600;
  font-size: 0.9em;
  color: #444;
  margin: 0;
}

.bs-slider {
  flex: 1;
  min-width: 120px;
  max-width: 300px;
  cursor: pointer;
  accent-color: #2196f3;
}

.bs-section-label {
  font-size: 0.9em;
  font-weight: 700;
  color: #555;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.bs-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.bs-preset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 2px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 700;
  color: #444;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: border-color 0.18s, background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
  user-select: none;
}

.bs-preset-btn:hover {
  border-color: #1976d2;
  background: #e8f2fd;
  color: #1565c0;
  box-shadow: 0 2px 8px rgba(25,118,210,0.15);
  transform: translateY(-1px);
}

.bs-preset-btn.bs-preset-active {
  border-color: #1976d2;
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(25,118,210,0.35);
  transform: translateY(-1px);
}

.bs-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9em;
  color: #444;
  min-width: auto;
}

.bs-toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #2196f3;
}

.bs-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.bs-swatch-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.bs-swatch {
  display: inline-block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #ccc;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}

.bs-swatch:hover {
  transform: scale(1.1);
  border-color: #666;
}

.bs-swatch-active {
  border: 3px solid #1976d2;
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(25,118,210,0.25);
}

.bs-swatch-label {
  font-size: 0.72em;
  color: #555;
  text-align: center;
  max-width: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bs-color-picker {
  position: relative;
  display: inline-block;
  min-width: 160px;
  user-select: none;
}

.bs-color-picker-selected {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  height: 44px;
  transition: border-color 0.15s;
}

.bs-color-picker-selected:hover {
  border-color: #1976d2;
}

.bs-cp-dot {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.bs-cp-name {
  flex: 1;
  font-size: 0.9em;
  color: #333;
}

.bs-cp-arrow {
  flex-shrink: 0;
  color: #888;
  transition: transform 0.15s;
}

.bs-color-picker.bs-picker-open .bs-cp-arrow {
  transform: rotate(180deg);
}

.bs-color-picker-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 9999;
  overflow: hidden;
}

.bs-cp-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.12s;
}

.bs-cp-option:hover {
  background: #f0f7ff;
}

.bs-cp-option-active {
  background: #e3f2fd;
}

.bs-cp-option .bs-cp-name {
  font-size: 0.9em;
  color: #333;
  font-weight: 500;
}

.bs-text-input {
  flex: 1;
  min-width: 180px;
  max-width: 400px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 0.95em;
}

.bs-font-select {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 0.9em;
  cursor: pointer;
}

.bs-font-row {
  margin-top: -6px;
  padding-left: 0;
}

.bs-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 14px;
  font-size: 1.05em;
  color: #333;
  border-top: 1px solid #e0e0e0;
  padding-top: 14px;
}

.bs-price-row strong {
  font-size: 1.3em;
  color: #e53935;
}

.bs-cart-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.bs-btn-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 22px;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.bs-btn-cart:hover {
  background: #1565c0;
}

.bs-btn-cart:disabled {
  background: #90a4ae;
  cursor: not-allowed;
}

#bs-cart-status {
  font-size: 0.95em;
}

#bs-cart-status.bs-ok {
  color: #2e7d32;
}

#bs-cart-status.bs-err {
  color: #c62828;
}

.bs-qty-section {
  margin: 20px 0 14px;
  border-top: 1px solid #e0e0e0;
  padding-top: 16px;
}

.bs-qty-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.bs-qty-btn {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 20px;
  border: 2px solid #d0d0d0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.12s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: relative;
}

.bs-qty-btn:hover {
  border-color: #1976d2;
  background: #e8f2fd;
  box-shadow: 0 2px 8px rgba(25,118,210,0.15);
  transform: translateY(-2px);
}

.bs-qty-btn.bs-qty-active {
  border-color: #1976d2;
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  box-shadow: 0 4px 14px rgba(25,118,210,0.35);
  transform: translateY(-2px);
}

.bs-qty-label {
  font-size: 1em;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.01em;
}

.bs-qty-active .bs-qty-label {
  color: #fff;
}

.bs-qty-price {
  font-size: 1.15em;
  font-weight: 700;
  color: #1976d2;
}

.bs-qty-active .bs-qty-price {
  color: #fff;
}

.bs-qty-discount {
  display: inline-block;
  background: #e53935;
  color: #fff;
  font-size: 0.78em;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 9px;
  letter-spacing: 0.02em;
}

.bs-qty-active .bs-qty-discount {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* ── Résumé panier ── */
.bs-cart-summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
  padding: 8px 10px;
  background: #f5f9ff;
  border: 1px solid #d0e4f7;
  border-radius: 6px;
  font-size: 0.82em;
}

.bs-cart-preview img {
  width: 90px;
  height: auto;
  border-radius: 4px;
  border: 1px solid #ddd;
  flex-shrink: 0;
}

.bs-cart-details {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bs-cart-details li {
  margin-bottom: 3px;
  color: #444;
  line-height: 1.4;
}
