
/* Admin side Mega Menu styling */

/* ===== Live Preview Panel ===== */

/* Push settings content left to leave room for the fixed preview panel */
#mmth-live-preview-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,.10);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    position: fixed;
    right: 20px;
    top: 120px;
    width: 270px;
    z-index: 99;
}
.mmth-preview-header {
    align-items: center;
    background: linear-gradient(135deg, #6d28d9, #4f46e5);
    color: #fff;
    display: flex;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
    padding: 10px 16px;
}
.mmth-preview-header .dashicons {
    font-size: 16px;
    height: 16px;
    width: 16px;
}
.mmth-preview-columns {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 14px;
}
.mmth-preview-section {
    width: 100%;
}
.mmth-preview-section-title {
    color: #555;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}
/* Desktop menu bar preview */
#mmth-preview-menubar {
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    min-height: 40px;
    overflow: hidden;
}
.mmth-preview-menu-item {
    cursor: default;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
/* Mobile toggle bar preview */
#mmth-preview-toggle-bar {
    align-items: center;
    border-radius: 6px;
    display: flex;
    gap: 8px;
    min-width: 160px;
    padding: 0 14px;
    transition: background .2s, height .2s;
}
#mmth-preview-toggle-icon {
    font-size: 20px;
}
#mmth-preview-toggle-text {
    font-size: 14px;
    font-weight: 500;
}
/* Mobile menu preview */
#mmth-preview-mobile-menu {
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    min-width: 160px;
    overflow: hidden;
}
.mmth-preview-mobile-item {
    cursor: default;
    font-size: 13px;
    padding: 10px 14px;
    transition: background .2s, color .2s;
}
/* ===== End Live Preview Panel ===== */

/************Clearings*********/

.toplevel_page_themehunkmegamenu #wpcontent{
    padding-left: 0;
}
.CodeMirror {
    text-align: left;
    width: 500px;
}
.clear{
    clear: both;
}
.themehunk-megamenu-pro{
font-size:20px;
background:#000;
color:#fff;
padding:7px 30px;
}
.mega-tab-content input[type=number],.themehunk-megamenu-builder-config-options-data input[type=number]{
    padding-right:0;
    text-align: center;
}
/***Admin side menu items**/

/* MegaMenu badge icon */
#menu-to-edit li.menu-item .megamenu_themehunk_megamenu_begin:before {
    font-family: dashicons;
    content: "\f319";
    font-size: 12px;
    margin-right: 4px;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* MegaMenu badge base */
#menu-to-edit li.menu-item .megamenu_themehunk_megamenu_begin {
    display: inline-flex;
    align-items: center;
    background: #6d28d9;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2px;
    margin-left: 8px;
    opacity: 0.35;
    padding: 2px 9px 2px 6px;
    position: relative;
    transition: opacity .2s, background .2s, box-shadow .2s;
    vertical-align: middle;
    white-space: nowrap;
    z-index: 1;
}
#menu-to-edit li.menu-item .menu-item-bar .menu-item-handle:hover .megamenu_themehunk_megamenu_begin {
    opacity: 0.7;
}

/* Active — full purple, fully visible */
#menu-to-edit li.menu-item .menu-item-bar .megamenu_themehunk_megamenu_begin.mmth-megamenu-badge-active {
    background: linear-gradient(90deg, #6d28d9 0%, #4f46e5 100%);
    opacity: 1 !important;
    box-shadow: 0 1px 5px rgba(109,40,217,.4);
}
#menu-to-edit li.menu-item .menu-item-bar .menu-item-handle:hover .megamenu_themehunk_megamenu_begin.mmth-megamenu-badge-active {
    box-shadow: 0 2px 8px rgba(109,40,217,.55);
    opacity: 1 !important;
}

/* Inactive — gray, clearly muted */
#menu-to-edit li.menu-item .menu-item-bar .megamenu_themehunk_megamenu_begin.mmth-megamenu-badge-inactive {
    background: #a0aec0;
    opacity: 0.5 !important;
    box-shadow: none;
}

#menu-to-edit li.menu-item .menu-item-bar .item-title{
    margin-right: 0;
}
.mmth-item-loading {
    background-image: url("../images/loading.gif");
    background-repeat: no-repeat;
    height: 65px;
    width: 65px;
    margin: 100px auto;
}

.themehunk-megamenu-item-settins-wrap{
       max-height: 600px;
    min-height: 600px;
    max-width: 1200px;
    width: 90%;
    background: #fefefe;
    position: fixed;
    z-index: 9999;
    top:50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 1em;
}
@media (max-width: 782px) {
    .themehunk-megamenu-item-settins-wrap {
        top: 15%;
        transform: translate(-50%, -10%);
        height: 400px;
        overflow-y: scroll;
    }
}  

#themehunk-megamenuSettingOverlay {
    background: #000 none repeat scroll 0 0;
    height: 100%;
    opacity: 0.8;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
}
.mmth-item-settings-top-bar{
    padding: 14px 20px;
    background:#8800c6;
    color: #fff; 
    position: relative;
}
.themehunk-megamenu-status{
    font-size:14px;
    padding: 1em;
    letter-spacing: 1px;
}
.themehunk-megamenu-builder-close-btn{
    float: right;
    text-decoration: none;
}
.themehunk-megamenu-builder-close-btn .dashicons.dashicons-no-alt{
    font-size: 2em;
    color: #000;
}
.mmth-item-settings-title{
    float: left;
}
.themehunk-megamenu-item-settings-heading{
    font-size:16px;
}
.mmth-item-settings-builder-area{
    display: flex;
}
.mmth-builder-settings-wrapper{
    width:20%;
    -webkit-box-flex: 1;
    -ms-flex: 1 0 auto;
     flex: 1 0 auto;
     background: #f7f7f7;
        max-height: 600px;
    font-size: 14px;
}
.mmth-builder-settings.active {
    background: #fefefe;
    color: #000;
    transition: all 0.1s linear;
    box-shadow: 0px 0px 2px 0px #D0EAF5;
}

