/* === CONFIGURATEUR FIGURINE PERSONNALISÉE === */

/* Bloc du configurateur */
body.home .ct-product-add-to-cart,
body.single-product.product_cat-figurine-personnalisee .ct-product-add-to-cart {
  max-width: 650px;
  margin: 14px!important;
  background: #fff!important;
  border-radius: 0px 0px 14px 14px;
  padding: 10px 30px 30px 30px;
  box-shadow: 0 14px 25px rgba(0,0,0,0.08);
  --figurine-loading-bottom: clamp(90px, 12vw, 130px);
}

/* Étapes */
.variation-step-row {
  display: none;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Navigation */
.figurine-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 5px!important;
}
.figurine-nav button {
  background: #4c4452;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.25s ease;
}
.figurine-nav button:hover {
  background: #5e5565;
}
.figurine-nav button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Swatches */
.ct-swatch-container {
  cursor: pointer;
  transition: transform 0.2s ease;
}
.ct-swatch-container:hover {
  transform: scale(1.07);
}
.ct-swatch-container .ct-tooltip {
  display: none !important;
}
.ct-variation-swatches.figurine-render-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ct-swatch-container.figurine-render-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #444;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
}

.ct-swatch-container.figurine-render-option .ct-swatch {
  background: transparent;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.ct-swatch-container.figurine-render-option .ct-swatch-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e2e2e2;
  border-radius: 10px;
  padding: 10px 16px;
  background: #fff;
  color: #444;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ct-swatch-container.figurine-render-option.active .ct-swatch-content {
  color: #4c4452;
  border-color: #ffc7de;
  background: #fff0f7;
}

.ct-swatch-container.figurine-render-option:hover .ct-swatch-content {
  border-color: #ffcc66;
}

/* Structure principale de navigation */
.figurine-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  flex-wrap: wrap;
}

.figurine-nav-right {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  width: 100%;
}

.figurine-generation-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f0f2f5;
  color: #444;
  font-size: 13px;
  font-weight: 700;
  min-width: 64px;
}

/* Styles des boutons */
.figurine-nav button,
.figurine-nav .single_add_to_cart_button {
  background: #4c4452;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.25s ease;
  font-weight: 600;
}

.figurine-nav button:hover,
.figurine-nav .single_add_to_cart_button:hover {
  background: #5e5565;
}

.figurine-nav button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.figurine-nav button.retry-generation {
  background: transparent;
  border: none;
  padding: 0;
  color: #444;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.figurine-nav button.retry-generation:hover:not([disabled]) {
  background: transparent;
  color: #222;
}

/* Bloc contenant quantité + bouton panier */
.figurine-cart-zone {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.figurine-cart-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.figurine-cart-zone .quantity,
.figurine-cart-zone .single_add_to_cart_button {
  flex: 1 1 auto;
  max-width: 100%;
  width: 100% !important;
}

.figurine-cart-zone .single_add_to_cart_button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.figurine-cart-zone .retry-generation {
  background: transparent;
  border: none;
  padding: 0;
  color: #444;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  width: 100%;
}

.figurine-cart-zone .retry-generation:hover:not([disabled]) {
  background: transparent;
  color: #222;
}

.figurine-cart-validation-note {
  margin: -2px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  line-height: 1.35;
  text-align: center;
}


.figurine-ready-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.figurine-ready-recap {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fafafa;
}

.figurine-ready-recap__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.figurine-ready-recap__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  color: #444;
  font-size: 14px;
}

/* === Barre de progression (style avis + étapes) === */
.figurine-progress {
  --p: 0%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.figurine-progress-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  color: #ffcc66;
  font-size: 14px;
}

.figurine-progress-stars {
  letter-spacing: 2px;
  font-size: 16px;
}

.figurine-progress-reviews {
  color: #ffcc66;
}

.figurine-progress-title {
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  color: #555;
}

.figurine-progress-track {
  position: relative;
  height: 18px;
}

.figurine-progress-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  transform: translateY(-50%);
  background: #dedede;
  border-radius: 999px;
}

