#poststuff #majc-settings-metabox .inside {
    margin: 0;
    padding: 0;
}

#majc-settings-metabox .postbox-header {
    display: none;
}

.majc-menu-option-wrap {
    background: #fff;
    border-bottom: 1px solid var(--majc-line);
    padding: 18px 28px;
}

.majc-menu-option-wrap .majc-side-menus {
    display: flex;
    align-items: center;
    margin: 0;
    list-style: none;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px;
    background: var(--majc-soft);
    border: 1px solid var(--majc-line);
    border-radius: 10px;
}

.majc-menu-option-wrap .majc-side-menus li {
    flex-grow: 1;
    text-align: center;
    margin: 0;
    cursor: pointer;
    padding: 10px 16px;
    background: transparent;
    color: #475467;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.majc-menu-option-wrap .majc-side-menus li:hover {
    background: #fff;
    color: var(--majc-text);
}

.majc-menu-option-wrap .majc-side-menus li.majc-tab-active {
    background: var(--majc-accent);
    color: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.12);
}

.majc-settings-row {
    position: relative;
    margin: 0;
    display: flex;
    padding: 18px 0;
    border-bottom: 1px solid var(--majc-line);
}

.majc-settings-row:last-child {
    border-bottom: 0;
}

.majc-settings-row:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--majc-label-width);
    background: var(--majc-soft);
    border-right: 1px solid var(--majc-line);
    border-left: 0;
}