/*Dashboard > Mega Menu*/
.themehunk_megamenu_menu_settings form table tr:nth-child(even) {
    background: rgb(244, 252, 255);
}
.themehunk_megamenu_menu_settings .nav-tab-wrapper {
    background: #c2eafb;
}
.themehunk_megamenu_menu_settings a.nav-tab-active, 
.themehunk_megamenu_menu_settings a.nav-tab-active:focus, 
.themehunk_megamenu_menu_settings a.nav-tab-active:focus:active,
.themehunk_megamenu_menu_settings a.nav-tab-active:hover {
    background: #45b6e6;
}
.mmth-builder-settings:hover, .themehunk-megamenu-draggable-widgets-list-title.active, .mmth-builder-settings.active {
    background: #ffffff;
    color: #000;
}
.mmth-item-settings-top-bar {
    padding: 14px 20px;
    background: #D0EAF5;
    color: #000;
    position: relative;
}
.mmth-builder-settings-wrapper{
    margin-top:20px;
    margin-left:20px;
    box-shadow: 0px 0px 10px 0px #D0EAF5;
    background: rgba(246, 253, 255, 0.45);
}
.themehunk-megamenu-builder-content-wrapper{
    width:80%;
    -webkit-box-flex: 1;
    padding: 0px 20px;
    max-height: 515px;
    overflow-y:auto;
}
.themehunk-megamenu-builder-content-wrapper .mmth-no-mega-menu{
    padding: 2em;
    font-weight: 500;
    font-size: 1.5em;
}
.activate-megamenu-msg{
    margin-left: 1em;
}
.themehunk-megamenu-draggable-widgets-list{
   font-size: 13px;
    line-height: 23px;
    padding: 0px;
    max-height: 331px;
    overflow: auto;
}
.mmth-builder-settings{
    box-shadow: 0px 0px 2px 0px #D0EAF5;
}
.mmth-builder-settings  i{
font-size: 14px;
    vertical-align: sub;
margin-right:5px
}
.themehunk-megamenu-item-wrap .draggable-widget{
    margin: 0 0 10px 0;
}
.widgets-drag-btn .dashicons{
font-size:13px;
line-height:normal;
vertical-align: sub;
width: auto;
height: auto;
}
.draggable-widget{
    display: flex;
    justify-content: space-between;
    margin: 3px 0;
    background: #fff;
    padding: 7px;
    cursor: move;
    max-width: 250px;
    border: 1px dashed #d0ebf5;
}
.widgets-drag-btn{
     padding: 3px 7px;
    background: #000000;
    border-radius: 3px;
    color: #ffffff;
    height: 20px;
    line-height: 20px;
    text-align: center;
    vertical-align: top;
    width: 50px;
    font-size: 11px;
}
.widgets-drag-btn i{
margin-right:5px;    
}
.themehunk-megamenu-draggable-widgets-list .outside-widget-name{
width:150px;
}
.megamenu-new-row-add{
    text-align: center;
    margin-top: 2em
}
.themehunk-megamenu-add-row-btn,
.themehunk-megamenu-add-col-btn {
    display: inline-block;
    cursor: pointer;
    margin-right: 1em;
    border-radius: 3px;
    background: #50ae2b;
    border-color: #50ae2b;
    padding: 8px 12px;
    color: #fff;
    font-size: 14px;
}
.themehunk-megamenu-add-col-btn .dashicons{
    font-size: 14px;
    vertical-align: sub;
    height: auto;
    line-height: normal;
    width: auto;
}
.menu-layout-wrapper{
    background: #00bcd4;
    padding: 1em;
    border-radius: .3em;
    width: auto;
    margin: 0 auto;
    margin-top: 1em;
    max-width: 700px;
    display: flex;
    flex-direction: column;
}
.menu-layout-wrapper .dashicons.dashicons-no:before{
    font-size: 1.2em;
    color: #000;
    cursor: pointer;
}
.menu-layout-list{
    list-style-type: none;
}
.themehunk-megamenu-builder-config-options-data td.mmth-name{
    width:45%;
    line-height: 2em;
    padding-right: 30px;
    vertical-align: middle;
    border-spacing: 0;
}
.themehunk-megamenu-builder-config-options-data td{
    padding: 10px 0px;
    font-size: 14px;
    width: 55%;
}
.themehunk-megamenu-builder-config-options-data table label {
    font-size: 0.9em;
    float: left;
    margin-right: 10px;
    margin-bottom: 10px;
}
.themehunk-megamenu-builder-config-options-data table .mega-short-desc{
    display: block;
    padding-bottom: 8px;
    text-align: center;
}
input.mmth-border,input.mmth-padding{
width:65px;
}
input#set-item-megamenu-bgimage{
padding: 7px 10px;
    letter-spacing:1px;
    font-size: 13px;
    background: #2C91FB;
    color: white;
    border: none;
    margin:0px;
    cursor: pointer;
    transition: .2s all linear;
     border:0;
}
input#set-item-megamenu-bgimage:focus{
outline:0;
}
/************Builder configuration settings******************/
.themehunk-megamenu-draggable-widgets-list-title,
.themehunk-megamenu-builder-config-options,
.themehunk-megamenu-builder-megamenu-icons{
    padding:8px;
    cursor: pointer;
}

.themehunk-megamenu-builder-config-options-content{
    display: none;
}

a#mmth-saving-indicator::before {
    -moz-osx-font-smoothing: grayscale;
    animation: 2s linear 0s normal none infinite running rotation;
    color: #fff;
    content: "\f531";
    display: inline-block;
    font: 18px "dashicons";
    margin-right: 0;
    vertical-align: middle;
}
a#mmth-saving-indicator {
    color: #fff;
    text-decoration: none;
    position: static;
    background: rgba(255,255,255,.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255,255,255,.25);
}

.themehunk-megamenu-row{
    
    clear: both;

    margin-bottom: 20px;
    position: relative;
    background-color: #f9fdfe;
    border: 1px solid #d0ebf5;
    padding: 10px;
}
.mmthRowSortingIcon{
    cursor: move;
}
.themehunk-megamenu-row-actions{
    margin: 0;
    padding: 5px;
    border-bottom:0;
}
.themehunk-megamenu-row-actions p{
    margin: 10px 5px 10px 8px;
    color: #000;
    font-size: 14px;
}
.themehunk-megamenu-row-left {
    float: left;
}
.themehunk-megamenu-row-right {
    float: right;
    display: flex;
}
.mmthRowDeleteIcon,
.mmthColDeleteIcon{
    cursor: pointer;
    border: none;
    color: #f00;
    padding: 3px;
    font-size: 18px;
    cursor: pointer;
}
.themehunk-megamenu-column-actions {
    padding: 4px 5px 8px;
    display: flex;
    justify-content: space-between;
}
.themehunk-megamenuColSortingIcon{
    cursor: move;
    color: #505456;
    font-size: 14px;
     line-height: 24px;
}
div[class*="themehunk-megamenu-col-"] {
    position: relative;
    display: inline-block;
    vertical-align: top;
}
div[class*="themehunk-megamenu-col-"] .themehunk-megamenu-item-wrap {
    border-width: calc(1)
    margin: 7px 2px;
    padding: 8px;
    border: 1px solid #d0ebf5;
    background-color: #fff;
    
}
.themehunk-megamenu-col-12{
    width: 100%;
}
.themehunk-megamenu-col-6{
    width: 49%;
}
.themehunk-megamenu-col-4{
    width: 33%;
}
.themehunk-megamenu-col-3{
    width: 24.5%;
}
.themehunk-megamenu-col-5{
    width: 19.5%;
}
.themehunk-megamenu-col-2{
    width: 16%;
}

