/* Decoration for the native Uncode desktop content-block dropdown. */
@media (min-width: 960px) {
  .menu-primary-inner > .menu-item > .block-wrapper-parent {
    /* Leave room for the pointer below the header, not inside it. */
    margin-top: 12px !important;
    border-radius: 12px;
  }

  .menu-primary-inner > .menu-item > .block-wrapper-parent > .megamenu-block-wrapper {
    border-radius: 12px;
    overflow: hidden;
  }

  .menu-primary-inner > .menu-item > .block-wrapper-parent::before {
    /* Keep the native hover area continuous across the pointer gap. */
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
  }

  .menu-primary-inner > .menu-item:has(> .block-wrapper-parent) > .dropdown-toggle::after {
    content: "";
    position: absolute;
    /* A rotated 16px square extends 3.314px above its original bounds. */
    top: calc(100% + 3.314px);
    left: 50%;
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    background: #fff;
    border-top: 1px solid rgba(27, 24, 58, .2);
    border-left: 1px solid rgba(27, 24, 58, .2);
    box-shadow: -3px -3px 6px rgba(27, 24, 58, .08);
    transform: translateX(-50%) rotate(45deg);
    z-index: 3;
    pointer-events: none;
    opacity: 0;
  }

  .menu-primary-inner > .menu-item:has(> .block-wrapper-parent.open-animated) > .dropdown-toggle::after {
    opacity: 1;
  }
}
