/**
 * WEL_LP editor chrome + light bridges.
 * Visual system comes from wel-landing-page.css (+ offer/voyage) via dual-class root.
 * Avoid fighting legacy selectors with parallel .wel-lp__* layout rules.
 */
.wel-lp {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.wel-lp *,
.wel-lp *::before,
.wel-lp *::after {
  box-sizing: border-box;
}

.wel-lp__scaffold {
  padding: 1.25rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.5;
}

.wel-lp__gallery-placeholder {
  padding: 2rem 1rem;
  border: 1px dashed #94a3b8;
  border-radius: 0.5rem;
  text-align: center;
  color: #64748b;
}

.wel-lp--editor .wel-block-shell,
.wel-landing--editor .wel-block-shell {
  margin: 0.5rem 0;
  border: 1px dashed color-mix(in srgb, var(--cta, #16a34a) 35%, #cbd5e1);
  border-radius: 0.5rem;
}

.wel-lp--editor .wel-block-toolbar,
.wel-landing--editor .wel-block-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  background: color-mix(in srgb, var(--surface, #f8fafc) 90%, transparent);
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.75rem;
}

.wel-lp--editor .wel-block-handle,
.wel-landing--editor .wel-block-handle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  cursor: grab;
  font: inherit;
  font-size: 0.7rem;
}

/* Section eye: pin to the right of the reorder toolbar (not absolute under sticky chrome). */
.wel-lp--editor .wel-block-toolbar .wel-vis-btn--toolbar,
.wel-landing--editor .wel-block-toolbar .wel-vis-btn--toolbar,
.elementor-editor-active .wel-lp .wel-block-toolbar .wel-vis-btn--toolbar,
.elementor-editor-active .wel-landing .wel-block-toolbar .wel-vis-btn--toolbar {
  position: static;
  top: auto;
  right: auto;
  margin-left: auto;
  flex: 0 0 auto;
  z-index: 1;
}

/* Live viewers: force-center pill for Classic (Offer left-aligns with hero copy).
   Editor shell body can inherit Elementor text-align:start and shrink the bar. */
.wel-lp:not(.wel-lp--layout-offer) .wel-block-shell[data-wel-block="live_viewers"] .wel-block-shell__body,
.wel-landing:not(.wel-landing--layout-offer) .wel-block-shell[data-wel-block="live_viewers"] .wel-block-shell__body,
.elementor-editor-active .wel-lp:not(.wel-lp--layout-offer) .wel-block-shell[data-wel-block="live_viewers"] .wel-block-shell__body,
.elementor-editor-active .wel-landing:not(.wel-landing--layout-offer) .wel-block-shell[data-wel-block="live_viewers"] .wel-block-shell__body {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

.wel-lp:not(.wel-lp--layout-offer):not(.wel-lp--layout-voyage) .wel-block-shell[data-wel-block="live_viewers"] .live-viewers-bar,
.wel-landing:not(.wel-landing--layout-offer):not(.wel-landing--layout-voyage) .wel-block-shell[data-wel-block="live_viewers"] .live-viewers-bar,
.wel-lp:not(.wel-lp--layout-offer):not(.wel-lp--layout-voyage) .live-viewers-bar,
.wel-landing:not(.wel-landing--layout-offer):not(.wel-landing--layout-voyage) .live-viewers-bar,
.elementor-editor-active .wel-lp:not(.wel-lp--layout-offer):not(.wel-lp--layout-voyage) .live-viewers-bar,
.elementor-editor-active .wel-landing:not(.wel-landing--layout-offer):not(.wel-landing--layout-voyage) .live-viewers-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
  box-sizing: border-box !important;
}

.wel-lp:not(.wel-lp--layout-offer):not(.wel-lp--layout-voyage) .wel-block-shell[data-wel-block="live_viewers"] .live-viewers,
.wel-landing:not(.wel-landing--layout-offer):not(.wel-landing--layout-voyage) .wel-block-shell[data-wel-block="live_viewers"] .live-viewers,
.wel-lp:not(.wel-lp--layout-offer):not(.wel-lp--layout-voyage) .live-viewers,
.wel-landing:not(.wel-landing--layout-offer):not(.wel-landing--layout-voyage) .live-viewers {
  margin-left: auto !important;
  margin-right: auto !important;
}

.wel-lp:not(.wel-lp--layout-offer) .live-viewers-bar--center,
.wel-landing:not(.wel-landing--layout-offer) .live-viewers-bar--center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
}

.wel-lp:not(.wel-lp--layout-offer) .live-viewers-bar--center .live-viewers,
.wel-landing:not(.wel-landing--layout-offer) .live-viewers-bar--center .live-viewers {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Offer desktop: align live pill with brand / title in hero-copy.
   Mobile Offer stays centered (hero-copy is center-stacked). */
@media (min-width: 720px) {
  .wel-lp--layout-offer .wel-block-shell[data-wel-block="live_viewers"] .wel-block-shell__body,
  .wel-landing--layout-offer .wel-block-shell[data-wel-block="live_viewers"] .wel-block-shell__body,
  .wel-lp--layout-offer .hero .live-viewers-bar,
  .wel-landing--layout-offer .hero .live-viewers-bar,
  .wel-lp--layout-offer .hero-copy .live-viewers-bar,
  .wel-landing--layout-offer .hero-copy .live-viewers-bar {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: left !important;
    width: 100% !important;
  }

  .wel-lp--layout-offer .hero .live-viewers-bar .live-viewers,
  .wel-landing--layout-offer .hero .live-viewers-bar .live-viewers,
  .wel-lp--layout-offer .hero-copy .live-viewers,
  .wel-landing--layout-offer .hero-copy .live-viewers {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-inline: 0 !important;
  }
}

.wel-lp--editor .wel-lp__sticky.sticky,
.wel-landing--editor .wel-landing__sticky.sticky {
  position: sticky;
}
