.wpps-pro-badge {
	display: inline-block;
	vertical-align: middle;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 2px 6px;
	margin-left: 8px;
	border-radius: 3px;
	background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
	color: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wpps-pro-badge--admin-page {
	font-size: 14px;
	padding: 6px 14px;
	margin-left: 10px;
	border-radius: 4px;
}

.wpps-menu-organizer-description {
	margin-top: 10px;
	margin-bottom: 15px;
	color: #646970;
	font-size: 14px;
	line-height: 1.6;
}

.wpps-menu-organizer-container {
	display: flex;
	gap: 20px;
	margin-top: 20px;
}

.wpps-menu-organizer-actions-wrapper {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 15px;
}

.wpps-menu-organizer-actions {
	display: flex;
	gap: 10px;
}

/* Refresh button – match category bar (.wp-powersuite-refresh-page) */
.wpps-refresh-menu {
	display: none;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	height: auto;
	line-height: 1.5;
}

.wpps-refresh-menu.button.button-primary {
	background: var(--wp-admin-theme-color, #2271b1);
	border-color: var(--wp-admin-theme-color, #2271b1);
	color: #fff;
	border-radius: 0;
}

.wpps-refresh-menu.button.button-primary:hover,
.wpps-refresh-menu.button.button-primary:focus {
	background: var(--wp-admin-theme-color-darker-10, #135e96);
	border-color: var(--wp-admin-theme-color-darker-10, #135e96);
	color: #fff;
}

.wpps-menu-organizer-page .button .dashicons,
.wpps-menu-organizer-page .button .dashicons::before {
	color: inherit;
}

.wpps-refresh-menu .wp-powersuite-refresh-icon {
	display: block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: inherit;
	fill: currentColor;
}

.wpps-menu-organizer-main {
	flex: 1;
}

.wpps-menu-items-list {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 15px;
	min-height: 200px;
}

.wpps-menu-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 15px;
	margin-bottom: 8px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	cursor: move;
	transition: all 0.2s;
}

.wpps-menu-item:hover {
	background: #fff;
	border-color: #2271b1;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wpps-menu-item.ui-sortable-helper {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transform: rotate(2deg);
}

.wpps-menu-item.ui-sortable-placeholder {
	background: #e7f5ff;
	border: 2px dashed #2271b1;
	height: 50px;
	visibility: visible !important;
}

.wpps-menu-drag-handle {
	color: #646970;
	cursor: move;
	font-size: 18px;
}

.wpps-menu-drag-handle:hover {
	color: #2271b1;
}

.wpps-menu-item-icon {
	width: 32px;
	height: 32px;
	margin-right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: #50575e;
}

.wpps-menu-item-icon.wpps-icon-clickable:hover {
	color: #2271b1;
	opacity: 0.8;
}

.wpps-menu-item-icon.wpps-icon-clickable:hover .wpps-icon-edit-overlay {
	opacity: 1;
}

.wpps-menu-item-content {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.wpps-menu-item-title {
	font-weight: 500;
	color: #1d2327;
	display: inline-block;
}

.wpps-menu-item-title:focus {
	outline: none;
	border-color: #2271b1 !important;
	box-shadow: 0 0 0 1px #2271b1;
}

.wpps-subitem-title {
	font-weight: 500;
	color: #1d2327;
	max-width: 200px;
}

.wpps-subitem-title:focus {
	outline: none;
	border-color: #2271b1 !important;
	box-shadow: 0 0 0 1px #2271b1;
}

.wpps-menu-item-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.wpps-toggle-submenu {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}

.wpps-toggle-submenu:hover,
.wpps-toggle-submenu:focus,
.wpps-toggle-submenu:active {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}

.wpps-toggle-hide-rules {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}

.wpps-toggle-hide-rules:hover,
.wpps-toggle-hide-rules:focus,
.wpps-toggle-hide-rules:active {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}

.wpps-toggle-submenu-hide-rules {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}

.wpps-toggle-submenu-hide-rules:hover,
.wpps-toggle-submenu-hide-rules:focus,
.wpps-toggle-submenu-hide-rules:active {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}

.wpps-submenu-hide-rules-dropdown {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 10px;
}

.wpps-submenu-hide-rules-dropdown label {
	display: block;
	margin-bottom: 5px;
	cursor: pointer;
}

.wpps-submenu-hide-rules-dropdown input[type="radio"],
.wpps-submenu-hide-rules-dropdown input[type="checkbox"] {
	margin-right: 5px;
}

.wpps-hide-rules-dropdown {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 10px;
}

.wpps-hide-rules-dropdown label {
	display: block;
	margin-bottom: 5px;
	cursor: pointer;
}

.wpps-hide-rules-dropdown input[type="radio"],
.wpps-hide-rules-dropdown input[type="checkbox"] {
	margin-right: 5px;
}

.wpps-menu-item-hidden {
	opacity: 0.5 !important;
	background: #f5f5f5 !important;
	border-color: #c3c4c7 !important;
	display: flex !important;
	visibility: visible !important;
}

.wpps-menu-item-hidden:hover {
	opacity: 0.7 !important;
	background: #f6f7f7 !important;
	border-color: #2271b1 !important;
}

.wpps-menu-item-hidden .wpps-toggle-hide-rules,
.wpps-menu-item-hidden .wpps-toggle-submenu {
	opacity: 1 !important;
}

.wpps-menu-item-hidden .wpps-menu-item-title::after {
	content: ' (Hidden)';
	font-weight: normal;
	color: #d63638;
	font-size: 12px;
	margin-left: 5px;
	font-style: italic;
}

.wpps-menu-subitem.wpps-menu-item-hidden {
	opacity: 0.5 !important;
	background: #f5f5f5 !important;
	border-color: #c3c4c7 !important;
	display: flex !important;
	visibility: visible !important;
}

.wpps-menu-subitem.wpps-menu-item-hidden:hover {
	opacity: 0.7 !important;
	background: #f6f7f7 !important;
	border-color: #2271b1 !important;
}

.wpps-menu-subitem.wpps-menu-item-hidden .wpps-toggle-submenu-hide-rules {
	opacity: 1 !important;
}

.wpps-menu-item-separator {
	background: #f0f0f1;
	border-style: dashed;
}

.wpps-menu-item-separator .wpps-menu-item-title {
	font-style: italic;
	color: #646970;
}

.wpps-menu-subitems {
	margin-left: 26px;
	margin-top: 5px;
	margin-bottom: 10px;
}

.wpps-menu-subitems-nested {
	margin-left: 12px;
	margin-top: 4px;
	padding-left: 10px;
	border-left: 2px solid #dcdcde;
}

.wpps-menu-subitem-nested {
	background: #fafafa;
}

.wpps-menu-subitem {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 15px;
	margin-bottom: 8px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	font-size: 13px;
	cursor: move;
	transition: all 0.2s;
}

.wpps-menu-subitem:hover {
	background: #fff;
	border-color: #2271b1;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wpps-menu-subitem.ui-sortable-helper {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transform: rotate(1deg);
}

.wpps-menu-subitem.ui-sortable-placeholder {
	background: #e7f5ff;
	border: 2px dashed #2271b1;
	height: 35px;
	visibility: visible !important;
}

.wpps-menu-subitem .dashicons {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
}

.wpps-menu-subitem > div:first-child {
	display: flex;
	align-items: center;
}

.wpps-menu-subitem > label {
	margin-left: auto;
}

.wpps-menu-item-actions input[type="checkbox"],
.wpps-menu-subitem input[type="checkbox"] {
	vertical-align: middle;
	margin-top: 0;
	margin-bottom: 0;
}

.wpps-menu-item-actions label,
.wpps-menu-subitem label {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
}

.wpps-menu-subitems-toggle {
	margin-left: 50px;
	margin-top: 5px;
	margin-bottom: 5px;
}

.wpps-modal {
	display: none;
	position: fixed;
	z-index: 100000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
}

.wpps-modal.active {
	display: flex;
	align-items: center;
	justify-content: center;
}

.wpps-modal-content {
	background: #fff;
	border-radius: 4px;
	width: 90%;
	max-width: 600px;
	max-height: 90vh;
	overflow: auto;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.wpps-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid #dcdcde;
}

.wpps-modal-header h3 {
	margin: 0;
}

.wpps-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #646970;
	padding: 0;
	width: 30px;
	height: 30px;
	line-height: 1;
}

.wpps-modal-close:hover {
	color: #1d2327;
}

.wpps-modal-body {
	padding: 20px;
}

.wpps-modal-footer {
	padding: 15px 20px;
	border-top: 1px solid #dcdcde;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.wpps-loading-message {
	text-align: center;
	padding: 40px;
	color: #646970;
}

.wpps-menu-organizer-notice {
	margin: 0 0 20px 0;
	display: none;
}

.wpps-menu-drag-handle {
	margin-right: 10px;
}

.wpps-menu-item-icon {
	position: relative;
}

.wpps-icon-edit-overlay {
	position: absolute;
	bottom: -2px;
	right: -2px;
	font-size: 10px;
	background: #2271b1;
	color: #fff;
	border-radius: 50%;
	width: 14px;
	height: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s;
}

.wpps-menu-item-title {
	min-width: 100px;
	padding: 2px 4px;
	border: 1px solid #8c8f94;
	border-radius: 2px;
	background: #fff;
}

.wpps-action-link {
	margin-right: 8px;
	text-decoration: none;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
}

.wpps-action-link-edit {
	color: #2271b1;
}

.wpps-action-link-delete {
	color: #dc3232;
}

.wpps-checkbox-label {
	margin-right: 8px;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
}

.wpps-checkbox-label-auto {
	margin-left: auto;
}

.wpps-checkbox-input {
	margin-right: 4px;
	vertical-align: middle;
	margin-top: 0;
}

.wpps-label-text {
	font-size: 12px;
	color: #646970;
	vertical-align: middle;
}

.wpps-move-under-dropdown {
	display: none;
	margin-left: 54px;
	margin-top: 5px;
	margin-bottom: 10px;
	padding: 10px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 3px;
}

.wpps-move-under-label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	color: #1d2327;
}

.wpps-move-under-select {
	min-width: 180px;
	padding: 4px 8px;
}

.wpps-move-under-dropdown--moved {
	margin-left: 24px;
	margin-top: 6px;
}

.wpps-hide-rules-dropdown {
	display: none;
	margin-left: 54px;
	margin-top: 5px;
	margin-bottom: 10px;
}

.wpps-hide-rules-options {
	margin-bottom: 10px;
}

.wpps-hide-rules-label {
	display: block;
	margin-bottom: 5px;
	cursor: pointer;
}

.wpps-hide-rules-input {
	margin-right: 5px;
}

.wpps-hide-rules-roles {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #dcdcde;
}

.wpps-hide-rules-no-roles {
	color: #646970;
	font-size: 12px;
	margin: 0;
}

.wpps-hide-rules-users {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #dcdcde;
}

.wpps-hide-rules-users-label {
	margin: 0 0 6px 0;
	font-size: 12px;
	color: #1d2327;
}

.wpps-hide-rules-user-search {
	margin-bottom: 8px;
}

.wpps-hide-rules-users-selected {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}

.wpps-hide-rules-user-tag,
.wpps-submenu-hide-rules-user-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	background: #f0f0f1;
	border-radius: 3px;
	font-size: 12px;
}

.wpps-hide-rules-user-tag .wpps-remove-user,
.wpps-submenu-hide-rules-user-tag .wpps-remove-user {
	cursor: pointer;
	color: #d63638;
	font-weight: bold;
	line-height: 1;
}

.wpps-hide-rules-user-tag .wpps-remove-user:hover,
.wpps-submenu-hide-rules-user-tag .wpps-remove-user:hover {
	color: #b32d2e;
}

.wpps-user-search-dropdown {
	position: relative;
	margin-top: 4px;
	background: #fff;
	border: 1px solid #8c8f94;
	border-radius: 3px;
	max-height: 180px;
	overflow-y: auto;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.wpps-user-search-option {
	padding: 8px 12px;
	cursor: pointer;
	font-size: 13px;
}

.wpps-user-search-option:hover {
	background: #f0f0f1;
}

.wpps-user-search-empty {
	padding: 8px 12px;
	color: #646970;
	font-size: 12px;
	font-style: italic;
}

.wpps-submenu-hide-rules-users {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #dcdcde;
}

.wpps-submenu-hide-rules-users .wpps-hide-rules-users-label {
	margin: 0 0 6px 0;
}

.wpps-submenu-hide-rules-users-selected {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}

.wpps-submenu-hide-rules-dropdown {
	display: none;
	margin-left: 80px;
	margin-top: 5px;
	margin-bottom: 10px;
}

.wpps-menu-subitem-content {
	display: flex;
	align-items: center;
	flex: 1;
}

.wpps-submenu-arrow {
	margin-right: 8px;
	color: #8c8f94;
	font-size: 14px;
	width: 20px;
	flex-shrink: 0;
}

.wpps-menu-subitem-moved {
	background: #f6f7f7;
	border-left: 3px solid #2271b1;
}

.wpps-submenu-moved-icon {
	color: #2271b1;
	margin-right: 6px;
	font-size: 14px;
	width: 14px;
}

.wpps-menu-subsubitem {
	display: flex;
	align-items: center;
	padding: 4px 0;
	gap: 6px;
}

.wpps-menu-subsubitem .dashicons {
	color: #8c8f94;
	font-size: 12px;
	width: 12px;
}

.wpps-subsubitem-title {
	width: 180px;
	padding: 2px 4px;
	border: 1px solid #dcdcde;
	border-radius: 2px;
	font-size: 12px;
}

.wpps-subitem-title {
	width: 200px;
	max-width: 200px;
	padding: 2px 4px;
	border: 1px solid #8c8f94;
	border-radius: 2px;
	background: #fff;
}

.wpps-icon-img {
	width: 20px;
	height: 20px;
}

.wpps-menu-actions-footer {
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid #dcdcde;
}

.wpps-menu-actions-footer button {
	margin-right: 8px;
}

.wpps-menu-actions-footer .wpps-add-separator {
	margin-left: 16px;
}