.drop-highlight { 
    height: 30px; 
    display: inline-block; 
    line-height: 1.2em; 
    background: #EEEEEE; 
    border: 2px dotted #CCCCCC; 
    width: 100% 
}
.drop-clone-highlight { 
    height: 30px; 
    display: inline-block; 
    line-height: 1.2em; 
    background: red; 
    border: 2px dotted #CCCCCC; 
    width: 100% 
}
.drop-col-highlight { 
    height: 100px; 
    display: inline-block; 
    line-height: 1.2em; 
    background: #EEEEEE; 
    border: 2px dotted #CCCCCC; 
    width: 10% 
}


.item-widgets-wrap{
    background: #ffffff;
    box-sizing: border-box;
    min-height: 200px;
    position: relative;
    width: 100%;
}
.item-widgets-wrap .widget-title h3{
    color: #505456;
    font-weight: normal;
}
.wdiget-inner-wrap{
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 10px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    display: none;
}
.themehunk-megamenu-item-settings-content .widget {
    box-sizing: border-box;
    color: #333;
    display: inline-block;
    font-size: 12px;
    margin: 3px 0;
    transition: width 0.3s ease 0s;
    width: 100%;
}
.themehunk-megamenu-item-settings-content .widget .widget-top {
    background:#faf5fc;
    border: 1px solid #E5E5E5;
    box-shadow: none;
}

/* Quick-delete button on widget title bar */
.mmth-widget-quick-delete {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    margin-left: 4px;
    line-height: 1;
    color: #c0392b;
    opacity: 0.5;
    vertical-align: middle;
    transition: opacity .15s;
}
.mmth-widget-quick-delete:hover {
    opacity: 1;
}
.mmth-widget-quick-delete .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.widget-title-action a {
    display: inline-block;
    line-height: 22px;
    vertical-align: bottom;
}

.widget-inner.widget-inside {
    padding: 0.5em;
}

.themehunk-megamenu-row-right{
  margin-right: 1em;  
}

#item-megamenu-bgimage-container{
    width: 120px;
    height: 120px;
}
#item-megamenu-bgimage-container img{
    width: 100%;
}

/*****************Megamenu builder icons section*************/
/* ---- Icons Panel ---- */
.themehunk-megamenu-icons-container {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Top bar: tabs + search */
.themehunk-megamenu-icons-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #fff;
    border-bottom: 1px solid #ede9fe;
    flex-shrink: 0;
}

/* Tab list */
.themehunk-megamenu-icons-topbar-left {
    float: none;
    margin: 0;
}
.themehunk-megamenu-icons-menu ul {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.themehunk-megamenu-icons-menu ul li {
    display: block;
    margin: 0;
}
.themehunk-megamenu-icons-menu ul li a,
.icon-tabs-nav {
    display: inline-block;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: all .15s;
    margin: 0;
}
.icon-tabs-nav:hover {
    color: #4f46e5;
    background: #f5f3ff;
}
.icon-tabs-nav.active {
    color: #4f46e5;
    font-weight: 600;
    background: #ede9fe;
    border-color: #c4b5fd;
    outline: none;
}

/* Search */
.themehunk-megamenu-icons-topbar-right {
    float: none;
}
.mmth-icon-search-wrap {
    position: relative;
}
.mmth-icon-search-wrap i.fa-search {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
    color: #9ca3af;
    font-size: 13px;
    pointer-events: none;
}
#themehunk_megamenu_icons_search {
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: none;
    float: none;
    color: #374151;
    font-weight: normal;
    font-size: 13px;
    padding: 5px 32px 5px 12px;
    width: 180px;
    outline: none;
    transition: border-color .15s;
}
#themehunk_megamenu_icons_search:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167,139,250,.15);
}

/* Tab content area — scrollable */
.themehunk-megamenu-icons-tab-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 18px;
    max-height: none !important;
}

#icons-tabs-2,
#icons-tabs-3 {
    display: none;
}

/* Individual icon tile */
.themehunk-megamenu-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    width: 38px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    text-decoration: none;
    margin: 3px;
    transition: background .15s, border-color .15s, color .15s, transform .1s, box-shadow .15s;
    vertical-align: middle;
    flex-shrink: 0;
}
.themehunk-megamenu-icons i {
    font-size: 16px;
    line-height: 1;
    display: block;
}
.themehunk-megamenu-icons:hover {
    background: #f5f3ff;
    border-color: #a78bfa;
    color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(79,70,229,.15);
}
.themehunk-megamenu-icon-selected {
    background: #ede9fe !important;
    border-color: #4f46e5 !important;
    color: #4f46e5 !important;
    box-shadow: 0 0 0 2px rgba(79,70,229,.25) !important;
}

/*color picker css*/

