/**********************************
 *   PPOM Form Design CSS   *
 **********************************/

/*---------------------------------
    1- PPOM Fields CSS
    2- Helper Icon With Desciption CSS
    3- Tabs CSS
    4- Checkbox Design CSS
    5- Media Queries
    6- Basic Settings Section CSS
    7- Existin Meta Section CSS
    8- Bulk Quantity Addon CSS
    9- NM Plugins Template CSS
    10- PPOM Model CSS
    11- Wordpress 5.3.1 CSS
    12- Bootstrap 4.0.0 beta issues fixes
-----------------------------------*/

/*
    1- PPOM Fields CSS
*/

.ppom-admin-wrap {
    margin: 10px 20px 0 2px;
}

.ppom-sortable-handle {
    cursor: move;
}

.ppom-dataname-reader {
    font-size: 17px;
}

.ppom-helper-icon i {
    margin-top: 0px;
    color: #666;
    font-size: 21px;
    margin-left: 2px;
    cursor: help !important;
}
.ppom-wrapper .table thead th{
    vertical-align: middle;
}

.ppom-fields-name-model .ppom-modal-body ul li {
    width: 32%;
    /*background-color: #d6d3da !important;*/
    background-color: #fff !important;
    color: #0c7fa8;
    margin: 1px;
    margin-left: 4px;
    text-align: center;
    font-size: 13px !important;
    cursor: pointer;
    border-radius: unset !important;
    position: relative;
    /*height: 40px;*/
    border: 1px solid #f9570094 !important;
    display: inline-block !important;
    box-shadow: 10px 10px 5px #f2e8e8a1;
    -webkit-box-shadow: 10px 10px 5px #f2e8e8a1;
    -moz-box-shadow: 10px 10px 5px #f2e8e8a1;
}

.ppom-fields-name-model .ppom-modal-body ul li i {
    color: #0c7fa8;
}

.ppom-fields-name-model .ppom-modal-body ul li:hover {
    box-shadow: 0 0.5em 0.5em -0.4em var(--hover);
    text-decoration: none;
    color: white !important;
    /*background-color: #0d008ab5 !important;*/
    background-color: #F95700FF !important;

    box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
}

.ppom-fields-name-model .ppom-modal-body ul li span {
    float: left;
    margin-left: 6px;
}

.ppom-fields-name-model .ppom-modal-body ul li .ppom-fields-icon {
    font-size: 18px;
    color: #556068;
}

.ppom-fields-name-model .ppom-modal-body ul li .ppom-fields-icon i {
    display: block;
}

.ppom-thead-bg {
    background-color: #313350;
    color: #FFFFFF;
}

.ppom-thead-bg th.ppom-checkboxe-style {
    filter: brightness(0) invert(1);
}

#ppom-all-select-products-head-btn + span {
    color: white;
}
button[data-modal-id="ppom_fields_model_id"],
button.ppom-react-field-modal-open {
    margin-left: -0.75rem;
}
#ppom-all-select-products-foot-btn + span {
    color: white;
}

.ppom_field_table tbody {
    font-size: 12px;
}

.ppom-fields-list-table-wrapper {
    overflow-x: auto;
}

.ppom-fields-list-table-wrapper .tablenav {
    height: auto;
    margin: 8px 0;
}

.ppom-fields-list-table-wrapper .tablenav .actions {
    padding: 0;
}

.ppom-fields-list-table-wrapper .ppom-submit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ppom_field_table .column-order {
    width: 36px;
    text-align: center;
}

.ppom_field_table .column-cb {
    width: 36px;
}

.ppom_field_table .column-status,
.ppom_field_table .column-required {
    width: 85px;
}

.ppom_field_table .column-type {
    width: 110px;
}

.ppom_field_table .column-actions {
    white-space: nowrap;
}

.ppom_field_table td.column-actions {
    display: flex;
    gap: 6px;
}

/* WP 7.0 bumps the `.button` line-height and breaks the actions column row height — pin it. */
.ppom_field_table td.column-actions .button {
    line-height: 2.15384615;
}

.ppom-delete-field.button {
    color: #b32d2e;
    border-color: #b32d2e;
}

.ppom-delete-field.button:hover,
.ppom-delete-field.button:focus {
    color: #fff;
    background: #b32d2e;
    border-color: #8a1f20;
}

.ppom-delete-field.button:focus {
    box-shadow: 0 0 0 1px #8a1f20;
    outline: 2px solid transparent;
}

.ppom-fields-tablenav .alignleft.actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ppom_remove_field.button {
    color: #b32d2e;
    border-color: #b32d2e;
}

.ppom_remove_field.button:hover,
.ppom_remove_field.button:focus {
    color: #fff;
    background: #b32d2e;
    border-color: #8a1f20;
}

.ppom_remove_field.button:focus {
    box-shadow: 0 0 0 1px #8a1f20;
    outline: 2px solid transparent;
}

.ppom_remove_field.button:disabled,
.ppom_remove_field.button[disabled] {
    color: #b32d2e !important;
    border-color: #b32d2e !important;
    background: #fff !important;
    opacity: 0.5;
}

.ppom_field_table .column-placeholder {
    width: 18%;
}

.ppom_field_table .ppom-sortable-handle {
    display: inline-block;
    color: #787c82;
    line-height: 1;
    vertical-align: middle;
    cursor: move;
}

.ppom_field_table tbody tr {
    cursor: default;
}

.ppom_field_table.ppom-is-sorting,
.ppom_field_table.ppom-is-sorting thead,
.ppom_field_table.ppom-is-sorting tbody,
.ppom_field_table.ppom-is-sorting tfoot {
    display: revert;
}

.ppom_field_table.ppom-is-sorting tr {
    display: table-row;
}

.ppom_field_table.ppom-is-sorting tr > th,
.ppom_field_table.ppom-is-sorting tr > td {
    display: table-cell;
}

tr.ui-sortable-helper {
    display: table-row !important;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba( 0, 0, 0, 0.12 );
}

tr.ui-sortable-helper > th,
tr.ui-sortable-helper > td {
    display: table-cell !important;
}

.ppom_field_table .button .dashicons {
    line-height: 1.5;
}

#ppom_fields_id,
#ppom_fields_id .inside {
    position: unset;
}

.ppom-req-field-id {
    margin-right: 12px;
    color: red;
}

.ppom-main-field-wrapper {
    background-color: #ebeeef;
    padding: 11px;
}

.ppom-main-field-wrapper .table>thead>tr>th {
    vertical-align: top;
}

ul.ppom-options-container li {
    padding: 3px !important;
    margin: 2px !important;
    background: #0202028c;
}

.ppom-adjust-box-height {
    min-height: 105px;
    max-height: 105px;
}

.ppom-condition-style-wrap p {
    font-size: 15px;
    margin: 0px;
}

/*.ppom-slider select.form-control {*/

/*    height: 34px !important;*/

/*}*/

