/*---------------------------------
    * Admin Settings Panel CSS

    * It included following css
    -> Inputs CSS
    -> Tooltip CSS
    -> Checboxes Style
    -> CSS Editor
        -> Padding
        -> Margin
        -> Border
    -> Admin Settings Panel
    -> Reference Link Style
    -> page loader
    -> WC Support
-----------------------------------*/

/*Inputs CSS*/

.nmsf-wrapper input[type=text]:focus,
.nmsf-wrapper select:focus,
.nmsf-wrapper textarea:focus {
    color: #3c4d62;
    background-color: #fff;
    border-color: #6576ff;
    outline: 0;
    box-shadow: 0 0 0 3px rgb(101 118 255 / 10%);
}

.nmsf-wrapper input[type=text],
.nmsf-wrapper select,
.nmsf-wrapper textarea {
    display: block;
    width: 100%;
    height: calc(2.125rem + 2px) !important;
    padding: .4375rem 1rem;
    font-size: .8125rem;
    font-weight: 400;
    line-height: 1.25rem !important;
    color: #3c4d62;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #dbdfea;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.nmsf-wrapper textarea {
    min-height: 105px;
    max-height: 105px;
}

.nmsf-wrapper table .nmsf-field-desc {
    display: block;
    font-size: 13px;
    font-weight: 400;
    margin-top: 10px;
    font-style: normal;
    color: #666;
}

/*Tooltip CSS*/

.nmsf-tooltip-wrapper .nmsf-tooltip-box {
    max-width: 375px !important;
    white-space: inherit !important;
}

.nmsf-wrapper .nmsf-tooltip i {
    margin-top: 1px;
    color: #323552d1;
    font-size: 21px;
    margin-left: 2px;
    cursor: help !important;
}

/*Checboxes Style*/

.nmsf-switcher-checkbox span {
    height: 1.6em;
    left: 0;
    background: #C0CCDA;
    -webkit-border-radius: 0.8em;
    border-radius: 0.8em;
    display: inline-block;
    position: relative;
    top: 6px;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    width: 3em;
    cursor: pointer;
}

.nmsf-switcher-checkbox span:before {
    display: block;
    content: '';
    height: 1.4em;
    position: absolute;
    width: 1.4em;
    background-color: #fff;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    left: 0.1em;
    top: 0.1em;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.nmsf-switcher-checkbox>input[type="checkbox"] {
    display: none;
}

.nmsf-switcher-checkbox>input[type="checkbox"][disabled]+span {
    cursor: not-allowed;
    background-color: #D3DCE6;
}

.nmsf-switcher-checkbox>input[type="checkbox"]:checked+span {
    background-color: #6576ff;
}

.nmsf-switcher-checkbox>input[type="checkbox"]:checked+span:before {
    left: 50%;
}

.nmsf-fancy-checkbox>input:first-child {
    position: absolute!important;
    opacity: 0;
    margin: 0;
    background-color: #787878;
    border-radius: 50%;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    display: block;
    width: 22px;
    height: 22px;
    outline: none;
    transform: scale(2);
    -ms-transform: scale(2);
    transition: opacity .3s, transform .3s;
}

.nmsf-fancy-checkbox>input:first-child {
    background-color: #e91e63;
}

.nmsf-fancy-checkbox>label {
    padding-left: 29px!important;
    min-height: 22px;
    line-height: 22px;
    display: inline-block;
    position: relative;
    vertical-align: top;
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
}

.nmsf-fancy-checkbox>input:first-child:checked+label::before {
    background-color: #6576ff;
    border-color: #6576ff;
}

.nmsf-fancy-checkbox>input:first-child+label::before {
    content: "";
    display: inline-block;
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid #787878;
    border-radius: 3px;
    margin-left: -29px;
    box-sizing: border-box;
}

.nmsf-fancy-checkbox>input[type=checkbox]:first-child:checked+label::after {
    width: 8px;
    height: 14px;
    transform: translate(7px, 2px) rotate( 45deg);
    -ms-transform: translate(7px, 2px) rotate(45deg);
}

.nmsf-fancy-checkbox>input:first-child:checked+label::after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    width: 7px;
    height: 10px;
    border: solid 2px #fff;
    border-left: none;
    border-top: none;
    transform: translate(7.75px, 4.5px) rotate( 45deg);
    -ms-transform: translate(7.75px, 4.5px) rotate(45deg);
    box-sizing: border-box;
}

/*CSS Editor*/

.nmsf-css-editor-style {
    font-size: 0;
    white-space: nowrap;
    float: left;
    display: inline-block;
    margin-bottom: 6px;
    margin-right: 4px;
}