.figurine-progress-line--active {
  right: auto;
  width: var(--p);
  background: linear-gradient(90deg, #4c4452 0%, #cbb9db 100%);
  transition: width 0.4s ease;
}

.figurine-progress-dots {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  height: 100%;
  align-items: center;
}

.figurine-progress-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #d9d9d9;
  box-shadow: 0 0 0 3px #ffe9f4;
  transition: transform 0.3s ease, background 0.3s ease;
}

.figurine-progress-dot.is-active {
  background: #4c4452;
}

.figurine-progress-dot.is-complete {
  background: #4c4452;
}

.figurine-progress-dot.is-upcoming {
  background: #ffc7de;
}

.figurine-progress-dot.is-current {
  transform: scale(1.15);
}

@media (max-width: 600px) {
  .figurine-progress-title {
    font-size: 15px;
  }
}

/* === Prix dynamique du configurateur === */
.figurine-selection {
  text-align: right;
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 14px;
  color: #444;
  animation: fadeIn 0.3s ease;
}

.figurine-selection-label {
  margin-right: 6px;
  font-weight: 600;
}

.figurine-selection-value {
  font-weight: 600;
}

.figurine-option-grid__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.figurine-params-accordion {
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  padding: 12px 16px;
  background: #fff;
}

.figurine-params-accordion > summary {
  cursor: pointer;
  font-weight: 700;
  color: #333;
  list-style: none;
}

.figurine-params-accordion > summary::-webkit-details-marker {
  display: none;
}

.figurine-params-accordion[open] > summary {
  margin-bottom: 12px;
}

.figurine-params-accordion.figurine-params-accordion--plain {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.figurine-params-accordion.figurine-params-accordion--plain > summary {
  margin: 0;
}

.figurine-params-accordion.figurine-params-accordion--plain .figurine-option-grid__inner {
  gap: 0;
}

.figurine-option-grid__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.figurine-option-grid__label {
  font-weight: 800;
  color: #444;
  margin-top:12px;
}

.figurine-option-text{
  font-weight: 400;
  color: #444;
  margin-bottom:-10px!important;
}

.figurine-option-grid__value select,
.figurine-option-grid__value .ct-variation-swatches,
.figurine-option-grid__value .value {
  width: 100%;
}

.figurine-render-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.figurine-render-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #444;
  cursor: pointer;
  background: transparent;
}

.figurine-render-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e2e2e2;
  border-radius: 10px;
  padding: 10px 16px;
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.figurine-render-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.figurine-render-option input:checked + span {
  color: #4c4452;
  border-color: #4c4452;
  background: #fff0f7;
}

.figurine-render-option:hover span {
  border-color: #ffcc66;
}

@media (max-width: 700px) {
  .figurine-option-grid__inner {
    grid-template-columns: 1fr;
  }
}


.figurine-price {
  text-align: left;
  margin: 0px!important;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: left;
  column-gap: 12px;
  row-gap: 6px;
  font-weight: 700;
  font-size: 17px;
  animation: fadeIn 0.3s ease;
  width: 100%;
}

.variations_form .woocommerce-variation-price {
  display: none !important;
}

.figurine-price-label {
  color: #444;
  margin-right: 0;
  font-weight: 600;
}

.figurine-price-value {
  color: #4c4452;
  font-weight: 800;
  font-size: 20px;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}


.figurine-price.figurine-price--with-next {
  width: auto;
  margin-left: auto !important;
  animation: none;
}

.figurine-price-line {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 16px;
}


/* Texte d'aide des sélections */
.figurine-help-text {
  margin: 6px 0 12px;
  font-size: 13px;
  color: #666;
}

.figurine-generation-remaining {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  text-align: center;
}

#customer-dropzone .figurine-generation-remaining {
  width: 100%;
}

.figurine-generation-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #eadcf1;
  color: #2f2350;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 800;
  line-height: 1.2;
}

.figurine-generation-badge--limit {
  background: #f8e3e3;
  color: #7c2323;
  font-size: 14px;
  font-weight: 700;
}

.figurine-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
}

.figurine-contact-submit {
  background: #4c4452;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease;
}

.figurine-contact-submit:hover {
  background: #5e5565;
}