ul.ppom-options-container li {
    padding: 3px !important;
    margin: 2px 0px 7px !important;
    background: #ececec8a;
    border-bottom: 1px solid #00640099;
    border-top: 1px solid #00640091;
}

.ppom-options-container .dashicons-move {
    margin-top: 5px;
    color: #000025;
    cursor: move;
}

.ppom-uploader-img-title {
    margin-left: 20px;
    color: black;
    font-weight: 700;
}

.ppom-uploader-img-center .dashicons-admin-media {
    margin-top: 2px !important;
    margin-right: 10px;
    font-size: 28px;
}

.ppom-meta-card-block {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    background-color: #f2f5f9;
}

.btn-yellow {
    color: #fff;
    background-color: #f0ad4e;
    border-color: #eea236;
}

.ppom-nm-plugins {
    float: right;
}

.ppom-cancle-import-export-wrap {
    margin-top: 7px;
    margin-right: 7px;
}

@media (min-width: 992px) {
    .ppom-slider .row>div {
        display: unset;
        vertical-align: top;
        padding-left: 15px;
        padding-right: 0;
    }
}

@media (max-width: 992px) {
    .ppom-slider .row>div {
        display: block;
    }
}

/*
    2- Helper Icon With Desciption CSS
*/

#ppom_tooltip {
    font-family: Ubuntu, sans-serif;
    font-size: 0.875em;
    text-align: center;
    text-shadow: 0 1px rgba( 0, 0, 0, .5);
    line-height: 1.5;
    color: #fff;
    background: -webkit-linear-gradient( top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.88));
    background: -moz-linear-gradient( top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.88));
    background: -ms-radial-gradient( top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.88));
    background: -o-linear-gradient( top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.88));
    background: linear-gradient( top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.88));
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border-top: 1px solid #fff;
    -webkit-box-shadow: 0 3px 5px rgba( 0, 0, 0, .3);
    -moz-box-shadow: 0 3px 5px rgba( 0, 0, 0, .3);
    box-shadow: 0 3px 5px rgba( 0, 0, 0, .3);
    position: absolute;
    z-index: 10024;
    padding: 15px;
    overflow: visible;
    pointer-events: none;

}

#ppom_tooltip:after {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #333;
    border-top-color: rgba( 0, 0, 0, .7);
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    margin-left: -10px;
}

#ppom_tooltip.top:after {
    border-top-color: transparent;
    border-bottom: 10px solid #333;
    border-bottom-color: rgba( 0, 0, 0, .6);
    top: -20px;
    bottom: auto;
}

#ppom_tooltip.left:after {
    left: 10px;
    margin: 0;
}

#ppom_tooltip.right:after {
    right: 10px;
    left: auto;
    margin: 0;
}

/*
    3- Tabs CSS
*/

.ppom-tabs-header {
    margin-bottom: 16px;
    border-bottom: 1px solid #a29494;
}

.ppom_handle_fonts_family_tab textarea,
.ppom_handle_custom_fonts_tab textarea,
.ppom_handle_vm_row_tab textarea {
    min-height: 206px;
}

.ppom-tabs .ppom-tabs-label {
    display: inline-block;
    margin: 0 0 -1px;
    padding: 15px 25px;
    font-weight: 600;
    text-align: center;
    color: #bbb;
    border: 1px solid transparent;
}

.ppom-tabs .ppom-tabs-label:before {
    font-family: fontawesome;
    font-weight: normal;
    margin-right: 10px;
    content: '\f1cb';
}

.ppom-tabs .ppom-tabs-label:hover {
    color: #888;
    cursor: pointer;
}

.ppom-tabs .ppom-active-tab {
    color: #555;
    border: 1px solid #a29494;
    border-top: 2px solid #f95700;
    border-bottom: 1px solid #fff;
}

.ppom-control-all-fields-tabs {
    display: none;
}


/*
    4- Checkbox Design CSS
*/

.ppom-checkboxe-style input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.ppom-checkboxe-style input[type="checkbox"]+span {
    color: #000;
}

.ppom-checkboxe-style input[type="checkbox"]+span:before {
    font: 16pt FontAwesome;
    content: '\00f096';
    display: inline-block;
    margin-right: 3px;
}

.ppom-checkboxe-style input[type="checkbox"]:checked+span:before {
    content: '\00f046';
}

.ppom-checkboxe-style input[type="checkbox"]:focus+span:before {
    outline: 1px dotted #aaa;
}

.ppom-checkboxe-style input[type="checkbox"]:disabled+span {
    color: #999;
}

.ppom-checkboxe-style input[type="checkbox"]:not(:disabled)+span:hover:before {
    text-shadow: 0 1px 2px #77F;
}


/*
    5- Media Queries
*/

@media screen and (max-width: 700px) {
    .ppom-fields-name-model .ppom-modal-body ul li {
        width: 48%
    }
}

@media screen and (max-width: 420px) {
    .ppom-fields-name-model .ppom-modal-body ul li {
        width: 100%
    }
}

@media screen and (max-width: 650px) {
    .ppom-tabs .ppom-tabs-label {
        font-size: 0;
    }
    .ppom-tabs .ppom-tabs-label:before {
        margin: 0;
        font-size: 18px;
    }
}

@media screen and (max-width: 400px) {
    .ppom-tabs .ppom-tabs-label {
        padding: 15px;
    }
}


/*
    6- Basic Settings Section CSS
*/

.ppom-basic-setting-section textarea {
    min-height: 140px;
    max-height: 140px;
}

.ppom-manage-fields-topbar {
    padding-bottom: 9px;
    border-bottom: 2px solid #f957006e;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ppom-wrapper h1.ppom-heading-style {
    font-size:23px;
    display: inline;
    /*font-size: 30px;*/
}

.ppom-wrapper .CodeMirror {
    height: 200px;
}

/*.CodeMirror pre {*/

/*    padding: 0 33px !important;*/

/*}*/

.cm-s-default span.cm-property {
    color: red !important;
}


/*
    7- Existin Meta Section CSS
*/


/* Field Groups list-table toolbar: turn the top tablenav strip into a flex row
   so our toolbar can stretch and "Add Group" can sit at the right end. */