.nmsf-css-editor-style span {
    border-right-color: #ccc;
    width: auto;
    display: inline-block;
    min-width: 16px;
    padding: 4px 5px;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    text-shadow: 0 1px 0 #fff;
    background-color: #eee;
    border: 1px solid #dbdfea;
    float: left;
}

.nmsf-css-editor-style span i {
    background-image: inherit !important;
    width: inherit;
    display: inline-block;
    height: inherit;
    font-size: 20px;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
    font-weight: 700;
}

#nmsf-page .nmsf-css-editor-input {
    width: 53px !important;
    text-align: center;
    border-left: 0 !important;
    height: 30px !important;
    margin-bottom: 0;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    margin-left: 0;
    padding-top: 2px !important;
    padding-bottom: 5px !important;
    float: left;
    margin-top: 0;
    display: block;
    line-height: 20px !important;
    padding: 0 8px !important;
    box-shadow: 0 0 0 transparent !important;
    background-color: #fff;
    color: #32373c;
    font-size: 10px;
    font-weight: 700 !important;
    min-height: unset;
}

.nmsf-css-editor-wrapper .pd-0 {
    padding: 0!important;
}

.nmsf-css-editor-wrapper select {
    padding-left: 7px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 24px!important;
}

.nmsf-css-editor-wrapper .color-group {
    margin-left: 7px !important
}

/*Admin Settings Panel*/


