/* Clone runtime support styles — drive interactions the stripped Wix JS used to. */

/* Menu flyout: show the positionBox when our runtime marks the item open,
   and also on native hover as a progressive-enhancement fallback. */
[data-testid="menuItemDepth0"] [data-testid="positionBox"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease;
}
[data-testid="menuItemDepth0"][data-clone-open] [data-testid="positionBox"],
[data-testid="menuItemDepth0"]:hover [data-testid="positionBox"] {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}

/* Accordion content hidden when collapsed (driven by aria-expanded via JS). */
[aria-expanded="false"] + [role="region"],
[aria-expanded="false"] + [data-testid="content"] { display: none; }

/* Safety: never let a content element stay invisible in the clone. */
.wixui-rich-text__text { visibility: visible !important; }