.figurine-contact-submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.figurine-contact-submit.is-sent,
.figurine-contact-submit.is-sent:hover {
  background: #bdbdbd;
  color: #ffffff;
}

.figurine-contact-submit.is-sent[disabled] {
  opacity: 1;
}

.figurine-contact-status {
  order: 1;
  margin-right: auto;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.figurine-contact-submit {
  order: 2;
}

.figurine-contact-channel-input {
  width: 100%;
  min-height: 32px;
  height: 36px;
  padding: 8px 12px;
  resize: none;
}

.figurine-contact-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.figurine-contact-method {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.figurine-contact-channel-hint {
  margin-top: 4px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

/* === Aperçu 2D généré === */
.figurine-preview {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
  width: 100%;
  box-sizing: border-box;
}

.figurine-preview-row .figurine-preview-slot {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.figurine-preview-header {
  font-weight: 700;
  margin-bottom: 8px;
  color: #333;
}

.figurine-preview-body {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px dashed #d5d7db;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.figurine-preview-placeholder {
  color: #666;
  font-size: 14px;
}

.figurine-preview-progress {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
}

.figurine-preview-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #e5e7eb;
  border-top-color: #4c4452;
  animation: figurine-spin 1.2s linear infinite;
}

.figurine-preview-progress-label {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
}

.figurine-preview-progress-status {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

.figurine-preview.loading .figurine-preview-body {
  opacity: 0.7;
}

.figurine-preview.loading .figurine-preview-progress {
  display: flex;
}

.figurine-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.figurine-preview-gallery-slot {
  margin-bottom: 16px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes figurine-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Responsive mobile --- */
@media (max-width: 768px) {

  .figurine-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .figurine-nav button,
  .figurine-nav .single_add_to_cart_button {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 14px;
  }

  .figurine-nav-right {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
    order: 1;
  }
  
  .figurine-nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    order: 2;
  }


  .figurine-price {
    justify-content: center;
    text-align: center;
    margin: 0;
    font-size: 1.25rem;
    grid-template-columns: auto auto;
    padding: 12px 16px;
  }

  .figurine-price.figurine-price--with-next {
    width: 100%;
    margin-left: 0 !important;
  }

  .figurine-selection {
    text-align: center;
    font-size: 1.05rem;
  }

  .figurine-price-label {
    font-size: 1.1rem;
  }

  .figurine-price-value {
    font-size: 1.5rem;
  }

  .figurine-cart-zone {
    align-items: center;
    gap: 12px;
  }

  .figurine-cart-controls {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .figurine-cart-zone .retry-generation {
    text-align: center;
  }

  .figurine-cart-zone .quantity,
  .figurine-cart-zone .single_add_to_cart_button {
    width: 100%;
    margin: 0;
    flex-basis: 100%;
  }

  .figurine-nav button.prev-step {
    order: 1;
  }

  .figurine-nav .next-step,
  .figurine-cart-zone {
    order: 2;
  }
}

body.single-product.product_cat-figurine-personnalisee .acf-block-upload {
  max-width: 650px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* 🔹 Bouton “Étape précédente” — plus discret mais aligné */
.figurine-nav .prev-step {
  background: #e9ecef;
  color: #555;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease;
}

.figurine-nav .prev-step:hover {
  background: #d7dbdf;
  color: #333;
}

/* Désactivé : encore plus doux */
.figurine-nav .prev-step[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.ct-product-add-to-cart.figurine-preview-loading {
  position: relative;
}

.ct-product-add-to-cart.figurine-preview-loading::before {
  content: "";
  position: absolute;
  inset: 0 0 var(--figurine-loading-bottom) 0;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 0px 0px 12px 12px;
  z-index: 5;
  pointer-events: none;
}

.ct-product-add-to-cart.figurine-preview-loading::after {
  content: var(--figurine-loading-text, "Figurpaint est 100% français");
  position: absolute;
  inset: 0 0 var(--figurine-loading-bottom) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 0 24px;
  z-index: 6;
  pointer-events: none;
}

.woocommerce-Price-amount {
  font-size: 16px !important;
}

.figurine-price-value del {
  margin-top: 0;
  font-weight: 400 !important;
  color: #7f7f7f;
  text-decoration: line-through;
  display: inline-flex;
  font-size: clamp(18px, 2.2vw, 24px);
}

.figurine-price-value ins {
  color: #4c4452 !important;    /* accent principal */
  font-weight: 800 !important;  /* gras fort */
  text-decoration: none !important;
  display: inline-flex;
  font-size: clamp(28px, 3.2vw, 38px);
}

/* --- Désactive explicitement tout badge promo Saint Valentin restant --- */
.figurine-price .figurine-price-value::after {
  content: none !important;
  display: none !important;
}

.figurine-price-value ins {
  animation: pulsePrice 2s infinite ease-in-out;
}

@keyframes pulsePrice {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* === UPLOAD === */
#customer-dropzone {
  position: relative;
  z-index: 1;
}

#customer-dropzone .dz-instructions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

#customer-dropzone .dz-icon {
  width: 66px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f6f6f6 0%, #ececec 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 6px rgba(0, 0, 0, 0.08);
}

#customer-dropzone .dz-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.dz-hint--error {
  color: #4c4452!important;
  font-weight: 600;
}

.figurine-preview {
  margin-top: 16px;
  border: 1px dashed #d6d8dc;
  border-radius: 12px;
  padding: 18px;
  background: #fafbfc;
}

.figurine-preview__title {
  font-weight: 700;
  margin-bottom: 4px;
  color: #222;
}

.figurine-preview__helper {
  margin: 0 0 6px;
  color: #555;
  font-size: 13px;
}

.figurine-preview__status {
  font-weight: 600;
  color: #4c4452;
  min-height: 20px;
}

.figurine-preview__image {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.figurine-preview__image img {
  display: block;
  width: 100%;
  height: auto;
}

#customer-file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

/* Zone des vignettes */
#dz-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  position: relative;
  z-index: 3;
}

.dz-thumb {
  position: relative;
  z-index: 3;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.dz-thumb:hover {
  transform: scale(1.05);
}

.dz-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bouton supprimer */
.dz-thumb .dz-remove {
  position: absolute;
  top: 3px;
  right: 6px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 18px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 4;
}

.dz-thumb .dz-remove:hover {
  background: #4c4452;
}

/* ✅ Animation de chargement pendant upload */
.dz-thumb.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dz-thumb.loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 3px solid #4c4452;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 5;
}

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

/* Éléments du configurateur au-dessus de tout */
.variation-step,
.figurine-nav,
.figurine-price,
.figurine-progress {
  position: relative;
  z-index: 10;
}

/* === Bloc "Aperçu avant fabrication" === */
.figurine-preview-info {
  text-align: left;
  padding: 15px 18px;
  margin-top: 15px;
  font-size: 15px;
  color: #444;
  line-height: 1.5;
}

.figurine-preview-info h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #222;
}

.figurine-preview-info p {
  margin: 0;
  font-weight: 500;
  font-size: 14px;
}

#figurine-style-select {
  width: 100%;
  max-width: 320px;
  margin: 4px 0;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #d6d6d6;
  background-color: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.figurine-style-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.figurine-style-title-text {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.figurine-style-thumb--photo {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cdefs%3E%3ClinearGradient id='g1' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23e6eaf0'/%3E%3Cstop offset='1' stop-color='%23cbd3df'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='160' height='160' rx='18' fill='url(%23g1)'/%3E%3Cpath d='M20 118l38-46 28 30 24-28 30 44H20z' fill='%23ffffff' fill-opacity='0.85'/%3E%3Ccircle cx='52' cy='52' r='16' fill='%23ffffff' fill-opacity='0.9'/%3E%3C/svg%3E");
}

.figurine-style-thumb--ghibli {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cdefs%3E%3ClinearGradient id='g2' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23f6d7c8'/%3E%3Cstop offset='1' stop-color='%23f2b49a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='160' height='160' rx='18' fill='url(%23g2)'/%3E%3Cpath d='M18 120l42-50 26 30 26-32 30 52H18z' fill='%23ffffff' fill-opacity='0.85'/%3E%3Ccircle cx='56' cy='48' r='16' fill='%23ffffff' fill-opacity='0.9'/%3E%3C/svg%3E");
}

.figurine-style-thumb--bobblehead {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cdefs%3E%3ClinearGradient id='g3' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23d7f0f5'/%3E%3Cstop offset='1' stop-color='%239fd0df'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='160' height='160' rx='18' fill='url(%23g3)'/%3E%3Cpath d='M20 120l34-40 30 32 26-30 30 38H20z' fill='%23ffffff' fill-opacity='0.85'/%3E%3Ccircle cx='50' cy='52' r='16' fill='%23ffffff' fill-opacity='0.9'/%3E%3C/svg%3E");
}

.figurine-style-thumb--manga {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cdefs%3E%3ClinearGradient id='g4' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%23f7f2c8'/%3E%3Cstop offset='1' stop-color='%23efd69a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='160' height='160' rx='18' fill='url(%23g4)'/%3E%3Cpath d='M22 120l34-42 30 34 26-30 30 38H22z' fill='%23ffffff' fill-opacity='0.85'/%3E%3Ccircle cx='54' cy='50' r='16' fill='%23ffffff' fill-opacity='0.9'/%3E%3C/svg%3E");
}

.figurine-upload-note {
  margin-top: 12px;
  padding: 0px 0px;
  color: #2a2f36;
  font-size: 12px;
  line-height: 1.4;
}

.figurine-upload-note__title {
  font-weight: 700;
  margin-bottom: 0px;
}

.figurine-upload-note__text {
  margin: 0;
}

.figurine-retry-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.figurine-retry-modal {
  width: min(680px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
}

.figurine-retry-modal h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.figurine-retry-modal p {
  margin: 0;
  color: #2e2e2e;
  line-height: 1.45;
}

.figurine-retry-modal-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.figurine-retry-modal-actions .button,
.figurine-retry-modal-actions .button.button-primary {
  background: #7d7d7d;
  border-color: #7d7d7d;
  color: #fff;
}

.figurine-retry-modal-actions .button:hover,
.figurine-retry-modal-actions .button:focus,
.figurine-retry-modal-actions .button.button-primary:hover,
.figurine-retry-modal-actions .button.button-primary:focus {
  background: #6b6b6b;
  border-color: #6b6b6b;
  color: #fff;
}


.figurine-limit-inline-message {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #7c2323;
  text-align: center;
}



#customer-dropzone.figurine-dropzone--limit-reached {
  border-style: dashed;
}

#customer-dropzone.figurine-dropzone--limit-reached .figurine-upload-intro,
#customer-dropzone.figurine-dropzone--limit-reached .dz-icon,
#customer-dropzone.figurine-dropzone--limit-reached .dz-button,
#customer-dropzone.figurine-dropzone--limit-reached .dz-hint,
#customer-dropzone.figurine-dropzone--limit-reached #dz-previews,
#customer-dropzone.figurine-dropzone--limit-reached #customer-file,
#customer-dropzone.figurine-dropzone--limit-reached #dz-msg,
#customer-dropzone.figurine-dropzone--limit-reached .figurine-usage-note-extra {
  display: none !important;
}
.figurine-limit-inline-actions {
  margin-top: 12px;
}

#customer-dropzone .figurine-limit-inline-actions .figurine-limit-contact-form {
  margin: 0 auto;
}

.figurine-usage-note {
  margin-top: 8px;
  font-size: 14px;
  color: #4b5563;
}

.figurine-usage-note-sub {
  margin-top: 4px;
  font-size: 14px;
  color: #4b5563;
}

.figurine-usage-note-extra {
  margin-top: 4px;
  font-size: 14px;
  color: #4b5563;
}

.figurine-limit-response-time {
  margin: 4px 0 0;
  font-size: 14px;
  color: #374151;
  text-align: center;
}

.figurine-limit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.65);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.figurine-limit-card {
  background: #fff;
  border-radius: 14px;
  max-width: 620px;
  width: 100%;
  padding: 24px;
}

.figurine-limit-contact-form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.figurine-limit-contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.figurine-limit-contact-methods label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.figurine-limit-contact-form input[type="text"],
.figurine-limit-contact-form textarea,
.figurine-limit-contact-form input[type="file"] {
  width: 100%;
}

.figurine-limit-upload-label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: #374151;
}

/* Barre d'objectifs coupon (usage total) */
.figurine-reward-progress {
  margin: 0 auto 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px 16px 30px;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  background: #fff;
  overflow: visible;
}

.figurine-reward-tracks {
  display: grid;
  gap: 18px;
  margin: 18px 0;
}

.figurine-reward-track__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.figurine-reward-progress__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  margin-bottom: 14px;
}

