/**
 * EL-562 PIM product CMS block
 */
.emp-product-creative-top {
  width: 100%;
}

.emp-product-creative-engagement-outer {
  width: 100%;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.emp-product-cms-block {
  margin-bottom: 2rem;
  overflow: visible;
}

/* Full-viewport separator below the block (breaks out of .container on desktop) */
.emp-product-cms-block__viewport-rule {
  display: block;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 1px;
  padding: 0;
  border: 0;
  background-color: #e0e0e0;
}

.emp-product-cms-content {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.emp-cms-title {
  font-size: 2.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin-bottom: 1.75rem;
}

.emp-cms-body {
  font-size: 0.92rem;
  line-height: 1.95;
  color: black;
}
.emp-cms-body p {
    color: black;
}

.emp-cms-description {
  flex: 0 0 50%;
  width: 50%;
  max-width: 50%;
  padding: 3.5rem 3.75rem 2.5rem 0;
}

.emp-cms-image {
  position: relative;
  flex: 0 0 50vw;
  width: 50vw;
  min-width: 50vw;
  max-width: 50vw;
  margin-right: calc(50% - 50vw);
}

.emp-cms-image .img-fluid {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 640px;
  object-fit: cover;
  max-width: none;
}

@media (max-width: 1199px) {
  .emp-cms-description {
    padding: 2.5rem 2rem 2rem 0;
  }

  .emp-cms-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 991px) {
  /* Reassurance strip (Creative Elements): white panel, rules, stacked icon + text */
  .emp-product-creative-top {
    background-color: #fff;
    border-top: 0;
    border-bottom: 0;
    padding: 1.75rem 1rem 2rem;
    text-align: center;
    box-sizing: border-box;
  }

  .emp-product-creative-top .elementor-section.elementor-section-stretched {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .emp-product-creative-top .elementor-inner-section .elementor-row {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
  }

  .emp-product-creative-top .elementor-inner-section .elementor-col-33 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
  }

  .emp-product-creative-top .elementor-inner-section .elementor-inner-column > .elementor-element-populated > .elementor-widget-wrap {
    padding: 1.25rem 0.75rem 1.5rem;
  }

  .emp-product-creative-top .elementor-heading-title {
    text-align: center !important;
    font-size: 0.95rem !important;
    font-weight: 400;
    line-height: 1.45;
    color: #1a1a1a;
    margin: 0.65rem 0 0;
  }

  .emp-product-creative-top .elementor-widget-image img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 72px;
    height: auto;
  }

  .emp-product-cms-content {
    flex-direction: column;
  }

  .emp-cms-description,
  .emp-cms-image {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-right: 0;
  }

  .emp-cms-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem 2rem;
    border-top: 0;
    box-shadow: none;
  }

  .emp-product-cms-block {
    border-top: 0;
  }

  .emp-cms-title {
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
    font-size: 1.82rem;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: 0.02em;
    margin: 0 0 1.55rem;
    padding: 0;
    text-align: left;
    color: #111;
  }

  .emp-cms-body {
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
    font-size: 0.94rem;
    line-height: 1.68;
    text-align: left;
    padding: 0;
    color: #333;
  }

  .emp-cms-body p {
    margin: 0 0 1.65rem;
  }

  .emp-cms-body p:last-child {
    margin-bottom: 0;
  }

  /* Engagement (CE) — 360px-wide grey panel, centred stack (mockup) */
  .emp-cms-description .emp-product-creative-engagement-outer {
    width: 100%;
    max-width: 360px;
    margin: 3rem auto 0;
    padding: 0;
    box-sizing: border-box;
  }

  .emp-product-creative-engagement-outer .elementor-top-section {
    background-color: #f0f0f0 !important;
    background-image: none !important;
    padding: 1.75rem 1rem 2.25rem !important;
    margin: 0 !important;
  }

  .emp-product-creative-engagement-outer .elementor-background-overlay {
    display: none !important;
  }

  .emp-product-creative-engagement-outer .elementor-col-100 .elementor-heading-title {
    text-align: center !important;
    text-transform: uppercase !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    line-height: 1.35 !important;
    margin: 0 0 1rem !important;
    color: #111;
  }

  .emp-product-creative-engagement-outer .elementor-col-100 .elementor-text-editor {
    text-align: center !important;
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
    color: #333;
    margin: 0 0 2.25rem;
  }

  .emp-product-creative-engagement-outer .elementor-col-100 .elementor-text-editor p {
    margin: 0;
  }

  .emp-product-creative-engagement-outer .elementor-inner-section .elementor-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }

  /*
   * CE forces .elementor-column { width: 100% } below 768px — combined with flex row
   * that makes picto blocks read as full-bleft. Lock each service column to max 300px
   * and centre it in the grey card (higher specificity than core CE rules).
   */
  .emp-product-creative-engagement-outer .elementor-column.elementor-col-33.elementor-inner-column {
    width: 100% !important;
    max-width: 300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    float: none !important;
  }

  .emp-product-creative-engagement-outer .elementor-col-33 > .elementor-column-wrap {
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
  }

  /*
   * CE core + per-post CSS (e.g. ce/NNN.css): .elementor-NNN .elementor-element-XXXXX > .elementor-element-populated { padding: 0 10px 20px }
   * Same specificity as a long emp-* chain but loads later — prefix with `body` so horizontal padding stays 0.
   */
  body .emp-product-creative-engagement-outer .elementor-column.elementor-col-33.elementor-inner-column > .elementor-column-wrap.elementor-element-populated {
    padding: 0 0 20px !important;
  }

  .emp-product-creative-engagement-outer .elementor-col-33 > .elementor-element-populated > .elementor-widget-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 0.85rem 0.75rem 1.65rem !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .emp-product-creative-engagement-outer .elementor-col-33 .elementor-widget {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 0.5rem !important;
  }

  .emp-product-creative-engagement-outer .elementor-col-33 .elementor-widget:last-child {
    margin-bottom: 0 !important;
  }

  .emp-product-creative-engagement-outer .elementor-col-33 .elementor-widget-container {
    width: 100% !important;
    text-align: center !important;
  }

  .emp-product-creative-engagement-outer .elementor-col-33 .elementor-widget-image {
    margin: 0 auto 0.35rem !important;
    width: 100% !important;
    text-align: center !important;
  }

  .emp-product-creative-engagement-outer .elementor-col-33 .elementor-image {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .emp-product-creative-engagement-outer .elementor-col-33 .elementor-widget-image img {
    display: block;
    margin: 0 auto;
    max-width: 64px;
    height: auto;
  }

  .emp-product-creative-engagement-outer .elementor-col-33 .elementor-heading-title {
    text-align: center !important;
    font-size: 0.88rem !important;
    font-weight: 400 !important;
    text-transform: lowercase !important;
    line-height: 1.45 !important;
    margin: 0 auto !important;
    color: #222;
    width: 100% !important;
    max-width: 100% !important;
  }

  .emp-cms-image .img-fluid {
    min-height: 360px;
  }

  /* Mobile: line spans the content column only (not grey side gutters), like mockup */
  .emp-product-cms-block__viewport-rule {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    background-color: #bdbdbd;
  }
}

