.wpwd-shell {
  --wpwd-bg: var(--wpwd-theme-bg, rgba(0, 0, 0, 0.02));
  --wpwd-ink: var(--wpwd-theme-ink, currentColor);
  --wpwd-muted: var(--wpwd-theme-muted, rgba(0, 0, 0, 0.6));
  --wpwd-accent: var(--wpwd-theme-accent, currentColor);
  --wpwd-accent-soft: var(--wpwd-theme-accent-soft, rgba(0, 0, 0, 0.08));
  --wpwd-card: var(--wpwd-theme-card, transparent);
  --wpwd-border: var(--wpwd-theme-border, rgba(0, 0, 0, 0.12));
  --wpwd-shadow: 0 8px 5px rgba(0, 0, 0, 0.12);
  --wpwd-radius: 16px;
  --wpwd-canvas-col: 65%;
  --wpwd-sidebar-col: 35%;
  display: grid;
  grid-template-columns: minmax(0, var(--wpwd-canvas-col, 65%)) minmax(260px, var(--wpwd-sidebar-col, 35%));
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--wpwd-border);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.01));
  margin-bottom: 24px;
  font-family: inherit;
  color: var(--wpwd-ink);
  width: 100%;
  align-items: start;
}

/* Keep Fabric sizing deterministic inside the wallpaper canvas only. */
.wpwd-canvas-wrap .canvas-container {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  position: relative;
}

.wpwd-canvas-wrap .canvas-container > canvas {
  width: 100%;
  height: 100%;
}
.wpwd-shell,
.wpwd-shell * {
  box-sizing: border-box;
}

.wpwd-shell {
  width: 100%;
}

.wpwd-shell button,
.wpwd-shell .button,
.wpwd-shell input,
.wpwd-shell select,
.wpwd-shell textarea {
  font-family: inherit;
}

.wpwd-shell .button,
.wpwd-shell button,
.wpwd-shell input,
.wpwd-shell select,
.wpwd-shell textarea {
  background: #ffffff !important;
  border: 1px solid var(--wpwd-border) !important;
  color: inherit !important;
}

.wpwd-panel-head {
  display: none;
}

.wpwd-shell .variations,
.wpwd-shell .variations .attribute,
.wpwd-shell .variations .label,
.wpwd-shell .variations .value {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.ts-product-attribute {
  font-weight: 600;
  display: none !important;
}

/* Theme circular options — make rectangular with elegant styling if visible */
.ts-product-attribute .option {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  min-width: 60px;
  min-height: 42px;
  padding: 8px 16px !important;
  margin: 4px !important;
  border-radius: 10px !important;
  border: 1.5px solid rgba(0, 0, 0, 0.12) !important;
  background: #fff !important;
  cursor: pointer !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #333 !important;
  text-align: center !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
  line-height: 1.3 !important;
}
.ts-product-attribute .option:hover {
  border-color: rgba(0, 0, 0, 0.35) !important;
  background: rgba(0, 0, 0, 0.03) !important;
}
.ts-product-attribute .option.selected {
  border-color: #000 !important;
  background: rgba(0, 0, 0, 0.06) !important;
  color: #000 !important;
}
.ts-product-attribute .option a {
  color: inherit !important;
  text-decoration: none !important;
  display: inline !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: none !important;
  box-shadow: none !important;
}
.woocommerce-variation-price {
  display: none !important;
}

.wpwd-shell .variations select {
  width: 100% !important;
  padding: 12px 16px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(17, 17, 17, 0.35) !important;
  background: #fff !important;
  font-size: 14px;
  display: none !important;
}

.wpwd-material-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
  font-size: 13px;
  font-weight: 600;
}

.wpwd-help-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 90vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.wpwd-help-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.wpwd-help-inner {
  width: 360px;
  max-width: 90vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.wpwd-help-panel.is-open .wpwd-help-inner {
  transform: translateX(0);
}

.wpwd-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

.wpwd-help-close {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.wpwd-help-step {
  padding: 18px;
  overflow: auto;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wpwd-help-step.is-active {
  opacity: 1;
  transform: translateX(0);
}

.wpwd-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wpwd-help-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 10px;
  align-items: center;
  justify-items: center;
  cursor: pointer;
}

.wpwd-help-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.wpwd-help-card span {
  font-size: 12px;
  text-align: center;
}

.wpwd-help-detail {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.wpwd-help-detail img {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.wpwd-help-back {
  border: none;
  background: transparent;
  font-size: 12px;
  color: var(--wpwd-muted);
  cursor: pointer;
}

.wpwd-material-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wpwd-material-modal[hidden] {
  display: none;
}

.wpwd-modal-inner {
  width: 520px;
  max-width: 92vw;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.wpwd-material-modal-list {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.wpwd-material-modal-item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 12px;
}

.wpwd-info-modal-item img {
  width: 88px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
  background: #f4f4f4;
}

.wpwd-material-modal-item p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--wpwd-muted);
}

.wpwd-material-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.wpwd-material-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.4);
  padding: 8px 8px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.wpwd-material-option.is-selected {
  border-color: #2cd1b3;
  box-shadow: inset 0 0 0 1px #2cd1b3;
}

.wpwd-material-option.is-selected::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2cd1b3;
  display: inline-block;
  margin-right: 8px;
}

.wpwd-material-option.is-selected {
  padding-left: 8px;
}

.wpwd-material-price {
  color: #111111;
  font-weight: 600;
}

.wpwd-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wpwd-shell .variations .reset_variations {
  display: none !important;
}

.wpwd-shell .quantity,
.wpwd-shell .woocommerce-variation-availability,
.wpwd-shell .stock {
  display: none !important;
}

.wpwd-shell .variations .value .variable-items-wrapper,
.wpwd-shell .variations .value .button-variable-item,
.wpwd-shell .variations .value .button,
.wpwd-shell .variations .value .variation-radios,
.wpwd-shell .variations .value .variation-radios input,
.wpwd-shell .variations .value .variation-radios label {
  display: none !important;
}

.wpwd-shell input[type="range"] {
  border: none !important;
  background: transparent !important;
}

.wpwd-shell .wpwd-toolbar .button {
  box-shadow: none !important;
}

.wpwd-dimension-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 0 12px;
}

.wpwd-dimension-title h3 {
  font-size: 15px;
  margin: 0;
  font-weight: 600;
}

.wpwd-dimension-help {
  border: none;
  background: transparent;
  color: var(--wpwd-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wpwd-dimension-help svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.wpwd-dimension-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wpwd-dimension-field {
  display: grid;
  gap: 8px;
}

.wpwd-dimension-card {
  background: transparent;
  border: 1px solid rgba(17, 17, 17, 0.35);
  border-radius: 999px;
  padding: 10px 18px;
  display: grid;
  gap: 6px;
  position: relative;
}

.wpwd-dimension-label {
  font-size: 12px;
  color: #111111;
  position: absolute;
  top: -9px;
  left: 16px;
  background: #fff;
  padding: 0 6px;
}

.wpwd-dimension-label strong {
  font-weight: 600;
}

.wpwd-dimension-input {
  display: flex;
  align-items: center;
  min-height: 34px;
  gap: 8px;
}

.wpwd-dimension-input input[type="number"] {
  border: none !important;
  background: transparent !important;
  font-size: 15px;
  font-weight: 500;
  padding: 0 !important;
  width: 100%;
}

.wpwd-dimension-input span {
  font-size: 12px;
  color: var(--wpwd-muted);
}

.wpwd-dimension-note {
  margin: 5px 0 -5px;
  font-size: 12px;
  color: var(--wpwd-muted);
}

.wpwd-dimension-card .wpwd-range {
  display: block !important;
  width: 100%;
  margin-top: 8px;
  appearance: none;
  background: transparent;
  height: 18px;
}

.wpwd-dimension-field .wpwd-range {
  margin-top: 0;
}

.wpwd-dimension-card .wpwd-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.2), rgba(17, 17, 17, 0.08));
}

.wpwd-dimension-card .wpwd-range::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border-radius: 50%;
  background: #111111;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.wpwd-dimension-card .wpwd-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.2), rgba(17, 17, 17, 0.08));
}

.wpwd-dimension-card .wpwd-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #111111;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

@media (max-width: 720px) {
  .wpwd-dimension-grid {
    grid-template-columns: 1fr;
  }
}

.wpwd-icon-btn,
.wpwd-toggle .wpwd-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.wpwd-icon-btn {
  padding: 0 !important;
  border: 1px solid #878787b9 !important;
  background: #fff !important;
}

.wpwd-toggle {
  position: relative;
  cursor: pointer;
}

.wpwd-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wpwd-toggle .wpwd-icon {
  border: 1px solid #878787b9;
  background: #fff;
  color: #878787;
}

.wpwd-toggle input:checked + .wpwd-icon {
  border-color: #17a089;
  color: #17a089;
}

.wpwd-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wpwd-shell select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.wpwd-product {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: none;
}

.wpwd-product-header {
  display: flex;
  gap: 10px;
}

.wpwd-product-title {
  font-size: 28px;
  margin: 0;
}

.wpwd-product-price {
  font-size: 28px;
  font-weight: 700;
  color: #2bb4b8;
}

.wpwd-product-description {
  color: var(--wpwd-muted);
}

.wpwd-product-body {
  display: grid;
  gap: 20px;
}

.wpwd-product-customizer,
.wpwd-product-attributes {
  width: 100%;
}

.wpwd-variations {
  display: grid;
  gap: 16px;
}

.wpwd-product-details {
  width: 80%;
  background: var(--wpwd-bg);
  padding: 16px;
}

.wpwd-product-details h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.wpwd-enabled form.cart {
  max-width: 100%;
  width: 100%;
}

.wpwd-enabled .summary,
.wpwd-enabled .woocommerce-product-gallery,
.wpwd-enabled .product_meta {
  display: none !important;
}

/*
  Hide the theme's duplicate meta/info/trust/social blocks on mobile.
  The single visible copy is the one inside .wpwd-mobile-product-details;
  hide everything else with these classes/selectors to avoid duplicates
  reappearing after selecting pose/support or other interactions.
*/
@media (max-width: 768px) {
  body.wpwd-mobile-configurator-ready .wpwd-section--native-meta,
  body.wpwd-mobile-configurator-ready .wpwd-native-meta-slot,
  body.wpwd-mobile-configurator-ready .wpwd-native-capture .meta-content,
  body.wpwd-mobile-configurator-ready .summary .meta-content,
  body.wpwd-mobile-configurator-ready .meta-content:not(.wpwd-mobile-product-details .meta-content) .product_meta,
  body.wpwd-mobile-configurator-ready .meta-content:not(.wpwd-mobile-product-details .meta-content) .informations_produit,
  body.wpwd-mobile-configurator-ready .meta-content:not(.wpwd-mobile-product-details .meta-content) .product-trust-icons,
  body.wpwd-mobile-configurator-ready .meta-content:not(.wpwd-mobile-product-details .meta-content) .ts-social-sharing {
    display: none !important;
  }
}

.wpwd-enabled .woocommerce {
  max-width: none;
  width: 100%;
}

.wpwd-enabled .site-main {
  max-width: none;
  width: 100%;
}

.wpwd-enabled .woocommerce-product-gallery__wrapper {
  display: none !important;
}

.wpwd-enabled .woocommerce-notices-wrapper {
  display: block !important;
}

.wpwd-left {
  display: grid;
  gap: 14px;
}

.wpwd-canvas-wrap {
  position: relative;
  overflow: hidden;
}

.wpwd-under-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--wpwd-border);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  box-shadow: var(--wpwd-shadow);
}

.wpwd-under-controls .wpwd-toolbar {
  margin: 0;
}

.wpwd-product-gallery-carousel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  flex-direction: row;
}

.wpwd-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(50px, 13vw, 50px);
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.wpwd-gallery-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--wpwd-border) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  cursor: zoom-in;
  scroll-snap-align: start;
}

.wpwd-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.wpwd-gallery-thumb:hover img,
.wpwd-gallery-thumb:focus-visible img {
  transform: scale(1.04);
}

.wpwd-gallery-thumb.is-active {
  border-color: var(--wpwd-accent) !important;
  box-shadow: 0 0 0 2px var(--wpwd-accent-soft);
}

.wpwd-gallery-scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0 !important;
  border-radius: 8px !important;
  cursor: pointer;
}

.wpwd-gallery-scroll svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wpwd-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
}

.wpwd-gallery-lightbox[hidden] {
  display: none;
}

.wpwd-gallery-lightbox__dialog {
  position: relative;
  display: grid;
  place-items: center;
  width: min(1120px, 94vw);
  height: min(820px, 88vh);
}

.wpwd-gallery-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

.wpwd-gallery-lightbox__close,
.wpwd-gallery-lightbox__nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.36) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #111111 !important;
  cursor: pointer;
}

.wpwd-gallery-lightbox__close {
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px !important;
  font-size: 28px;
  line-height: 1;
}

.wpwd-gallery-lightbox__nav {
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 999px !important;
  transform: translateY(-50%);
}

.wpwd-gallery-lightbox__nav--prev {
  left: 0;
}

.wpwd-gallery-lightbox__nav--next {
  right: 0;
}

.wpwd-gallery-lightbox__nav svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.wpwd-gallery-open {
  overflow: hidden;
}

.wpwd-left > .wpwd-under-controls {
  position: relative !important;
  inset: auto !important;
  z-index: 2;
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: auto !important;
}

.wpwd-canvas-wrap > .wpwd-under-controls {
  position: absolute !important;
  inset: 0 !important;
  z-index: 8;
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none;
}

.wpwd-toolbar--overlay {
  position: absolute;
  inset: 12px;
  margin: 0 !important;
  pointer-events: none;
}

.wpwd-left > .wpwd-under-controls .wpwd-toolbar--overlay {
  position: static !important;
  inset: auto !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: stretch;
  align-items: center !important;
  justify-content: space-evenly;
  margin: 0 !important;
  pointer-events: auto !important;
  flex-direction: row;
}

.wpwd-left > .wpwd-under-controls .wpwd-toolbar-group {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  pointer-events: auto !important;
}

.wpwd-toolbar-group {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px dashed #2bb4b8;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.wpwd-toolbar-group--view {
  top: 0;
  left: 0;
}

.wpwd-toolbar-group--zoom {
  top: 0;
  right: 0;
}