.figurine-reward-progress__head-main {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.figurine-reward-progress__status {
  color: #4c4452;
  font-weight: 600;
  white-space: nowrap;
}

.figurine-reward-progress__track {
  position: relative;
  height: 20px;
  border-radius: 999px;
  overflow: visible;
  margin-top: 2px;
}

.figurine-reward-progress__fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 10px;
  background: linear-gradient(90deg, #ffc7de, #ff8db6);
  transition: width 0.3s ease;
  border-radius: 999px;
  z-index: 1;
}

.figurine-reward-progress__ticks {
  position: absolute;
  inset: auto 0 0 0;
  height: 10px;
  border-radius: 999px;
  background: #f1f1f4;
  z-index: 0;
}

.figurine-reward-progress__tick {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  margin-left: -1px;
  background: rgba(76, 68, 82, 0.28);
}

.figurine-reward-progress__tick.is-reached {
  background: #4c4452;
}

.figurine-reward-progress__tick.is-milestone {
  opacity: 0;
}

.figurine-reward-progress__milestones {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  pointer-events: none;
}

.figurine-reward-progress__milestone-dot {
  position: absolute;
  top: 16px;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #d9a404;
  background: #ffcc33;
  cursor: pointer;
  z-index: 3;
  padding: 0;
  outline: none;
  pointer-events: auto;
}

.figurine-reward-progress__milestone-dot.is-edge-start {
  transform: translate(0, -50%);
}

.figurine-reward-progress__milestone-dot.is-edge-end {
  transform: translate(-100%, -50%);
}

.figurine-reward-progress__milestone-dot.is-edge-start::before {
  left: 0;
  transform: translateX(0);
}

.figurine-reward-progress__milestone-dot.is-edge-end::before {
  left: auto;
  right: 0;
  transform: translateX(0);
}

.figurine-reward-progress__milestone-dot.is-edge-start::after {
  left: 14px;
  transform: translateX(0);
}

.figurine-reward-progress__milestone-dot.is-edge-end::after {
  left: auto;
  right: 14px;
  transform: translateX(0);
}

.figurine-reward-progress__milestone-dot::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  min-width: 180px;
  max-width: 260px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #2d2d36;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-line;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.figurine-reward-progress__milestone-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #2d2d36;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.figurine-reward-progress__milestone-dot:hover::before,
.figurine-reward-progress__milestone-dot:hover::after,
.figurine-reward-progress__milestone-dot:focus::before,
.figurine-reward-progress__milestone-dot:focus::after,
.figurine-reward-progress__milestone-dot.is-active::before,
.figurine-reward-progress__milestone-dot.is-active::after {
  opacity: 1;
}

.figurine-reward-progress__milestone-dot.is-reached {
  background: #ffb300;
  border-color: #b27b00;
}

.figurine-reward-progress__milestone-value {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  color: #5a5a5a;
  line-height: 1;
}

.figurine-reward-progress__milestone-dot.is-edge-start .figurine-reward-progress__milestone-value {
  left: 0;
  transform: translateX(0);
}

.figurine-reward-progress__milestone-dot.is-edge-end .figurine-reward-progress__milestone-value {
  left: 100%;
  transform: translateX(-100%);
}

.figurine-reward-progress__legend {
  font-size: 12px;
  color: #5b5b5b;
}

.figurine-reward-progress__rewards {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.figurine-reward-progress__reward-item {
  border: 1px solid #ececf1;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fafafc;
  color: #3f3f46;
  font-size: 13px;
  opacity: 0.7;
  transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.figurine-reward-progress__reward-item.is-reached {
  opacity: 1;
  background: #f1fff4;
  border-color: #b8ebc0;
}

.figurine-reward-progress__reward-title {
  font-size: 13px;
  font-weight: 700;
  color: #4c4452;
  margin-bottom: 4px;
}

.figurine-reward-progress__reward-details {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.figurine-reward-progress__reward-details li {
  line-height: 1.35;
}

.figurine-reward-progress__level-zero-accordion {
  margin-top: 10px;
  border: 1px solid #e5dff0;
  border-radius: 10px;
  background: #fff;
}

.figurine-reward-progress__level-zero-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  color: #4c4452;
  padding: 10px 12px;
}

.figurine-reward-progress__validation-lock {
  display: none;
  margin-left: auto;
  font-size: 14px;
  line-height: 1;
}

.figurine-reward-progress__level-zero-summary::-webkit-details-marker {
  display: none;
}

.figurine-reward-progress__level-zero-arrow {
  width: 9px;
  height: 9px;
  border-right: 2px solid #4c4452;
  border-bottom: 2px solid #4c4452;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.figurine-reward-progress__level-zero-accordion[open] .figurine-reward-progress__level-zero-arrow {
  transform: rotate(225deg);
}

.figurine-reward-progress__validation-accordion.is-locked > .figurine-reward-progress__level-zero-summary {
  cursor: not-allowed;
  opacity: 0.75;
}

.figurine-reward-progress__validation-accordion.is-locked > .figurine-reward-progress__level-zero-summary .figurine-reward-progress__validation-lock {
  display: inline-flex;
}

.figurine-reward-progress__validation-accordion.is-locked .figurine-reward-progress__level-zero-arrow {
  opacity: 0.4;
}

.figurine-reward-progress__level-zero-body {
  border-top: 1px solid #ececf1;
  padding: 10px 12px 12px;
  display: grid;
  gap: 10px;
}

.figurine-reward-progress__level-zero-description {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
}

.figurine-reward-progress__level-zero-form {
  display: grid;
  gap: 10px;
}

.figurine-reward-progress__level-zero-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: #3f3f46;
}

.figurine-reward-progress__level-zero-form input[type="file"],
.figurine-reward-progress__level-zero-form select,
.figurine-reward-progress__level-zero-form textarea {
  width: 100%;
  border: 1px solid #d5d7dc;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  font-size: 13px;
}

.figurine-reward-progress__level-zero-form > button[type="submit"] {
  border: 0;
  border-radius: 999px;
  background: #4c4452;
  color: #fff;
  padding: 9px 14px;
  font-weight: 700;
  width: fit-content;
  cursor: pointer;
}

.figurine-reward-progress__level-zero-form > button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.fspg-bogo-cart-selector {
  margin-top: 1.4rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.fspg-bogo-cart-header h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.15;
  color: #4c4452;
  font-weight: 800;
}

.fspg-bogo-cart-header p {
  margin: 0.6rem 0 1.2rem;
  color: #5f4f8a;
  font-size: 1.05rem;
}

.fspg-bogo-cart-list {
  display: grid;
  gap: 0.9rem;
}

.fspg-bogo-cart-block {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.fspg-bogo-cart-block-top {
  display: none;
}

.fspg-bogo-slider-label {
  display: block;
  margin: 0 0 0.9rem;
  font-size: 1.12rem;
  color: #604c91;
}

.fspg-bogo-cart-size-price {
  font-weight: 700;
}

.fspg-bogo-carousel-shell {
  border: 2px solid #e5ddf7;
  border-radius: 24px;
  background: #f7f4fd;
  padding: 0.7rem 0.55rem 0.55rem;
}

.fspg-bogo-choice-picker {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
}

.fspg-bogo-arrow {
  width: 50px;
  height: 50px;
  border: 2px solid #ddd1fa;
  border-radius: 999px;
  background: #efe7ff;
  color: #7b52dd;
  font-size: 40px;
  line-height: 0.75;
  cursor: pointer;
  box-shadow: 0 8px 20px -16px rgba(73, 34, 154, 0.55);
}

.fspg-bogo-choice-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (3 * 0.55rem)) / 4);
  gap: 0.55rem;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding: 0.1rem 0.05rem 0.15rem;
}