.majc-settings-row > label {
    position: relative;
    flex: 0 0 var(--majc-label-width);
    width: var(--majc-label-width);
    padding: 2px 28px 0;
    color: var(--majc-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.majc-settings-fields {
    flex-grow: 1;
    padding: 0 28px;
    width: calc(100% - var(--majc-label-width));
}

.majc-settings-fields p.majc-desc,
p.majc-desc {
    margin: 8px 0 0;
    color: var(--majc-muted);
    font-size: 12.5px;
    font-style: normal;
    line-height: 1.55;
}

.majc-settings-fields input[type="text"],
.majc-settings-fields input[type="url"],
.majc-settings-fields input[type="number"],
.majc-settings-fields input[type="email"],
.majc-settings-fields select,
.majc-settings-fields textarea {
    min-height: 38px;
    padding: 6px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    color: var(--majc-text);
    font-size: 14px;
}

.majc-settings-fields select {
    padding-right: 32px;
}

.majc-settings-outer-wrap {
    --majc-accent: var(--wp-admin-theme-color, #2271b1);
    --majc-text: #1d2939;
    --majc-muted: #667085;
    --majc-line: #eaecf0;
    --majc-soft: #f9fafb;
    --majc-label-width: 260px;
    margin: 20px 20px 20px 0;
    max-width: 1240px;
    background: #fff;
    border: 1px solid var(--majc-line);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
    color: var(--majc-text);
    overflow: clip;
}

#majc-settings-metabox .majc-settings-outer-wrap {
    margin: 0;
    max-width: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}#poststuff .majc-menu-field-wrap h2,
.majc-menu-field-wrap h2 {
    margin: 0;
    padding: 24px 28px 12px;
    background: #fff;
    border-bottom: 1px solid var(--majc-line);
    color: var(--majc-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: none;
}

.majc-settings-fields select,
.majc-settings-fields textarea,
.majc-settings-fields input[type="text"],
.majc-settings-fields input[type="url"] {
    width: 300px;
}

.majc-settings-fields select[multiple] {
    width: 400px;
}

.majc-settings-fields input[type="number"] {
    width: 96px;
}

.majc-settings-fields input:focus,
.majc-settings-fields select:focus,
.majc-settings-fields textarea:focus {
    border-color: var(--majc-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--majc-accent) 18%, transparent);
    outline: 0;
}

.majc-settings-list-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.majc-settings-list > label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* Sub Section Panel */
.majc-submenu {
    display: flex;
    padding: 20px 28px 0;
    border-bottom: 1px solid var(--majc-line);
    gap: 6px;
}

.majc-submenu .majc-submenu-tab {
    flex-grow: 1;
    cursor: pointer;
    text-align: center;
    padding: 10px 16px;
    background: transparent;
    color: #475467;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid transparent;
}

.majc-submenu .majc-submenu-tab:hover {
    background: var(--majc-soft);
    color: var(--majc-text);
}

.majc-submenu .majc-submenu-tab.majc-tab-active {
    background: transparent;
    color: var(--majc-accent);
    border-bottom-color: var(--majc-accent);
}

/* Two Column */

.majc-two-column-row {
    display: grid;
    grid-template-columns: repeat(2, 300px);
    gap: 20px;
    margin: 0;
    padding: 0;
}

.majc-two-column-row > li {
    margin: 0;
    padding: 0;
}

.majc-two-column-row > li > label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* Icon Chooser */
.majc-icon-box-wrap {
    position: relative;
    width: 382px;
}

.majc-icon-box-wrap .majc-icon-box {
    display: none;
}

.majc-icon-box-wrap .majc-selected-icon {
    background: #f6f6f6;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border: 1px solid #949494;
    position: relative;
    margin-right: 44px;
    cursor: pointer;
    font-size: 22px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.majc-icon-box-wrap .majc-selected-icon span {
    position: absolute;
    background: #f6f6f6;
    right: -45px;
    top: -1px;
    height: 45px;
    width: 45px;
    border: 1px solid #949494;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.majc-icon-box-wrap .majc-selected-icon span i.majc-down-icon {
    display: block;
    border: solid #333;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
}

.majc-icon-box-wrap .majc-icon-search {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f7f7f7;
    border: 1px solid #949494;
    border-top: 0;
}

.majc-icon-box-wrap .majc-icon-search select {
    width: 150px;
    margin-right: 10px;
}

.majc-icon-box-wrap .majc-icon-list {
    height: 215px;
    overflow-y: scroll;
    font-size: 18px;
    border: 1px solid #949494;
    background: #fff;
    border-top: 0;
    padding: 4px;
    margin: 0;
    display: none;
    cursor: pointer;
    box-sizing: border-box;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.majc-icon-box-wrap .majc-icon-list::-webkit-scrollbar {
    display: none;
}

.majc-icon-box-wrap .majc-icon-list:first-of-type {
    display: block;
}

.majc-icon-box-wrap .majc-icon-list li {
    float: left;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 43px;
    width: 43px;
    border: 1px solid #eee;
    border-radius: 3px;
    font-size: 18px;
    margin: 4px;
    transition: all 0.3s ease;
}

.majc-icon-box-wrap .majc-icon-list li:hover {
    background: #333;
    border: 1px solid #333;
    color: #fff;
    -webkit-transform: scale(1.3);
    transform: scale(1.3);
}

.majc-icon-box-wrap .majc-icon-list li.icon-active {
    background: #0073aa;
    border: 1px solid #0073aa;
    color: #fff;
}

/* Image Uploader */
.majc-custom-img-icon-btn {
    position: relative;
    width: 60px;
    margin-bottom: 10px;
}

.majc-custom-menu-image-icon {
    height: 60px;
    width: 60px;
    border: 2px dashed #EEE;
}

.majc-custom-menu-image-icon img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.majc-image-remove {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: #FF0000;
    opacity: 0.6;
    text-indent: -9999px;
    cursor: pointer;
    border-radius: 50%;
}

.majc-custom-img-icon-btn:hover .majc-image-remove {
    opacity: 1;
}

.majc-image-remove:before,
.majc-image-remove:after {
    position: absolute;
    left: 9px;
    content: ' ';
    height: 10px;
    width: 1px;
    background-color: #fff;
    top: 5px;
}

.majc-image-remove:before {
    transform: rotate(45deg);
}

.majc-image-remove:after {
    transform: rotate(-45deg);
}

/* Show/Hide Lists */
.majc-display-lists {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.majc-postbox-fields,
.majc-hide-singular {
    border: 1px solid #EEE;
}

.majc-postbox-fields h4,
.majc-hide-singular h4 {
    margin: 0;
    padding: 15px;
    border-bottom: 1px solid #EEE;
}

.majc-toggle-tab-body {
    max-height: 300px;
    overflow-y: scroll;
    padding: 15px 0 15px 15px;
    margin-right: 19px;
}

.majc-toggle-tab-body p {
    margin: 0 0 10px;
}

.majc-toggle-tab-body p:last-child {
    margin-bottom: 0;
}

/* Typography */
.majc-typography-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0;
}

.majc-typography-fields li {
    margin: 0;
    padding: 0;
}

.majc-typography-fields li > label {
    display: block;
    margin-bottom: 6px;
}

/* Colors */
.majc-color-fields {
    display: grid;
    grid-template-columns: repeat(2, 280px);
    gap: 20px;
    margin: 0;
}

.majc-color-fields li {
    margin: 0;
    padding: 0;
}

.majc-color-fields li > label {
    display: block;
    margin-bottom: 6px;
}

/*Toggle Button*/
.majc-toggle-input-field input[type=checkbox] {
    border-radius: 20px;
    position: relative;
    border: 0;
    margin: 0;
    min-width: 0;
    box-shadow: none;
    width: 38px;
    height: 22px;
    background: #d0d5dd;
    transition: background 0.2s ease;
}

.majc-toggle-input-field input[type=checkbox]:before {
    content: "";
    display: block;
    position: absolute;
    transition: all 0.2s ease;
    border-radius: 50%;
    box-sizing: border-box;
    margin: 0;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border: 0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.2);
}

.majc-toggle-input-field input[type=checkbox]:checked {
    background: var(--majc-accent);
}

.majc-toggle-input-field input[type=checkbox]:checked:before {
    background: #fff;
    transform: translateX(16px);
}

.majc-toggle-input-field input[type=checkbox]:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--majc-accent) 25%, transparent);
}