.wpwd-toolbar-group--transform {
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.wpwd-canvas-room-slot {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  pointer-events: auto;
}

.wpwd-canvas-room-slot:empty,
.wpwd-canvas-room-slot[hidden] {
  display: none;
}

.wpwd-canvas-room-slot .wpwd-room-preview-action,
.wpwd-canvas-room-slot a,
.wpwd-canvas-room-slot button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.66) !important;
  background: rgba(43, 180, 184, 0.95) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(10px);
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
}

.wpwd-canvas-room-slot .wpwd-room-preview-action:hover,
.wpwd-canvas-room-slot a:hover,
.wpwd-canvas-room-slot button:hover {
  background: rgba(32, 32, 32, 0.94) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.wpwd-toolbar--overlay .wpwd-icon-btn,
.wpwd-toolbar--overlay .wpwd-toggle {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

.wpwd-toolbar--overlay .wpwd-icon {
  width: 19px;
  height: 19px;
}

.wpwd-canvas-help-btn .wpwd-icon {
  stroke-width: 2;
}

.wpwd-icon--raccordable {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.088 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-miterlimit: 10 !important;
}

.wpwd-canvas-help-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 20, 22, 0.68);
  backdrop-filter: blur(6px);
}

.wpwd-canvas-help-modal[hidden] {
  display: none;
}

.wpwd-canvas-help-dialog {
  position: relative;
  width: min(820px, 94vw);
  max-height: min(760px, 88vh);
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background: #ffffff;
  color: #172526;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.wpwd-canvas-help-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0 !important;
  border-radius: 999px !important;
  background: #f4f8f8 !important;
  color: #172526 !important;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.wpwd-canvas-help-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-right: 44px;
  margin-bottom: 22px;
}

.wpwd-canvas-help-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #39c7b6;
  color: #ffffff;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.wpwd-canvas-help-hero h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: 0;
}

.wpwd-canvas-help-hero p {
  max-width: 660px;
  margin: 0;
  color: rgba(23, 37, 38, 0.72);
  font-size: 14px;
  line-height: 1.55;
}

.wpwd-canvas-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wpwd-canvas-help-grid section {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(23, 37, 38, 0.1);
  border-radius: 10px;
  background: #f7fbfb;
}

.wpwd-canvas-help-icon {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #e5f7f5;
  color: #128f91;
}

.wpwd-canvas-help-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wpwd-canvas-help-grid h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 0;
}

.wpwd-canvas-help-grid p {
  margin: 0;
  color: rgba(23, 37, 38, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.wpwd-canvas-help-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(57, 199, 182, 0.35);
  border-radius: 10px;
  background: #eefbf9;
  color: #145b60;
  font-size: 13px;
  line-height: 1.45;
}

.wpwd-canvas-help-tip strong {
  flex: 0 0 auto;
  color: #0b4d52;
}

body.wpwd-canvas-help-open {
  overflow: hidden;
}

.wpwd-canvas-wrap {
  background: #ffffff;
  border: 0;
  padding: 0px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  box-shadow: none;
  width: 100%;
  aspect-ratio: var(--wpwd-canvas-aspect, 1.6);
  overflow: hidden;
}

.canvas-container {
  background: #ffffff !important;
}

.wpwd-canvas {
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
  border-radius: 0;
  outline: none;
  cursor: grab;
  touch-action: none;
}

.wpwd-canvas.lower-canvas {
  background: #ffffff !important;
}

.wpwd-canvas.upper-canvas {
  background: transparent !important;
}

.wpwd-canvas:active {
  cursor: grabbing;
}

.wpwd-canvas-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--wpwd-muted);
}

.wpwd-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.92));
  border: 1px solid var(--wpwd-border);
  padding: 18px;
  border-radius: var(--wpwd-radius);
  box-shadow: var(--wpwd-shadow);
}

.wpwd-variations-slot,
.wpwd-cta {
  display: flex !important;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 10px;
}

.wpwd-variations-slot .variations {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.wpwd-variations-slot .variations th,
.wpwd-variations-slot .variations td {
  padding: 0;
  text-align: left;
}

.wpwd-variations-slot .variations .wpwd-native-pose-row {
  display: block !important;
  width: 100% !important;
}

.wpwd-variations-slot .variations .wpwd-native-pose-row th,
.wpwd-variations-slot .variations .wpwd-native-pose-row .label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
}

.wpwd-variations-slot .variations .wpwd-native-pose-row th label,
.wpwd-variations-slot .variations .wpwd-native-pose-row .label label {
  margin: 0 !important;
  color: #202020 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.wpwd-variations-slot .variations .wpwd-native-pose-row td,
.wpwd-variations-slot .variations .wpwd-native-pose-row .value {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 10px 0 0 !important;
}

.wpwd-variations-slot .variations .wpwd-native-pose-row .ts-product-attribute {
  display: none !important;
}

.wpwd-variations-slot .variations select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--wpwd-border);
  border-radius: 8px;
  background: #ffffff;
}

.wpwd-native-pose-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.wpwd-native-pose-options .wpwd-pose-option {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 4px;
  min-height: 66px !important;
  height: 66px !important;
  padding: 12px !important;
  border: 1px solid rgba(32, 32, 32, 0.18) !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: #202020 !important;
  cursor: pointer;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.wpwd-native-pose-options .wpwd-pose-option:hover {
  border-color: rgba(43, 180, 184, 0.6) !important;
  background: #ffffff !important;
}

.wpwd-native-pose-options .wpwd-pose-option.is-selected {
  border-color: #2bb4b8 !important;
  background: rgba(43, 180, 184, 0.08) !important;
}

.wpwd-native-pose-options .wpwd-pose-option span {
  display: block !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #202020 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
}

.wpwd-native-pose-options .wpwd-pose-option small {
  display: block !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: rgba(32, 32, 32, 0.64) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
}

.wpwd-native-pose-options .wpwd-pose-option.is-selected span {
  color: #166f72 !important;
}

.wpwd-native-pose-options .wpwd-pose-option.is-selected small {
  color: #2bb4b8 !important;
}

.wpwd-native-pose-help {
  flex: 0 0 auto;
}

.wpwd-cta .single_add_to_cart_button,
.wpwd-cta .button {
  width: fit-content;
}

.wpwd-attributes {
  border-top: 1px solid var(--wpwd-border);
  padding-top: 12px;
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.wpwd-attributes h3 {
  font-size: 13px;
  margin: 0;
}

.wpwd-panel-head {
  display: grid;
  gap: 6px;
}

.wpwd-panel-head strong {
  font-size: 16px;
  font-weight: 700;
}

.wpwd-panel-head span {
  font-size: 12px;
  color: var(--wpwd-muted);
}

.wpwd-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.wpwd-toolbar .button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--wpwd-border);
  background: #ffffff;
  font-weight: 600;
}

.wpwd-shell .button {
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
}

.wpwd-grid {
  display: grid;
  gap: 12px;
}

.wpwd-grid label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.wpwd-grid input[type="number"],
.wpwd-grid select {
  padding: 8px 10px;
  border: 1px solid var(--wpwd-border);
  border-radius: 8px;
  font-size: 14px;
  background: #ffffff;
}

.wpwd-grid input[type="range"] {
  width: 100%;
  accent-color: var(--wpwd-accent);
}

.wpwd-range {
  margin-top: 4px;
}

.wpwd-grid input[type="number"]:focus,
.wpwd-grid select:focus {
  outline: none;
  border-color: var(--wpwd-accent);
  box-shadow: 0 0 0 3px var(--wpwd-accent-soft);
}

.wpwd-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.03);
}

.wpwd-inline input[type="checkbox"] {
  accent-color: var(--wpwd-accent);
  width: 16px;
  height: 16px;
}

.breadcrumb-title-wrapper.breadcrumb-v2 {
  display: none !important;
}

.wpwd-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.wpwd-validation {
  color: var(--wpwd-accent);
  font-size: 12px;
}

.wpwd-price {
  font-size: 15px;
  font-weight: 700;
  padding: 12px 0px;
  border-radius: 12px;
  background: var(--wpwd-accent-soft);
}

.wpwd-actions {
  display: flex;
  gap: 8px;
}

.wpwd-actions .button {
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
}

.wpwd-debug {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 0, 0, 0.08);
  color: #a50000;
  font-size: 12px;
}

.wpwd-customize-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wpwd-unit-suffix {
  font-size: 0.85em;
  opacity: 0.75;
}

@media (max-width: 900px) {
  .wpwd-shell {
    grid-template-columns: 1fr;
  }
}

