body.yamm-linked-colors-active form.variations_form .yamm-linked-colors-source-row{display:none!important}
body.yamm-linked-colors-active .yamm-linked-colors-old-ui{display:none!important}
body.yamm-linked-colors-active .yamm-linked-colors-wrap{position:relative;width:100%!important;max-width:100%!important;box-sizing:border-box!important;margin:12px 0 8px!important;padding:0!important;transform:none!important;translate:none!important}
body.yamm-linked-colors-active .yamm-linked-colors-wrap .yamm-color-strip-header{position:relative;display:flex;align-items:center;justify-content:space-between;width:100%;margin:0 0 7px;padding:0 20px 0 0;box-sizing:border-box}
body.yamm-linked-colors-active .yamm-linked-colors-wrap .yamm-color-strip-title,
body.yamm-linked-colors-active .yamm-linked-colors-wrap .yamm-color-hoverlabel{font-family:"Intrepid","Helvetica Neue",Helvetica,Arial,sans-serif!important;font-size:15px!important;font-weight:400!important;line-height:1.2!important;letter-spacing:0!important;color:#111!important}
body.yamm-linked-colors-active .yamm-linked-colors-wrap .yamm-color-hoverlabel{text-align:right;white-space:nowrap;max-width:50%;overflow:hidden;text-overflow:ellipsis}
body.yamm-linked-colors-active .yamm-linked-color-strip{display:flex;align-items:stretch;gap:5px;width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;box-sizing:border-box}
body.yamm-linked-colors-active .yamm-linked-color-strip::-webkit-scrollbar{display:none}
body.yamm-linked-colors-active .yamm-linked-color-chip{display:block;flex:0 0 calc((100% - 20px)/5);width:calc((100% - 20px)/5);max-width:76px;min-width:54px;margin:0!important;padding:0!important;background:transparent!important;border:0!important;text-decoration:none!important;line-height:0!important;font-size:0!important;box-sizing:border-box;transition:transform .12s ease}
body.yamm-linked-colors-active .yamm-linked-color-chip:active{transform:scale(.98)}
body.yamm-linked-colors-active .yamm-linked-color-chip .chip-thumb{display:block;width:100%;aspect-ratio:1/1;margin:0;padding:0;border:1px solid transparent;border-radius:6px;background:#f7f7f7 center/contain no-repeat;box-sizing:border-box;overflow:hidden}
body.yamm-linked-colors-active .yamm-linked-color-chip.selected .chip-thumb{border-color:#111}
body.yamm-linked-colors-active .yamm-linked-color-chip:focus-visible .chip-thumb{outline:1px solid #111;outline-offset:2px}
@media(max-width:980px){
  body.yamm-linked-colors-active .yamm-linked-colors-wrap{margin-top:12px!important;margin-bottom:8px!important}
  body.yamm-linked-colors-active .yamm-linked-colors-wrap .yamm-color-strip-header{padding-right:0}
  body.yamm-linked-colors-active .yamm-linked-color-chip{max-width:none;min-width:0}
}

/* V1.3.0 — pastilles pleines + mix bicolore + ancrage cross-sell strict. */
.yamm-card-price-with-colors{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:8px!important;width:100%!important;min-width:0!important;box-sizing:border-box!important}
.yamm-card-price-with-colors>.price,
.yamm-card-price-with-colors>.woocommerce-Price-amount,
.yamm-card-price-with-colors>.yamm-des-price,
.yamm-card-price-with-colors>ins,
.yamm-card-price-with-colors>del{flex:0 1 auto!important;min-width:0!important;margin-right:auto!important}
.yamm-card-color-swatches{display:inline-flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex:0 0 auto!important;margin-left:auto!important;min-height:17px!important;line-height:1!important;white-space:nowrap!important}
.yamm-card-color-swatch{--yamm-card-swatch-bg:#777;position:relative!important;display:inline-block!important;width:13px!important;min-width:13px!important;height:13px!important;margin:0!important;padding:0!important;border:1px solid rgba(0,0,0,.18)!important;border-radius:50%!important;background:var(--yamm-card-swatch-bg)!important;box-shadow:none!important;text-decoration:none!important;box-sizing:border-box!important;overflow:visible!important;transition:transform .14s ease,border-color .14s ease!important}
.yamm-card-color-swatch:hover,.yamm-card-color-swatch:focus-visible{transform:scale(1.08)!important;border-color:rgba(0,0,0,.42)!important;outline:0!important}
.yamm-card-color-swatch.is-current::after{content:""!important;position:absolute!important;left:0!important;right:0!important;bottom:-5px!important;height:1px!important;background:#111!important;border-radius:1px!important}
.yamm-card-color-more{display:inline-block!important;margin:0!important;padding:0!important;color:#222!important;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;font-size:11px!important;font-weight:400!important;line-height:13px!important;letter-spacing:0!important}
body.yamm-catalogue-auto-slots .yamm-auto-slot__price .et_pb_module_inner.yamm-card-price-with-colors{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:8px!important}
body.single-product .yamm-mobile-2x2 .et_pb_column[data-yamm-slot] .et_pb_wc_price .et_pb_module_inner.yamm-card-price-with-colors{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:8px!important;width:100%!important}

/* Random / Historique 1.3.4 : pastilles ancrées à la CARTE, jamais au module Prix.
 * Le prix conserve ainsi strictement sa géométrie native Divi. */
body.single-product .yamm-mobile-2x2 .et_pb_column[data-yamm-slot].yamm-linked-random-card{
  position:relative!important;
  min-width:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
body.single-product .yamm-mobile-2x2 .et_pb_column[data-yamm-slot].yamm-linked-random-card > .et_pb_wc_price{
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body.single-product .yamm-mobile-2x2 .et_pb_column[data-yamm-slot].yamm-linked-random-card > .et_pb_wc_price > .et_pb_module_inner.yamm-card-price-with-colors{
  position:static!important;
  display:block!important;
  min-width:0!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
body.single-product .yamm-mobile-2x2 .et_pb_column[data-yamm-slot].yamm-linked-random-card .yamm-card-price-text{
  display:contents!important;
}
body.single-product .yamm-mobile-2x2 .et_pb_column[data-yamm-slot].yamm-linked-random-card > .yamm-card-color-swatches{
  position:absolute!important;
  top:var(--yamm-linked-swatches-top,auto)!important;
  right:14px!important;
  transform:translateY(-50%)!important;
  z-index:3!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:nowrap!important;
  width:max-content!important;
  max-width:86px!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  gap:6px!important;
  overflow:visible!important;
  white-space:nowrap!important;
  pointer-events:auto!important;
}
body.single-product .yamm-mobile-2x2 .et_pb_column[data-yamm-slot].yamm-linked-random-card > .yamm-card-color-swatches .yamm-card-color-swatch{
  flex:0 0 13px!important;
}
body.single-product .yamm-mobile-2x2 .et_pb_column[data-yamm-slot].yamm-linked-random-card > .yamm-card-color-swatches .yamm-card-color-more{
  flex:0 0 auto!important;
  white-space:nowrap!important;
}
@media(max-width:980px){
  .yamm-card-color-swatches{gap:6px!important;min-height:16px!important}
  .yamm-card-color-swatch{width:12px!important;min-width:12px!important;height:12px!important}
  .yamm-card-color-swatch.is-current::after{bottom:-4px!important}
  .yamm-card-color-more{font-size:10px!important;line-height:12px!important}

  body.single-product .yamm-mobile-2x2 .et_pb_column[data-yamm-slot].yamm-linked-random-card > .yamm-card-color-swatches{right:10px!important;max-width:76px!important;gap:5px!important}
  body.single-product .yamm-mobile-2x2 .et_pb_column[data-yamm-slot].yamm-linked-random-card > .yamm-card-color-swatches .yamm-card-color-swatch{flex-basis:12px!important}
}