.fspg-bogo-choice-track::-webkit-scrollbar {
  display: none;
}

.fspg-bogo-choice {
  border: 2px solid #ddd6ef;
  border-radius: 22px;
  padding: 0.45rem;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.fspg-bogo-choice::before,
.fspg-bogo-choice::after {
  content: none !important;
  display: none !important;
}

.fspg-bogo-choice img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 0.45rem;
}

.fspg-bogo-choice span {
  display: block;
  font-size: 0.88rem;
  line-height: 1.15;
  color: #3f2a76;
  font-weight: 700;
  padding: 0 0.14rem 0.14rem;
}

.fspg-bogo-choice:hover {
  border-color: #b099ec;
}

.fspg-bogo-choice.is-active {
  border-color: #7d55da;
  box-shadow: 0 18px 24px -20px rgba(62, 29, 140, 0.82);
}

.fspg-bogo-selected-summary {
  margin: 0.8rem 0 0.55rem;
  color: #4e378d;
  font-size: 0.98rem;
  font-weight: 700;
}

.fspg-bogo-selected-summary.is-hidden {
  display: none;
}

.fspg-bogo-add-btn {
  width: 100%;
  min-height: 60px;
  border-radius: 18px;
  font-weight: 800;
  font-size: 1.1rem;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #a58dff 0%, #7d57da 43%, #6440c4 100%);
  box-shadow: 0 16px 26px -24px rgba(66, 30, 157, 0.95);
  margin-top: 0.75rem;
}