/* 2026 UI refresh: compact card system + 6px radius language */
.wpwd-product,
.wpwd-shell,
.wpwd-custom-form {
  --wpwd-primary: var(--primary, #2bb4b8);
  --wpwd-light: var(--light, #ffffff);
  --wpwd-dark: var(--dark, #202020);
  --wpwd-radius: 6px;
}

.wpwd-custom-form {
  width: 100%;
  max-width: 100%;
  margin: 0;
}
.wpwd-custom-form .wpwd-shell {
  max-width: 100%;
}

.wpwd-product {
  gap: 18px;
}


.wpwd-product-title {
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.1;
}

.wpwd-product-price {
  font-size: 28px;
}

.wpwd-mobile-total {
  display: none;
}

.wpwd-product-description {
  margin: 0;
  font-size: 13px;
  color: rgba(32, 32, 32, 0.7);
}

.wpwd-shell {
  grid-template-columns: minmax(0, var(--wpwd-canvas-col, 65%)) minmax(260px, var(--wpwd-sidebar-col, 35%));
  gap: 16px;
  padding: 16px;
  border-radius: var(--wpwd-radius);
  border-color: rgba(32, 32, 32, 0.12);
  background: linear-gradient(165deg, #f9fbfb 0%, #f1f6f6 100%);
  width: 100%;
  max-width: none;
}

.wpwd-shell {
  grid-template-columns: minmax(0, var(--wpwd-canvas-col, 65%)) minmax(260px, var(--wpwd-sidebar-col, 35%));
}

.wpwd-shell a,
.wpwd-shell img,
.wpwd-product a,
.wpwd-product img,
.wpwd-custom-form a,
.wpwd-custom-form img {
  border-radius: var(--wpwd-radius) ;
}

.wpwd-shell button,
.wpwd-shell .button,
.wpwd-shell input,
.wpwd-shell select,
.wpwd-shell textarea,
.wpwd-custom-form .button,
.wpwd-custom-form input,
.wpwd-custom-form select,
.wpwd-custom-form textarea {
  border-radius: var(--wpwd-radius) ;
}

.wpwd-shell .single_add_to_cart_button,
.wpwd-custom-form .single_add_to_cart_button,
.wpwd-cta .button,
.wpwd-cta .single_add_to_cart_button {
  border: 2px solid var(--wpwd-primary) !important;
  background: var(--wpwd-primary) !important;
  color: var(--wpwd-light) !important;
  font-weight: 700;
  min-height: 44px;
}

.wpwd-shell .single_add_to_cart_button:hover,
.wpwd-custom-form .single_add_to_cart_button:hover,
.wpwd-cta .button:hover,
.wpwd-cta .single_add_to_cart_button:hover {
  background: var(--wpwd-light) !important;
  color: var(--wpwd-dark) !important;
  border-color: var(--wpwd-dark) !important;
}

.wpwd-shell .single_add_to_cart_button.is-disabled,
.wpwd-custom-form .single_add_to_cart_button.is-disabled,
.wpwd-cta .button.is-disabled,
.wpwd-cta .single_add_to_cart_button.is-disabled,
.wpwd-shell .single_add_to_cart_button:disabled,
.wpwd-custom-form .single_add_to_cart_button:disabled,
.wpwd-cta .button:disabled,
.wpwd-cta .single_add_to_cart_button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.wpwd-stage {
  gap: 2px;
}

.wpwd-canvas-wrap,
.wpwd-under-controls,
.wpwd-panel,
.wpwd-section,
.wpwd-custom-panel,
.wpwd-custom-hero {
  border-radius: var(--wpwd-radius);
}

.wpwd-under-controls {
  padding: 10px;
}

.wpwd-sidebar {
  padding: 0px;
  position: relative;
  top: 18px;
  overflow: visible;
}

.wpwd-panel-stack {
  display: grid;
}

.wpwd-section {
  border: 1px solid rgba(32, 32, 32, 0.12);
  background: #ffffff;
  padding: 10px;
}

.wpwd-section--summary {
  background: linear-gradient(180deg, #f5fafa 0%, #eef7f7 100%);
}

.wpwd-price {
  border-radius: var(--wpwd-radius);
  background: rgba(43, 180, 184, 0.14);
  color: #0f5456;
}

.wpwd-material-option {
  border-radius: var(--wpwd-radius);
  border-color: rgba(32, 32, 32, 0.22);
}

.wpwd-material-option.is-selected {
  background-color: var(--wpwd-primary);
  border-color: var(--wpwd-primary) !important;
  color: var(--wpwd-light);
}

.wpwd-material-option.is-selected .wpwd-material-price {
  color: var(--wpwd-light);
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.wpwd-material-option.is-selected::before {
  background: var(--wpwd-light);
}

.wpwd-toggle .wpwd-icon,
.wpwd-icon-btn {
  border-radius: var(--wpwd-radius);
}

.wpwd-filter,
.wpwd-library-item,
.wpwd-dimension-card,
.wpwd-grid label {
  border-radius: var(--wpwd-radius);
}

.wpwd-library-item.is-selected {
  box-shadow: 0 0 0 2px var(--wpwd-primary);
}

.wpwd-customize-button {
  border-radius: var(--wpwd-radius) ;
  border: 1px solid var(--wpwd-primary);
}

@media (max-width: 1024px) {
  .wpwd-shell {
    grid-template-columns: 1fr;
  }

  .wpwd-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

/* UX polish fixes */
.wpwd-dimension-help {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.wpwd-shell .single_add_to_cart_button,
.wpwd-custom-form .single_add_to_cart_button,
.wpwd-cta .button,
.wpwd-cta .single_add_to_cart_button {
  border-radius: 6px !important;
}

.wpwd-dimension-input {
  justify-content: center;
  text-align: center;
}

.wpwd-dimension-input input[type="number"] {
  text-align: center;
}

.wpwd-dimension-card .wpwd-range::-webkit-slider-runnable-track,
.wpwd-shell input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, rgba(43, 180, 184, 0.3), rgba(43, 180, 184, 0.15));
}

.wpwd-dimension-card .wpwd-range::-webkit-slider-thumb,
.wpwd-shell input[type="range"]::-webkit-slider-thumb {
  background: #2bb4b8;
  border: 2px solid #eaf8f8;
  box-shadow: 0 6px 12px rgba(43, 180, 184, 0.25);
}

.wpwd-dimension-card .wpwd-range::-moz-range-track,
.wpwd-shell input[type="range"]::-moz-range-track {
  background: linear-gradient(90deg, rgba(43, 180, 184, 0.3), rgba(43, 180, 184, 0.15));
}

.wpwd-dimension-card .wpwd-range::-moz-range-thumb,
.wpwd-shell input[type="range"]::-moz-range-thumb {
  background: #2bb4b8;
  border: 2px solid #eaf8f8;
  box-shadow: 0 6px 12px rgba(43, 180, 184, 0.25);
}

.wpwd-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.wpwd-source-btn {
  min-height: 34px;
  padding: 0 12px !important;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(43, 180, 184, 0.45) !important;
  background: rgba(43, 180, 184, 0.08) !important;
  color: #166f72 !important;
}

.wpwd-source-btn.is-active {
  background: #2bb4b8 !important;
  border-color: #2bb4b8 !important;
  color: #ffffff !important;
}

.wpwd-source-btn--icon {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Refinement pass */
.wpwd-custom-form,
.wpwd-product {
  width: 100% !important;
}

.wpwd-shell {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.wpwd-dimension-help {
  font-size: 10px !important;
  letter-spacing: 0.02em !important;
}

.wpwd-shell input[type="range"],
.wpwd-range {
  appearance: none;
  -webkit-appearance: none;
  height: 20px;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  outline: none;
}

.wpwd-shell input[type="range"]::-webkit-slider-runnable-track,
.wpwd-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2bb4b8, #8be0df);
}

.wpwd-shell input[type="range"]::-webkit-slider-thumb,
.wpwd-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #159ca0;
  box-shadow: 0 2px 8px rgba(21, 156, 160, 0.35);
}

.wpwd-shell input[type="range"]::-moz-range-track,
.wpwd-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2bb4b8, #8be0df);
}

.wpwd-shell input[type="range"]::-moz-range-thumb,
.wpwd-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #159ca0;
  box-shadow: 0 2px 8px rgba(21, 156, 160, 0.35);
}

.wpwd-cta {
  margin-top: 8px;
}

.wpwd-note-toggle {
  margin-top: 4px;
}

.wpwd-note-toggle summary {
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: #202020;
  user-select: none;
}

.wpwd-note-toggle summary::-webkit-details-marker {
  display: none;
}

.wpwd-note-toggle textarea {
  margin-top: 8px;
  width: 100%;
  min-height: 88px;
}

.wpwd-inline {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.wpwd-icon-btn,
.wpwd-toggle .wpwd-icon {
  border-radius: 6px !important;
}

.wpwd-dimension-help {
  border: 0px solid rgba(32, 32, 32, 0.2) !important;
  border-radius: 6px !important;
  padding: 2px 10px !important;
  min-height: 28px;
}

.wpwd-dimension-note {
  font-size: 11px !important;
  line-height: 1.35;
}

/* Keep material chips stable when selected (no content shift) */
.wpwd-material-option {
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.wpwd-material-option.is-selected {
  padding-left: 8px !important;
  background-color: var(--wpwd-primary) !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--wpwd-light) !important;
}

.wpwd-material-option.is-selected .wpwd-material-price {
  color: var(--wpwd-light) !important;
}

.wpwd-material-option.is-selected::before {
  content: none !important;
  display: none !important;
}

.wpwd-material-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (max-width: 640px) {
  .wpwd-material-list {
    grid-template-columns: 1fr !important;
  }
}

.wpwd-custom-shell,
.wpwd-custom-shell .wpwd-canvas-wrap,
.wpwd-custom-shell .wpwd-panel,
.wpwd-custom-shell .wpwd-sidebar,
.wpwd-custom-shell .wpwd-section,
.wpwd-custom-shell .wpwd-under-controls,
.wpwd-custom-shell .wpwd-custom-panel,
.wpwd-custom-shell .wpwd-custom-hero {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.wpwd-custom-shell .wpwd-section--summary,
.wpwd-custom-shell .wpwd-price {
  background: transparent !important;
}

.wpwd-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wpwd-native-capture[hidden],
.wpwd-section--native-meta[hidden],
.wpwd-section--native-info[hidden],
.wpwd-section--native-trust[hidden],
.wpwd-native-source-consumed {
  display: none !important;
}

.wpwd-native-rating-slot:empty,
.wpwd-native-actions-slot:empty,
.wpwd-native-meta-slot:empty,
.wpwd-native-info-slot:empty,
.wpwd-native-trust-slot:empty {
  display: none !important;
}

.wpwd-native-rating-slot {
  margin-top: 6px;
}

.wpwd-native-rating-slot .ua-price-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wpwd-native-rating-slot .review-link {
  font-size: 12px;
}

.wpwd-native-actions-slot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wpwd-shell .button-in.wishlist,
.wpwd-shell .button-in.compare {
  float: none;
  overflow: visible;
  margin: 0;
}

.wpwd-shell .ts-add-to-wishlist,
.wpwd-shell .ts-add-to-compare {
  width: 50px;
  height: 50px;
  border-width: 1px;
  border-style: solid;
  border-color: rgba(215, 215, 215, 1);
  text-align: center;
  min-width: 0;
  padding: 0;
  display: block;
  position: relative;
  box-shadow: none !important;
  text-decoration: none !important;
  line-height: 48px;
}

.wpwd-shell .button-in .ts-tooltip {
  display: none;
}

.wpwd-shell .ts-add-to-wishlist:before {
  content: "\e813";
  font-family: 'Linearicons-Free';
  font-style: normal;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 18px;
}

.wpwd-shell .ts-add-to-wishlist.added:before {
  content: "\f004";
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 900;
  text-transform: none;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 18px;
}

.wpwd-shell .ts-add-to-compare:before {
  content: "\e862";
  font-family: 'Linearicons-Free';
  font-style: normal;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 18px;
}

.wpwd-native-meta-slot,
.wpwd-native-info-slot,
.wpwd-native-trust-slot,
.wpwd-native-meta-slot .meta-content {
  display: grid;
  gap: 12px;
}

.wpwd-section--native-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(32, 32, 32, 0.12);
}

.wpwd-native-meta-slot .product_meta,
.wpwd-native-meta-slot .cats-link,
.wpwd-native-meta-slot .ts-social-sharing {
  font-size: 12px;
}

.wpwd-enabled .wpwd-native-meta-slot .product_meta {
  display: block !important;
}

.wpwd-native-meta-slot .ts-social-sharing,
.wpwd-native-meta-slot .ts-social-sharing ul,
.wpwd-native-info-slot .informations_produit,
.wpwd-native-trust-slot .product-trust-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.informations_produit .trust-item img {
  border-radius: 50% !important;
}

.wpwd-custom-shell .wpwd-native-rating-slot {
    margin: -5px 0 -8px !important;
}

.wpwd-native-meta-slot .ts-social-sharing ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wpwd-native-info-slot .trust-item,
.wpwd-native-trust-slot .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.wpwd-native-info-slot .trust-item img,
.wpwd-native-trust-slot .trust-item img {
  width: 28px;
  height: auto;
  object-fit: contain;
}

/* Mobile hardening: force stable responsive layout */
@media (max-width: 1024px) {
  .wpwd-custom-form {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .wpwd-shell {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 0 !important;
  }

  .wpwd-left,
  .wpwd-stage {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .wpwd-sidebar,
  .wpwd-panel {
    position: static !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    padding: 10px !important;
  }

}

@media (max-width: 768px) {
  .wpwd-shell {
    gap: 10px !important;
  }

  .wpwd-stage,
  .wpwd-left {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .wpwd-canvas-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    aspect-ratio: var(--wpwd-canvas-aspect, 1.6) !important;
    min-height: 220px !important;
  }

  .wpwd-canvas-wrap .canvas-container,
  .wpwd-canvas-wrap .canvas-container > canvas {
    width: 100% !important;
    height: 100% !important;
  }

  .wpwd-section {
    padding: 10px !important;
  }

  .wpwd-dimension-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .wpwd-cta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .wpwd-cta > .button,
  .wpwd-cta > .single_add_to_cart_button {
    flex: 1 1 180px !important;
    min-height: 42px !important;
  }

  .wpwd-shell .button-in.wishlist,
  .wpwd-shell .button-in.compare {
    margin-right: 0 !important;
  }

  .wpwd-source-modal {
    inset: 0 !important;
    padding: 0 !important;
  }

  .wpwd-source-modal__header,
  .wpwd-custom-panel {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

@media (max-width: 480px) {
  .wpwd-shell {
    gap: 8px !important;
  }

  .wpwd-panel,
  .wpwd-sidebar {
    padding: 8px !important;
  }

  .wpwd-section {
    padding: 8px !important;
  }

  .wpwd-dimension-title h3 {
    font-size: 14px !important;
  }

  .wpwd-dimension-note,
  .wpwd-validation {
    font-size: 11px !important;
  }

  .wpwd-price {
    font-size: 14px !important;
    padding: 10px 0 !important;
  }
}

/* Final layout guardrails: keep the custom page full-width and deterministic */
.wpb_column:has(.wpwd-custom-form),
.vc_column_container:has(.wpwd-custom-form),
.vc_col-sm-12:has(.wpwd-custom-form) {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

.wpwd-custom-form {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  min-width: 0 !important;
}

.wpwd-custom-shell {
  display: grid !important;
  grid-template-columns: minmax(0, var(--wpwd-canvas-col, 65%)) minmax(280px, var(--wpwd-sidebar-col, 35%)) !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  align-items: start !important;
}

.wpwd-custom-shell > .wpwd-stage,
.wpwd-custom-shell > .wpwd-left {
  grid-column: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.wpwd-custom-shell > .wpwd-sidebar,
.wpwd-custom-shell > .wpwd-panel {
  grid-column: 2 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  position: static !important;
  top: 0 !important;
}

@media (max-width: 1024px) {
  .wpwd-custom-shell {
    grid-template-columns: 1fr !important;
  }

  .wpwd-custom-shell > .wpwd-stage,
  .wpwd-custom-shell > .wpwd-left,
  .wpwd-custom-shell > .wpwd-sidebar,
  .wpwd-custom-shell > .wpwd-panel {
    grid-column: 1 !important;
  }
}

/* Mobile controls: compact horizontal strip (prevents stage/canvas shrinking) */
@media (max-width: 768px) {
  .wpwd-product-gallery-carousel {
    display: inline-flex;
    /* grid-template-columns: 36px minmax(0, 1fr) 36px; */
    align-items: center;
    width: 100%;
    justify-content: center;
    flex-direction: row;
    gap: 6px;
  }

  .wpwd-gallery-track {
    grid-auto-columns: 82px;
    gap: 8px;
  }

  .wpwd-gallery-scroll {
    width: 32px;
    height: 32px;
  }

  .wpwd-gallery-lightbox {
    padding: 12px;
  }

  .wpwd-gallery-lightbox__dialog {
    width: 96vw;
    height: 86vh;
  }

  .wpwd-gallery-lightbox__close {
    top: 6px;
    right: 6px;
  }

  .wpwd-gallery-lightbox__nav--prev {
    left: 6px;
  }

  .wpwd-gallery-lightbox__nav--next {
    right: 6px;
  }

  .wpwd-toolbar--overlay {
    inset: 8px;
  }

  .wpwd-toolbar-group {
    gap: 4px;
    padding: 4px;
    border-radius: 8px;
  }
  .sticky-wrapper{
    height: 40px !important;
  }

  .wpwd-toolbar-group--transform {
    left: 80% !important;
    max-width: calc(100% - 16px);
    overflow-x: auto;
  }

  .wpwd-canvas-room-slot {
    left: 0;
    bottom: 48px;
  }

  .wpwd-canvas-room-slot .wpwd-room-preview-action,
  .wpwd-canvas-room-slot a,
  .wpwd-canvas-room-slot button {
    min-height: 36px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
  }

  .wpwd-toolbar--overlay .wpwd-icon-btn,
  .wpwd-toolbar--overlay .wpwd-toggle {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }

  .wpwd-canvas-help-modal {
    padding: 12px;
  }

  .wpwd-canvas-help-dialog {
    width: 96vw;
    max-height: 88vh;
    padding: 18px;
  }

  .wpwd-canvas-help-hero {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-right: 42px;
  }

  .wpwd-canvas-help-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 28px;
  }

  .wpwd-canvas-help-grid {
    grid-template-columns: 1fr;
  }

  .wpwd-canvas-help-tip {
    display: grid;
  }

  .wpwd-under-controls {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px !important;
    border-radius: 8px !important;
  }

  .wpwd-under-controls .wpwd-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    align-content: center;
    align-items: stretch;
    scrollbar-width: thin;
    flex-direction: row;
    justify-content: flex-end;
  }

  .wpwd-under-controls .wpwd-toolbar > * {
    flex: 0 0 auto !important;
  }

  .wpwd-under-controls .wpwd-source-btn {
    min-height: 36px !important;
    height: 36px !important;
    font-size: 12px !important;
    padding: 0 10px !important;
  }

  .wpwd-under-controls .wpwd-source-btn--icon,
  .wpwd-under-controls .wpwd-icon-btn,
  .wpwd-under-controls .wpwd-toggle {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
  }

  .wpwd-under-controls .wpwd-toggle input {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .wpwd-under-controls .wpwd-icon {
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
    stroke-width: 1.9 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  .wpwd-under-controls .wpwd-icon line,
  .wpwd-under-controls .wpwd-icon polyline,
  .wpwd-under-controls .wpwd-icon circle,
  .wpwd-under-controls .wpwd-icon rect,
  .wpwd-under-controls .wpwd-icon path {
    fill: none !important;
  }

  .wpwd-under-controls .wpwd-actions {
    width: auto !important;
    display: flex !important;
    justify-content: flex-end !important;
  }
}

@media (max-width: 768px) {
  .wpwd-dimension-help > span {
    display: none !important;
  }

  .wpwd-dimension-help {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Final controls parity: toggles must look exactly like zoom icon buttons */
.wpwd-under-controls .wpwd-icon-btn,
.wpwd-under-controls .wpwd-toggle {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  border: 1px solid #878787b9 !important;
  background: #fff !important;
  color: #878787 !important;
}

.wpwd-under-controls .wpwd-toggle .wpwd-icon {
  border: 0 !important;
  background: transparent !important;
  color: currentColor !important;
}

.wpwd-under-controls .wpwd-toggle input:checked + .wpwd-icon {
  color: #17a089 !important;
}

button.wpwd-dimension-help {
  border: none !important;
}

/* Final product sidebar composition */
.wpwd-custom-shell .wpwd-section--product-header .wpwd-product-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 6px !important;
  align-items: start !important;
}

.wpwd-custom-shell .wpwd-section--product-header .wpwd-product-title {
  margin: 0 !important;
  max-width: 100% !important;
  font-size: clamp(24px, 1.7vw, 38px) !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  overflow-wrap: anywhere;
}

.wpwd-custom-shell .wpwd-native-rating-slot {
  display: block !important;
  margin: 2px 0 4px !important;
  min-height: 22px;
}

.wpwd-custom-shell .wpwd-native-rating-slot .ts-variation-price {
  display: none !important;
}

.wpwd-custom-shell .wpwd-native-rating-slot .ua-price-rating-row,
.wpwd-custom-shell .wpwd-native-rating-slot .ua-product-rating,
.wpwd-custom-shell .wpwd-native-rating-slot .woocommerce-product-rating {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  max-width: 100% !important;
}

.wpwd-custom-shell .wpwd-native-rating-slot img {
  flex: 0 0 auto;
}

.wpwd-custom-shell .wpwd-section--product-header .wpwd-product-price {
  display: block !important;
  margin: 2px 0 0 !important;
  font-size: 28px;
  font-weight: 700;
  color: #2bb4b8;
  line-height: 1.15 !important;
}

.wpwd-custom-shell .wpwd-section--product-header .wpwd-product-price .wpwd-starting-price,
.wpwd-custom-shell .wpwd-section--product-header .wpwd-product-price .woocommerce-Price-amount {
    font-size: 28px;
  font-weight: 700;
  color: #2bb4b8;
}

.wpwd-custom-shell .wpwd-cta {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin-top: 12px !important;
}

.wpwd-custom-shell .wpwd-cta .woocommerce-variation-add-to-cart {
  display: contents !important;
}

.wpwd-custom-shell .wpwd-cta .single_add_to_cart_button {
  order: 1;
}

.wpwd-custom-shell .wpwd-native-actions-slot {
  order: 2;
}

.wpwd-custom-shell .wpwd-section--native-meta {
  margin-top: 14px !important;
  padding-top: 14px !important;
}

.wpwd-custom-shell .wpwd-native-meta-slot .meta-content {
  gap: 10px !important;
}

.wpwd-custom-shell .wpwd-native-meta-slot .sku-wrapper,
.wpwd-custom-shell .wpwd-native-meta-slot .cats-link {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  align-items: baseline !important;
  line-height: 1.45 !important;
}

.wpwd-custom-shell .wpwd-native-meta-slot .sku-wrapper > span:first-child,
.wpwd-custom-shell .wpwd-native-meta-slot .cats-link > span:first-child,
.wpwd-custom-shell .wpwd-native-meta-slot .ts-social-sharing > span:first-child {
  font-weight: 700 !important;
  color: #202020 !important;
}

/* Collapse excess space between the material/posage controls and the summary. */
.wpwd-custom-shell .wpwd-section--material {
  padding-bottom: 0 !important;
}

/* Material/support tiles: keep labels readable inside the texture images. */
.wpwd-custom-shell .wpwd-material-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.wpwd-custom-shell .wpwd-material-option {
  position: relative !important;
  min-height: 66px !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  border-radius: 6px !important;
  border: 1px solid rgba(43, 180, 184, 0.75) !important;
  background: #f7f7f7 !important;
  color: #ffffff !important;
}

.wpwd-custom-shell .wpwd-material-option.is-selected {
  border: 2px solid #20b9b4 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 0 0 1px rgba(32, 185, 180, 0.18) !important;
  background: #f7f7f7 !important;
  color: #ffffff !important;
}

.wpwd-custom-shell .wpwd-material-option::before,
.wpwd-custom-shell .wpwd-material-option.is-selected::before {
  content: none !important;
  display: none !important;
}

.wpwd-custom-shell .wpwd-material-visual {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
}

.wpwd-custom-shell .wpwd-material-visual img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.wpwd-custom-shell .wpwd-material-option::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.28) 100%) !important;
  pointer-events: none !important;
}

.wpwd-custom-shell .wpwd-material-option[data-value]::before,
.wpwd-custom-shell .wpwd-material-option.is-selected[data-value]::before {
  content: attr(data-value) !important;
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 10px !important;
  z-index: 3 !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: transparent !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important;
  pointer-events: none !important;
}

.wpwd-custom-shell .wpwd-material-label,
.wpwd-custom-shell .wpwd-material-option > span:not(.wpwd-material-visual):not(.wpwd-material-price) {
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 10px !important;
  z-index: 2 !important;
  display: block !important;
  color: transparent !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75) !important;
  pointer-events: none !important;
}

.wpwd-custom-shell .wpwd-material-price {
  display: none !important;
}

@media (max-width: 640px) {
  .wpwd-custom-shell .wpwd-material-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .wpwd-custom-shell .wpwd-material-option {
    min-height: 64px !important;
  }

  .wpwd-custom-shell .wpwd-material-label {
    font-size: 12px !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 9px !important;
  }
}

.wpwd-custom-shell .wpwd-variations-slot {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.wpwd-custom-shell .wpwd-variations-slot .variations {
  margin: 0 !important;
  border-spacing: 0 10px !important;
}

.wpwd-custom-shell .wpwd-variations-slot .variations tr:last-child th,
.wpwd-custom-shell .wpwd-variations-slot .variations tr:last-child td {
  padding-bottom: 0 !important;
}

.wpwd-custom-shell .single_variation_wrap,
.wpwd-custom-shell .woocommerce-variation {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wpwd-empty-variation-wrap {
  display: none !important;
}

.wpwd-custom-shell .wpwd-section--summary {
  padding-top: 4px !important;
}

.wpwd-custom-shell .wpwd-section--summary .wpwd-metrics {
  margin-top: 0 !important;
}

/* Description is a full-page content block after reviews, not a bordered panel. */
.wpwd-section--description {
  width: 80% !important;
  max-width: 1200px !important;
  margin: 32px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.wpwd-section--description .wpwd-product-details {
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.wpwd-section--description .wpwd-product-details h2 {
  margin-top: 0 !important;
}

@media (max-width: 768px) {
  .wpwd-section--description {
    width: 92% !important;
  }
}

button.voir-chez-moi-btn.ua-voir-chez-moi-desktop-cta {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 0 !important;
    margin-bottom: 5px !important;
    margin-left: 6px !important;
    box-shadow: none !important;
}

/* Left-side meta, info, and trust sections wrapper styling */
.wpwd-left-meta-wrapper {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Hide the wrapper if all its children sections are hidden */
.wpwd-left-meta-wrapper:not(:has(> :not([hidden]))) {
  display: none !important;
}

/* Reset individual section styles inside the left wrapper to avoid duplication */
.wpwd-left-meta-wrapper .wpwd-section--native-meta,
.wpwd-left-meta-wrapper .wpwd-section--native-info,
.wpwd-left-meta-wrapper .wpwd-section--native-trust {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Enhancing list/flex items layout for meta contents */
.wpwd-left-meta-wrapper .wpwd-native-meta-slot .meta-content {
  gap: 12px !important;
}

.wpwd-left-meta-wrapper .wpwd-native-meta-slot .sku-wrapper,
.wpwd-left-meta-wrapper .wpwd-native-meta-slot .cats-link {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
  font-size: 13px !important;
}

.wpwd-left-meta-wrapper .wpwd-native-info-slot .informations_produit,
.wpwd-left-meta-wrapper .wpwd-native-trust-slot .product-trust-icons {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  overflow: visible !important;
 
  gap: 16px !important;
}

.wpwd-left-meta-wrapper,
.wpwd-left-meta-wrapper .wpwd-section--native-info,
.wpwd-left-meta-wrapper .wpwd-section--native-trust,
.wpwd-native-info-slot,
.wpwd-native-trust-slot,
.wpwd-native-info-slot .informations_produit,
.wpwd-native-trust-slot .product-trust-icons {
  overflow: visible !important;
}

body > .installation-modal,
.wpwd-shell .installation-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483000 !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: auto !important;
}

body > .installation-modal[style*="display: block"],
body > .installation-modal[style*="display: flex"],
body > .installation-modal.is-open,
body > .installation-modal.wpwd-installation-modal-open,
.wpwd-shell .installation-modal[style*="display: block"],
.wpwd-shell .installation-modal[style*="display: flex"],
.wpwd-shell .installation-modal.is-open,
.wpwd-shell .installation-modal.wpwd-installation-modal-open {
  display: flex !important;
}

body.wpwd-installation-modal-open {
  overflow: hidden !important;
}

body > .installation-modal .installation-modal-overlay,
.wpwd-shell .installation-modal .installation-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
}

body > .installation-modal .installation-modal-content,
.wpwd-shell .installation-modal .installation-modal-content {
  position: relative !important;
  z-index: 1 !important;
  max-height: min(84vh, 760px) !important;
  overflow-y: auto !important;
}

.product-trust-icons{
   justify-content: space-between !important;
}
.informations_produit{
  width: 100% !important;
}

/* Mobile product-page workflow: keep buying controls before secondary product info. */
@media (max-width: 768px) {
  .wpwd-custom-shell > .wpwd-left-meta-wrapper {
    grid-column: 1 !important;
    order: 3 !important;
    margin-top: 12px !important;
    padding: 0 16px 24px !important;
    gap: 16px !important;
  }

  .wpwd-custom-shell > .wpwd-stage,
  .wpwd-custom-shell > .wpwd-left {
    order: 1 !important;
  }

  .wpwd-custom-shell > .wpwd-sidebar,
  .wpwd-custom-shell > .wpwd-panel {
    order: 2 !important;
    padding: 14px 20px 96px !important;
  }

  .wpwd-custom-shell .wpwd-section--product-header {
    margin-top: 0 !important;
    padding-top: 4px !important;
    padding-bottom: 10px !important;
  }

  .wpwd-custom-shell .wpwd-section--product-header .wpwd-product-title {
    font-size: 24px !important;
    line-height: 1.08 !important;
  }

  .wpwd-custom-shell .wpwd-section--product-header .wpwd-product-price,
  .wpwd-custom-shell .wpwd-section--product-header .wpwd-product-price .wpwd-starting-price,
  .wpwd-custom-shell .wpwd-section--product-header .wpwd-product-price .woocommerce-Price-amount {
    font-size: 26px !important;
  }

  .wpwd-custom-shell .wpwd-mobile-total {
    display: block !important;
    margin-top: 2px !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    color: #0f5456 !important;
  }

  .wpwd-custom-shell .wpwd-section {
    border: 0 !important;
    padding: 12px 0 !important;
  }

  .wpwd-custom-shell .wpwd-dimension-grid {
    gap: 12px !important;
  }

  .wpwd-custom-shell .wpwd-dimension-card {
    padding: 0 !important;
    border: 1px solid rgba(32, 32, 32, 0.28) !important;
    background: #fff !important;
  }

  .wpwd-custom-shell .wpwd-dimension-input {
    min-height: 54px !important;
  }

  .wpwd-custom-shell .wpwd-dimension-input input[type="number"] {
    min-height: 46px !important;
    font-size: 16px !important;
  }

  .wpwd-custom-shell .wpwd-variations-slot,
  .wpwd-custom-shell .wpwd-variations-slot .variations {
    display: block !important;
    width: 100% !important;
  }

  .wpwd-custom-shell .wpwd-variations-slot .variations .attribute {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 10px !important;
    min-height: 0 !important;
    margin: 0 0 18px !important;
    align-items: center !important;
  }

  .wpwd-custom-shell .wpwd-variations-slot .variations .attribute .label,
  .wpwd-custom-shell .wpwd-variations-slot .variations .attribute .value {
    min-height: 0 !important;
    margin: 0 !important;
  }

  .wpwd-custom-shell .wpwd-variations-slot .variations .attribute .label {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .wpwd-custom-shell .wpwd-variations-slot .variations .attribute .value {
    display: block !important;
    min-width: 0 !important;
  }

  .wpwd-custom-shell .wpwd-material-list {
    width: 100% !important;
  }

  .wpwd-custom-shell .wpwd-variations-slot .variations .attribute:not(.wpwd-native-pose-row) .value {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
  }

  .wpwd-custom-shell .wpwd-variations-slot .variations .attribute:not(.wpwd-native-pose-row) .value::before {
    content: none !important;
    display: none !important;
  }

  .wpwd-custom-shell .wpwd-variations-slot .variations .attribute:not(.wpwd-native-pose-row) .wpwd-material-list {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    min-width: 0 !important;
  }

  .wpwd-custom-shell .wpwd-variations-slot .variations .attribute:not(.wpwd-native-pose-row) .ts-product-attribute {
    display: none !important;
  }

  .wpwd-custom-shell .wpwd-variations-slot .variations .wpwd-native-pose-row {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }

  .wpwd-custom-shell .wpwd-variations-slot .variations .wpwd-native-pose-row .label {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-direction: row;
  }

  .wpwd-custom-shell .wpwd-variations-slot .variations .wpwd-native-pose-row .value {
    width: 100% !important;
  }

  .wpwd-native-pose-options {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .wpwd-native-pose-options .wpwd-pose-option {
    height: 66px !important;
    min-height: 66px !important;
  }

  .wpwd-custom-shell .wpwd-section--summary {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 50 !important;
    margin: 8px -20px -96px !important;
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid rgba(32, 32, 32, 0.12) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08) !important;
  }

  .wpwd-custom-shell .wpwd-section--summary .wpwd-metrics {
    display: none !important;
  }

  .wpwd-custom-shell .wpwd-section--summary .wpwd-price {
    padding: 0 0 8px !important;
    background: transparent !important;
    font-size: 15px !important;
  }

  .wpwd-custom-shell .wpwd-cta {
    display: grid !important;
    grid-template-columns: 1fr 48px 48px !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .wpwd-custom-shell .wpwd-cta .single_add_to_cart_button,
  .wpwd-custom-shell .wpwd-cta .button {
    width: 100% !important;
    min-height: 48px !important;
  }

  .wpwd-custom-shell .wpwd-native-actions-slot {
    display: contents !important;
  }

  .wpwd-custom-shell .wpwd-native-meta-slot .meta-content,
  .wpwd-custom-shell .wpwd-native-info-slot .informations_produit,
  .wpwd-custom-shell .wpwd-native-trust-slot .product-trust-icons {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

@media (max-width: 420px) {
  .wpwd-custom-shell > .wpwd-sidebar,
  .wpwd-custom-shell > .wpwd-panel {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .wpwd-custom-shell .wpwd-section--summary {
    margin-left: -16px !important;
    margin-right: -16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* Mobile immersive product customizer: canvas first, controls in a bottom sheet. */
@media (max-width: 768px) {
  body.wpwd-mobile-product-active {
    overflow: hidden !important;
  }

  .wpwd-mobile-product-shell {
    overflow-x: hidden !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell {
    --wpwd-mobile-sheet-h: min(52dvh, 440px);
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 9990 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-stage,
  .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-left {
    position: fixed !important;
    inset: 0 0 var(--wpwd-mobile-sheet-h) 0 !important;
    z-index: 20 !important;
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) 82px !important;
    gap: 8px !important;
    width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: max(8px, env(safe-area-inset-top)) 10px 8px !important;
    background: #ffffff !important;
    overflow: hidden !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-canvas-wrap {
    width: 100% !important;
    height: 100% !important;
    min-height: 292px !important;
    border-radius: 0 0 10px 10px !important;
    overflow: hidden !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-product-gallery-carousel {
    height: 82px !important;
    margin-top: 0 !important;
    padding: 0 8px !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-gallery-track {
    gap: 8px !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-gallery-thumb {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-sidebar,
  .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-panel {
    position: fixed !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9997 !important;
    width: 100% !important;
    max-width: none !important;
    height: var(--wpwd-mobile-sheet-h) !important;
    max-height: calc(100dvh - 72px) !important;
    padding: 7px 14px calc(10px + env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-radius: 18px 18px 0 0 !important;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.18) !important;
    backdrop-filter: blur(16px);
    transition: height 0.24s ease;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-sidebar.is-expanded,
  .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-panel.is-expanded {
    height: min(76dvh, 680px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-mobile-sheet-toggle {
    width: 100% !important;
    height: 26px !important;
    min-height: 26px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #6b6b6b !important;
    display: grid !important;
    place-items: center !important;
    gap: 2px !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-mobile-sheet-toggle span {
    display: block;
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: rgba(32, 32, 32, 0.22);
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-mobile-sheet-toggle strong {
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #777;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-panel-stack {
    display: grid !important;
    gap: 7px !important;
    padding-bottom: 8px !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-section {
    padding: 7px 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-section--product-header .wpwd-product-header {
    gap: 2px !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-section--product-header .wpwd-product-title {
    font-size: 18px !important;
    line-height: 1.08 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-section--product-header .wpwd-product-price,
  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-section--product-header .wpwd-product-price .wpwd-starting-price,
  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-section--product-header .wpwd-product-price .woocommerce-Price-amount {
    font-size: 20px !important;
    line-height: 1.05 !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-mobile-total {
    display: block !important;
    margin: 2px 0 0 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f5456 !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-native-rating-slot {
    margin: 2px 0 0 !important;
    min-height: 18px !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-sidebar:not(.is-expanded) .wpwd-native-rating-slot,
  .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-panel:not(.is-expanded) .wpwd-native-rating-slot {
    display: none !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-section--summary {
    position: sticky !important;
    bottom: calc(-10px - env(safe-area-inset-bottom)) !important;
    z-index: 3 !important;
    margin: 0 !important;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom)) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 -10px 24px rgba(255, 255, 255, 0.95) !important;
    border: 0 !important;
    backdrop-filter: blur(12px);
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-section--summary .wpwd-metrics {
    display: flex !important;
    gap: 8px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    color: rgba(32, 32, 32, 0.7) !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-section--summary .wpwd-validation {
    flex-basis: 100%;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-section--summary .wpwd-price {
    display: none !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-cta {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 48px 48px !important;
    gap: 8px !important;
    align-items: center !important;
    margin-top: 6px !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-cta .single_add_to_cart_button {
    grid-column: 1 !important;
    grid-row: 1 !important;
    order: 1 !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-cta .single_add_to_cart_button,
  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-cta .button {
    width: 100% !important;
    min-height: 48px !important;
    padding: 0 12px !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-native-actions-slot {
    display: contents !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-native-actions-slot > * {
    order: 2 !important;
    grid-row: 1 !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-dimension-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-dimension-input {
    min-height: 48px !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-dimension-input input[type="number"] {
    min-height: 42px !important;
    font-size: 15px !important;
    color: #202020 !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-dimension-note {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-native-pose-options .wpwd-pose-option {
    height: 62px !important;
    min-height: 62px !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-left-meta-wrapper {
    display: none !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-sidebar > .wpwd-left-meta-wrapper,
  .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-panel > .wpwd-left-meta-wrapper {
    display: none !important;
    margin: 8px 0 0 !important;
    padding: 10px 0 24px !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-sidebar.is-expanded > .wpwd-left-meta-wrapper,
  .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-panel.is-expanded > .wpwd-left-meta-wrapper {
    display: grid !important;
    gap: 12px !important;
  }
}

@media (max-width: 420px) {
  .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-sidebar,
  .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-panel {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-dimension-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

canvas.wpwd-canvas.lower-canvas {
  border-radius: 30px !important;
}

/* Final mobile product mode: usable split view with scrollable controls. */
@media (max-width: 768px) {
  body.wpwd-mobile-product-active {
    overflow: hidden !important;
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell {
    --wpwd-mobile-sheet-h-final: 52vh;
    --wpwd-mobile-sheet-h-final: 52dvh;
    position: fixed !important;
    inset: 0 !important;
    z-index: 9990 !important;
    display: block !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-stage,
  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-left {
    position: fixed !important;
    inset: 0 0 var(--wpwd-mobile-sheet-h-final) 0 !important;
    z-index: 20 !important;
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) 70px !important;
    gap: 6px !important;
    width: 100vw !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: max(8px, env(safe-area-inset-top)) 10px 6px !important;
    background: #ffffff !important;
    overflow: hidden !important;
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-canvas-wrap {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 0 0 10px 10px !important;
    overflow: hidden !important;
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-product-gallery-carousel {
    height: 76px !important;
    margin: 0 !important;
    padding: 0 8px !important;
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-gallery-thumb {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-sidebar,
  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-panel {
    position: fixed !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 9997 !important;
    display: block !important;
    width: 100vw !important;
    max-width: none !important;
    height: var(--wpwd-mobile-sheet-h-final) !important;
    max-height: calc(100dvh - 64px) !important;
    padding: 7px 12px calc(10px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border-radius: 18px 18px 0 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.18) !important;
    backdrop-filter: blur(16px);
    -webkit-overflow-scrolling: touch;
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-sidebar.is-expanded,
  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-panel.is-expanded {
    height: 78dvh !important;
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-sidebar .wpwd-section--dimensions,
  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-panel .wpwd-section--dimensions,
  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-sidebar .wpwd-section--material,
  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell > .wpwd-panel .wpwd-section--material {
    display: block !important;
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-mobile-sheet-toggle {
    position: sticky !important;
    top: 0 !important;
    z-index: 6 !important;
    background: rgba(255, 255, 255, 0.96) !important;
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-panel-stack {
    padding-bottom: 116px !important;
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-section--product-header {
    position: sticky !important;
    top: 26px !important;
    z-index: 5 !important;
    padding: 6px 0 8px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 10px 18px rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px);
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-section--product-header .wpwd-product-title {
    font-size: 18px !important;
    line-height: 1.08 !important;
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-section--product-header .wpwd-product-price,
  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-section--product-header .wpwd-product-price .wpwd-starting-price,
  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-section--product-header .wpwd-product-price .woocommerce-Price-amount {
    font-size: 20px !important;
    line-height: 1.05 !important;
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-native-rating-slot {
    display: none !important;
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-dimension-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-dimension-card {
    padding: 8px 10px !important;
    border-radius: 8px !important;
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-dimension-input {
    min-height: 38px !important;
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-dimension-input input[type="number"] {
    min-height: 34px !important;
    text-align: center !important;
    color: #202020 !important;
  }

  .wpwd-left .wpwd-stage {
    top : 5px !important;
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-section--summary {
    position: sticky !important;
    bottom: calc(-10px - env(safe-area-inset-bottom)) !important;
    z-index: 7 !important;
    margin: 8px 0 0 !important;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom)) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 -12px 26px rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px);
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-section--summary .wpwd-metrics {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px 10px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-cta {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 48px 48px !important;
    gap: 8px !important;
    align-items: center !important;
    margin-top: 7px !important;
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-cta .single_add_to_cart_button {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-height: 48px !important;
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-native-actions-slot {
    display: contents !important;
  }

  body.wpwd-mobile-product-active .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-native-actions-slot > * {
    grid-row: 1 !important;
    min-height: 48px !important;
  }

  body.wpwd-mobile-product-active .urbanart-ai-launcher-shell {
    display: none !important;
  }
}

.wpwd-mobile-buybar,
.wpwd-mobile-config-drawer,
.wpwd-mobile-sheet-toggle {
  display: none;
}

/* Dedicated mobile configurator shell. Desktop keeps the normal product layout. */
@media (max-width: 768px) {
  body.wpwd-mobile-configurator-active,
  body.wpwd-mobile-configurator-drawer-open {
    overflow: hidden !important;
  }

  body.wpwd-mobile-configurator-active .urbanart-ai-launcher-shell {
    display: none !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9990 !important;
    display: block !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator > .wpwd-stage,
  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator > .wpwd-left,
  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator.wpwd-mobile-product-shell > .wpwd-stage,
  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator.wpwd-mobile-product-shell > .wpwd-left {
    position: fixed !important;
    inset: 0 0 218px 0 !important;
    z-index: 1 !important;
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: 6px !important;
    width: 100vw !important;
    min-height: 0 !important;
    padding: max(8px, env(safe-area-inset-top)) 10px 8px !important;
    background: #ffffff !important;
    overflow: hidden !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator .wpwd-canvas-wrap {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: inset 0 0 0 1px rgba(32, 32, 32, 0.08) !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator .wpwd-product-gallery-carousel {
    display: none !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator .wpwd-gallery-thumb {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator > .wpwd-sidebar,
  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator > .wpwd-panel,
  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator .wpwd-panel.wpwd-sidebar {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-mobile-buybar {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 9998 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
    border-radius: 18px 18px 0 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.18) !important;
    backdrop-filter: blur(16px);
  }

  .wpwd-mobile-buybar__summary {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(136px, 0.9fr);
    gap: 8px;
    align-items: stretch;
    min-width: 0;
  }

  .wpwd-mobile-buybar__metric {
    display: grid !important;
    align-content: center !important;
    gap: 2px !important;
    min-width: 0 !important;
    min-height: 58px !important;
    padding: 8px 10px !important;
    border: 1px solid rgba(32, 32, 32, 0.1) !important;
    border-radius: 12px !important;
    background: rgba(248, 251, 251, 0.95) !important;
    color: #202020 !important;
    text-align: left !important;
    box-shadow: none !important;
  }

  button.wpwd-mobile-buybar__metric {
    cursor: pointer !important;
  }

  .wpwd-mobile-buybar__metric span {
    color: rgba(32, 32, 32, 0.56) !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
  }

  .wpwd-mobile-buybar__metric strong {
    min-width: 0 !important;
    overflow: hidden !important;
    color: #11282a !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    text-overflow: ellipsis !important;
    text-transform: none !important;
    white-space: nowrap !important;
  }

  .wpwd-mobile-buybar__metric small {
    min-height: 13px !important;
    overflow: hidden !important;
    color: rgba(32, 32, 32, 0.62) !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    line-height: 1.1 !important;
    text-overflow: ellipsis !important;
    text-transform: none !important;
    white-space: nowrap !important;
  }

  .wpwd-mobile-buybar__metric--total strong {
    color: #0f5456 !important;
  }

  .wpwd-mobile-buybar__title {
    min-width: 0;
    overflow: hidden;
    color: #202020;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .wpwd-mobile-buybar__price {
    color: #2bb4b8;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.12;
    white-space: nowrap;
  }

  .wpwd-mobile-buybar__total {
    color: #0f5456;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.14;
  }

  .wpwd-mobile-buybar__dims {
    color: rgba(32, 32, 32, 0.64);
    font-size: 12px;
    line-height: 1.16;
    text-align: right;
  }

  .wpwd-mobile-buybar__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 52px;
    gap: 8px;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-config-open,
  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-add-cart {
    min-height: 48px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-config-open {
    border: 1px solid #48c8b1 !important;
    background: #48c8b1 !important;
    color: #ffffff !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-add-cart{
    border: 1px solid #48c8b1 !important;
    background: #48c8b1 !important;
    font-weight : 600 !important;
    color: #ffffff !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-add-cart {
    border: 1px solid #48c8b1 !important;
    background: #48c8b1 !important;
    color: #ffffff !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-add-cart.disabled,
  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-add-cart.is-disabled,
  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-add-cart:disabled,
  body.wpwd-mobile-configurator-ready .wpwd-mobile-add-cart.disabled,
  body.wpwd-mobile-configurator-ready .wpwd-mobile-add-cart.is-disabled,
  body.wpwd-mobile-configurator-ready .wpwd-mobile-add-cart:disabled,
  .wpwd-mobile-summary-add.disabled,
  .wpwd-mobile-summary-add.is-disabled,
  .wpwd-mobile-summary-add:disabled {
    opacity: 0.48 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    filter: grayscale(0.35) !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .ua-mobile-product-gallery {
    width: min(100% - 24px, 360px) !important;
    margin: 0 auto 18px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .ua-mobile-product-gallery .ua-mobile-gallery-image {
    width: 100% !important;
    height: auto !important;
    max-height: 420px !important;
    object-fit: cover !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .ua-mobile-product-gallery .ua-mobile-gallery-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 20px !important;
  }

  .ua-mobile-product-gallery {
    position: relative !important;
  }

  .ua-mobile-product-gallery .ua-mobile-gallery-btn {
    z-index: 5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(43, 180, 184, 0.22) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    color: #0f5456 !important;
    box-shadow: 0 10px 24px rgba(15, 84, 86, 0.16) !important;
    touch-action: manipulation !important;
  }

  .ua-mobile-gallery-dots {
    position: absolute !important;
    right: 0 !important;
    bottom: 14px !important;
    left: 0 !important;
    z-index: 4 !important;
    display: flex !important;
    justify-content: center !important;
    gap: 7px !important;
    pointer-events: auto !important;
  }

  .ua-mobile-gallery-dot {
    width: 7px !important;
    min-width: 7px !important;
    height: 7px !important;
    min-height: 7px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(15, 84, 86, 0.24) !important;
  }

  .ua-mobile-gallery-dot.is-active {
    width: 22px !important;
    background: #2bb4b8 !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-mobile-buybar {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 10002 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)) !important;
    border: 1px solid rgba(43, 180, 184, 0.16) !important;
    border-bottom: 0 !important;
    border-radius: 24px 24px 0 0 !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(240, 252, 250, 0.985)) !important;
    box-shadow: 0 -22px 54px rgba(15, 84, 86, 0.18) !important;
    backdrop-filter: blur(18px) !important;
    pointer-events: auto !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-mobile-buybar__summary {
    grid-template-columns: minmax(0, 1.1fr) minmax(136px, 0.9fr) !important;
    gap: 10px !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-mobile-buybar__metric {
    min-height: 54px !important;
    padding: 9px 11px !important;
    border: 1px solid rgba(43, 180, 184, 0.14) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 8px 20px rgba(15, 84, 86, 0.06) !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-mobile-buybar__metric span {
    color: #178b8f !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-mobile-buybar__metric strong {
    color: #0f5456 !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-mobile-buybar__metric small {
    color: rgba(15, 84, 86, 0.68) !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-mobile-buybar__actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 52px !important;
    gap: 7px !important;
    padding: 5px !important;
    border: 1px solid rgba(43, 180, 184, 0.14) !important;
    border-radius: 20px !important;
    background: rgba(232, 250, 247, 0.84) !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-config-open,
  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-add-cart,
  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-favorite {
    min-height: 50px !important;
    border-radius: 14px !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-config-open {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    border: 1px solid transparent !important;
    background: rgba(255, 255, 255, 0.82) !important;
    color: #0f5456 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-config-open span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    color: #20aeb2 !important;
    font-size: 17px !important;
    line-height: 1 !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-config-open span svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    fill: currentColor !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-config-open strong {
    color: #0f5456 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-config-open small {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    color: rgba(15, 84, 86, 0.72) !important;
    font-size: 10.5px !important;
    font-weight: 850 !important;
    line-height: 1.05 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-favorite {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 !important;
    border: 1px solid rgba(43, 180, 184, 0.16) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    color: #1faeb3 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
    overflow: visible !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-favorite svg {
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    overflow: visible !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-favorite.is-saved svg {
    fill: currentColor !important;
    transform: scale(1.04) !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-favorite.is-saved svg {
    fill: currentColor !important;
    transform: scale(1.06) !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-add-cart {
    grid-column: 1 / 3 !important;
    min-height: 46px !important;
    border: 1px solid #2bb4b8 !important;
    background: linear-gradient(135deg, #1faeb3 0%, #36c8b1 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 26px rgba(43, 180, 184, 0.26) !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-mobile-config-drawer {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10000 !important;
    display: block !important;
    pointer-events: none;
  }

  body.wpwd-mobile-configurator-active .wpwd-mobile-config-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 24, 26, 0.38);
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  body.wpwd-mobile-configurator-active .wpwd-mobile-config-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: min(82vh, 720px);
    max-height: calc(100dvh - 36px);
    padding: 0 14px calc(14px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    background: #ffffff;
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.24);
    transform: translateY(100%);
    transition: transform 0.24s ease;
  }

  body.wpwd-mobile-configurator-drawer-open .wpwd-mobile-config-drawer {
    pointer-events: auto;
  }

  body.wpwd-mobile-configurator-drawer-open .wpwd-mobile-config-backdrop {
    opacity: 1;
  }

  body.wpwd-mobile-configurator-drawer-open .wpwd-mobile-config-panel {
    transform: translateY(0);
  }

  .wpwd-mobile-config-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0 10px;
    border-bottom: 1px solid rgba(32, 32, 32, 0.1);
  }

  .wpwd-mobile-config-head div {
    display: grid;
    gap: 2px;
  }

  .wpwd-mobile-config-head strong {
    color: #202020;
    font-size: 18px;
    line-height: 1.1;
  }

  .wpwd-mobile-config-head span {
    color: #0f5456;
    font-size: 13px;
    font-weight: 800;
  }

  button.voir-chez-moi-btn.ua-voir-chez-moi-desktop-cta {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: none !important;
    top: -4px !important;
    width: 120px !important;
    height: 30px !important;
}

  .wpwd-mobile-config-close {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    border: 1px solid rgba(32, 32, 32, 0.14) !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #202020 !important;
    font-size: 26px !important;
    line-height: 1 !important;
  }

  .wpwd-mobile-config-body {
    display: grid;
    align-content: start;
    gap: 18px;
    min-height: 0;
    padding: 14px 0 22px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .wpwd-mobile-config-slot {
    display: grid;
    gap: 14px;
  }

  .wpwd-mobile-config-body .wpwd-section {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .wpwd-mobile-config-body .wpwd-dimension-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .wpwd-mobile-config-body .wpwd-dimension-card {
    padding: 9px 10px !important;
    border-radius: 8px !important;
  }

  .wpwd-mobile-config-body .wpwd-dimension-input {
    min-height: 40px !important;
  }

  .wpwd-mobile-config-body .wpwd-dimension-input input[type="number"] {
    min-height: 36px !important;
    text-align: center !important;
  }

  .wpwd-mobile-config-body .wpwd-dimension-note {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .wpwd-mobile-config-body .wpwd-material-head,
  .wpwd-mobile-config-body .wpwd-dimension-head {
    margin: 0 0 10px !important;
  }

  .wpwd-mobile-config-body .wpwd-variations-slot,
  .wpwd-mobile-config-body .wpwd-variations-slot .variations {
    display: block !important;
    width: 100% !important;
  }

  .wpwd-mobile-config-body .wpwd-variations-slot .variations .attribute {
    display: block !important;
    margin: 0 0 18px !important;
  }

  .wpwd-mobile-config-body .wpwd-native-pose-options {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: 10px !important;
  }

  .wpwd-mobile-config-body .wpwd-material-list,
  body.wpwd-mobile-configurator-active .wpwd-custom-shell .wpwd-mobile-config-body .wpwd-variations-slot .variations .attribute:not(.wpwd-native-pose-row) .wpwd-material-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(132px, 150px)) !important;
    align-items: start !important;
    justify-content: center !important;
    column-gap: 20px !important;
    row-gap: 24px !important;
    padding: 6px 0 18px !important;
  }

  .wpwd-mobile-config-body .wpwd-native-pose-options .wpwd-pose-option,
  .wpwd-mobile-config-body .wpwd-material-option {
    align-items: flex-start !important;
    min-height: 70px !important;
    height: auto !important;
    padding: 12px !important;
    border-radius: 14px !important;
  }

  .wpwd-mobile-config-body .wpwd-material-option,
  html body.wpwd-mobile-configurator-active .wpwd-custom-shell .wpwd-mobile-config-body button.wpwd-material-option {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    justify-self: center !important;
    gap: 9px !important;
    width: min(38vw, 150px) !important;
    min-width: 132px !important;
    max-width: 150px !important;
    aspect-ratio: auto !important;
    min-height: 196px !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #202020 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    overflow: visible !important;
  }

  .wpwd-mobile-config-body .wpwd-material-option::after {
    content: none !important;
  }

  .wpwd-mobile-config-body .wpwd-material-option .wpwd-material-visual {
    position: relative !important;
    inset: auto !important;
    z-index: 1 !important;
    display: block !important;
    width: min(34vw, 132px) !important;
    height: min(34vw, 132px) !important;
    min-width: 122px !important;
    min-height: 122px !important;
    max-width: 132px !important;
    max-height: 132px !important;
    border: 1px solid rgba(32, 32, 32, 0.08) !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow: 0 18px 38px rgba(15, 84, 86, 0.1) !important;
    overflow: hidden !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
  }

  .wpwd-mobile-config-body .wpwd-material-option .wpwd-material-visual img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .wpwd-mobile-config-body .wpwd-material-option > span:first-child:not(.wpwd-material-visual),
  .wpwd-mobile-config-body .wpwd-material-option > .wpwd-material-visual + span {
    position: relative !important;
    z-index: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 64px !important;
    max-width: 118px !important;
    min-height: 28px !important;
    padding: 6px 12px !important;
    border: 1px solid rgba(15, 84, 86, 0.08) !important;
    border-radius: 999px !important;
    background: #eefbfa !important;
    color: #0f5456 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.12 !important;
    text-align: center !important;
    text-shadow: none !important;
    text-transform: uppercase !important;
    white-space: normal !important;
  }

  .wpwd-mobile-config-body .wpwd-material-option .wpwd-material-price {
    position: relative !important;
    z-index: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 92px !important;
    max-width: 112px !important;
    min-height: 22px !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    background: rgba(43, 180, 184, 0.94) !important;
    overflow: hidden !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.1 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    text-align: center !important;
    text-shadow: none !important;
    text-transform: none !important;
    box-shadow: 0 8px 18px rgba(15, 84, 86, 0.18) !important;
    transform: translateY(4px) !important;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease !important;
    white-space: nowrap !important;
  }

  .wpwd-mobile-config-body .wpwd-material-option.is-selected,
  html body.wpwd-mobile-configurator-active .wpwd-custom-shell .wpwd-mobile-config-body button.wpwd-material-option.is-selected {
    color: #0f5456 !important;
    box-shadow: none !important;
  }

  .wpwd-mobile-config-body .wpwd-material-option.is-selected .wpwd-material-visual {
    border-color: #2bb4b8 !important;
    box-shadow: 0 22px 46px rgba(43, 180, 184, 0.28), 0 0 0 3px rgba(43, 180, 184, 0.92) !important;
    transform: translateY(-2px) !important;
  }

  .wpwd-mobile-config-body .wpwd-material-option.is-selected .wpwd-material-price {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-mobile-config-body button.wpwd-material-option > span:not(.wpwd-material-visual):not(.wpwd-material-price) {
    display: inline-flex !important;
    min-width: 64px !important;
    min-height: 28px !important;
    color: #0f5456 !important;
    background: #eefbfa !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 14px !important;
    line-height: 1.12 !important;
    text-indent: 0 !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-mobile-config-body button.wpwd-material-option:not(.is-selected) .wpwd-material-price {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .wpwd-mobile-config-body .wpwd-material-option.is-selected::before {
    flex: 0 0 12px !important;
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    border-radius: 50% !important;
    align-self: center !important;
  }

  .wpwd-mobile-config-body .wpwd-left-meta-wrapper {
    display: grid !important;
    gap: 12px !important;
    padding: 0 !important;
  }
}

/* Mobile v2: entry-first commerce flow + explicit fullscreen configurator. */
.wpwd-mobile-entry,
.wpwd-mobile-config-exit {
  display: none;
}

@media (max-width: 768px) {
  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) {
    overflow: auto !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-custom-shell.wpwd-mobile-configurator {
    display: none !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-entry {
    display: grid !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-mobile-entry {
    display: none !important;
  }

  .wpwd-mobile-entry {
    width: min(100% - 24px, 560px);
    margin: 14px auto 22px;
    overflow: hidden;
    border: 1px solid rgba(32, 32, 32, 0.1);
    border-radius: 22px;
    background: #ffffff;
    color: #202020 !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.1);
    opacity: 1 !important;
  }

  .wpwd-mobile-entry * {
    opacity: 1 !important;
  }

  .wpwd-mobile-entry__preview {
    position: relative;
    min-height: 210px;
    background: linear-gradient(135deg, #f7f7f7, #e9eeee);
    background-position: center;
    background-size: cover;
  }

  .wpwd-mobile-entry__preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.28));
  }

  .wpwd-mobile-entry__preview span {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 1;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #202020;
    font-size: 12px;
    font-weight: 800;
  }

  .wpwd-mobile-entry__content {
    display: grid;
    gap: 12px;
    padding: 18px;
  }

  .wpwd-mobile-entry__eyebrow {
    margin: 0;
    color: #1faeb3 !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .wpwd-mobile-entry h2 {
    margin: 0;
    color: #202020 !important;
    font-size: clamp(22px, 7vw, 30px);
    font-weight: 850;
    line-height: 1.03;
    letter-spacing: -0.02em;
  }

  .wpwd-mobile-entry__price {
    color: #1faeb3 !important;
    font-size: 19px;
    font-weight: 850;
    line-height: 1.1;
  }

  .wpwd-mobile-entry__facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    color: rgba(32, 32, 32, 0.72) !important;
    font-size: 13px;
    line-height: 1.3;
  }

  .wpwd-mobile-entry__facts span:last-child {
    color: #0f5456 !important;
    font-weight: 850;
  }

  .wpwd-mobile-entry__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 10px;
    margin-top: 2px;
  }

  .wpwd-mobile-entry-favorite {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 54px !important;
    min-width: 54px !important;
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 !important;
    border: 1px solid rgba(43, 180, 184, 0.22) !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #1faeb3 !important;
  }

  .wpwd-mobile-entry-favorite svg {
    width: 22px !important;
    height: 22px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
  }

  .wpwd-mobile-entry-favorite.is-saved {
    background: #fff6f8 !important;
    color: #e44d6a !important;
  }

  .wpwd-mobile-entry-favorite.is-saved svg {
    fill: currentColor !important;
  }

  .wpwd-mobile-entry button,
  .wpwd-mobile-summary-add {
    min-height: 50px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  .wpwd-mobile-entry-open,
  .wpwd-mobile-summary-add {
    border: 1px solid #48c8b1 !important;
    background: #48c8b1 !important;
    color: #ffffff !important;
  }

  .wpwd-mobile-entry-room {
    border: 1px solid rgba(32, 32, 32, 0.14) !important;
    background: #ffffff !important;
    color: #202020 !important;
  }

  .wpwd-mobile-product-details {
    width: min(100% - 24px, 560px);
    margin: 0 auto 24px;
    padding: 16px;
    border: 1px solid rgba(32, 32, 32, 0.08);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .wpwd-mobile-product-details__social {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(32, 32, 32, 0.08);
  }

  .wpwd-mobile-product-details__trust {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(32, 32, 32, 0.08);
  }

  .wpwd-mobile-product-details__info {
    padding-top: 14px;
  }

  .wpwd-mobile-product-details__social .ts-social-sharing,
  .wpwd-mobile-product-details__social .ts-social-sharing ul {
    display: flex !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .wpwd-mobile-product-details__social .ts-social-sharing li {
    display: inline-flex !important;
  }

  .wpwd-mobile-product-details__social .ts-social-sharing a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: rgba(32, 32, 32, 0.06) !important;
    color: #202020 !important;
    text-decoration: none !important;
  }

  .wpwd-mobile-product-details__trust .product-trust-icons,
  .wpwd-mobile-product-details__info .informations_produit {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 0 !important;
  }

  .wpwd-mobile-product-details__trust .trust-item,
  .wpwd-mobile-product-details__info .trust-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #202020 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }

  .wpwd-mobile-product-details__trust .trust-item img,
  .wpwd-mobile-product-details__info .trust-item img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
  }

  .wpwd-mobile-product-details__info .trust-item img {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(43, 180, 184, 0.2) !important;
    object-fit: cover !important;
  }

  .wpwd-mobile-product-details__info {
    padding-top: 14px;
  }

  .wpwd-mobile-product-details__info .informations_produit {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .wpwd-mobile-product-details__info .trust-item {
    flex-direction: column !important;
    text-align: center !important;
    gap: 8px !important;
  }

  .wpwd-mobile-entry__trust {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin: 2px 0 0;
    padding: 0;
    color: rgba(32, 32, 32, 0.68) !important;
    font-size: 12px;
    list-style: none !important;
  }

  .wpwd-mobile-entry__trust li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .wpwd-mobile-entry__trust li::marker {
    content: '';
  }

  .wpwd-mobile-entry__trust li::before {
    content: '✓';
    margin-right: 7px;
    color: #2bb4b8;
    font-weight: 900;
  }

  body.wpwd-mobile-configurator-active .wpwd-mobile-config-exit {
    position: fixed !important;
    top: max(10px, env(safe-area-inset-top)) !important;
    left: 12px !important;
    z-index: 10001 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border: 1px solid rgba(32, 32, 32, 0.12) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    color: #202020 !important;
    font-size: 24px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    backdrop-filter: blur(12px);
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator > .wpwd-stage,
  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator > .wpwd-left,
  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator.wpwd-mobile-product-shell > .wpwd-stage,
  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator.wpwd-mobile-product-shell > .wpwd-left {
    padding-top: max(58px, calc(env(safe-area-inset-top) + 52px)) !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-under-controls {
    pointer-events: none !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-left > .wpwd-under-controls {
    pointer-events: auto !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-left > .wpwd-under-controls .wpwd-toolbar--overlay {
    position: static !important;
    inset: auto !important;
    pointer-events: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-toolbar--overlay {
    inset: 10px !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-toolbar-group {
    gap: 5px !important;
    padding: 5px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(32, 32, 32, 0.16) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14) !important;
    pointer-events: auto !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-toolbar-group--zoom {
    top: 4px !important;
    right: 4px !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-toolbar-group--view {
    top: 4px !important;
    right: auto !important;
    bottom: auto !important;
    left: 4px !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-toolbar-group--transform {
    right: 4px !important;
    bottom: 4px !important;
    left: auto !important;
    transform: none !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-canvas-room-slot {
    left: 4px !important;
    bottom: 4px !important;
    z-index: 2 !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-canvas-room-slot .wpwd-room-preview-action,
  body.wpwd-mobile-configurator-active .wpwd-canvas-room-slot a,
  body.wpwd-mobile-configurator-active .wpwd-canvas-room-slot button {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 150px !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    background: linear-gradient(135deg, rgba(43, 180, 184, 0.98), rgba(54, 200, 177, 0.96)) !important;
    box-shadow: 0 12px 28px rgba(15, 84, 86, 0.28) !important;
    font-size: 12px !important;
    font-weight: 850 !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-toolbar--overlay .wpwd-icon-btn,
  body.wpwd-mobile-configurator-active .wpwd-toolbar--overlay .wpwd-toggle {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 8px !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-mobile-buybar__actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 52px !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-config-open,
  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-add-cart,
  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-favorite {
    padding: 0 8px !important;
    font-size: 12px !important;
  }

  .wpwd-mobile-config-panel {
    grid-template-rows: auto auto minmax(0, 1fr) !important;
  }

  .wpwd-mobile-config-tabs {
    position: relative !important;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin: 4px 12px 18px !important;
    padding: 5px !important;
    border: 1px solid rgba(43, 180, 184, 0.16) !important;
    border-radius: 22px !important;
    background: linear-gradient(180deg, #f3fbfb 0%, #edf8f7 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 10px 28px rgba(15, 84, 86, 0.08) !important;
    overflow: hidden !important;
  }

  .wpwd-mobile-config-tabs::before {
    content: none !important;
  }

  .wpwd-mobile-config-tabs button {
    position: relative !important;
    z-index: 1 !important;
    display: inline-flex !important;
    min-height: 54px !important;
    padding: 7px 2px 6px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: transparent !important;
    color: rgba(32, 32, 32, 0.58) !important;
    font-size: 9.5px !important;
    font-weight: 780 !important;
    letter-spacing: 0 !important;
    line-height: 1.1 !important;
    text-transform: none !important;
    box-shadow: none !important;
    transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
  }

  .wpwd-mobile-config-tabs .wpwd-tab-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 999px !important;
    color: currentColor !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    transition: transform 0.2s ease, background 0.2s ease !important;
  }

  .wpwd-mobile-config-tabs .wpwd-tab-icon svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.1 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  .wpwd-mobile-config-tabs button.is-active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #1faeb3 0%, #34c8b3 58%, #78e0cf 100%) !important;
    box-shadow: 0 12px 24px rgba(43, 180, 184, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    transform: translateY(-1px) !important;
  }

  .wpwd-mobile-config-tabs button.is-active .wpwd-tab-icon {
    background: rgba(255, 255, 255, 0.18) !important;
    transform: translateY(-1px) scale(1.04) !important;
  }

  .wpwd-custom-shell[data-wpwd-mobile-step="dimensions"] .wpwd-mobile-config-tabs { --wpwd-tabs-active-center: 12.5%; }
  .wpwd-custom-shell[data-wpwd-mobile-step="support"] .wpwd-mobile-config-tabs { --wpwd-tabs-active-center: 37.5%; }
  .wpwd-custom-shell[data-wpwd-mobile-step="pose"] .wpwd-mobile-config-tabs { --wpwd-tabs-active-center: 62.5%; }
  .wpwd-custom-shell[data-wpwd-mobile-step="summary"] .wpwd-mobile-config-tabs { --wpwd-tabs-active-center: 87.5%; }

  .wpwd-mobile-config-slot {
    display: none !important;
  }

  .wpwd-custom-shell[data-wpwd-mobile-step="dimensions"] [data-wpwd-mobile-slot="dimensions"],
  .wpwd-custom-shell[data-wpwd-mobile-step="support"] [data-wpwd-mobile-slot="material"],
  .wpwd-custom-shell[data-wpwd-mobile-step="pose"] [data-wpwd-mobile-slot="material"],
  .wpwd-custom-shell[data-wpwd-mobile-step="summary"] [data-wpwd-mobile-slot="summary"] {
    display: grid !important;
  }

  .wpwd-custom-shell[data-wpwd-mobile-step="support"] .wpwd-mobile-config-body .wpwd-native-pose-row,
  .wpwd-custom-shell[data-wpwd-mobile-step="support"] .wpwd-mobile-config-body .wpwd-native-pose-options {
    display: none !important;
  }

  .wpwd-custom-shell[data-wpwd-mobile-step="pose"] .wpwd-mobile-config-body .variations tr:not(.wpwd-native-pose-row),
  .wpwd-custom-shell[data-wpwd-mobile-step="pose"] .wpwd-mobile-config-body .variations .attribute:not(.wpwd-native-pose-row),
  .wpwd-custom-shell[data-wpwd-mobile-step="pose"] .wpwd-mobile-config-body .wpwd-material-head {
    display: none !important;
  }

  .wpwd-mobile-summary-card {
    display: grid;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(32, 32, 32, 0.1);
    border-radius: 16px;
    background: #f8fbfb;
  }

  .wpwd-mobile-summary-card h3 {
    margin: 0;
    color: #202020;
    font-size: 22px;
    line-height: 1.1;
  }

  .wpwd-mobile-summary-card dl {
    display: grid;
    gap: 10px;
    margin: 0;
  }

  .wpwd-mobile-summary-card dl > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(32, 32, 32, 0.08);
  }

  .wpwd-mobile-summary-card dt {
    color: rgba(32, 32, 32, 0.58);
    font-size: 13px;
  }

  .wpwd-mobile-summary-card dd {
    margin: 0;
    color: #202020;
    font-size: 15px;
    font-weight: 850;
    text-align: right;
  }

  .wpwd-mobile-summary-add.is-disabled,
  .wpwd-mobile-summary-add:disabled {
    opacity: 0.48;
    cursor: not-allowed;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator .wpwd-mobile-summary-add:not(:disabled) {
    border: 1px solid #48c8b1 !important;
    background: #48c8b1 !important;
    color: #ffffff !important;
  }

  /* Mobile v3: inline product-page customizer (no separate fullscreen step). */
  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) {
    padding-bottom: 124px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  .informations_produit .trust-item img {
    width: 48px !important;
    height: 48px !important;
    border: 2px solid var(--primary) !important;
  }
  .informations_produit .trust-item{
    gap: 18px !important;
  }

  

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-custom-shell.wpwd-mobile-configurator {
    display: block !important;
    margin: 0 auto 18px !important;
    position: relative !important;
    inset: auto !important;
    z-index: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .wpwd-shell.wpwd-custom-shell.wpwd-mobile-product-shell.wpwd-mobile-configurator{
    padding-right: 10px !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-entry {
    display: block !important;
    margin: 30px 0 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-entry__preview,
  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-entry__facts,
  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-entry-open,
  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-entry-room,
  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-entry__trust {
    display: none !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-entry__content {
    position: relative !important;
    padding: 0 !important;
    padding-inline: 6px !important;
    gap: 4px !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-entry__eyebrow {
    display: none !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-entry h2 {
    font-size: clamp(16px, 4.8vw, 20px) !important;
    line-height: 1.14 !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-entry__price {
    font-size: 15px !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-entry__actions {
    display: none !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-entry-favorite {
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
    min-height: 50px !important;
    border-radius: 14px !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-custom-shell.wpwd-mobile-configurator > .wpwd-stage,
  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-custom-shell.wpwd-mobile-configurator > .wpwd-left {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 1 !important;
    display: grid !important;
    grid-template-rows: auto auto !important;
    gap: 8px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    margin-bottom: 14px !important;
  }

  #main-content {
    padding: 0 !important;
  }
  .urbanart-ai-launcher{
    bottom: 0 !important;
  }
  .header-middle > .container {
    padding-top: 1px; 
    padding-bottom: 0px;
  }


  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-custom-shell.wpwd-mobile-configurator .wpwd-canvas-wrap {
    width: 100% !important;
    height: clamp(150px, 40vw, 200px) !important;
    min-height: 300px !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(32, 32, 32, 0.08), 0 10px 30px rgba(0, 0, 0, 0.06) !important;
    overflow: hidden !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-product-gallery-carousel {
    display: inline-flex;
    /* grid-template-columns: 36px minmax(0, 1fr) 36px; */
    align-items: center;
    width: 100%;
    justify-content: center;
    flex-direction: row;
    height: 50px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    gap: 6px !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-gallery-track {
    grid-auto-columns: 44px !important;
    gap: 6px !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-gallery-thumb {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-gallery-scroll {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .ua-mobile-product-gallery {
    display: none !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-custom-shell.wpwd-mobile-configurator > .wpwd-sidebar,
  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-custom-shell.wpwd-mobile-configurator > .wpwd-panel {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 1 !important;
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-panel-stack {
    display: grid !important;
    gap: 5px !important;
    padding-bottom: 0 !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-section--product-header,
  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-config-drawer,
  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-config-exit,
  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-sheet-toggle,
  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-left-meta-wrapper {
    display: none !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-section--dimensions,
  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-section--material,
  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-section--summary {
    display: block !important;
    margin: 0 !important;
    padding: 16px !important;
    border: 1px solid rgba(32, 32, 32, 0.08) !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.055) !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-section--summary {
    position: static !important;
    bottom: auto !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-section--summary .wpwd-cta {
    display: none !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-buybar {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 10002 !important;
    display: grid !important;
    grid-template-columns: minmax(138px, 0.44fr) minmax(0, 0.56fr) !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 9px 9px calc(9px + env(safe-area-inset-bottom)) !important;
    border: 1px solid rgba(43, 180, 184, 0.16) !important;
    border-bottom: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    background: rgba(255, 255, 255, 0.985) !important;
    box-shadow: 0 -18px 44px rgba(15, 84, 86, 0.16) !important;
    backdrop-filter: blur(16px) !important;
    pointer-events: auto !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-buybar__summary {
    grid-template-columns: minmax(0, 1fr) !important;
    min-width: 0 !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-buybar__metric--dimensions,
  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-config-open--support,
  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-config-open--pose {
    display: none !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-buybar__metric--total {
    min-height: 46px !important;
    padding: 6px 10px !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-buybar__metric--total strong {
    font-size: 15px !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-buybar__metric--total small {
    font-size: 10px !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-buybar__actions {
    grid-template-columns: minmax(0, 1fr) 48px !important;
    gap: 8px !important;
    min-width: 0 !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-add-cart {
    min-width: 0 !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
    overflow: hidden !important;
    font-size: 12px !important;
    line-height: 1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-favorite {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    min-width: 48px !important;
    padding: 0 !important;
    border: 1px solid rgba(43, 180, 184, 0.18) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #1faeb3 !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-favorite svg {
    display: block !important;
    width: 27px !important;
    min-width: 27px !important;
    height: 27px !important;
    min-height: 27px !important;
    flex: 0 0 auto !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9 !important;
    transform: translate(2px, 3px) !important;
    overflow: visible !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-favorite.is-saved {
    background: #fff6f8 !important;
    color: #e44d6a !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-favorite.is-saved svg {
    fill: currentColor !important;
  }


  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-add-cart,
  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-favorite {
    min-height: 46px !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .urbanart-ai-launcher-shell,
  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) #ht-ctc-chat {
    bottom: 90px !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .urbanart-ai-widget:not(.is-open) {
    pointer-events: none !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-section--dimensions, body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-section--material, body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-section--summary{
    padding: 10px !important;
  }
}

.wpwd-pose-city-wrapper {
  margin-top: 10px;
  padding: 8px 12px;
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.wpwd-pose-city-label {
  font-size: 13px;
  padding-bottom: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.wpwd-shell .variations select{
  padding: 2px 16px !important;
}

.wpwd-pose-city-select {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  min-height: 38px;
  background: #fff;
}

@media (min-width: 768px) {
  .wpwd-mobile-product-details {
    display: none !important;
  }
}

/* Live support texture tiles: labels must render even when the custom-shell wrapper is absent. */
.wpwd-material-list:has(.wpwd-material-option[data-image]),
.wpwd-material-list:has(.wpwd-material-option .wpwd-material-visual) {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.wpwd-material-option[data-image],
.wpwd-material-option:has(.wpwd-material-visual) {
  position: relative !important;
  min-height: 66px !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  border-radius: 6px !important;
  color: #ffffff !important;
}

.wpwd-material-option[data-image]::before,
.wpwd-material-option[data-image].is-selected::before,
.wpwd-material-option:has(.wpwd-material-visual)::before,
.wpwd-material-option:has(.wpwd-material-visual).is-selected::before {
  content: none !important;
  display: none !important;
}

.wpwd-material-option[data-image] .wpwd-material-visual,
.wpwd-material-option:has(.wpwd-material-visual) .wpwd-material-visual {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
}

.wpwd-material-option[data-image] .wpwd-material-visual img,
.wpwd-material-option:has(.wpwd-material-visual) .wpwd-material-visual img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.wpwd-material-option[data-image]::after,
.wpwd-material-option:has(.wpwd-material-visual)::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.26) 100%) !important;
  pointer-events: none !important;
}

.wpwd-material-option[data-image] .wpwd-material-label,
.wpwd-material-option:has(.wpwd-material-visual) .wpwd-material-label {
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 10px !important;
  z-index: 5 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-indent: 0 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.78) !important;
  pointer-events: none !important;
}

.wpwd-material-option[data-image] .wpwd-material-price,
.wpwd-material-option:has(.wpwd-material-visual) .wpwd-material-price {
  display: none !important;
}

@media (max-width: 640px) {
  .wpwd-material-option[data-image],
  .wpwd-material-option:has(.wpwd-material-visual) {
    min-height: 64px !important;
  }

  .wpwd-material-option[data-image] .wpwd-material-label,
  .wpwd-material-option:has(.wpwd-material-visual) .wpwd-material-label {
    left: 10px !important;
    right: 10px !important;
    bottom: 9px !important;
    font-size: 12px !important;
  }
}

/* Guard selected support texture tiles: selection must not replace the image/label with a flat fill. */
.wpwd-material-option[data-image].is-selected,
.wpwd-material-option[data-image][aria-pressed="true"],
.wpwd-material-option:has(.wpwd-material-visual).is-selected,
.wpwd-material-option:has(.wpwd-material-visual)[aria-pressed="true"] {
  background: transparent !important;
  background-color: transparent !important;
  border: 2px solid #20b9b4 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 0 0 1px rgba(32, 185, 180, 0.18) !important;
  color: #ffffff !important;
}

.wpwd-material-option[data-image].is-selected .wpwd-material-visual,
.wpwd-material-option[data-image].is-selected .wpwd-material-visual img,
.wpwd-material-option:has(.wpwd-material-visual).is-selected .wpwd-material-visual,
.wpwd-material-option:has(.wpwd-material-visual).is-selected .wpwd-material-visual img {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.wpwd-material-option .wpwd-material-label {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Fallback: even if a support image cannot be resolved, labels must remain visible. */
.wpwd-section--material .wpwd-material-option:not(:has(.wpwd-material-visual)) {
  min-height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 12px !important;
  border: 1px solid rgba(43, 180, 184, 0.75) !important;
  background: #f6f7f7 !important;
  color: #202020 !important;
}

.wpwd-section--material .wpwd-material-option:not(:has(.wpwd-material-visual)).is-selected {
  border: 2px solid #20b9b4 !important;
  background: #f6f7f7 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 0 0 1px rgba(32, 185, 180, 0.18) !important;
  color: #202020 !important;
}

.wpwd-section--material .wpwd-material-option:not(:has(.wpwd-material-visual)) .wpwd-material-label {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #202020 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-indent: 0 !important;
}

/* Final mobile CTA authority: never let a cart action collapse into a narrow grid cell. */
@media (max-width: 768px) {
  body.wpwd-mobile-configurator-active .wpwd-mobile-buybar {
    gap: 8px !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
    border-radius: 10px 10px 0 0 !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-mobile-buybar__metric {
    border-radius: 8px !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-mobile-buybar__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-config-open {
    min-height: 48px !important;
    border-radius: 8px !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-add-cart {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 52px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: normal !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-favorite {
    display: none !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-buybar {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr) !important;
    gap: 8px !important;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
    border-radius: 10px 10px 0 0 !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-buybar__actions {
    display: block !important;
    min-width: 0 !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-add-cart {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-favorite {
    display: none !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-section--summary .wpwd-cta,
  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-section--summary .wpwd-cta .woocommerce-variation-add-to-cart {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 48px !important;
    gap: 8px !important;
    min-width: 0 !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-section--summary .wpwd-cta .woocommerce-variation-add-to-cart {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-section--summary .wpwd-cta .single_add_to_cart_button,
  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-section--summary .wpwd-cta > .button {
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .wpwd-custom-shell.wpwd-mobile-product-shell .wpwd-section--summary .wpwd-cta .button-in.wishlist {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 48px !important;
    min-width: 48px !important;
    margin: 0 !important;
  }

  /*
   * The dedicated customizer can run without the product-shell enhancer.
   * Keep its native two-control CTA on the same stable grid as the enhanced
   * mobile layout instead of relying on the desktop flex declaration.
   */
  .wpwd-custom-shell .wpwd-section--summary .wpwd-cta {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 8px !important;
  }

  .wpwd-custom-shell .wpwd-section--summary .wpwd-cta > .button,
  .wpwd-custom-shell .wpwd-section--summary .wpwd-cta > button[type="submit"],
  .wpwd-custom-shell .wpwd-section--summary .wpwd-cta .single_add_to_cart_button {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .wpwd-custom-shell .wpwd-section--summary .wpwd-cta > .button-in.wishlist,
  .wpwd-custom-shell .wpwd-section--summary .wpwd-cta .button-in.wishlist {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: grid !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    place-items: center;
  }
}

/* Purchase summary: quiet specification details, confident total and CTA. */
.wpwd-custom-shell .wpwd-section--summary .wpwd-metrics {
  gap: 8px 12px;
  margin-top: 2px;
  color: #728185;
  font-size: 12px;
  line-height: 1.4;
}

.wpwd-custom-shell .wpwd-section--summary .wpwd-price {
  display: flex !important;
  min-height: 58px;
  margin: 14px 0 0 !important;
  padding: 10px 13px !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #cce7e6 !important;
  border-left: 3px solid #0fa6a5 !important;
  border-radius: 8px !important;
  background: linear-gradient(100deg, #f3fbfb 0%, #ffffff 100%) !important;
  box-shadow: 0 7px 18px rgba(14, 100, 102, 0.06) !important;
  box-sizing: border-box;
}

.wpwd-custom-shell .wpwd-price__label {
  color: #4e676b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.wpwd-custom-shell .wpwd-price__amount {
  color: #075d61;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}

.wpwd-custom-shell .wpwd-section--summary .wpwd-cta {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px !important;
  align-items: stretch !important;
  width: 100%;
  min-width: 0;
  margin-top: 10px !important;
}

.wpwd-custom-shell .wpwd-section--summary .wpwd-cta .woocommerce-variation-add-to-cart {
  display: contents !important;
}

.wpwd-custom-shell .wpwd-section--summary .wpwd-cta > .button,
.wpwd-custom-shell .wpwd-section--summary .wpwd-cta > button[type="submit"],
.wpwd-custom-shell .wpwd-section--summary .wpwd-cta .single_add_to_cart_button {
  grid-column: 2;
  grid-row: 1;
  display: inline-flex !important;
  width: 100% !important;
  min-width: 0;
  min-height: 50px !important;
  padding: 0 18px !important;
  align-items: center;
  justify-content: center;
  border: 1px solid #078d8e !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #0a9d9e 0%, #07898b 100%) !important;
  box-shadow: 0 9px 18px rgba(7, 137, 139, 0.2) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.025em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.wpwd-custom-shell .wpwd-section--summary .wpwd-cta > .button:hover,
.wpwd-custom-shell .wpwd-section--summary .wpwd-cta > button[type="submit"]:hover,
.wpwd-custom-shell .wpwd-section--summary .wpwd-cta .single_add_to_cart_button:hover {
  transform: translateY(-1px);
  border-color: #067779 !important;
  background: linear-gradient(135deg, #078f90 0%, #067b7d 100%) !important;
  box-shadow: 0 12px 22px rgba(7, 109, 111, 0.24) !important;
}

.wpwd-custom-shell .wpwd-section--summary .wpwd-cta > .button-in.wishlist,
.wpwd-custom-shell .wpwd-section--summary .wpwd-cta .button-in.wishlist {
  grid-column: 1;
  grid-row: 1;
  display: grid !important;
  width: 48px;
  min-width: 48px;
  height: 50px;
  min-height: 50px;
  margin: 0 !important;
  place-items: center;
  border: 1px solid #d5e1e2;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.wpwd-custom-shell .wpwd-section--summary .wpwd-cta .button-in.wishlist a {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

@media (max-width: 768px) {
  .wpwd-custom-shell .wpwd-section--summary .wpwd-price {
    min-height: 54px;
    margin-top: 10px !important;
    padding: 9px 11px !important;
  }

  .wpwd-custom-shell .wpwd-price__amount {
    font-size: 18px;
  }

  body.wpwd-mobile-configurator-active .wpwd-mobile-buybar__metric--total,
  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-buybar__metric--total {
    border-color: #bfe2e1 !important;
    background: linear-gradient(110deg, #effafa, #ffffff) !important;
    box-shadow: none !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-mobile-buybar__metric--total span,
  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-buybar__metric--total span {
    color: #497175 !important;
  }

  body.wpwd-mobile-configurator-active .wpwd-mobile-buybar__metric--total strong,
  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-buybar__metric--total strong {
    color: #075d61 !important;
    font-size: 17px !important;
    letter-spacing: -0.025em;
  }

  body.wpwd-mobile-configurator-active .wpwd-custom-shell.wpwd-mobile-configurator button.wpwd-mobile-add-cart,
  body.wpwd-mobile-configurator-ready:not(.wpwd-mobile-configurator-active) .wpwd-mobile-add-cart {
    border: 1px solid #078d8e !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #0a9d9e 0%, #07898b 100%) !important;
    box-shadow: 0 8px 17px rgba(7, 137, 139, 0.2) !important;
    color: #fff !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
}

@media (min-width: 769px) {
  .wpwd-material-option[data-value*="papier-peint"]{
    min-width: 70px !important;
  }
  button.voir-chez-moi-btn.wpwd-room-preview-action {
    border-radius: 0px 8px 0px 8px !important;
    left: 5px;
    bottom: 6px;
  }

}
.wpwd-vcm-btn{
    position: absolute !important;
    border-radius: 0px 8px 0px 8px !important;
    bottom: 5px !important;
    left: 6px !important;
}

/* Mobile preview-first controls: keep the artwork clear and actions intentional. */
@media (max-width: 768px) {
  body.wpwd-mobile-configurator-ready .wpwd-canvas-room-slot {
    position: absolute !important;
    right: auto !important;
    bottom: 12px !important;
    left: 12px !important;
    z-index: 7 !important;
  }

  body.wpwd-mobile-configurator-ready .wpwd-canvas-room-slot .wpwd-room-preview-action,
  body.wpwd-mobile-configurator-ready .wpwd-canvas-room-slot a,
  body.wpwd-mobile-configurator-ready .wpwd-canvas-room-slot button {
    position: static !important;
    inset: auto !important;
    min-height: 42px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #48cab2 0%, #24b39f 48%, #ff4f8b 100%) !important;
    box-shadow: 0 10px 24px rgba(15, 84, 86, 0.28) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
  }

  body.wpwd-mobile-configurator-ready .wpwd-canvas-room-slot .wpwd-room-preview-action:focus-visible,
  body.wpwd-mobile-configurator-ready .wpwd-canvas-room-slot a:focus-visible,
  body.wpwd-mobile-configurator-ready .wpwd-canvas-room-slot button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.92) !important;
    outline-offset: 2px !important;
  }

  body.wpwd-mobile-configurator-ready .wpwd-left > .wpwd-under-controls {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.wpwd-mobile-configurator-ready .wpwd-left > .wpwd-under-controls .wpwd-toolbar--overlay {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-areas:
      "view zoom"
      "transform transform";
    gap: 8px !important;
    width: 100% !important;
    overflow: visible !important;
    justify-content: initial !important;
  }

  body.wpwd-mobile-configurator-ready .wpwd-left > .wpwd-under-controls .wpwd-toolbar-group {
    display: flex !important;
    width: 100% !important;
    min-height: 54px !important;
    padding: 5px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border: 1px solid rgba(17, 77, 82, 0.16) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 8px 20px rgba(15, 84, 86, 0.09) !important;
  }

  body.wpwd-mobile-configurator-ready .wpwd-left > .wpwd-under-controls .wpwd-toolbar-group--view {
    grid-area: view;
  }

  body.wpwd-mobile-configurator-ready .wpwd-left > .wpwd-under-controls .wpwd-toolbar-group--zoom {
    grid-area: zoom;
  }

  body.wpwd-mobile-configurator-ready .wpwd-left > .wpwd-under-controls .wpwd-toolbar-group--transform {
    grid-area: transform;
    width: fit-content !important;
    max-width: 100% !important;
    justify-self: center !important;
  }

  body.wpwd-mobile-configurator-ready .wpwd-left > .wpwd-under-controls .wpwd-toolbar--overlay .wpwd-icon-btn,
  body.wpwd-mobile-configurator-ready .wpwd-left > .wpwd-under-controls .wpwd-toolbar--overlay .wpwd-toggle {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 9px !important;
  }

  body.wpwd-mobile-configurator-ready .wpwd-left > .wpwd-product-gallery-carousel {
    margin-top: 4px !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(17, 77, 82, 0.12);
  }

  body.wpwd-mobile-configurator-ready .wpwd-left > .wpwd-product-gallery-carousel .wpwd-gallery-track {
    grid-auto-columns: 64px;
    padding: 2px 0 5px;
  }
}