/*Choosen Select*/
.majc-typography-fields .chosen-container-single .chosen-single {
    min-height: 40px;
    font-size: 14px;
    line-height: 40px;
    border-color: #949494;
    box-shadow: none;
    border-radius: 2px;
    background: #fff url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E) no-repeat right 5px top 55%;
    background-size: 16px 16px;
    cursor: pointer;
    vertical-align: middle;
    padding: 0 0 0 10px;
}

.majc-typography-fields .chosen-container-single .chosen-single div {
    display: none;
}

.majc-typography-fields .chosen-container-single .chosen-single span {
    margin: 0 26px 0 0;
}

.majc-typography-fields .chosen-container-single .chosen-search input[type="text"] {
    background: none !important;
    padding: 5px;
    box-shadow: none;
}

/* Range Slider */
.majc-range-slider-wrap {
    width: 100%;
    max-width: 320px;
    display: flex;
    align-items: center;
}

.majc-range-slider {
    position: relative;
    flex-grow: 1;
    height: 4px;
    margin: 12px 0;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.5s;
}

.majc-range-slider:hover {
    background: rgba(0, 0, 0, 0.2);
}

.majc-range-slider .ui-slider-range {
    display: inline-block;
    position: absolute;
    top: 0;
    height: 100%;
    background: var(--wp-admin-theme-color);
}

.majc-range-slider .ui-slider-handle {
    height: 16px;
    width: 16px;
    background: #fff;
    border: none;
    display: inline-block;
    position: absolute;
    top: 50%;
    margin: 0 0 0 -8px;
    transform: translateY(-50%);
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
}

.majc-range-slider + .majc-range-input-selector {
    margin-left: 10px;
    margin-right: 5px;
    width: 60px !important;
}

/* Text Check Box */

.majc-text-check-box {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border: 0;
    border-radius: 0;
}

.majc-text-check-box label {
    border: 0;
}

.majc-text-check-box label:last-child {
    border: none;
}

.majc-text-check-box label span {
    display: block;
    padding: 7px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    background: #fff;
    color: #344054;
    font-size: 13px;
    transition: all 0.15s ease;
}

.majc-text-check-box label span:hover {
    border-color: #98a2b3;
}

.majc-text-check-box label span i {
    display: inline-block;
    margin-right: 4px;
    font-size: 0.9em;
}

.majc-text-check-box label input:checked + span {
    background: var(--majc-accent);
    border-color: var(--majc-accent);
    color: #fff;
}

.majc-text-check-box label input {
    display: none;
}

/* Multiple Select */
.majc-settings-fields .select2-container--default .select2-selection--multiple .select2-selection__clear {
    position: absolute;
    right: 0;
    top: 0;
    margin-top: 0;
    margin-right: 0;
    padding: 3px 5px;
    line-height: 1;
}

.majc-settings-fields .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding-right: 20px;
}

.majc-settings-fields .select2-container--default .select2-selection--multiple .select2-selection__rendered li {
    margin: 0;
}

.majc-settings-fields .select2-container--default .select2-selection--multiple li.select2-selection__choice {
    background: #333;
    color: #FFF;
    border-radius: 2px;
    border: 0;
    padding: 3px 6px;
    margin: 5px 5px 0 0;
}

.majc-settings-fields .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #333;
    background: #FFF;
    border-radius: 10px;
    height: 14px;
    width: 14px;
    line-height: 12px;
    text-align: center;
    margin-right: 6px;
}

.majc-settings-fields .select2-container--default .select2-search--inline .select2-search__field {
    min-height: 0;
}

/** Admin Notice **/
.majc-notice.notice {
    padding: 20px 40px 20px 20px !important;
    position: relative;
}

.majc-notice.notice.notice p {
    margin: 0 0 10px;
}

.majc-notice a.notice-dismiss {
    text-decoration: none;
}

/** Admin Notice **/
.majc-notice.notice {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px 40px 20px 20px !important;
    position: relative;
}

