/* TinyMCE Menu Dropdown Styling - Override CDN CSS */
.tox-menu {
  z-index: 10000 !important;
  position: fixed !important;
  width: auto !important;
}

/* Fix negative bottom positioning */
.tox-menu[style*="bottom"] {
  bottom: auto !important;
}

.tox-collection {
  z-index: 10001 !important;
}

.tox-menu.tox-collection {
  z-index: 10002 !important;
}

/* Ensure parent containers don't clip menus */
.mce-container-body,
.tox-tinymce,
.tox-editor-header {
  overflow: visible !important;
}

/* Fix for menu positioning */
.tox-menu.tox-collection--list {
  max-height: 400px !important;
  overflow-y: auto !important;
}

/* Ensure menu items are clickable and display content correctly */
.tox-collection__item {
  position: relative !important;
  z-index: 10003 !important;
}

.tox-collection__item-label {
  white-space: normal !important;
}

/* Fix for submenus */
.tox-menu.tox-collection--list .tox-collection__item--state-disabled {
  opacity: 0.5 !important;
}

/* Fix positioning context - ensure menus can escape containers */
.tox-tinymce-aux {
  position: fixed !important;
  z-index: 1300 !important;
}