body[class*='_page_megamenuthemehunk_megamenu_'] .mm-picker-container,
body.toplevel_page_megamenuthemehunk-megamenu .mm-picker-container {
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
  border: 1.5px solid #d1d5db;
  font-size: 0.9em;
  float: none;
  display: inline-flex;
  align-items: center;
  overflow: hidden; }
  body[class*='_page_megamenuthemehunk_megamenu_'] .mm-picker-container .sp-replacer,
  body.toplevel_page_megamenuthemehunk-megamenu .mm-picker-container .sp-replacer {
    margin: 0;
    float: right;
    border-right: 1px solid #7e8993; }
  body[class*='_page_megamenuthemehunk_megamenu_'] .mm-picker-container .sp-palette-container,
  body.toplevel_page_megamenuthemehunk-megamenu .mm-picker-container .sp-palette-container {
    width: 40px; }
  body[class*='_page_megamenuthemehunk_megamenu_'] .mm-picker-container .sp-replacer .sp-preview,
  body.toplevel_page_megamenuthemehunk-megamenu .mm-picker-container .sp-replacer .sp-preview {
    border: 0;
    height: 26px;
    width: 26px;
    margin: 0; }
  body[class*='_page_megamenuthemehunk_megamenu_'] .mm-picker-container input.mm_colorpicker,
  body.toplevel_page_megamenuthemehunk-megamenu .mm-picker-container input.mm_colorpicker {
    float: left;
    border: 0;
    height: 23px;
    box-shadow: 0 0 0;
    margin: 0; }
  body[class*='_page_megamenuthemehunk_megamenu_'] .mm-picker-container div.chosen-color,
  body.toplevel_page_megamenuthemehunk-megamenu .mm-picker-container div.chosen-color {
    border-radius: 0 2px 2px 0;
    color: #444;
    font-size: 11px;
    line-height: 26px;
    padding: 0 6px;
    text-align: center;
    float: left;
    cursor: default; background: #fff;}

body[class*='_page_megamenuthemehunk_megamenu_'] .block .mm-picker-container,
body.toplevel_page_megamenuthemehunk-megamenu .block .mm-picker-container {
  float: none;
  margin-right: 0; }
body[class*='_page_megamenuthemehunk_megamenu_'] textarea{
width: 100%;
    height: 150px;
    font-family: monospace;
    line-height: 1.5em;
    margin-bottom: 10px;
}
label.mega-custom_css{
    width:50%;
}
table .CodeMirror {
      height: auto;
      min-height: 2000px;
      width: 100%;
      border: 1px solid #aaa; }
table div.CodeMirror span.CodeMirror-matchingbracket{
      color: green; }
table .CodeMirror-scroll {
      min-height: 150px; }



table .mega-validation-message {
    display: none;
    clear: both;
    font-size: 0.8em;
    color: #D0011B;
}


.megamenu_outer_wrap{
    padding-bottom: 1rem;
    margin: 1.3rem 1.3rem 0 0;
}
.megamenu_wrap{
background:#fff;
}
.themehunk_megamenu_menu_settings .nav-tab-wrapper{
    position: relative;
    margin:20px 0px;
    padding-top:0;
    border:0px;
    margin-right: 0!important;
}
.themehunk_megamenu_menu_settings a.nav-tab-active, .themehunk_megamenu_menu_settings a.nav-tab-active:focus, 
.themehunk_megamenu_menu_settings a.nav-tab-active:focus:active, .themehunk_megamenu_menu_settings a.nav-tab-active:hover {
    border: 0;
    color: #fff;
}
.themehunk_megamenu_menu_settings .nav-tab {
    border: 0;
    margin: 0;
    background: transparent;
    padding: 14px 0px;
    color: #fff;
    font-size: 16px;
}
.nav-tab-wrapper .mega-tab.nav-tab{
    width: 33.33%;
text-align:center;
}
.themehunk_megamenu_menu_settings form.theme_editor td{
padding: 10px 25px;
font-size:14px; 
}

.themehunk_megamenu_menu_settings form table{
width:85%;
border-spacing: 0;
margin:0 auto;
}


.themehunk_megamenu_menu_settings form.theme_editor td.mega-name{
width: 50%;
line-height: 2em;
padding-right: 30px;
vertical-align: middle;
border-spacing: 0;

}
.megamenu_header_left h2{
font-size:22px;
margin-bottom:10px
}
.themehunk_megamenu_menu_settings form.theme_editor td h5{
font-size:16px;
margin:0;
font-style:italic;
}
.themehunk_megamenu_menu_settings table label {
    font-size: 0.9em;
    float: left;
    margin-right: 10px;
    margin-bottom: 10px;
}
.themehunk_megamenu_menu_settings table .mega-short-desc{
display:block;
padding-bottom:8px;
    text-align: left;
}
.mega_left .spinner {
    float: none;
    margin: 0;
}

input.color_picker:not([value=""]),input.color_picker_megamenu:not([value=""]){
font-size:0;
    position: relative;
    padding:15px;
    cursor: pointer;
    border-radius: .15em;
    background-size: 0;
    transition: all .3s;
    border-radius: 50%;
}
input.color_picker:not([value=""]):foucs,input.color_picker_megamenu:not([value=""]):focus{
color:transparent;
}
.icon_dropdown .select2-choice > .select2-chosen {
  line-height: 28px;
  margin-right: 0px; }

 .icon_dropdown .select2-choice .select2-arrow{
  display: none; }

.icon_dropdown .select2-choice{
  padding: 0 5px 0 5px;
  height: 28px;
  color: #DFDFDF;
  border: 1px solid #7e8993; }

.icon_dropdown .select2-chosen i:before{
  line-height: 28px;
  font-size: 16px;
  color: #444; }

.tpx-select2-drop{
  box-shadow: 0 0 0;
  min-width: 150px; }

.select2-results li {
  float: left; }
.select2-results li:first-child{
    float: none; }
.select2-results li:first-child i{
      display: none; }
.select2-results li .select2-result-label{
    font-size: 0.9em; }

.icon_dropdown .select2-choice > .select2-chosen i,
.select2-result-label i {
  margin: 0;
  display: inline-block;
  width: 20px;
  height: 20px;
  font-size: 20px;
  line-height: 1;
  font-family: dashicons;
  text-decoration: inherit;
  font-weight: normal;
  font-style: normal;
  vertical-align: top;
  text-align: center;
  transition: color .1s ease-in 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; }

  .themehunk-megamenu-metabox{
position:relative;
}
.themehunk-megamenu-metabox .spinner{
position:absolute;
bottom:-5px;
right:55px
}
.themehunk-megamenu-menu-meta-box-wrapper{
position:relative;
}
.themehunk-megamenu-menu-meta-box-wrapper p,.themehunk-megamenu-menu-meta-box-data{
display:inline-block;
}

.themehunk-megamenu-menu-meta-box-data{
position:absolute;
right:0;
bottom:10px;
}

.themehunk-megamenu-status-text {
    background: rgb(195, 38, 0);
    color: #fff;
    padding: 15px;
}
.themehunk-megamenu-status-text.active {
    background: rgb(2, 173, 2);
}

/*radio button*/
/* Hidden radio inputs — position:fixed prevents browser auto-scroll on focus */
.mmth-radio-selector input {
    position: fixed;
    left: -99999px;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Alignment selector modern style */
.mmth-align-selector {
    display: flex;
    gap: 8px;
}
.mmth-align-selector .radio-cc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
    color: #9ca3af;
    background-image: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}
.mmth-align-selector .radio-cc .dashicons {
    font-size: 18px;
    width: auto;
    height: auto;
    line-height: 1;
}
.mmth-align-selector .radio-cc:hover {
    background: #f5f3ff;
    border-color: #a78bfa;
    color: #4f46e5;
}
.mmth-align-selector input:checked + .radio-cc,
.mmth-align-selector .radio-cc.active {
    background: #ede9fe;
    border-color: #4f46e5;
    color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79,70,229,.2);
}

/* Panel alignment (background-image based) — keep original approach */
.radio-cc {
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    width: 90px;
    height: 65px;
    transition: all 100ms ease-in;
    filter: grayscale(.6) opacity(.6);
}
.mmth-radio-selector .radio-cc {
    margin-bottom: 0;
    margin-right: 5px;
}
.mmth-radio-selector input:checked + .radio-cc,
.mmth-radio-selector .radio-cc.active {
    filter: none;
    box-shadow: 0 0 0 2px #4f46e5;
    border-radius: 4px;
}

.themehunk-megamenu-draggable-widgets-list::-webkit-scrollbar-track
{
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    background-color: #F5F5F5;
}

.themehunk-megamenu-draggable-widgets-list::-webkit-scrollbar
{
    width: 5px;
    background-color: #F5F5F5;
}
.themehunk-megamenu-draggable-widgets-list::-webkit-scrollbar-thumb
{
    background-color: #a79f9f;
    border: 2px solid #a79f9f;
}
.mega-setting-responsive_breakpoint,.mega-setting-toggle_bar_height,.mega-setting-menu_item_link_height,.mega-setting-menu_padding_top,.mega-setting-menu_padding_bottom,.mega-setting-menu_padding_left,.mega-setting-menu_padding_right,.mega-setting-menu_margin_left,.mega-setting-menu_margin_right,.mega-setting-menu_border_radius_top_left,.mega-setting-menu_border_radius_top_right,.mega-setting-menu_border_radius_bottom_right,.mega-setting-menu_border_radius_bottom_left{
width:70px;
}


label.mega-menu_link_color,label.mega-menu_hvr_color,
label.mega-menu_link_bg_color,label.mega-menu_link_hvr_bg_color,
label.mega-sub_menu_bg_color,label.mega-sub_menu_link_color,
label.mega-sub_menu_hvr_color,label.mega-menu_bg_color,
label.mega-sub_menu_hvr_bg_color,label.mega-toggle_text_clr,
label.mega-toggle_bg_color,label.mega-toggle_icon_clr,
label.mega-mobile_menu_bg_color,label.mega-mobile_menu_link_color,
label.mega-mobile_menu_link_bg_color,label.mega-mobile_menu_hvr_bg_color,
label.mega-mobile_menu_hvr_link_color,
label.mega-mobile_sub_menu_bg_link_color,
label.mega-mobile_sub_menu_bg_link_hvr_color,
label.mega-mobile_sub_menu_link_color,
label.mega-mobile_sub_menu_link_hvr_color,
label.mega-mobile_sub_menu_hide,
label.mega-mobile-open-toggle-icon,
label.mega-mobile-close-toggle-icon,
label.mmth-mega-widget-title-color,
label.mmth-mega-widget-text-color,
label.mmth-mega-widget-link-color,
label.mmth-mega-widget-linkhvr-color,label.mmth-mega-bg-color{
width: 100%;
-js-display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-align-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
}

.mega-menu_link_color .mega-short-desc,
.mega-menu_hvr_color .mega-short-desc,
.mega-menu_link_bg_color .mega-short-desc,
.mega-menu_link_hvr_bg_color .mega-short-desc,
.mega-sub_menu_bg_color .mega-short-desc,
.mega-sub_menu_link_color .mega-short-desc,
.mega-sub_menu_hvr_color .mega-short-desc,
.mega-menu_bg_color .mega-short-desc,
.mega-sub_menu_hvr_bg_color .mega-short-desc,
.mega-toggle_text_clr .mega-short-desc,
.mega-toggle_bg_color .mega-short-desc,
.mega-toggle_icon_clr .mega-short-desc,
.mega-mobile_menu_bg_color .mega-short-desc,
.mega-mobile_menu_link_color .mega-short-desc,
.mega-mobile_menu_link_bg_color .mega-short-desc,
.mega-mobile_menu_hvr_bg_color .mega-short-desc,
.mega-mobile_menu_hvr_link_color .mega-short-desc,
.mega-mobile_sub_menu_bg_link_color .mega-short-desc,
.mega-mobile_sub_menu_bg_link_hvr_color .mega-short-desc,
.mega-mobile_sub_menu_link_color .mega-short-desc,
.mega-mobile_sub_menu_link_hvr_color .mega-short-desc,
.mega-mobile_sub_menu_hide .mega-short-desc,
.mega-mobile-open-toggle-icon .mega-short-desc,
.mega-mobile-close-toggle-icon .mega-short-desc,
.mega-mobile-close-toggle-icon .mega-short-desc,
.mmth-mega-widget-title-color .mega-short-desc,
.mmth-mega-widget-text-color .mega-short-desc,
.mmth-mega-widget-link-color .mega-short-desc,
.mmth-mega-widget-linkhvr-color .mega-short-desc,.mmth-mega-bg-color .mega-short-desc{
padding-bottom:0!important;
    margin-right: 8px;
}

.mega-sub_menu_items,.mega-mobile_sub_menu_items{
background: #45b6e6;
color: #fff;
}

.mega-toggle_text .mega-short-desc{
text-align:left!important;
}

/* ============================================================
   MODAL — Beautiful Dashboard-Style Item Settings
   ============================================================ */

/* Pickr color picker popup — must sit above the modal (z-index: 99999) */
.pcr-app {
    z-index: 999999 !important;
}

/* Overlay */
#themehunk-megamenuSettingOverlay {
    background: rgba(15, 10, 40, 0.75);
    backdrop-filter: blur(3px);
    height: 100%;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 99998;
}

/* Modal container */
.themehunk-megamenu-item-settins-wrap {
    height: 620px;
    max-height: 90vh;
    min-height: 300px;
    max-width: 1100px;
    width: 92%;
    background: #f4f6fb;
    position: fixed;
    z-index: 99999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(79,70,229,.28), 0 4px 16px rgba(0,0,0,.12);
    display: flex;
    flex-direction: column;
}

/* AJAX content wrapper — must fill modal and act as column flex container */
.themehunk-megamenu-item-settings-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    width: 100%;
}

/* ---- Top bar ---- */
.mmth-item-settings-top-bar {
    background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 55%, #2563eb 100%);
    padding: 0 20px;
    color: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    flex-shrink: 0;
    gap: 12px;
}
.mmth-item-settings-top-bar::after {
    content: '';
    position: absolute;
    right: -40px; bottom: -40px;
    width: 140px; height: 140px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
    pointer-events: none;
}

/* Title */
.mmth-item-settings-title {
    float: none;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}
.themehunk-megamenu-item-settings-heading {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.1px;
}
.mmth-item-settings-title::before {
    content: '\f333';
    font-family: dashicons;
    font-size: 20px;
    color: rgba(255,255,255,.7);
    line-height: 1;
}

/* Activate MegaMenu toggle */
.themehunk-megamenu-status {
    font-size: 13px;
    padding: 0;
    letter-spacing: 0;
    display: flex;
    align-items: center;
}
.themehunk-megamenu-status label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 30px;
    padding: 6px 14px 6px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    transition: background .2s;
    white-space: nowrap;
}
.themehunk-megamenu-status label:hover {
    background: rgba(255,255,255,.25);
}
/* Custom toggle switch */
.themehunk-megamenu-status input[type="checkbox"] {
    position: relative;
    width: 36px;
    height: 20px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255,255,255,.3);
    border-radius: 20px;
    outline: none;
    cursor: pointer;
    transition: background .25s;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.3);
}
.themehunk-megamenu-status input[type="checkbox"]::after {
    content: '';
    position: absolute;
    width: 14px; height: 14px;
    background: #fff;
    border-radius: 50%;
    top: 2px; left: 2px;
    transition: left .25s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.themehunk-megamenu-status input[type="checkbox"]:checked {
    background: #10b981;
    border-color: #10b981;
}
.themehunk-megamenu-status input[type="checkbox"]:checked::after {
    left: 18px;
}

/* Saving indicator */
#mmth-saving-indicator {
    color: #fff;
    text-decoration: none;
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    right: auto; bottom: auto;
}
#mmth-saving-indicator::before {
    color: #fff;
    margin-right: 0;
}