.ppom-existing-meta-wrapper .tablenav.top {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* WP's `.tablenav .tablenav-pages` ships with `margin: 0 0 9px` and
   `float: right`. We keep its 9px bottom margin (preserves WP's intended
   gap above the table) but match it on the toolbar divs so all flex
   children share the same baseline under cross-axis centering. */
.ppom-existing-meta-wrapper .tablenav.top > .alignleft {
    float: none;
    margin-bottom: 9px;
}

.ppom-existing-meta-wrapper .tablenav.top .tablenav-pages {
    float: none;
}

.ppom-listtable-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.ppom-listtable-actions .button,
.ppom-listtable-actions .button:hover,
.ppom-listtable-actions .button:focus {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.ppom-listtable-actions .button-primary {
    margin-left: auto;
}

.ppom-listtable-actions .button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

/* "Attach to Products" trigger in the table — keep the WP button look without
   the inherited admin-area link underline. */
a.ppom-products-modal,
a.ppom-products-modal:hover,
a.ppom-products-modal:focus {
    text-decoration: none;
}

#ppom-meta-table .dashicons,
.dashicons-before:before {
    line-height: unset;
}

.ppom-product-table-header {
    margin: 0px 0px 10px 0px;
}

.ppom-product-count-span {
    font-weight: 600;
}

.ppom-product-count-span span {
    font-size: 19px;
}


/*
    8- Bulk Quantity Addon CSS
*/

.ppom-bulk-quantity-wrapper {
    background: #ffc5c536;
}

.ppom-bulk-quantity-wrapper .table-content {
    padding: 20px;
}

.ppom-bulk-quantity-wrapper .remove {
    color: red;
}

.ppom-bulkqty-adjust-cross {
    display: flex;
}

.ppom-bulkqty-adjust-cross i {
    margin-right: 6px;
    margin-top: 8px;
}

.ppom-bulk-quantity-wrapper .remove:hover {
    cursor: pointer;
}

.ppom-bulkquantity-qty-wrap {
    display: flex;
    margin: 0px 0px 10px 0px;
}

.ppom-bulkquantity-variation-wrap {
    display: flex;
    margin: 0px 0px 10px 11px;
}

.ppom-bulkquantity-variation-wrap input,
.ppom-bulkquantity-qty-wrap input {
    margin-left: 7px;
}

.ppom-bulk-action-wrap {
    display: flex;
}

@media screen and (max-width: 480px) {
    .ppom-bulk-quantity-wrapper .ppom-bulkquantity-qty-wrap,
    .ppom-bulk-quantity-wrapper .ppom-bulkquantity-variation-wrap {
        display: block !important;
        margin: 0px 0px 9px 0px !important;
    }
    .ppom-bulk-action-wrap {
        display: block !important;
    }
    .ppom-bulkquantity-variation-wrap input,
    .ppom-bulkquantity-qty-wrap input {
        margin-left: 0px !important;
        margin-top: 6px !important;
    }
}

.ppom-edit-bulk-json {
    display: none;
}



/*
    9- NM Plugins Template CSS
*/

.ppom-nm-plugins-wrapper .ppom-nm-card-block {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    background-color: #D9EDF8;
    margin-bottom: 8px;
    border: 1px solid #5ef39a;
}

.ppom-nm-plugins-wrapper .ppom-nm-card-block h3 {
    border-bottom: 2px solid #0efc2b7a;
    padding-bottom: 3px;
    font-family: roboto;
    font-weight: 600;
    font-size: 19px;
}

.ppom-nm-plugins-wrapper .ppom-nm-card-block .ppom-card-header {
    padding: 1px 0px 0px 0px;
    margin-bottom: 0;
    text-align: center;
}

.ppom-nm-plugins-wrapper .ppom-nm-card-block .ppom-card-body {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 5px;
}

.ppom-nm-plugins-wrapper .ppom-nm-card-block .ppom-card-footer {
    padding: 0px 10px 6px 0px;
    text-align: right;
}

.ppom-nm-plugins-wrapper .ppom-nm-logo {
    width: 30px;
    float: left;
    margin-right: 12px;
    margin-top: -2px;
}

/*
    10- PPOM Model CSS
*/

.ppom-modal-box {
    display: none;
    width: 60%;
    background: white;
    border-bottom: 1px solid #aaa;
    border-radius: 8px;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-clip: padding-box;
}

.ppom-modal-box:has( .ppom-modal-add-field ) {
    width: fit-content;
}

.ppom-modal-box {
    position: absolute;
    top: 30px;
    right: 0;
    left: 0;
    z-index: 1050;
    display: none;
    outline: 0;
    margin: 30px auto;
    overflow: auto;
}

.ppom-modal-box header {
    padding: 1.25em 1.5em;
    border-bottom: 1px solid #EFEFEF;
}

.ppom-modal-box header h3,
.ppom-modal-box header h4 {
    margin: 0;
}

.ppom-modal-box .ppom-modal-body {
    padding: 0;
    flex: 1;
}

#ppom-product-form .ppom-modal-body{

    background: #f0f0f1;
}
.ppom-modal-box .ppom-modal-body:not(.ppom-modal-add-field) {
    padding: 1em 2.5em;
}


.ppom-modal-box footer {
    background-color: #FAFAFA;
    padding: 1em;
    border-top: 1px solid #EFEFEF;
    text-align: right;
    box-shadow: 0px -8px 8px 0px #0000001A;

    position: relative;
    z-index: 1;
}

.ppom-overlay-meta {
    overflow: hidden;
}

.ppom-modal-overlay {
    filter: alpha(opacity=0);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 900;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3) !important;
}

#ppom-pre-loading {
    position: fixed;
    top: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    background-color: #fff;
    background-image: url('loader.gif');
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10000000;
    opacity: 0.4;
    filter: alpha(opacity=40);
    /* For IE8 and earlier */
}

table#ppom-meta-table.dataTable th:nth-of-type(4) {
    width: 60%;
}

@media screen and (max-width: 1500px) {
    table#ppom-meta-table.dataTable th:nth-of-type(4) {
        width: 50%;
    }
}

@media screen and (max-width: 1200px) {
    table#ppom-meta-table.dataTable th:nth-of-type(4) {
        width: 40%;
    }
}

@media screen and (max-width: 950px) {
    table#ppom-meta-table.dataTable th:nth-of-type(4) {
        width: 30%;
    }
}

/*
    11- Wordpress 5.3.1 CSS
*/

.ppom-existing-meta-wrapper td.ppom-admin-meta-actions-colunm a:hover {
    text-decoration: none;
    background: #2271b1;
    color: white;
}
.ppom-existing-meta-wrapper td.ppom-admin-meta-actions-colunm a {
    line-height: 26px !important;
    padding: 3px;
    border: none;
    background: none;
}

#ppom-product-table tbody tr input[type="checkbox"],
[data-metatype="is_customfont"] {
    width: 16px !important;
    height: 16px !important;
    margin: -4px 4px 0 0;
}

#ppom-product-table tbody tr input[type=checkbox]:checked:before,
[data-metatype="is_customfont"]:checked:before {
    width: 21px !important;
    margin: -3px 0 0 -4px !important;
}

select {
    max-width: 100% !important;
}

.ppom-slider input[type="date"] {
    padding: 6px 12px !important;
}


.paired-pricematrix .option-price,
.paired-pricematrix .option-title,
.paired-pricematrix .option-label,
.paired-pricematrix .option-id {
    width: 20%;
    margin: 3px;
}

/*Hide Prices from fields*/

/*[data-meta-id="price"] {
    */

/*    display: none !important;*/

/*}*/

/*
    12- Bootstrap 4.0.0 beta issues fixes
*/

.ppom-wrapper .row:after {
    clear: both;
    display: table;
    content: " ";
}