.fspg-bogo-feedback {
  margin-top: 0.45rem;
  color: #3f2a76;
  font-size: 0.88rem;
  min-height: 1.2em;
}

.fspg-bogo-add-to-cart-note {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: #334155;
}

.fspg-bogo-disclaimer {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
}

.fspg-bogo-disclaimer-cart {
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #f5f1e6;
}

.fspg-bogo-mini-cart-note {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
}

.fspg-bogo-empty {
  margin: 0;
}

.fspg-bogo-promo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #ffcc66;
  color: #030303;
  border: 1px solid #ffcc66;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
}

.woocommerce ul.products li.product {
  position: relative;
}

.woocommerce ul.products li.product .fspg-bogo-promo-badge:not(.fspg-bogo-promo-badge-single) {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 5;
}

.woocommerce ul.products li.product figure {
  position: relative;
}

.woocommerce ul.products li.product figure + .fspg-bogo-promo-badge:not(.fspg-bogo-promo-badge-single) {
  top: calc(0.7rem + var(--theme-frame-size, 0px));
}

.woocommerce .related ul.products li.product .fspg-bogo-promo-badge:not(.fspg-bogo-promo-badge-single) {
  top: 0.7rem;
  left: 0.7rem;
}

.fspg-bogo-promo-badge-single {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 30;
}