/* Close button */
.themehunk-megamenu-builder-close-btn {
    float: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    background: rgba(255,255,255,.18);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.25);
    text-decoration: none;
    transition: background .2s;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.themehunk-megamenu-builder-close-btn:hover {
    background: rgba(255,255,255,.32);
}
.themehunk-megamenu-builder-close-btn .dashicons.dashicons-no-alt {
    font-size: 18px;
    color: #fff;
    line-height: 1;
    width: auto; height: auto;
}

/* ---- Builder area ---- */
.mmth-item-settings-builder-area {
    display: flex !important;
    flex-direction: row !important;
    flex: 1 !important;
    min-height: 0 !important;  /* critical: allows flex child to shrink + scroll */
    overflow: hidden !important;
    height: 0;                 /* force flex:1 to calculate from parent, not content */
}

/* ---- Left Sidebar ---- */
.mmth-builder-settings-wrapper {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    flex: 0 0 200px !important;  /* override old flex: 1 0 auto */
    background: #fff !important;
    border-right: 1px solid #e8e6f5;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;  /* sidebar scrolls */
    overflow-x: hidden;
    margin: 0 !important;         /* override old margin-top/left */
    box-shadow: none !important;
    align-self: stretch;
}

/* Sidebar section items */
.mmth-builder-settings {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
    box-shadow: none;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
}
.mmth-builder-settings i,
.mmth-builder-settings .dashicons {
    font-size: 16px;
    color: #9ca3af;
    transition: color .15s;
    width: auto; height: auto;
    vertical-align: middle;
    margin-right: 0;
}