.majc-notice.notice .majc-notice-logo {
    width: 84px;
    flex: 84px 0 0;
}

.majc-notice.notice .majc-notice-logo svg {
    fill: #72aee6;
    display: block;
}

.majc-notice.notice p {
    padding: 0;
    margin: 0 0 15px;
    font-size: 16px;
}

.majc-notice.notice .button .dashicons {
    height: auto;
    width: auto;
    margin: 0 6px 0 0;
    vertical-align: middle;
    font-size: 16px;
}

.majc-notice a.notice-dismiss {
    text-decoration: none;
}

@media screen and (max-width: 960px) {
    .majc-settings-outer-wrap {
        margin-right: 10px;
    }

    .majc-settings-row {
        flex-direction: column;
        gap: 10px;
    }

    .majc-settings-row:before {
        display: none;
    }

    .majc-settings-row > label,
    .majc-settings-fields {
        width: 100%;
        flex-basis: auto;
        padding: 0 20px;
    }
}

/** Free vs Pro **/
.majc-compare-wrap {
    max-width: 1080px;
}

.majc-compare-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 20px 0 24px;
    padding: 28px 32px;
    background: #fff;
    border: 1px solid #e6e7e9;
    border-radius: 12px;
}

.majc-compare-hero h1 {
    margin: 0 0 10px;
    padding: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.majc-compare-hero p {
    max-width: 640px;
    margin: 0 0 8px;
    color: #50575e;
    font-size: 14px;
    line-height: 1.6;
}

.majc-compare-hero p.majc-compare-note {
    margin: 0;
    color: #1d2327;
    font-weight: 600;
}

.majc-compare-actions,
.majc-compare-footer {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.majc-compare-footer {
    justify-content: flex-end;
    margin-top: 18px;
}

.majc-compare-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.majc-compare-table col.majc-compare-col-free {
    width: 190px;
}

.majc-compare-table col.majc-compare-col-pro {
    width: 210px;
    background: #f3f6fc;
    background: color-mix(in srgb, var(--wp-admin-theme-color, #2271b1) 7%, #fff);
}

.majc-compare-head {
    margin-bottom: 10px;
}

.majc-compare-head th {
    padding: 9px 18px;
    color: #646970;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-align: left;
    text-transform: uppercase;
}

.majc-compare-head th.majc-compare-pro-head {
    background: var(--wp-admin-theme-color, #2271b1);
    border-radius: 8px;
    color: #fff;
    text-align: center;
}

.majc-compare-section {
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #e6e7e9;
    border-radius: 10px;
    overflow: hidden;
}

.majc-compare-section h3 {
    margin: 0;
    padding: 11px 18px;
    background: #f7f8f9;
    border-bottom: 1px solid #e6e7e9;
    color: #50575e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.majc-compare-table td {
    padding: 13px 18px;
    font-size: 14px;
    vertical-align: top;
}

.majc-compare-table tr + tr td {
    border-top: 1px solid #f0f0f1;
}

.majc-compare-name {
    color: #1d2327;
    font-weight: 600;
}

.majc-compare-desc {
    display: block;
    max-width: 56ch;
    margin-top: 3px;
    color: #646970;
    font-size: 12.5px;
    line-height: 1.55;
}

.majc-compare-demo {
    margin-left: 8px;
    padding: 2px 7px;
    border: 1px solid #dcdcde;
    border-radius: 5px;
    color: var(--wp-admin-theme-color, #2271b1);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.majc-compare-demo:hover {
    border-color: var(--wp-admin-theme-color, #2271b1);
}

.majc-compare-table td .dashicons {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    line-height: 22px;
    text-align: center;
    vertical-align: middle;
}

.majc-compare-yes {
    color: #1d2327;
}

.majc-compare-yes .dashicons {
    background: #1e8e3e;
}

/* Grey rather than red, so the eye goes to what Pro adds, not what Free lacks. */
.majc-compare-no {
    color: #8c8f94;
}

.majc-compare-no .dashicons {
    background: #c3c4c7;
}

.majc-compare-plain {
    color: #1d2327;
    font-weight: 600;
}

@media screen and (max-width: 782px) {
    .majc-compare-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    /* Narrower, but still fixed, so every card lines up with the header. */
    .majc-compare-table col.majc-compare-col-free {
        width: 82px;
    }

    .majc-compare-table col.majc-compare-col-pro {
        width: 96px;
    }

    .majc-compare-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* The cells are narrow here, so the icon sits above its text. */
    .majc-compare-table td .dashicons {
        display: block;
        margin: 0 0 4px;
    }
}
