/* ================================================================
   MEYAZON STORIES — Widget WordPress / Elementor
   Préfixe : mzzstm | Couleur pilotée par variables CSS
   CSS isolé et protégé contre le thème Electro :
   - sélecteurs à forte spécificité (div.mzzstm-widget …)
   - !important sur les propriétés critiques
   - reset local complet
================================================================= */

/* ---------- VARIABLES (surchargées en inline par le widget) ---------- */
div.mzzstm-widget,
div.mzzstm-modal-root {
  --mzzstm-blue: #0749C4;
  --mzzstm-blue-dark: #05379a;
  --mzzstm-blue-soft: #eaf1fd;
  --mzzstm-bg: #ffffff;
  --mzzstm-title-color: var(--mzzstm-blue);
  --mzzstm-subtitle-color: #64748b;
  --mzzstm-cols: 6;
  --mzzstm-gcols: 6;
  --mzzstm-gap: 16px;
}

/* ---------- RESET LOCAL (protection thème Electro) ---------- */
div.mzzstm-widget,
div.mzzstm-widget *,
div.mzzstm-modal-root,
div.mzzstm-modal-root * {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  line-height: 1.4;
  text-transform: none !important;
  letter-spacing: normal;
  border: 0;
  outline: none;
  -webkit-font-smoothing: antialiased;
}

div.mzzstm-widget a,
div.mzzstm-widget a:hover,
div.mzzstm-widget a:focus,
div.mzzstm-widget a:visited,
div.mzzstm-modal-root a,
div.mzzstm-modal-root a:hover {
  text-decoration: none !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

div.mzzstm-widget button,
div.mzzstm-modal-root button {
  background: none;
  border: 0 !important;
  border-radius: 0;
  cursor: pointer;
  appearance: none !important;
  -webkit-appearance: none !important;
  font: inherit;
  color: inherit;
  box-shadow: none;
  min-height: 0 !important;
  min-width: 0 !important;
}

div.mzzstm-widget img,
div.mzzstm-modal-root img {
  max-width: none !important;
  border: 0 !important;
  display: block;
}

div.mzzstm-widget h2,
div.mzzstm-widget p,
div.mzzstm-modal-root h3,
div.mzzstm-modal-root p {
  margin: 0 !important;
  padding: 0 !important;
}

div.mzzstm-widget svg,
div.mzzstm-modal-root svg { display: block; }

/* ---------- SECTION ---------- */
div.mzzstm-widget {
  display: block !important;
  background: var(--mzzstm-bg) !important;
  padding: 48px 0 40px !important;
  width: 100%;
}

div.mzzstm-widget .mzzstm-container {
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

/* ---------- EN-TÊTE ---------- */
div.mzzstm-widget .mzzstm-header {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px !important;
  flex-wrap: wrap;
}

div.mzzstm-widget .mzzstm-title {
  font-size: 32px !important;
  font-weight: 800 !important;
  color: var(--mzzstm-title-color) !important;
  line-height: 1.15 !important;
}

div.mzzstm-widget .mzzstm-subtitle {
  margin-top: 6px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--mzzstm-subtitle-color) !important;
}

div.mzzstm-widget .mzzstm-btn-more {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  background: var(--mzzstm-blue) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 13px 24px !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 20px rgba(7, 73, 196, 0.28) !important;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}

div.mzzstm-widget .mzzstm-btn-more:hover {
  filter: brightness(0.85);
  color: #ffffff !important;
  transform: translateY(-2px);
}

div.mzzstm-widget .mzzstm-btn-more .mzzstm-ico {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: #ffffff !important;
}

/* ---------- ZONE CAROUSEL ---------- */
div.mzzstm-widget .mzzstm-carousel-zone { position: relative; }

div.mzzstm-widget .mzzstm-row {
  display: flex !important;
  gap: var(--mzzstm-gap);
  align-items: stretch;
}

div.mzzstm-widget .mzzstm-viewport {
  flex: 1 1 auto;
  overflow: hidden !important;
  border-radius: 20px;
  min-width: 0;
}

div.mzzstm-widget .mzzstm-track {
  display: flex !important;
  gap: var(--mzzstm-gap);
  transition: transform .55s cubic-bezier(.22, .8, .26, 1);
  will-change: transform;
}

/* ---------- CARTES ---------- */
div.mzzstm-widget .mzzstm-card {
  position: relative;
  height: 340px !important;
  border-radius: 20px !important;
  overflow: hidden;
  flex: none;
  user-select: none;
}

/* carousel : largeur pilotée par --mzzstm-cols */
div.mzzstm-widget .mzzstm-track .mzzstm-card-story {
  width: calc((100% - (var(--mzzstm-cols) - 1) * var(--mzzstm-gap)) / var(--mzzstm-cols));
}

div.mzzstm-widget .mzzstm-card-story {
  cursor: pointer;
  background: #0f1b33;
  transition: transform .25s ease, box-shadow .25s ease;
}

div.mzzstm-widget .mzzstm-card-story:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 27, 51, 0.22);
}