/* Chevron icon — shows on hover, rotates when active */
.mmth-builder-settings::after,
.themehunk-megamenu-draggable-widgets-list-title::after {
    content: '\f345';           /* dashicons-arrow-right-alt2 */
    font-family: dashicons;
    font-size: 16px;
    line-height: 1;
    color: #d1d5db;
    margin-left: auto;
    opacity: 0;
    transition: opacity .15s, transform .2s, color .15s;
    transform: rotate(0deg);
    flex-shrink: 0;
}
.mmth-builder-settings:hover::after,
.themehunk-megamenu-draggable-widgets-list-title:hover::after {
    opacity: 1;
    color: #a78bfa;
}
.mmth-builder-settings.active::after,
.themehunk-megamenu-draggable-widgets-list-title.active::after {
    content: '\f347';           /* dashicons-arrow-down-alt2 */
    opacity: 1;
    color: #4f46e5;
    transform: rotate(0deg);
}

.mmth-builder-settings:hover,
.mmth-builder-settings.active,
.themehunk-megamenu-draggable-widgets-list-title.active {
    background: #f5f3ff;
    color: #4f46e5;
    border-left-color: #4f46e5;
}
.mmth-builder-settings:hover i,
.mmth-builder-settings:hover .dashicons,
.mmth-builder-settings.active i,
.mmth-builder-settings.active .dashicons,
.themehunk-megamenu-draggable-widgets-list-title.active i,
.themehunk-megamenu-draggable-widgets-list-title.active .dashicons {
    color: #4f46e5;
}

/* Widgets list header */
.themehunk-megamenu-draggable-widgets-list-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #1e1b4b;
    cursor: pointer;
    border-left: 3px solid #4f46e5;
    background: #f5f3ff;
    border-bottom: 1px solid #ede9fe;
    position: relative;
}

/* Widgets list — no own scroll; sidebar parent scrolls */
.themehunk-megamenu-draggable-widgets-list {
    font-size: 13px;
    padding: 8px;
    max-height: none !important;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;   /* don't compress; let sidebar overflow-y handle it */
}

/* Individual draggable widget */
.draggable-widget {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    background: #fafafa;
    padding: 8px 10px;
    cursor: grab;
    max-width: 100%;
    border: 1px solid #e8e6f5;
    border-radius: 8px;
    transition: background .15s, box-shadow .15s, transform .1s;
    gap: 6px;
}
.draggable-widget:hover {
    background: #f0eeff;
    border-color: #c4b5fd;
    box-shadow: 0 2px 8px rgba(109,40,217,.10);
    transform: translateY(-1px);
}
.outside-widget-name {
    font-size: 12px;
    color: #374151;
    font-weight: 500;
    width: auto;
    flex: 1;
}

/* Drag button */
.widgets-drag-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px;
    background: linear-gradient(135deg, #6d28d9, #4f46e5);
    border-radius: 6px;
    color: #fff;
    height: auto;
    line-height: 1.5;
    font-size: 11px;
    font-weight: 600;
    width: auto;
    white-space: nowrap;
    transition: box-shadow .15s;
}
.widgets-drag-btn:hover {
    box-shadow: 0 2px 8px rgba(79,70,229,.4);
}
.widgets-drag-btn i,
.widgets-drag-btn .dashicons {
    font-size: 12px;
    margin-right: 0;
    vertical-align: middle;
    width: auto; height: auto;
}

/* ---- Right content area ---- */
.themehunk-megamenu-builder-content-wrapper {
    flex: 1 !important;
    width: auto !important;    /* override old width:80% */
    max-height: none !important; /* remove old 515px cap; parent controls height */
    min-width: 0;
    min-height: 0;
    padding: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden;
    background: #f4f6fb;
    align-self: stretch;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
}

/* Builder area and options area get their own padding */
.themehunk-megamenu-builder-content-wrapper .mmth-builder,
.themehunk-megamenu-builder-config-options-content {
    padding: 20px 24px;
}

/* Icons container: fill content wrapper when visible */
.themehunk-megamenu-icons-container[style*="display: block"],
.themehunk-megamenu-icons-container[style*="display:block"] {
    display: flex !important;
}

/* Activate message */
.activate-megamenu-msg,
.themehunk-megamenu-builder-content-wrapper .mmth-no-mega-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}
.activate-megamenu-msg::before {
    content: '\f111';
    font-family: dashicons;
    font-size: 48px;
    color: #c4b5fd;
    display: block;
    margin-bottom: 12px;
}