.ppom-wrapper .row {
    display: block;
}

.row.ppom-condition-style-wrap {
    display: flex;
    align-items: center;
}

@media (min-width: 992px) {
    .col-md-6 {
        width: 50% !important;
    }
}

@media (min-width: 992px) {
    .col-md-1,
    .col-md-10,
    .col-md-11,
    .col-md-12,
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-5,
    .col-md-6,
    .col-md-7,
    .col-md-8,
    .col-md-9 {
        float: left;
    }
}

@media (min-width: 768px) {
    .col-sm-1,
    .col-sm-10,
    .col-sm-11,
    .col-sm-12,
    .col-sm-2,
    .col-sm-3,
    .col-sm-4,
    .col-sm-5,
    .col-sm-6,
    .col-sm-7,
    .col-sm-8,
    .col-sm-9 {
        float: left;
    }
}

.wp-core-ui select {
    -webkit-appearance: none;
    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% !important;
}

/*@media (min-width: 576px) {
    */

/*    .ppom-wrapper .col-sm-6 {*/

/*        max-width: 100% !important;*/

/*    }*/

/*}*/

.ppom-wrapper .btn {
    cursor: pointer !important;
}

.ppom-wrapper .list-group {
    display: block !important;
}

.ppom-wrapper .btn-primary {
    color: #fff !important;
}




/*PPOM New Tabs*/

.ppom-admin-tabs-css {
    display: flex;
    flex-wrap: wrap;
}

.ppom-admin-tabs-css label.ppom-tab-label {
    order: 1;
    display: block;
    padding: 12px 30px;
    margin-right: 0.2rem;
    cursor: pointer;
    background: #DCDCDE;
    font-weight: bold;
    transition: background ease 0.2s;
    margin: 0 !important;
}

.ppom-admin-tabs-css .ppom-admin-tab-content {
    order: 99;
    flex-grow: 1;
    width: 100%;
    display: none;
    padding: 1rem;
    background: #fff;
}

.ppom-admin-tabs-css input[type=radio] {
    display: none;
}

.ppom-admin-tabs-css input[type=radio]:checked+label {
    background: #fff;
    border-top: 2px solid #f95700;
}

.ppom-admin-tabs-css input[type=radio]:checked+label+.ppom-admin-tab-content {
    display: block;
}

@media (max-width: 45em) {
    .ppom-admin-tabs-css .ppom-admin-tab-content,
    .ppom-admin-tabs-css label.ppom-tab-label {
        order: initial;
    }

    .ppom-admin-tabs-css label.ppom-tab-label {
        width: 100%;
        margin-right: 0;
        margin-top: 0.2rem;
    }
}

.ppom-color-picker-cloner .wp-picker-container .wp-color-result.button {
    margin: 0 !important
}

.ppom-color-picker-cloner .wp-picker-container .wp-picker-holder {
    z-index: 2;
    position: absolute;
}

.ppom-color-picker-cloner .wp-picker-container .wp-picker-input-wrap {
    margin-top: 8px;
}

.wp-picker-container input[type=text].wp-color-picker {
    width: 4.5rem;
}

ul.ppom-options-container li input[type="text"] {
    height: 34px;
}

ul.ppom-options-container li label {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}


/*Inactive/active CSS*/

.onoffswitch {
    position: relative;
    width: 50px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.onoffswitch--busy {
    opacity: 0.6;
    pointer-events: none;
}

.onoffswitch-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.onoffswitch-label {
    display: block !important;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #999999;
    border-radius: 50px;
}

.onoffswitch-inner {
    display: block;
    width: 200%;
    margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}

.onoffswitch-inner:before,
.onoffswitch-inner:after {
    display: block;
    float: left;
    width: 50%;
    height: 20px;
    padding: 0;
    line-height: 20px;
    font-size: 11px;
    color: white;
    font-family: Trebuchet, Arial, sans-serif;
    font-weight: bold;
    box-sizing: border-box;
}

.onoffswitch-inner:before {
    content: "ON";
    padding-left: 5px;
    background-color: #34C279;
    color: #FFFFFF;
}

.onoffswitch-inner:after {
    content: "OFF";
    padding-right: 5px;
    background-color: #DB1515;
    color: #FFFFFF;
    text-align: right;
}

.onoffswitch-switch {
    display: block;
    width: 24px;
    /*margin: -1.5px;*/
    background: #FFFFFF;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 32px;
    border: 2px solid #999999;
    border-radius: 50px;
    transition: all 0.3s ease-in 0s;
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-switch {
    right: 0px;
}

/*ppom addon models*/

/* Font */

/*@import url('https://fonts.googleapis.com/css?family=Quicksand:400,700');*/

/* Design */

.ppom_addons_model {
    color: #272727;
    background-color: #ecf9ff;
    font-family: 'Quicksand', serif;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
    padding: 2rem;
    margin: -8px !important;
}

.ppom_addons_model_heading {
    text-align: center;
}

.ppom_addons_model_cards {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ppom_addons_model_heading_button_display {
    display: flow-root;
}

.ppom-admin-wrap .ppom_addons_model_card_btn {
    padding: 6px;
    font-weight: 400;
    text-decoration: none !important;
    cursor: pointer;
    background-color: #F95700FF;
    /*float: right;*/
    color: #fff !important;
    margin-left: 2px;
}

.ppom_addons_model_card_btn a {
    color: #000000;
    text-decoration: none !important;
    /*outline-color: #f1a22cad;*/
}

.ppom_addons_model_card_btn a:hover {
    /*color:#00A0C6; */
    color: brown;
    text-decoration: none !important;
}

.ppom_addons_model_cards_item {
    display: flex;
    padding: 1rem;
    width: 50%;
}

@media only screen and (max-width: 600px) {
    .ppom_addons_model_cards_item {
        width: 100% !important;
    }
}

.ppom_addons_model_card {
    /*background: linear-gradient(to bottom left, #EF8D9C 60%, #FFC39E 95%);*/
    background: #fff;
    /*border-radius: 0.75rem;*/
    box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    min-height: 240px;
    width: 100%;

    overflow: hidden;
}

.ppom_addons_model_card_content {
    padding: 1rem;
}

.ppom_addons_model_card_content p {
    min-height: 135px;
}

a[data-modal-id="ppom-nm-plugins-modal"] {
    display: none !important;
}

.ppom_addons_model_card_title {
    color: #000;
    font-weight: 600 !important;
    text-transform: capitalize;
    margin: 0px !important;
    float: left;
}

.ppom_addons_model_card_text {
    color: #000;
    margin-bottom: 1.25rem;
    font-weight: 400;
}


/*New Addons List View*/

.ppom-admin-addons-header {
    padding: 4px;
    min-height: 90px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0px 40px;
    justify-content: space-between;
    border-bottom: 2px solid #F95700FF;
}

.ppom-admin-addons-header-logo {
    display: flex;
    align-items: center;
}

.ppom-admin-addons-header-logo img {
    margin-right: 12px;
    margin-top: -2px;
    width: 34px;
}

.ppom-admin-addons-actions {
    text-align: center;
    display: flex;
}

/* Freemium */
.ppom-fields-name-model .ppom-modal-body ul li.locked span:not(.upsell-btn-wrapper) {
    opacity: 0.4;
    color:#000;
}

.ppom-fields-name-model .ppom-modal-body ul li.locked:hover {
    background: #fff !important;
    color:#000 !important;
}

.ppom-fields-name-model .ppom-modal-body ul li.locked i {
    color:#000;
}

.ppom-fields-name-model .upsell-btn-wrapper {
    background: #28A745;
    padding: 2px 6px 2px 6px;
    top: 0;
    position: absolute;
    right: 0px;
    border-radius: 3px;
}

.ppom-fields-name-model .upsell-btn-wrapper a {
    color: white;
    font-size: 12px;
}

.ppom-cancle-import-export-btn {
    font-size:24px;
    text-decoration: none !important;
    line-height: 16px;
}

.ppom-cancle-import-export-btn .dashicons {
    font-size:24px;
    color: #605f5f;
}

.ppom-top-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    line-height: 35px;
}

.wp-core-ui .ppom-top-nav .dashicons {
    margin-right: 4px;
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.ppom-top-nav-link {
    display: inline-flex;
    align-items: center;
}

.ppom-top-nav .button {
    display: inline-flex;
    align-items: center;
}

.ppom-manage-fields-topbar .ppom-top-nav a:is(:link, :visited, :hover, :focus, :active) {
    text-decoration: none;
}

#ppom-upgrade-to-pro.button {
    background: #28A745;
    border-color: #28A745;
    color: #fff;
}

#ppom-upgrade-to-pro.button:hover,
#ppom-upgrade-to-pro.button:focus {
    background: #218838;
    border-color: #218838;
    color: #fff;
    box-shadow: 0 0 0 1px #218838;
}

.ppom_addons_model_cards span.badge {
    font-size:13px;
    float:right;
    background-color: #2c8de0;
}

.ppom-addon-type.badge {
    background-color: #1d7497;
}

.ppom-admin-cl-wrapper {
    margin: 15px 30px;
}

.ppom-admin-cl-wrapper .ui-accordion .ui-accordion-header {
    padding: 15px 0;
    font-weight: bold;
    font-size: 16px;
}

.ppom-admin-cl-wrapper ul {
    list-style-type: disc;
    font-size: 14px;
    padding-left: 15px;
}

.ppom-admin-cl-wrapper .badge-features {
    background-color: #6EB77A;
}

.ppom-admin-cl-wrapper .badge-fixes {
    background-color: #EC7C7C;
}

.ppom-admin-cl-wrapper .badge-tweaks {
    background-color: #6BC2DD;
}

#ppom-admin-cl-header-wrapper {
    background: #fff;
}