.nmsf-wrapper .nmsf-tabs-content div {
    padding: 15px 20px 15px 40px;
    margin-bottom: 10px;
    color: #cdcdcd;
    background: rgba(28, 31, 63, .9);
    /*background: #3F51B5;*/
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    font-weight: 700;
    transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

.nmsf-wrapper .nmsf-tabs-content div:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.nmsf-wrapper .nmsf-tabs-content div span.nmsf-tabs-dot {
    height: 10px;
    width: 10px;
    position: absolute;
    top: 20px;
    left: 15px;
    background-color: #cdcdcd;
    border-radius: 100%;
    transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

.nmsf-wrapper .nmsf-tabs-content div.active span.nmsf-tabs-dot {
    background-color: #FBC02D;
    left: 0;
    height: 100%;
    width: 3px;
    top: 0;
    border-radius: 0;
}

.nmsf-wrapper .nmsf-tabs-content div.active {
    color: #FBC02D;
    padding: 15px 20px 15px 20px;
}

.nmsf-cols {
    box-sizing: border-box;
    display: inline-block;
    min-height: 1px;
    vertical-align: top;
}

div.nmsf-panels-area {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: 0.5s all cubic-bezier(0.075, 0.82, 0.165, 1);
    margin-left: 30px;
}

div.nmsf-panels-area .nmsf-panels-content {
    display: none;
    transform: translateX(50px);
    list-style: none;
    transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
    animation: fadeIn 0.8s;
}

div.nmsf-panels-area>div.active {
    transition-delay: 0.3s;
    z-index: 2;
    display: block;
    transform: translateX(0px);
    transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

div.nmsf-panels-area .nmsf-panels-content p {
    margin: 0;
}

@keyframes fade_in_show {
    0% {
        opacity: 0;
        transform: scale(0)
    }

    100% {
        opacity: 1;
        transform: scale(1)
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.nmsf-panels-content-inner {
    display: flex;
    flex-wrap: wrap;
}

.nmsf-panels-content-inner label.nmsf-label {
    order: 1;
    display: block;
    padding: 8px 10px;
    margin-right: 2px;
    cursor: pointer;
    font-weight: bold;
    transition: background ease 0.2s;
    border: 1px solid #c3c4c7;
    background: #dcdcde;
}

.nmsf-panels-content-inner .nmsf-panel-settings-area {
    order: 99;
    flex-grow: 1;
    width: 100%;
    display: none;
}

.nmsf-panels-content-inner input[type=radio] {
    display: none;
}

.nmsf-panels-content-inner input[type=radio]:checked+label {

    border-bottom: 1px solid #f0f0f1;
    background: #f0f0f1;
    color: #000;
}

.nmsf-panels-content-inner input[type=radio]:checked+label+.nmsf-panel-settings-area {
    display: block;
}

@media (max-width: 45em) {
    .nmsf-panels-content-inner label.nmsf-label {
        width: 100%;
        margin-right: 0;
        margin-top: 0.2rem;
    }
}

.nmsf-panel-table {
    width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
}

.nmsf-panel-table td,
.nmsf-panel-table th {
    padding-left: 0px;
}

.nmsf-panel-table th {
    text-align: left;
    width: 45%;
}

.nmsf-panel-desc {
    margin-top: 10px;
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
}

.nmsf-header-area,
.nmsf-footer-area {
    text-align: right;
    padding: 10px 10px;
    background-color: #dadcdd00;
    margin-bottom: 7px;
    margin-top: 7px;
}

.nmsf-header-area .row,
.nmsf-footer-area .row {
    align-items: center;
}

.nmsf-header-area h3,
.nmsf-footer-area h3 {
    text-align: left;
}

/*Reference Link Style*/

.nmsf-ref-area>a {
    position: relative;
}

.nmsf-ref-area a {
    cursor: pointer;
    text-decoration: none;
    margin-right: 15px;
}

.nmsf-ref-area>a:hover:before {
    visibility: visible;
    transform: scaleX(1);
}

.nmsf-ref-area {
    display: block;
    margin-top: 10px;
}

.nmsf-wrapper i.fa {
    font-style: inherit;

}

/*page loader*/

#nmsf-page-loader {
    position: fixed;
    top: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    background-color: #33333394;
    z-index: 10000000;
    opacity: 0.4;
    filter: alpha(opacity=40);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nmsf-spinner {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-color: transparent;
    border: 5px solid #fff;
    border-top: 5px solid #1c1f3fe6;
    border-bottom: 5px solid #1c1f3fe6;
    -webkit-animation: 1s spin linear infinite;
    animation: 1s spin linear infinite;
}

@-webkit-keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}


/*WC Support*/

.woocommerce table.form-table th label {
    display: inline-block !important;
}

.nmsf-css-editor-select select {
    width: auto !important;
}

#nmsf-page+p.submit {
    display: none;
}

.woocommerce table.form-table {
    table-layout: inherit !important;
}

/*Porto Theme Support*/

.nmsf-css-editor-wrapper .row>div {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.nmsf-wrapper .wp-picker-container input[type="text"] {
    width: 4rem !important;
    height: auto !important;
}

.nmsf-section-type h3 {
    color: #1d2327;
    font-size: 1.3em;
    margin: 1em 0;
}

.nmsf-hint-area {
    display: block;
    color: #808080;
    margin-top: 3px;
}

.nmsf-hint-area span {
    color: #514a4ae8;
    font-weight: 700;
}

.nmsf-wrapper .nmsf-css-editor-typo .nmsf-css-editor-input {
    width: 70px !important;
}

.nmsf-panel-table .row {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/*badge CSS*/

.nmsf-wrapper .badge {
    display: inline-block;
    padding: .25em .4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.nmsf-wrapper .badge-dark {
    color: #fff;
    background-color: #343a40;
}
.ppom-is-locked-section{
    opacity: 0.7;
}
.ppom-is-locked-field .ppom-notice-upsell{
    font-style: italic;
    font-weight: 500;
}
.ppom-is-locked-panel .ppom-notice-upsell, .ppom-is-locked-field .ppom-notice-upsell {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-left-width: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
    border-left-color: #72aee6;
    padding: 12px;
    margin-top: 15px;
}
.ppom-is-locked-panel .nmsf-panel-desc, .ppom-is-locked-panel .nmsf-panel-table, .ppom-is-locked-field > * > *:not(.ppom-notice-upsell){ opacity: 0.6; cursor: not-allowed; pointer-events: none; }
.ppom-is-locked-panel input,
.ppom-is-locked-field input,
.ppom-is-locked-field select,
.ppom-is-locked-panel select{   cursor: not-allowed;
    pointer-events: none; }

h3.ppom-section-heading {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    margin: 0;
    font-size: 0.95em;
    color: #1d2327;
}

.ppom-status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72em;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1.6;
    white-space: nowrap;
}

.ppom-badge-active {
    background: #e6f9ed;
    color: #1a7a40;
    border: 1px solid #b4e8c5;
}

.ppom-badge-inactive {
    background: #f2f2f2;
    color: #888;
    border: 1px solid #d0d0d0;
}

.ppom-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #6576ff;
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
    margin-right: 4px;
}

.ppom-rest-url-block {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 6px;
    flex-wrap: wrap;
}

.ppom-rest-url-input {
    flex: 1;
    min-width: 200px;
    background: #f0f0f1 !important;
    border: 1px solid #ddd !important;
    color: #3c434a !important;
    font-family: monospace;
    font-size: 0.85em !important;
    cursor: default;
}

.ppom-api-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #6576ff;
    text-decoration: none;
    font-weight: 500;
}

.ppom-api-guide-link:hover {
    color: #4a5be0;
    text-decoration: underline;
}

.ppom-endpoint-group {
    border-top: 1px solid #f0f0f1;
}

.ppom-endpoint-group-label {
    display: block;
    font-weight: 700;
    color: #8c8f94;
    margin-bottom: 4px;
}

.ppom-endpoint-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    flex-wrap: wrap;
    justify-content: space-between;
}

.ppom-method-badge {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    min-width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.ppom-method-get {
    background: #e6f9ed;
    color: #1a7a40;
    border: 1px solid #b4e8c5;
}

.ppom-method-post {
    background: #fff3e0;
    color: #b85d00;
    border: 1px solid #ffd699;
}

.ppom-endpoint-path {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 12px;
    color: #3c434a;
    font-family: monospace;
}

.ppom-endpoint-desc {
    color: #514b4b;
    font-size: 12px;
    font-weight: 500;
}

.ppom-endpoint-auth {
    font-size: 13px !important;
    width: 13px !important;
    height: 13px !important;
    color: #8c8f94;
    flex-shrink: 0;
}

.ppom-password-field-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ppom-password-field-wrap input[type="password"],
.ppom-password-field-wrap input[type="text"] {
    flex: 1;
    min-width: 0;
}

.ppom-eye-toggle .dashicons,
.ppom-copy-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.ppom-copy-btn.ppom-copied {
    color: #1a7a40;
}

.ppom-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    line-height: 1;
}

.ppom-toggle > input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

.ppom-toggle-track {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background: #c0ccda;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.ppom-toggle-track::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.ppom-toggle > input:checked + .ppom-toggle-track {
    background: #6576ff;
}

.ppom-toggle > input:checked + .ppom-toggle-track::before {
    transform: translateX(18px);
}

.ppom-toggle > input:disabled + .ppom-toggle-track {
    opacity: 0.5;
    cursor: not-allowed;
}

.ppom-toggle > input:focus-visible + .ppom-toggle-track {
    outline: 2px solid #6576ff;
    outline-offset: 2px;
}

.ppom-toggle-label {
    font-size: 13px;
    color: #3c4d62;
    font-weight: 400;
}

.ppom-is-locked-panel .ppom-toggle,
.ppom-is-locked-field .ppom-toggle {
    pointer-events: none;
}

.nmsf-panel-table.form-table {
    border-collapse: separate;
    border-spacing: 0;
}

/* Spacer row between cards */
.ppom-card-spacer-row > td {
    height: 16px;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Card header row */
.ppom-card-header-row > td.nmsf-section-type {
    border: 1px solid #e2e4e7;
    border-bottom: 1px solid #e2e4e7;
    border-radius: 6px 6px 0 0;
    padding: 0 !important;
    background: #fff;
}

/* Card with no body rows — full border radius */
.ppom-card-header-row.ppom-card-no-body > td.nmsf-section-type {
    border-bottom: 1px solid #e2e4e7;
    border-radius: 6px;
}

/* Card body rows — left / right border only */
.ppom-card-body-row > th {
    border-left: 1px solid #e2e4e7;
    background: #fff;
    padding: 10px 10px 10px 16px !important;
}
.ppom-card-body-row > td {
    border-right: 1px solid #e2e4e7;
    background: #fff;
    padding: 10px 16px 10px 10px !important;
}

.ppom-available-endpoints-row > th {
    border-left: 1px solid #e2e4e7;
    border-bottom: 1px solid #e2e4e7;
    border-radius: 0 0 0 6px;
    background: #fff;
    padding: 10px 10px 10px 16px !important;
}
.ppom-available-endpoints-row > td {
    border-right: 1px solid #e2e4e7;
    border-bottom: 1px solid #e2e4e7;
    border-radius: 0 0 6px 0;
    background: #fff;
    padding: 10px 16px 10px 10px !important;
}

.ppom-card-title-row {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ppom-card-title {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.ppom-card-title-text {
    font-weight: 600;
    font-size: 1em;
    flex: 1;
}

.ppom-card-desc {
    margin: 4px 0 0 36px;
    font-size: 0.82em;
    color: #6c757d;
    font-weight: 400;
}

/* Collapse toggle button */
.ppom-card-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 3px;
    color: #8c8f94;
    line-height: 1;
    border-radius: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

.ppom-card-toggle:hover {
    background: #f0f0f1;
    color: #1d2327;
}

.ppom-card-toggle .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
    display: block;
}

.ppom-card-toggle[aria-expanded="false"] .dashicons {
    transform: rotate(180deg);
}

.ppom-endpoints-panel {
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    font-size: 12px;
}

.ppom-endpoints-panel-header {
    display: flex;
    justify-content: flex-end;
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f1;
    background: #fafafa;
}

.ppom-endpoint-group {
    border-top: 1px solid #f0f0f1;
    padding: 4px 10px 6px;
}

.ppom-endpoint-group:first-of-type {
    border-top: none;
}

.ppom-endpoint-group-label {
    display: block;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.05em;
    color: #3e3e3e;
    text-transform: uppercase;
    margin-bottom: 2px;
    padding: 4px 0 2px;
}

.ppom-endpoint-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    flex-wrap: wrap;
    justify-content: space-between;
}

.ppom-endpoint-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.ppom-endpoint-right {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6c757d;
    font-size: 11px;
    flex-shrink: 0;
}