.single-product div.product {
  position: relative;
}

.fspg-bogo-qty-locked,
.fspg-bogo-offered-label {
  font-weight: 600;
}

@media (max-width: 991px) {
  .fspg-bogo-choice-track {
    grid-auto-columns: calc((100% - (3 * 0.55rem)) / 4);
  }
}

@media (max-width: 640px) {
  .fspg-bogo-cart-selector {
    padding: 0.8rem;
    border-radius: 0;
  }

  .fspg-bogo-cart-header h2 {
    font-size: 1.45rem;
  }

  .fspg-bogo-cart-header p {
    font-size: 0.95rem;
  }

  .fspg-bogo-choice-track {
    grid-auto-columns: calc((100% - (1 * 0.55rem)) / 2);
  }

  .fspg-bogo-arrow {
    width: 42px;
    height: 42px;
    font-size: 34px;
  }

  .fspg-bogo-add-btn {
    min-height: 52px;
    font-size: 1rem;
  }
}

.figurine-reward-progress__level-zero-status {
  font-size: 12px;
  color: #4b5563;
}

.figurine-reward-progress__level-zero-success {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #166534;
  font-weight: 700;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 8px 12px;
  width: fit-content;
}

.figurine-reward-progress__level-zero-success-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22c55e;
  position: relative;
  flex-shrink: 0;
}

.figurine-reward-progress__level-zero-success-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}