#ppom-changelog-nav {
    list-style-type: none;
    display:flex;
    flex-direction: row;
    justify-content: flex-end;
}

#ppom-admin-changelog-header-top {
    padding: 15px 30px 0 0;
}

.ppom-admin-tabs-css .ppom-admin-tab-content .notice-info {
    margin: 10px 0;
    padding: 10px 5px;
}
.ppom-attach-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ppom-attach-container-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ppom-attach-container-item :is(label) {
    font-size: 120%;
    padding: 0;
}

.ppom-attach-container-item :is(summary) {
    font-size: 180%;
}

.ppom-attach-container-item summary {
    padding: 20px 0;
}

.ppom-attach-container-input {
    display: flex;
    flex-direction: column;
}


.ppom-attach-container-content {
    display: flex;
    flex-direction: column;
    gap: 5px;

    background-color: white;
    padding: 10px;
}

.ppom-attach-container-input .select2-container {
    flex: 1;
}

.ppom-attach-description {
    color: gray;
}

.ppom-attach-upsell {
    background-color: #FFD700;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    text-align: center;
}

a.ppom-attach-upsell-upgrade {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.ppom-attach-upsell-upgrade:hover {
    background-color: #45a049;
}


/* CSS for popup.js */
.ppom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.ppom-popup {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 500px;
    padding: 40px 50px 20px;
    text-align: center;
}

.ppom-popup-container {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 20px;
}

.ppom-popup-title {
    font-size: 1.5em;
    margin: 0;
    line-height: 1.3;

    color: #4caf50;
}

.ppom-popup-text {
    font-size: 1.4em;
    line-height: 1.3;
    margin: 0;
}

.ppom-popup-actions {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
}

.ppom-popup-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.3em;
    transition: background-color 0.3s ease;
    min-width: 110px;

    color: #fff;
    background-color: #4caf50;
}

.ppom-popup-actions button:hover {
    background-color: #4588a0;
}

.ppom-popup-actions .ppom-btn-cancel {
    background-color: #6c757d;
}

.ppom-popup-actions .ppom-btn-confirm {
    background-color: #ff0f0f;
}

.ppom-popup-actions .ppom-btn-confirm:hover {
    background-color: #ef6060;
}

.ppom-popup.ppom-error .ppom-popup-title {
    color: #f44336;
}

.ppom-popup.ppom-error .ppom-btn-confirm  {
    background-color: #f44336;
}

.ppom-hide {
    display: none;
}
.ppom-disabled-overlay {
    opacity: 0.6;
    pointer-events: none;
}

.ppom-wrapper label {
    cursor: auto;
    font-weight: 600;
}

.ppom-upsell-modal{
    text-align: center;
    width: 600px;
}
.ppom-upsell-modal .ppom-modal-body{
    position: relative;
    padding: 30px;
}
.ppom-upsell-modal button.close-model {
    position: absolute;
    right: 10px;
    top: 10px;
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 20px;
}

.ppom-upsell-modal .ppom-lock-icon {
    padding-bottom: 30px;
}

.ppom-upsell-modal .ppom-lock-icon .dashicons {
    width: 48px;
    height: 48px;
    font-size: 48px;
}

.ppom-upsell-modal p {
    font-size: 16px;
    text-align: left;
    padding-bottom: 10px;
    padding-top: 20px;
}

.ppom_handle_locked_conditional_field_repeater .form-group:first-child {
    opacity: 0.6;
}

.freemium-cfr-content .notice-info, .freemium-cfr-content .notice-info p {
    margin: 0;
}

.freemium-cfr-content .notice-info {
    border: none;
    border-left: 2px solid #E7632A;
}

a.ppom-repeater-learn-more, a.ppom-repeater-learn-more:hover {
    color: #E7632A;
    text-decoration: none;
}
a.ppom-repeater-learn-more:focus {
    box-shadow: 0 0 0 2px #E7632A;
}

.freemium-cfr-content a.btn-primary, .freemium-cfr-content a.btn-primary:hover {
    background: #E7632A !important;
    border-color: #E7632A !important;
}

.freemium-cfr-content a.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(231, 99, 42, 0.5) !important;
}