/* New Row button area */
.megamenu-new-row-add {
    text-align: center;
    margin-top: 20px;
    padding-bottom: 10px;
}
.themehunk-megamenu-add-row-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border-radius: 10px;
    background: linear-gradient(135deg, #6d28d9, #4f46e5);
    padding: 10px 22px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 12px rgba(79,70,229,.35);
    transition: box-shadow .2s, transform .15s;
    letter-spacing: .2px;
}
.themehunk-megamenu-add-row-btn:hover {
    box-shadow: 0 6px 18px rgba(79,70,229,.5);
    transform: translateY(-1px);
}
.themehunk-megamenu-add-row-btn .dashicons {
    font-size: 16px;
    width: auto; height: auto;
    line-height: 1;
}

/* Row containers */
.themehunk-megamenu-row {
    background: #fff;
    border: 1px solid #e5e7f0;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(79,70,229,.06);
    overflow: hidden;
}
.themehunk-megamenu-row-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f9f7ff;
    border-bottom: 1px solid #ede9fe;
    margin: 0;
}
.themehunk-megamenu-row-actions p { margin: 0; }
.themehunk-megamenu-row-left {
    float: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #6d28d9;
    cursor: move;
}
.themehunk-megamenu-row-right {
    float: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 0;
}

/* Add column button */
.themehunk-megamenu-add-col-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    border-radius: 6px;
    background: #ede9fe;
    color: #4f46e5;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 0;
    border: 1px solid #c4b5fd;
    transition: background .15s;
}
.themehunk-megamenu-add-col-btn:hover { background: #ddd6fe; }
.themehunk-megamenu-add-col-btn .dashicons {
    font-size: 13px;
    width: auto; height: auto;
    line-height: 1;
    vertical-align: middle;
}

/* Delete icons */
.mmthRowDeleteIcon,
.mmthColDeleteIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    transition: background .15s;
}
.mmthRowDeleteIcon:hover,
.mmthColDeleteIcon:hover {
    background: #fee2e2;
}

/* Column wrapper */
.themehunk-megamenu-column-actions {
    padding: 6px 10px;
    background: #fafafa;
    border-bottom: 1px solid #f0eeff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.themehunk-megamenuColSortingIcon {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: move;
}
.themehunk-megamenu-item-wrap {
    padding: 10px;
}

