/**
 * @file
 * CMS content overlays opened by a CTA Generator CTA.
 *
 * The cms-overlay directive adds ".pmi-cms-overlay--flush-no-close" only to
 * the popups and drawers it opens with "Has paddings" and "Can close" both
 * off. Other popups and drawers on the site never get this class, so they are
 * not affected by these rules.
 */

/*
 * Without paddings the popup component pulls the content up by its padding
 * plus the height of the close button row (q--mt-8), so the content starts at
 * the top edge of the box. When the overlay cannot be closed that row is
 * hidden, and the same pull moves the content 1rem above the box. Only pull it
 * by the padding in that case.
 */
.pmi-cms-overlay--flush-no-close [x-ref="popup"] > [x-html] {
  margin-top: -1rem;
}