.freemium-cfr-content a.btn-secondary, .freemium-cfr-content a.btn-secondary:hover {
    background: none !important;
    color: #E7632A !important;
    border-color: #E7632A !important;
}

.freemium-cfr-content a.btn-secondary:focus {
    box-shadow: 0 0 0 0.2rem rgba(231, 99, 42, 0.5) !important;
}

.ppom_handle_locked_conditional_field_repeater .form-group {
    margin-left: 15px;
}
#ppom-lock-fields-upsell.ppom-upsell-modal h3 {
    color: #F00;
}

#ppom-lock-fields-upsell:before {
  content: "";
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
}
#ppom-lock-fields-upsell {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  margin: 0;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow: auto;
}
#ppom-lock-fields-upsell .ppom-modal-body {
  z-index: 10;
  background-color: #ffffff
}
.ppom-condition-clone-js .webcontact-rules:not(:last-child) select {
    margin-bottom: 0.5rem;
}
.ppom-condition-style-wrap .ppom-only-if, .ppom-condition-style-wrap .ppom-only-if + div {
    width: auto;
}
.ppom-condition-style-wrap .ppom-only-if + div .ppom-condition-visible-bound {
    width: 120px;
}
.ppom-admin-tabs-css .ppom-admin-tab-content .notice-info p {
    margin: 0;
}
header.ppom-modal-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    padding: 40px;
    padding-bottom: 20px;
}

/* ADD FIELD MODAL */
.ppom-fields-grid {
    display: grid;
    grid-template-columns: repeat( 3, 230px );
    gap: 15px;
}

.ppom-wrapper .ppom-field-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px;
    font-size: 12px;
    border-radius: 5px;
    border: 1px solid #0069DB;
    /* font-weight: bolder; */
    color: white;
    background-color: #027BFF;
}

.ppom-field-item .ppom-fields-icon i {
    width: 24px;
}

.ppom-wrapper .ppom-field-item.ppom-locked-field {
    font-weight: 400;
    color: #6C6F72;
    background-color: #FAFAFA;
    cursor: not-allowed;
    border-color: #EFEFEF;
}

.ppom-fields-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-height: 600px;
    scrollbar-color: #D8D8D8 white;
    padding-right: 20px;
}

.ppom-fields-sections::-webkit-scrollbar {
    background-color: white;
}

.ppom-fields-sections .ppom-fields-section-title h5 {
    font-weight: 600;
}