/* Options form inside content */
.themehunk-megamenu-builder-config-options-content {
    display: none;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7f0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(79,70,229,.06);
}
.themehunk-megamenu-builder-config-options-data table {
    width: 100%;
    border-collapse: collapse;
}
.themehunk-megamenu-builder-config-options-data td {
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid #f0eeff;
}
.themehunk-megamenu-builder-config-options-data td.mmth-name {
    width: 45%;
    font-weight: 600;
    color: #1e1b4b;
    padding-right: 20px;
}
.themehunk-megamenu-builder-config-options-data table tr:last-child td {
    border-bottom: none;
}
.themehunk-megamenu-builder-config-options-data table tr:nth-child(even) td {
    background: #fafaff;
}
.themehunk-megamenu-builder-config-options-data input[type="text"],
.themehunk-megamenu-builder-config-options-data input[type="number"] {
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    padding: 7px 11px;
    font-size: 13px;
    color: #1e293b;
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.themehunk-megamenu-builder-config-options-data input[type="text"]:focus,
.themehunk-megamenu-builder-config-options-data input[type="number"]:focus {
    border-color: #6d28d9;
    box-shadow: 0 0 0 3px rgba(109,40,217,.12);
}

/* Save button inside Options form */
.mmth-builder-options-submit-wrap {
    padding: 14px 16px;
    background: #f9f7ff;
    border-top: 1px solid #ede9fe;
    text-align: right;
}
input.button-primary.mmth-builder-options-submit {
    background: linear-gradient(135deg, #6d28d9, #4f46e5) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(79,70,229,.35) !important;
    cursor: pointer;
    height: auto !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    text-shadow: none !important;
    transition: box-shadow .2s !important;
}
input.button-primary.mmth-builder-options-submit:hover {
    box-shadow: 0 5px 16px rgba(79,70,229,.5) !important;
}

@media (max-width: 782px) {
    .themehunk-megamenu-item-settins-wrap {
        top: 5%;
        transform: translate(-50%, 0);
        width: 96%;
        max-height: 85vh;
        border-radius: 14px;
    }
    .mmth-builder-settings-wrapper {
        width: 160px;
        min-width: 160px;
        flex: 0 0 160px;
    }
}

/* ============================================================
   FLEX-BASED ADMIN PAGE UI
   ============================================================ */

/* Page wrapper */
.megamenu_outer_wrap {
    margin: 0 !important;
    padding: 0 !important;
    background: #f0f2f7;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header */
.megamenu_header {
    background: linear-gradient(135deg, #6d28d9 0%, #4f46e5 60%, #2563eb 100%);
    padding: 0 32px;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(79,70,229,.35);
    position: relative;
    overflow: hidden;
}
.megamenu_header_left {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}
.megamenu_header_logo {
    width: 46px;
    height: 46px;
    background: rgba(255,255,255,.22);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 8px rgba(0,0,0,.15);
    flex-shrink: 0;
}
.megamenu_header_logo .dashicons {
    width: 26px;
    height: 26px;
    font-size: 26px;
    line-height: 1;
}
.megamenu_header_left h2 {
    color: #fff !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    margin: 0 0 3px !important;
    text-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.megamenu_header_left .version {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.17);
    color: #e0e7ff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.2);
}
.megamenu_header_left .version b { color: #fff; margin-left: 3px; }
.megamenu_header_right { position: relative; z-index: 1; }
.megamenu_header_right a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.18);
    color: #fff;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,.3);
    transition: background .2s;
}
.megamenu_header_right a:hover { background: rgba(255,255,255,.28); color: #fff; }

/* Content wrapper */
.megamenu_wrap {
    max-width: 960px !important;
    margin: 28px auto !important;
    padding: 0 20px 40px !important;
    background: transparent !important;
}

/* Settings card */
.themehunk_megamenu_menu_settings {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(79,70,229,.10), 0 1px 4px rgba(0,0,0,.06);
    border: 1px solid #e5e7f0;
    overflow: hidden;
}

/* Tab navigation */
.themehunk_megamenu_menu_settings .nav-tab-wrapper {
    display: flex !important;
    align-items: flex-end;
    background: #f5f3ff !important;
    padding: 16px 24px 0 !important;
    border-bottom: 2px solid #ede9fe !important;
    margin: 0 !important;
    gap: 4px;
    position: static !important;
}
.themehunk_megamenu_menu_settings .nav-tab-wrapper .mega-tab.nav-tab {
    background: transparent !important;
    color: #6b7280 !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 9px 22px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    width: auto !important;
    text-align: left !important;
    cursor: pointer;
    transition: color .2s, background .2s, border-color .2s;
    position: relative;
    top: 2px;
    text-decoration: none;
}
.themehunk_megamenu_menu_settings .nav-tab-wrapper .mega-tab.nav-tab:hover {
    color: #4f46e5 !important;
    background: #ede9fe !important;
    border-bottom-color: #c4b5fd !important;
}
.themehunk_megamenu_menu_settings .nav-tab-wrapper .mega-tab.nav-tab-active,
.themehunk_megamenu_menu_settings .nav-tab-wrapper .mega-tab.nav-tab-active:focus,
.themehunk_megamenu_menu_settings .nav-tab-wrapper .mega-tab.nav-tab-active:hover {
    background: #fff !important;
    color: #4f46e5 !important;
    border-bottom-color: #4f46e5 !important;
}

/* Tab content */
.mega-tab-content { padding: 0 !important; }

/* Flex settings list (replaces table) */
.th-settings-list {
    display: flex;
    flex-direction: column;
}

/* Setting row (replaces tr) */
.th-setting-row {
     display: flex;
    align-items: center;
    padding: 18px 28px;
    border-bottom: 1px solid #f0eeff;
    transition: background .15s;
    min-height: 64px;
    box-sizing: border-box;
    justify-content: space-between;
}
.th-setting-row:last-child { border-bottom: none; }
.th-setting-row:nth-child(even) { background: #fafaff; }
.th-setting-row:hover { background: #f5f3ff; }

/* Label column (replaces td.mega-name) */
/* .th-setting-label {
    flex: 0 0 36%;
    max-width: 36%;
    padding-right: 24px;
    box-sizing: border-box;
} */
.th-setting-label .th-setting-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e1b4b;
    line-height: 1.4;
}
.th-setting-label .mega-description {
    display: block;
    font-size: 11.5px;
    color: #9ca3af;
    font-weight: 400;
    margin-top: 3px;
    line-height: 1.5;
}

/* Control column (replaces td.mega-value) */
.th-setting-control {
    display: flex;
    align-items: center;
  flex-direction: row;
}

/* Labels inside control column */
.th-setting-control label {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    float: none !important;
    gap: 5px;
    margin: 0 !important;
}
.th-setting-control .mega-short-desc {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-align: left !important;
    padding-bottom: 0 !important;
    line-height: 1;
}

/* Section divider rows */
.th-setting-row .th-setting-divider-label { width: 100%; }
.th-setting-row .th-setting-divider-label h5 {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: #4c1d95;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.mega-sub_menu_items,
.mega-mobile_sub_menu_items {
    background: linear-gradient(90deg, #ede9fe, #ddd6fe) !important;
    padding: 10px 28px !important;
    min-height: auto !important;
    border-bottom: 2px solid #c4b5fd !important;
}

/* Text / Number inputs */
.th-setting-control input[type="text"],
.th-setting-control input[type="number"] {
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    padding: 7px 11px;
    font-size: 13px;
    color: #1e293b;
    background: #fff;
    outline: none;
    box-shadow: none;
    transition: border-color .2s, box-shadow .2s;
}
.th-setting-control input[type="text"]:focus,
.th-setting-control input[type="number"]:focus {
    border-color: #6d28d9;
    box-shadow: 0 0 0 3px rgba(109,40,217,.12);
}
.th-setting-control input[type="number"] { width: 80px; }

/* Color pickers */
body[class*="_page_megamenuthemehunk_megamenu_"] .mm-picker-container,
body.toplevel_page_megamenuthemehunk-megamenu .mm-picker-container {
    float: none;
    display: inline-flex;
    align-items: center;
    border-radius: 7px;
    border: 1.5px solid #d1d5db;
    box-shadow: none;
    overflow: hidden;
}
body[class*="_page_megamenuthemehunk_megamenu_"] .block .mm-picker-container,
body.toplevel_page_megamenuthemehunk-megamenu .block .mm-picker-container {
    float: none;
}
.th-setting-control input.mm_colorpicker {
    width: 110px !important;
    max-width: 110px !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 12px !important;
    padding: 5px 6px !important;
}

/* Validation messages */
.th-setting-control .mega-validation-message {
    display: none;
    width: 100%;
    color: #dc2626;
    font-size: 11.5px;
    font-weight: 500;
    margin-top: 2px;
}
.th-setting-control label.mega-error input {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,.12) !important;
}

/* Submit / Reset bar */
.megamenu_submit {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 28px !important;
    border-top: 1px solid #ede9fe;
    background: #f9f7ff;
    border-radius: 0 0 16px 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.mega_left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Reset the <p class="submit"> wrapper that submit_button() generates */
.mega_left p.submit {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    float: none !important;
}

/* Save button */
.mega_left .button-primary,
.mega_left p.submit input#submit,
.megamenu_submit input#submit {
    background: linear-gradient(135deg, #6d28d9, #4f46e5) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 26px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(79,70,229,.35) !important;
    cursor: pointer !important;
    height: auto !important;
    width: auto !important;
    line-height: 1.4 !important;
    text-shadow: none !important;
    transition: box-shadow .2s, transform .15s !important;
    margin: 0 !important;
    display: inline-block !important;
    outline: none !important;
}
.mega_left .button-primary:hover,
.mega_left p.submit input#submit:hover,
.megamenu_submit input#submit:hover {
    box-shadow: 0 6px 18px rgba(79,70,229,.50) !important;
    transform: translateY(-1px) !important;
    opacity: 1 !important;
}
.mega_left .button-primary:focus,
.mega_left p.submit input#submit:focus,
.megamenu_submit input#submit:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(109,40,217,.3) !important;
}
.mega_left .spinner { float: none; margin: 0; }
.mega_right a.reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #dc2626;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    border: 1.5px solid #fecaca;
    border-radius: 8px;
    background: #fff5f5;
    transition: background .2s, border-color .2s;
}
.mega_right a.reset:hover { background: #fee2e2; border-color: #f87171; }

/* Save/error messages */
p.saved.theme_result_message {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    padding: 6px 14px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}
p.fail.theme_result_message {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 12px 16px;
    border-radius: 7px;
    font-size: 13px;
    margin: 12px 28px;
}

/* Responsive */
@media (max-width: 782px) {
    .megamenu_header { padding: 0 16px; min-height: 60px; }
    .megamenu_header_left h2 { font-size: 17px !important; }
    .megamenu_header_right { display: none; }
    .megamenu_wrap { margin: 16px auto !important; padding: 0 12px 30px !important; }
    .th-setting-row { flex-direction: column; align-items: flex-start; padding: 16px; gap: 10px; min-height: auto; }
    .th-setting-label { flex: 0 0 100%; max-width: 100%; padding-right: 0; }
    .megamenu_submit { padding: 16px !important; }
}