div.mzzstm-widget .mzzstm-card-bg {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform .4s ease;
}

div.mzzstm-widget .mzzstm-card-story:hover .mzzstm-card-bg { transform: scale(1.06); }

div.mzzstm-widget .mzzstm-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 16, 42, 0.62) 0%, rgba(4, 16, 42, 0.05) 38%, rgba(4, 16, 42, 0.02) 55%, rgba(4, 16, 42, 0.7) 100%);
}

div.mzzstm-widget .mzzstm-card-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

div.mzzstm-widget .mzzstm-avatar-ring {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  padding: 2px !important;
  background: linear-gradient(135deg, var(--mzzstm-blue), #4d8bff);
}

div.mzzstm-widget .mzzstm-avatar {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #fff !important;
}

div.mzzstm-widget .mzzstm-card-id {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

div.mzzstm-widget .mzzstm-vendor {
  display: block;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

div.mzzstm-widget .mzzstm-posted {
  display: block;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

div.mzzstm-widget .mzzstm-photo-count {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: rgba(8, 15, 34, 0.55);
  backdrop-filter: blur(4px);
  padding: 4px 8px !important;
  border-radius: 999px !important;
}

div.mzzstm-widget .mzzstm-photo-count svg { width: 12px; height: 12px; }

div.mzzstm-widget .mzzstm-remaining {
  position: absolute;
  top: 62px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: rgba(8, 15, 34, 0.55);
  backdrop-filter: blur(4px);
  padding: 4px 9px !important;
  border-radius: 999px !important;
}

div.mzzstm-widget .mzzstm-remaining svg { width: 11px; height: 11px; }

/* compteurs vues / likes */
div.mzzstm-widget .mzzstm-card-stats {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

div.mzzstm-widget .mzzstm-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: rgba(8, 15, 34, 0.55);
  backdrop-filter: blur(4px);
  padding: 5px 10px !important;
  border-radius: 999px !important;
  transition: background .2s ease, transform .15s ease;
}

div.mzzstm-widget .mzzstm-stat svg { width: 13px; height: 13px; flex: none; }

div.mzzstm-widget button.mzzstm-stat-like:hover {
  background: var(--mzzstm-blue);
  transform: scale(1.06);
}

div.mzzstm-widget .mzzstm-stat-like.mzzstm-liked { background: #e11d48 !important; }
div.mzzstm-widget .mzzstm-stat-like.mzzstm-liked svg { fill: #fff; }

/* ---- mise à jour temps réel des compteurs ---- */
@keyframes mzzstm-tick {
  0% { transform: scale(1); }
  35% { transform: scale(1.14); background: var(--mzzstm-blue); }
  100% { transform: scale(1); }
}

div.mzzstm-widget .mzzstm-stat.mzzstm-tick,
div.mzzstm-modal-root .mzzstm-v-stat.mzzstm-tick,
div.mzzstm-modal-root .mzzstm-v-like.mzzstm-tick {
  animation: mzzstm-tick .45s ease;
}

@keyframes mzzstm-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

div.mzzstm-widget .mzzstm-stat-like.mzzstm-pop svg,
div.mzzstm-modal-root .mzzstm-v-like.mzzstm-pop svg { animation: mzzstm-pop .35s ease; }

/* ---------- CARTE "CRÉER" (vendeur Meyazon) ---------- */
div.mzzstm-widget .mzzstm-card-create {
  width: calc((100% - var(--mzzstm-cols) * var(--mzzstm-gap)) / (var(--mzzstm-cols) + 1));
  min-width: 140px;
  flex: none;
  background: #ffffff !important;
  border: 2px dashed color-mix(in srgb, var(--mzzstm-blue) 45%, transparent) !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

div.mzzstm-widget .mzzstm-card-create:hover {
  border-color: var(--mzzstm-blue) !important;
  background: var(--mzzstm-blue-soft) !important;
  transform: translateY(-3px);
}

div.mzzstm-widget .mzzstm-create-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 0 12px;
}

div.mzzstm-widget .mzzstm-create-circle {
  width: 58px;
  height: 58px;
  border-radius: 50% !important;
  background: var(--mzzstm-blue-soft);
  color: var(--mzzstm-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease;
}

div.mzzstm-widget .mzzstm-card-create:hover .mzzstm-create-circle { transform: scale(1.08); }

div.mzzstm-widget .mzzstm-create-circle svg { width: 24px; height: 24px; }

div.mzzstm-widget .mzzstm-create-label {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--mzzstm-blue) !important;
}

div.mzzstm-widget .mzzstm-create-hint {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
}

div.mzzstm-widget .mzzstm-create-badge {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px !important;
  font-weight: 700 !important;
  color: var(--mzzstm-blue) !important;
  background: var(--mzzstm-blue-soft);
  padding: 3px 10px !important;
  border-radius: 999px !important;
  white-space: nowrap;
}

/* ---------- FLÈCHES ---------- */
div.mzzstm-widget .mzzstm-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: var(--mzzstm-blue) !important;
  box-shadow: 0 6px 18px rgba(15, 27, 51, 0.18) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}

div.mzzstm-widget .mzzstm-nav svg { width: 20px; height: 20px; }

div.mzzstm-widget .mzzstm-nav:hover {
  background: var(--mzzstm-blue) !important;
  color: #ffffff !important;
}

div.mzzstm-widget .mzzstm-nav-prev { left: -14px; }
div.mzzstm-widget .mzzstm-nav-next { right: -14px; }

div.mzzstm-widget .mzzstm-nav[disabled] {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* ---------- DOTS ---------- */
div.mzzstm-widget .mzzstm-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

div.mzzstm-widget .mzzstm-dot {
  width: 8px !important;
  height: 8px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: #cbd8f0 !important;
  transition: width .25s ease, background .25s ease;
}

div.mzzstm-widget .mzzstm-dot.mzzstm-dot-active {
  width: 26px !important;
  background: var(--mzzstm-blue) !important;
}

/* ---------- MODE GRILLE ---------- */
div.mzzstm-widget .mzzstm-grid {
  display: grid !important;
  grid-template-columns: repeat(var(--mzzstm-gcols), 1fr);
  gap: var(--mzzstm-gap);
}

div.mzzstm-widget .mzzstm-grid .mzzstm-card-story,
div.mzzstm-widget .mzzstm-grid .mzzstm-card-create {
  width: auto !important;
  min-width: 0;
}

/* barre "Voir plus" / pagination / scroll infini */
div.mzzstm-widget .mzzstm-loadbar {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

div.mzzstm-widget .mzzstm-loadmore {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: var(--mzzstm-blue-soft) !important;
  color: var(--mzzstm-blue) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 12px 28px !important;
  border-radius: 999px !important;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

div.mzzstm-widget .mzzstm-loadmore:hover {
  background: var(--mzzstm-blue) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

div.mzzstm-widget .mzzstm-loadmore svg { width: 16px; height: 16px; }

div.mzzstm-widget .mzzstm-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  flex-wrap: wrap;
}

div.mzzstm-widget .mzzstm-page-btn {
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
  background: var(--mzzstm-blue-soft) !important;
  color: var(--mzzstm-blue) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease;
}

div.mzzstm-widget .mzzstm-page-btn:hover {
  background: var(--mzzstm-blue) !important;
  color: #fff !important;
}

div.mzzstm-widget .mzzstm-page-btn.mzzstm-page-active {
  background: var(--mzzstm-blue) !important;
  color: #fff !important;
}

div.mzzstm-widget .mzzstm-sentinel {
  height: 2px;
  width: 100%;
}

div.mzzstm-widget .mzzstm-spinner {
  display: flex;
  justify-content: center;
  padding: 20px 0 !important;
}

div.mzzstm-widget .mzzstm-spinner span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--mzzstm-blue-soft) !important;
  border-top-color: var(--mzzstm-blue) !important;
  animation: mzzstm-spin .8s linear infinite;
}

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

div.mzzstm-widget .mzzstm-empty {
  text-align: center;
  color: #94a3b8 !important;
  font-size: 14px !important;
  padding: 30px 0 !important;
}

/* ================================================================
   MODALES (visionneuse + création + toast)
================================================================= */
div.mzzstm-modal-root .mzzstm-viewer,
div.mzzstm-modal-root .mzzstm-creator {
  position: fixed !important;
  inset: 0;
  z-index: 99999 !important;
  display: none;
  align-items: center;
  justify-content: center;
}

div.mzzstm-modal-root .mzzstm-viewer.mzzstm-open,
div.mzzstm-modal-root .mzzstm-creator.mzzstm-open { display: flex !important; }

div.mzzstm-modal-root .mzzstm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 26, 0.88);
  backdrop-filter: blur(6px);
}

div.mzzstm-modal-root .mzzstm-viewer-frame {
  position: relative;
  width: min(420px, 92vw);
  height: min(78vh, 740px);
  border-radius: 22px !important;
  overflow: hidden;
  background: #0f1b33;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: mzzstm-zoom .3s ease;
}

@keyframes mzzstm-zoom {
  from { transform: scale(.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

div.mzzstm-modal-root .mzzstm-v-photo {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

div.mzzstm-modal-root .mzzstm-progress {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  gap: 5px;
}

div.mzzstm-modal-root .mzzstm-progress-seg {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.32);
  overflow: hidden;
}

div.mzzstm-modal-root .mzzstm-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 99px;
}

div.mzzstm-modal-root .mzzstm-viewer-head {
  position: absolute;
  top: 22px;
  left: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}

div.mzzstm-modal-root .mzzstm-v-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid var(--mzzstm-blue) !important;
}

div.mzzstm-modal-root .mzzstm-v-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

div.mzzstm-modal-root .mzzstm-v-name {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

div.mzzstm-modal-root .mzzstm-v-time {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.8) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

/* ---- bouton Suivre / Abonné (visionneuse) ---- */
div.mzzstm-modal-root .mzzstm-v-follow {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  flex: none;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: rgba(8, 15, 34, 0.55) !important;
  backdrop-filter: blur(4px);
  padding: 8px 13px !important;
  border-radius: 999px !important;
  transition: background .2s ease, transform .15s ease;
}

div.mzzstm-modal-root .mzzstm-v-follow svg { width: 13px; height: 13px; }

div.mzzstm-modal-root .mzzstm-v-follow:hover {
  background: var(--mzzstm-blue) !important;
  transform: scale(1.05);
}

div.mzzstm-modal-root .mzzstm-v-follow.mzzstm-following {
  background: var(--mzzstm-blue) !important;
}

div.mzzstm-modal-root .mzzstm-v-close {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(8, 15, 34, 0.55) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
  flex: none;
}

div.mzzstm-modal-root .mzzstm-v-close:hover { background: rgba(225, 29, 72, 0.9) !important; }
div.mzzstm-modal-root .mzzstm-v-close svg { width: 18px; height: 18px; }

div.mzzstm-modal-root .mzzstm-v-side {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  z-index: 3;
  background: transparent !important;
}

div.mzzstm-modal-root .mzzstm-v-side-left { left: 0; }
div.mzzstm-modal-root .mzzstm-v-side-right { right: 0; }

div.mzzstm-modal-root .mzzstm-viewer-foot {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

div.mzzstm-modal-root .mzzstm-v-statsrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

div.mzzstm-modal-root .mzzstm-v-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: rgba(8, 15, 34, 0.6);
  backdrop-filter: blur(4px);
  padding: 8px 14px !important;
  border-radius: 999px !important;
}

div.mzzstm-modal-root .mzzstm-v-stat svg { width: 15px; height: 15px; }

div.mzzstm-modal-root .mzzstm-v-like {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: rgba(8, 15, 34, 0.6) !important;
  backdrop-filter: blur(4px);
  padding: 8px 14px !important;
  border-radius: 999px !important;
  transition: background .2s ease, transform .15s ease;
}

div.mzzstm-modal-root .mzzstm-v-like svg { width: 15px; height: 15px; }
div.mzzstm-modal-root .mzzstm-v-like:hover { transform: scale(1.05); background: var(--mzzstm-blue) !important; }
div.mzzstm-modal-root .mzzstm-v-like.mzzstm-liked { background: #e11d48 !important; }
div.mzzstm-modal-root .mzzstm-v-like.mzzstm-liked svg { fill: #fff; }

/* Bouton "Voir la boutique" : fond bleu, texte + icône blancs, radius 5px */
div.mzzstm-modal-root .mzzstm-v-shop {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--mzzstm-blue) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 13px 20px !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(7, 73, 196, 0.4);
  transition: filter .2s ease, transform .2s ease;
}

div.mzzstm-modal-root .mzzstm-v-shop:hover {
  filter: brightness(0.85);
  color: #ffffff !important;
  transform: translateY(-2px);
}

div.mzzstm-modal-root .mzzstm-v-shop svg {
  width: 17px;
  height: 17px;
  flex: none;
  stroke: #ffffff !important;
  color: #ffffff !important;
}

div.mzzstm-modal-root .mzzstm-v-shop span { color: #ffffff !important; }

/* ---------- MODAL CRÉATION ---------- */
div.mzzstm-modal-root .mzzstm-creator-frame {
  position: relative;
  width: min(560px, 92vw);
  max-height: 86vh;
  overflow: auto;
  border-radius: 22px !important;
  background: #ffffff;
  padding: 26px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  animation: mzzstm-zoom .3s ease;
}

div.mzzstm-modal-root .mzzstm-creator-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px !important;
}

div.mzzstm-modal-root .mzzstm-creator-title {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--mzzstm-blue) !important;
}

div.mzzstm-modal-root .mzzstm-c-close {
  background: #f1f5f9 !important;
  color: #475569 !important;
}

div.mzzstm-modal-root .mzzstm-creator-sub {
  font-size: 13.5px !important;
  color: #64748b !important;
  margin-bottom: 18px !important;
}

div.mzzstm-modal-root .mzzstm-creator-sub strong { color: var(--mzzstm-blue) !important; font-weight: 700; }

div.mzzstm-modal-root .mzzstm-dropzone {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 34px 20px !important;
  border: 2px dashed color-mix(in srgb, var(--mzzstm-blue) 40%, transparent) !important;
  border-radius: 16px !important;
  background: #f7faff;
  color: var(--mzzstm-blue);
  cursor: pointer;
  text-align: center;
  transition: border-color .2s ease, background .2s ease;
}

div.mzzstm-modal-root .mzzstm-dropzone:hover,
div.mzzstm-modal-root .mzzstm-dropzone.mzzstm-dz-over {
  border-color: var(--mzzstm-blue) !important;
  background: var(--mzzstm-blue-soft);
}

div.mzzstm-modal-root .mzzstm-dropzone svg { width: 34px; height: 34px; }

div.mzzstm-modal-root .mzzstm-dz-main { font-size: 15px !important; font-weight: 700 !important; color: #0f1b33 !important; }
div.mzzstm-modal-root .mzzstm-dz-hint { font-size: 12.5px !important; color: #94a3b8 !important; }

div.mzzstm-modal-root .mzzstm-file-input { display: none !important; }

div.mzzstm-modal-root .mzzstm-c-reorder-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  background: #f1f6ff;
  border-radius: 10px !important;
  padding: 9px 12px !important;
}

div.mzzstm-modal-root .mzzstm-c-reorder-hint[hidden] { display: none !important; }
div.mzzstm-modal-root .mzzstm-c-reorder-hint svg { width: 15px; height: 15px; flex: none; color: var(--mzzstm-blue); }

div.mzzstm-modal-root .mzzstm-c-previews {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px !important;
}

div.mzzstm-modal-root .mzzstm-c-previews:empty { margin-top: 0 !important; }

div.mzzstm-modal-root .mzzstm-c-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 10px !important;
  overflow: hidden;
  background: #eef2f8;
  cursor: grab;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

div.mzzstm-modal-root .mzzstm-c-thumb:active { cursor: grabbing; }

div.mzzstm-modal-root .mzzstm-c-thumb.mzzstm-dragging { opacity: 0.35; transform: scale(0.94); }

div.mzzstm-modal-root .mzzstm-c-thumb.mzzstm-drag-over {
  box-shadow: 0 0 0 3px var(--mzzstm-blue) !important;
  transform: scale(1.04);
}

div.mzzstm-modal-root .mzzstm-c-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  pointer-events: none;
}

div.mzzstm-modal-root .mzzstm-c-thumb-num {
  position: absolute;
  top: 4px;
  left: 4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px !important;
  border-radius: 999px !important;
  background: var(--mzzstm-blue);
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

div.mzzstm-modal-root .mzzstm-c-thumb-cover {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px !important;
  font-weight: 700 !important;
  color: var(--mzzstm-blue) !important;
  background: rgba(255, 255, 255, 0.92);
  padding: 2px 8px !important;
  border-radius: 999px !important;
  white-space: nowrap;
}

div.mzzstm-modal-root .mzzstm-c-thumb-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: rgba(15, 27, 51, 0.7) !important;
  color: #fff !important;
  font-size: 12px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, transform .15s ease;
}

div.mzzstm-modal-root .mzzstm-c-thumb-del:hover { background: #e11d48 !important; transform: scale(1.12); }

div.mzzstm-modal-root .mzzstm-c-thumb-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: 4px !important;
  background: linear-gradient(0deg, rgba(8, 15, 34, 0.72), rgba(8, 15, 34, 0));
}

div.mzzstm-modal-root .mzzstm-c-move {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--mzzstm-blue) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, transform .15s ease;
}

div.mzzstm-modal-root .mzzstm-c-move svg { width: 13px; height: 13px; }

div.mzzstm-modal-root .mzzstm-c-move:hover {
  background: var(--mzzstm-blue) !important;
  color: #fff !important;
  transform: scale(1.12);
}

div.mzzstm-modal-root .mzzstm-c-move[disabled] { opacity: 0.3; cursor: default; pointer-events: none; }

div.mzzstm-modal-root .mzzstm-creator-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px !important;
}

div.mzzstm-modal-root .mzzstm-c-count {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #64748b !important;
}

div.mzzstm-modal-root .mzzstm-c-publish {
  background: var(--mzzstm-blue) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 12px 26px !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 20px rgba(7, 73, 196, 0.28);
  transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}

div.mzzstm-modal-root .mzzstm-c-publish:hover { filter: brightness(0.85); transform: translateY(-1px); }

div.mzzstm-modal-root .mzzstm-c-publish[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------- TOAST ---------- */
div.mzzstm-modal-root .mzzstm-toast {
  position: fixed !important;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  z-index: 999999 !important;
  background: var(--mzzstm-blue) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 13px 26px !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 30px rgba(7, 73, 196, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}

div.mzzstm-modal-root .mzzstm-toast.mzzstm-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- POPUP DE NOTIFICATION TEMPS RÉEL ---------- */
div.mzzstm-modal-root .mzzstm-notifpop {
  position: fixed !important;
  top: 24px;
  right: 24px;
  z-index: 999999 !important;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 13px 14px !important;
  box-shadow: 0 20px 50px rgba(15, 27, 51, 0.3) !important;
  border: 1px solid #e5ecf9 !important;
  border-left: 4px solid var(--mzzstm-blue) !important;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .35s ease, transform .35s ease;
}

div.mzzstm-modal-root .mzzstm-notifpop.mzzstm-notifpop-in {
  opacity: 1;
  transform: translateX(0);
}

@keyframes mzzstm-pulse {
  0% { box-shadow: 0 0 0 0 rgba(7, 73, 196, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(7, 73, 196, 0); }
  100% { box-shadow: 0 0 0 0 rgba(7, 73, 196, 0); }
}

div.mzzstm-modal-root .mzzstm-notifpop-ring {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  padding: 2px !important;
  background: linear-gradient(135deg, var(--mzzstm-blue), #4d8bff);
  animation: mzzstm-pulse 1.6s ease infinite;
}

div.mzzstm-modal-root .mzzstm-notifpop-ring img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #fff !important;
}

div.mzzstm-modal-root .mzzstm-notifpop-txt {
  flex: 1;
  min-width: 0;
  font-size: 12.5px !important;
  color: #334155 !important;
  line-height: 1.45 !important;
}

div.mzzstm-modal-root .mzzstm-notifpop-txt strong { color: #0f1b33 !important; font-weight: 700; }

div.mzzstm-modal-root .mzzstm-notifpop-view {
  flex: none;
  background: var(--mzzstm-blue) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 8px 15px !important;
  border-radius: 8px !important;
  transition: filter .2s ease, transform .15s ease;
}

div.mzzstm-modal-root .mzzstm-notifpop-view:hover { filter: brightness(0.85); transform: scale(1.04); }

div.mzzstm-modal-root .mzzstm-notifpop-close {
  flex: none;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  font-size: 11px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}

div.mzzstm-modal-root .mzzstm-notifpop-close:hover { background: #e11d48 !important; color: #fff !important; }

/* ================================================================
   GREFFE SUR LA CLOCHE DU HEADER MEYAZON
   Les notifications stories sont redirigées vers la cloche
   existante du header (élément ciblé par headerBellSelector).
   Styles à forte spécificité, protégés contre Electro.
================================================================= */
.mzzstm-hbell { position: relative !important; }

@keyframes mzzstm-ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-12deg); }
  45% { transform: rotate(9deg); }
  60% { transform: rotate(-6deg); }
  75% { transform: rotate(3deg); }
}

.mzzstm-hbell.mzzstm-ring > svg,
.mzzstm-hbell.mzzstm-ring > i,
.mzzstm-hbell.mzzstm-ring > img { animation: mzzstm-ring .8s ease; }

.mzzstm-hbell .mzzstm-hbell-badge {
  position: absolute !important;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px !important;
  border-radius: 999px !important;
  background: #e11d48 !important;
  color: #fff !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff !important;
  box-sizing: border-box !important;
  z-index: 5;
}

.mzzstm-hbell .mzzstm-hbell-badge[hidden] { display: none !important; }

.mzzstm-hbell .mzzstm-hbell-panel {
  position: absolute !important;
  top: calc(100% + 12px);
  right: 0;
  z-index: 99999 !important;
  width: 330px;
  max-width: 88vw;
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 50px rgba(15, 27, 51, 0.22) !important;
  border: 1px solid #e5ecf9 !important;
  overflow: hidden;
  text-align: left !important;
  cursor: default;
  animation: mzzstm-zoom .22s ease;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.mzzstm-hbell .mzzstm-hbell-panel[hidden] { display: none !important; }

.mzzstm-hbell .mzzstm-hbell-head {
  padding: 13px 16px !important;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #0749C4 !important;
  border-bottom: 1px solid #eef3fd !important;
  text-transform: none !important;
}

.mzzstm-hbell .mzzstm-hbell-list {
  max-height: 320px;
  overflow-y: auto;
}

.mzzstm-hbell .mzzstm-hbell-empty {
  padding: 22px 16px !important;
  margin: 0 !important;
  font-size: 12.5px !important;
  color: #94a3b8 !important;
  text-align: center !important;
  line-height: 1.6 !important;
}

.mzzstm-hbell .mzzstm-hbell-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100% !important;
  padding: 11px 16px !important;
  margin: 0 !important;
  background: none !important;
  border: 0 !important;
  border-bottom: 1px solid #f4f7fd !important;
  text-align: left !important;
  cursor: pointer;
  transition: background .15s ease;
  appearance: none !important;
  box-sizing: border-box !important;
}

.mzzstm-hbell .mzzstm-hbell-item:hover { background: #eaf1fd !important; }

.mzzstm-hbell .mzzstm-hbell-item img {
  width: 36px !important;
  height: 36px !important;
  max-width: none !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #0749C4 !important;
  flex: none;
  display: block;
}

.mzzstm-hbell .mzzstm-hbell-item-txt {
  font-size: 12.5px !important;
  color: #334155 !important;
  line-height: 1.45 !important;
  display: block;
  min-width: 0;
  text-transform: none !important;
}

.mzzstm-hbell .mzzstm-hbell-item-txt strong { color: #0f1b33 !important; font-weight: 700; }

.mzzstm-hbell .mzzstm-hbell-item-txt em {
  display: block;
  font-style: normal !important;
  font-size: 11px !important;
  color: #0749C4 !important;
  font-weight: 600 !important;
  margin-top: 2px !important;
}

/* ================================================================
   RESPONSIVE (empilement mobile + bouton 100%)
   Le nombre de colonnes est piloté par le widget (option responsive)
================================================================= */
@media (max-width: 640px) {
  div.mzzstm-widget .mzzstm-header { flex-direction: column; align-items: stretch; }
  div.mzzstm-widget .mzzstm-btn-more {
    width: 100% !important;
    justify-content: center;
  }
  div.mzzstm-modal-root .mzzstm-notifpop { top: auto; bottom: 84px; right: 16px; }
  .mzzstm-hbell .mzzstm-hbell-panel { position: fixed !important; top: 70px; left: 16px; right: 16px; width: auto; }
  div.mzzstm-widget .mzzstm-row { flex-direction: column; }
  div.mzzstm-widget .mzzstm-track .mzzstm-card-create,
  div.mzzstm-widget .mzzstm-row > .mzzstm-card-create {
    width: 100% !important;
    height: 120px !important;
  }
  div.mzzstm-widget .mzzstm-row > .mzzstm-card-create .mzzstm-create-inner { flex-direction: row; }
  div.mzzstm-widget .mzzstm-nav-prev { left: 4px; }
  div.mzzstm-widget .mzzstm-nav-next { right: 4px; }
  div.mzzstm-modal-root .mzzstm-c-previews { grid-template-columns: repeat(4, 1fr); }
  div.mzzstm-widget .mzzstm-title { font-size: 26px !important; }
}