.ppom-fields-section {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.ppom-modal-add-field {
    display: flex;
    flex-direction: row;
}

.ppom-modal-shortcuts {
    margin: 0 0 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

.ppom-modal-shortcuts a {
    color: #32363B;
    background-color: #FAFAFA;
    padding: 8px 24px 8px 24px;
    border-radius: 999px;
    text-decoration: none;
}

.ppom-modal-shortcuts a:hover {
    background-color: #E5F1FF;
    text-decoration: none;
}

.ppom-search-container {
    position: relative;
    display: inline-block;
}

.ppom-search-container input {
    font-size: 15px;
    padding: 11px 18px 11px 18px;
    width: 230px;
    border-radius: 3px;
    border: 1px solid #EFEFEF;
    background-color: #FAFAFA;
}

.ppom-fields {
    flex: 1;
    padding: 20px;
    padding-right: 3px;
}

.ppom-fields:has(.ppom-fields-sections) {
    padding: 10px 10px 20px 40px;
    overflow-y: auto;
    overflow-x: hidden;
}

.ppom-search-container input::placeholder {
    color: #606060;
    font-weight: 400;
}
.ppom-search-container .ppom-search-icon  {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #ccc;
    pointer-events: none;
}

/* ADD FIELD MODAL UP-SELL SIDEBAR */

.ppom-sidebar-upsell {
    display: flex;
    flex-direction: column;

    width: 300px;
    background-color: #FAFAFA;
    padding: 20px;
}

.ppom-sidebar-upsell-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

.ppom-sidebar-upsell-header i {
    font-size: 29px;
    padding: 16px;
    background-color: #027BFF;
    width: unset;
    height: unset;
    border-radius: 999px;
    color: white;
}

.ppom-sidebar-upsell-header h2 {
    font-size: 22px;
    margin: 0;
}

.ppom-sidebar-upsell-content {
    margin-top: 5px;
}

.ppom-sidebar-upsell-content p {
    font-size: 15px;
    color: #47494B;
    line-height: 1.6;
}

.ppom-wrapper .cta-button {
    font-size: 16px;
    display: block;
    text-align: center;
    padding: 16px 24px 16px 24px;
    background-color: #28A745;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 40px;
}

.ppom-wrapper .cta-button:hover {
    color: white;
    background-color: #28A745;
    text-decoration: none;
}

.ppom-sidebar-upsell-features-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ppom-sidebar-upsell-features-grid div {
    display: flex;
    align-items: center;
    font-size: 15px;
}

.ppom-sidebar-upsell-features-grid div::before {
    content: "";
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11'><path d='M4.86209 10.2761L0.52875 5.94278C0.268411 5.68244 0.268411 5.26033 0.52875 4.99997L1.47154 4.05715C1.73188 3.79679 2.15401 3.79679 2.41435 4.05715L5.33349 6.97627L11.586 0.723819C11.8463 0.46348 12.2684 0.46348 12.5288 0.723819L13.4716 1.66663C13.7319 1.92697 13.7319 2.34908 13.4716 2.60945L5.8049 10.2761C5.54454 10.5365 5.12243 10.5365 4.86209 10.2761Z' fill='%23027BFF'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
    width: 14px;
    height: 11px;
    margin-right: 8px;
    vertical-align: middle;
}

.ppom-field-item .upsell-btn-wrapper a {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 80%;
    text-decoration: none;
}


/* UP-SELL TOOLTIP */

.upsell-tooltip {
    position: absolute;
    bottom: 75%;
    left: 50%;
    transform: translateX(-50%);
    background-color: black;
    color: white;
    max-width: 230px;
    width: max-content;
    padding: 7px 10px;
    border-radius: 5px;
    font-size: 13px;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upsell-tooltip a {
    color: white;
    font-weight: bolder;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.upsell-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

.ppom-field-item:hover .upsell-tooltip {
    visibility: visible;
    opacity: 1;
}

.ppom-attach-container-item .closed .dashicon-ppom-status:before{
    content: "\f343";
}
.ppom-attach-container-item  .dashicons.dashicons-lock{

    position: absolute;
    font-size: 110%;
}
.ppom-attach-container-item  .dashicons{
    font-size: 75%;
    vertical-align: unset;
}
.ppom-attach-container-item  .dashicon-ppom-status:before{
    content: "\f347";
}
.ppom-attach-container-item .postbox-header{
    cursor: pointer;
    padding: 10px 0 1px 10px;
}

.ppom-attach-container .ppom-settings-container {
    margin: 10px 0;
}
.ppom-fields-status-disabled .inside{
    cursor: not-allowed;
}
.ppom-fields-status-disabled .postbox-header ,
.ppom-fields-status-disabled .ppom-attach-container-input,
.ppom-fields-status-disabled .ppom-attach-description{
    opacity: 0.5;
}
.ppom-field-filter-pro-available{
    display: block;
    position: absolute;
    right: 20px;

}
.ppom-hide-element {
    display: none !important;
}

.ppom-invisible-element {
    visibility: hidden;
}

.ppom-between-input-container {
    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 10px;
}

.ppom-between-input-container span {
    font-size: 16px;
}

.ppom-upsell-condition {
    font-size: 16px;
    padding: 9px;
    display: flex;
    align-items: center;
}

.ppom-wrapper .btn .dashicons{
    line-height: initial;
}
.ppom-wrapper select.form-control{
    line-height: unset;
}
.ppom-wrapper select.form-control{
    line-height: unset;
}

.ppom-wrapper a.ppom-upsell-condition:hover{
    text-decoration: none;
}

/* PPOM Field Groups list table column widths — give the Meta summary
   most of the horizontal real estate, since each row lists every field's
   label/type/options. */
.ppom-existing-meta-wrapper .wp-list-table .column-id {
    width: 80px;
}

.ppom-existing-meta-wrapper .wp-list-table .column-name {
    width: 20%;
}

/* Meta carries the field-by-field summary, so give it ~2x the Name column
   and let it absorb any leftover space (the other columns are fixed). */
.ppom-existing-meta-wrapper .wp-list-table .column-meta {
    width: 40%;
    min-width: 320px;
}

.ppom-existing-meta-wrapper .wp-list-table .column-status {
    width: 85px;
}

.ppom-existing-meta-wrapper .wp-list-table .column-attach {
    width: 170px;
}

.ppom-disabled-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 3px;
    background: #f0f0f1;
    color: #646970;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

div.ppom-banner .themeisle-sale {
    margin: 0 0 10px 0;
}

.ppom-banner .themeisle-sale-title {
    font-size: 14px;
}

.ppom-banner .themeisle-sale .themeisle-sale-action a {
    text-decoration: none;
}

/* Save & Preview modal */
.ppom-live-preview-modal {
    width: min(1100px, 95vw);
    max-height: 90vh;
    overflow: hidden;
}

.ppom-live-preview-modal .ppom-modal-body {
    padding: 20px 24px;
    background: #f6f7f7;
}

.ppom-live-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.ppom-live-preview-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ppom-live-preview-title-wrap h3 {
    margin: 0;
}

.ppom-preview-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e5f1ff;
    color: #0550ae;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.ppom-preview-controls {
    margin-bottom: 12px;
}

.ppom-preview-product-control {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.ppom-preview-product-control label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.ppom-preview-select-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
}

/* Explicit row layout for the preview dropdown + Refresh (matches #ppom-live-preview-modal … > .ppom-preview-controls > div > div). */
#ppom-live-preview-modal .ppom-preview-product-control > .ppom-preview-select-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
}

/* Select2 uses width:100%; that must be 100% of this cell, not the full row, or Refresh wraps below. */
.ppom-preview-select-cell {
    flex: 1 1 0;
    min-width: 0;
}

.ppom-preview-select-cell .select2-container {
    max-width: 100%;
}

.ppom-preview-select-row .ppom-preview-refresh {
    flex-shrink: 0;
}

.ppom-wrapper .ppom-preview-refresh.btn,
#ppom-live-preview-modal .ppom-preview-refresh.btn {
    line-height: 1;
}

.ppom-preview-iframe-wrap {
    border: 1px solid #dcdcde;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

#ppom-live-preview-iframe {
    width: 100%;
    min-height: 62vh;
    border: 0;
    background: #fff;
}

.ppom-preview-notice {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-left: 4px solid;
    background: #fff;
}

.ppom-preview-notice p {
    margin: 0 0 8px;
}

.ppom-preview-notice-error {
    border-left-color: #d63638;
}

.ppom-preview-notice-warning {
    border-left-color: #dba617;
}

.ppom-preview-assignment-highlight {
    box-shadow: 0 0 0 3px rgba(2, 123, 255, 0.35);
}

.ppom-save-preview-tooltip-anchor {
    display: inline-block;
    cursor: default;
}

.ppom-save-preview-tooltip-anchor.ppom-save-preview-is-disabled {
    cursor: not-allowed;
}

.ppom-save-preview-inner {
    position: relative;
    display: inline-block;
}

/* Outline secondary next to solid primary “Save Fields”; disabled = flat neutral grey. */
.ppom-save-preview-tooltip-anchor:not(.ppom-save-preview-is-disabled) .ppom-save-and-preview.btn-outline-secondary {
    color: #50575e;
    border-color: #c3c4c7;
    background-color: #f6f7f7;
}

.ppom-save-preview-tooltip-anchor:not(.ppom-save-preview-is-disabled) .ppom-save-and-preview.btn-outline-secondary:hover {
    color: #1d2327;
    border-color: #8c8f94;
    background-color: #f0f0f1;
}

.ppom-save-preview-tooltip-anchor:not(.ppom-save-preview-is-disabled) .ppom-save-and-preview.btn-outline-secondary:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #fff, 0 0 0 2px #2271b1;
    outline: none;
}

.ppom-save-preview-tooltip-anchor.ppom-save-preview-is-disabled .ppom-save-and-preview.btn-outline-secondary {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 1;
    color: #787c82 !important;
    background-color: #f0f0f1 !important;
    border-color: #c3c4c7 !important;
    box-shadow: none;
}

/* Instant custom tooltip (hover passes through disabled button to .ppom-save-preview-inner). */
.ppom-save-preview-tooltip {
    position: absolute;
    z-index: 100050;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 6px;
    padding: 8px 10px;
    min-width: 230px;
    max-width: 280px;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 400;
    color: #fff;
    text-align: left;
    text-decoration: none;
    white-space: normal;
    background: #1d2327;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.ppom-save-preview-tooltip[hidden] {
    display: none !important;
}

.ppom-save-preview-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border: 6px solid transparent;
    border-top-color: #1d2327;
}

.ppom-admin-tabs-css .ppom-admin-tab-content .ppom-form-control {
    height: 38px;
    padding: 8px 12px;
    font-size: 14px;
}

.ppom-admin-tabs-css .ppom-admin-tab-content .form-group .row {
    align-items: center;
}

.ppom-badge {
    background: #f0f0f0;
    color: #333;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    margin-left: 4px;
    text-transform: uppercase;
}

.ppom-pro-badge {
    background: transparent;
    border: 1px solid #c45c1a;
    color: #c45c1a;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.ppom-editor-wrapper {
    position: relative;
}

.ppom-editor-wrapper.ppom-locked {
    position: relative;
}

.ppom-editor-wrapper.ppom-locked textarea {
    pointer-events: none;
    user-select: none;
    filter: blur(3px);
}

