/**
 * Wayvia Commerce Connector widget — map slot in "Trouver votre référence".
 */

/*
 * Kill floating Wayvia “Où acheter ?” sticky button + popup panel site-wide.
 * Safety net if a Wayvia widget is still visualization=popup instead of map/inline.
 * Product pages use the theme modal (cf-wtb); univers pages use the map widget ID.
 */
body [class*="ccStickyBtn"],
body [class*="cc-Sticky"],
body [class*="ccSticky"],
body [class*="cc-Popup"],
body [class*="cc-Popup-module"],
body [id*="cci-popup"],
body [id*="cc-popup"],
body .cci-wtb-button,
body .cc-wtb-button {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  z-index: -1 !important;
}

body.cf-v3 .cf-cc-widget,
body.cf-v3 .cf-cc-storefinder {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

body.cf-v3 .cf-cc-widget--missing {
  min-height: 0;
  padding: 1.25rem 1.5rem;
  color: #1a1a1a;
  font-size: 0.95rem;
  line-height: 1.45;
  border: 1px solid #d8dee8;
  background: #fff;
}

body.cf-v3 .cf-cc-widget--missing ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
}

/* Shared map slot — widget fills .map-mockup (univers + collections). */
body.cf-v3 .map-mockup {
  flex: 1;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-height: 560px;
  height: 560px;
  display: flex;
  flex-direction: column;
  background: #fff;
}

body.cf-v3 .map-mockup .cf-cc-widget,
body.cf-v3 .map-mockup .cf-cc-storefinder {
  flex: 1;
  min-height: 0;
  height: 100%;
  background: #fff;
  border-radius: 0;
}

body.cf-v3 .map-mockup .cf-cc-mount,
body.cf-v3 .map-mockup #cci-root {
  min-height: 0;
  height: 100% !important;
}

body.cf-v3 .cf-cc-widget iframe,
body.cf-v3 .cf-cc-widget > div,
body.cf-v3 .cf-cc-storefinder iframe,
body.cf-v3 .cf-cc-storefinder > div,
body.cf-v3 .cf-cc-mount,
body.cf-v3 #cci-root {
  width: 100% !important;
  max-width: 100%;
}

body.cf-v3 .map-mockup:has(.cf-cc-widget),
body.cf-v3 .map-mockup:has(.cf-cc-storefinder) {
  padding: 0;
  background: #fff;
  border: 0;
}

body.cf-v3 .map-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1024px) {
  body.cf-v3 .map-mockup {
    min-height: min(360px, 55vh);
    height: min(360px, 55vh);
  }
}

@media (max-width: 768px) {
  body.cf-v3 .map-mockup {
    min-height: 360px;
    height: 360px;
  }
}