.ppom-locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 29, 48, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.ppom-lock-icon {
    background: #c45c1a1a;
    border: 2px solid #ff0000;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ppom-lock-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ppom-lock-subtext {
    color: #9ca3af;
    font-size: 14px;
}

.ppom-style-usage-example {
    margin-top: 10px;
}

.ppom-style-usage-example.ppom-locked-example {
    background: #f5f5f5c7;
    padding: 15px;
    border: 2px solid #c9c6c6;
    border-radius: 10px;
    pointer-events: none;
    height: 300px;
}

.ppom-js-example-code {
    width: 100%;
    min-height: 120px;
    font-family: monospace;
    font-size: 13px;
}

.ppom-style-usage-example .CodeMirror {
    height: 90px;
    border: 1px solid #2c3338;
    border-radius: 4px;
    margin: 10px 0;
}

.ppom-style-usage-example.css-example .CodeMirror {
    height: 120px;
}

.ppom-style-usage-example .CodeMirror-scroll {
    min-height: 120px;
}

.ppom-style-usage-example .CodeMirror-gutters {
    display: none;
}

.ppom-style-usage-example .CodeMirror-cursors {
    display: none !important;
}

.ppom-style-usage-example strong {
    text-transform: uppercase;
}

.ppom-info-icon {
    font-size: 16px;
    display: inline-flex;
    align-items: center;
}

/* ==========================================================================
   Quick Setup template-library wizard.

   Used by templates/admin/template-wizard.php — the modal that lets users
   pick a curated field-group template (or "Start from scratch") when
   creating a new field group. JS counterpart lives in
   js/admin/ppom-admin.js (search for "PPOM_Template_Wizard").
   ========================================================================== */
.ppom-template-wizard {
	max-width: 880px;
	width: 90vw;
	max-height: 88vh;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.ppom-template-wizard-header {
	padding: 16px 20px 12px;
	border-bottom: 1px solid #e2e8f0;
}
.ppom-template-wizard-title {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.3;
}
.ppom-modal-box.ppom-template-wizard .ppom-modal-body.ppom-template-wizard-body {
	padding: 1em 1.5em;
	overflow-y: auto;
	flex: 1 1 auto;
}
.ppom-template-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: 15px;
	margin: 0;
}
.ppom-template-wizard .ppom-template-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 0;
	min-height: 120px;
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	box-shadow: none;
}
.ppom-template-wizard .ppom-template-card:is(:hover, :focus-within) {
	border-color: #2271b1;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}
.ppom-template-card.is-busy {
	opacity: 0.6;
	pointer-events: none;
}
.ppom-template-card__inner {
	display: flex;
	flex-direction: column;
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 12px 14px;
	text-align: left;
	cursor: pointer;
	font: inherit;
	color: inherit;
	width: 100%;
	flex: 1 1 auto;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}
.ppom-template-card__inner:focus {
	outline: none;
}
.ppom-template-card__header {
	display: flex;
	align-items: center;
	width: 100%;
	margin: 0 0 8px;
}
.ppom-template-card__icon {
	font-size: 18px;
	color: #2271b1;
	line-height: 1;
	flex: 0 0 auto;
}
.ppom-template-card__header .ppom-template-card__pro-badge {
	margin-left: auto;
	flex: 0 0 auto;
}
.ppom-template-wizard :is(h3.ppom-template-card__title, .ppom-template-card__title) {
	margin: 0 0 6px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.3;
}
.ppom-template-wizard .ppom-template-card__description {
	margin: 0 0 0.5rem;
	font-size: 12px;
	line-height: 1.4;
	color: #475569;
}
.ppom-template-card--pro.ppom-template-card--locked .ppom-template-card__icon {
	color: #94a3b8;
}
.ppom-template-wizard .ppom-template-card--scratch {
	background: #f8fafc;
	border-color: #cbd5e1;
}
.ppom-template-wizard .ppom-template-card--scratch:is(:hover, :focus-within) {
	background: #f1f5f9;
	border-color: #2271b1;
}
.ppom-template-card--locked {
	background: #f8fafc;
}
.ppom-template-wizard .ppom-template-card--locked .ppom-template-card__inner {
	cursor: not-allowed;
}
.ppom-template-wizard .ppom-template-card--locked:is(:hover, :focus-within) {
	border-color: #cbd5e1;
	box-shadow: none;
}
.ppom-template-wizard .ppom-template-card--locked .ppom-template-card__title {
	color: #475569;
}
.ppom-template-wizard .ppom-template-card--locked .ppom-template-card__description {
	color: #64748b;
}
.ppom-template-card__pro-badge {
	display: inline-flex;
	align-items: center;
	background: #28A745;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.4px;
	padding: 1px 6px;
	border-radius: 3px;
	text-transform: uppercase;
	line-height: 1.4;
}
.ppom-template-card__upgrade-row {
	padding: 0 14px 10px;
}
.ppom-template-wizard .ppom-template-card__uses {
	margin: 0 0 6px;
	font-size: 11px;
	color: #94a3b8;
	font-style: italic;
	line-height: 1.4;
}
.ppom-template-card__upgrade {
	display: inline-block;
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	color: #2271b1;
	text-decoration: none;
}
.ppom-template-card__upgrade:is(:hover, :focus) {
	color: #135e96;
	text-decoration: underline;
}
.ppom-template-divider {
	display: flex;
	align-items: center;
	margin: 14px 0 10px;
	color: #94a3b8;
}
.ppom-template-divider::before,
.ppom-template-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e2e8f0;
}
.ppom-template-divider__label {
	padding: 0 10px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.ppom-template-wizard .ppom-template-wizard-footer {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 12px;
	padding: 10px 20px;
	border-top: 1px solid #e2e8f0;
	background: #fff;
	text-align: right;
	box-shadow: none;
}
@media (max-width: 720px) {
	.ppom-template-grid {
		grid-template-columns: 1fr;
	}
	:is(.ppom-template-wizard-header, .ppom-template-wizard-body, .ppom-template-wizard-footer) {
		padding-left: 14px;
		padding-right: 14px;
	}
}

/* Empty state — rendered by WP_List_Table::display_rows_or_placeholder() */
/* inside <tr class="no-items"><td colspan="N">…</td></tr>.                */
.ppom-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 64px 20px 72px;
}

.ppom-empty-state .ppom-empty-icon {
    font-size: 52px;
    width: 52px;
    height: 52px;
    color: #313350;
    opacity: 0.25;
    margin-bottom: 16px;
}

.ppom-empty-state .ppom-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #313350;
    margin: 0 0 10px;
}

.ppom-empty-state .ppom-empty-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    max-width: 420px;
    margin: 0 0 22px;
}

.ppom-empty-state .ppom-empty-cta.button-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
    text-decoration: none;
}

.ppom-empty-state .ppom-empty-cta.button-primary:hover,
.ppom-empty-state .ppom-empty-cta.button-primary:focus {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
    box-shadow: 0 2px 10px rgba(34, 113, 177, 0.4);
}
