.product-editor fieldset {
    width: fit-content;
}

.product-editor .dynamic_prices__h2 {
    display: inline-block;
    cursor: pointer;
}

.product-editor .dynamic_prices .lbl-toggle {
    display: inline-block;
    transform: translateY(-3px);
}

.product-editor .search-fieldset {
    border: 1px silver groove;
    border-radius: 3px;
    min-inline-size: min-content;
    display: inline-block;
    margin: 2px 0 10px;
    padding: 11px;
}

.product-editor .search__h2 {
    display: inline-block;
}

.selectTaxonomy {
    width: 250px;
}

.product-editor .button--plus,
.product-editor .button--minus {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.product-editor .button--plus  img,
.product-editor .button--minus  img {
    width: 18px;
    height: 18px;
}

.product-editor .button--minus {

}

.product-editor .reset_form {
    float: right;
}

.product-editor .selectTagsEdit {
    flex-grow: 2;
}

.product-editor .pe-help-tip {
    color: #666;
    display: inline-block;
    font-size: 1.1em;
    font-style: normal;
    height: 16px;
    line-height: 16px;
    position: relative;
    vertical-align: middle;
    width: 16px;
}
.product-editor .pe-help-tip::after {
    font-family: Dashicons;
    font-weight: 400;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    text-indent: 0px;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    text-align: center;
    content: "";
    cursor: help;
    font-variant: normal;
    margin: 0px;
}

.product-editor .notice-dismiss {
    text-decoration: none;
}

.product-editor .tablenav-pages .current {
    font-size: 16px;
}

.product-editor .pe-product-table {
    min-width: 1200px;
    border-collapse: collapse;
    border-radius: 4px;
    border-style: hidden;
    box-shadow: rgb(0 0 0 / 24%) 0px 3px 8px;
}

.product-editor .pe-product-table thead {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.product-editor .pe-product-table th.check-column-t label {
    font-size: 11px;
}

.product-editor .pe-product-table tr {
    height: 60px;
}

.product-editor .pe-product-table tbody tr:hover {
    background: #f9fbee !important;
}

.product-editor .pe-product-table .check-column-t {
    width: 5em;
    text-align: center;
    padding: 2px;
}

.product-editor .pe-product-table .col-id,
.product-editor .pe-product-table .col-status {
    width: 4em;
}

.product-editor .pe-product-table td {
    border-bottom: 1px solid #cadae8;
}

.product-editor .pe-product-table .editable {
    border: 1px dashed #b5c1fd;
    cursor: pointer;
    background: linear-gradient(
            0deg, rgba(243, 255, 243, 0) 0%, rgba(243, 255, 243, 0) 70%, rgb(255 255 255) 100%);
}

.product-editor .pe-product-table .pe-edit-box input[type="text"],
.product-editor .pe-product-table .pe-edit-box input[type="number"],
.product-editor .pe-product-table .pe-edit-box select {
    width: 100%;
}

.product-editor .pe-product-table .pe-edit-box .btn-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.product-editor .pe-product-table .pe-edit-box .button {
    margin-top: 2px;
    font-size: 11px;
}

.product-editor .pe-product-table input[type="checkbox"] {
    margin: 0;
}

.product-editor .pe-product-table tr > :nth-child(1),
.product-editor .pe-product-table tr > :nth-child(2) {
    text-align: center;
}

.product-editor .pe-product-table .td-name,
.product-editor .pe-product-table .td-price,
.product-editor .pe-product-table .td-regular-price,
.product-editor .pe-product-table .td-sale-price {
    font-weight: bold;
}

.product-editor .pe-product-table .variation-product td:nth-child(4) {
    font-weight: normal;
}

.product-editor table .variable-product {
    background-color: #edf0ff;
}

.product-editor table .simple-product {
    background-color: #ecf7ff;
}

.product-editor table .external-product {
    background-color: #ecfffa;
}

.product-editor .product-link {
    width: 16px;
    vertical-align: middle;
}

.product-editor .variation-product {
    background-color: #f1f1f1;
}

.product-editor input[type="search"] {
    min-width: 400px;
}

.product-editor .round_input,
.product-editor .precision_input,
.product-editor .precision_regular_price,
.product-editor .precision_sale_price {
    display: none;
}

.product-editor .precision_input {
    width: 50px
}

.product-editor .form-group {
    display: flex;
    align-items: center;
    margin: 3px auto;
}

.product-editor span.title {
    font-weight: bold;
    display: inline-block;
    min-width: 165px;
}

.product-editor .show-cols {
    float: left;
    margin: 8px 0 0 30px;
    user-select: none;
}

.product-editor .show-cols__link {
    text-decoration: underline;
    text-decoration-style: dashed;
    font-size: 1.1em;
    cursor: pointer;

}
.product-editor .show-cols__link.active {
    background: #7ea2e3;
    border-left: 1px solid #4677ff;
    text-decoration-style: solid;
    color: white;
    padding: 2px 1em;
}


.product-editor .show-cols__link.active + .show-cols__list {
    display: block;
    border-left: 1px solid #4677ff;
    padding-left: 1em;
}

/** loader */
.lds-dual-ring {

    display: none;
    position: fixed;
    left: calc( 50% - 46px );
    top: 50%;
    z-index: 99;
    border-radius: 10px;
}

.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid #5c1bdd;
    border-color: #006ef7 transparent #006ef7 transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/** end loader */

/** expand triangle */
.lbl-toggle {
    display: block;

    font-weight: bold;
    font-family: monospace;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-align: center;
    color: #000;
    cursor: pointer;
    border-radius: 7px;
    transition: all 0.25s ease-out;
}

.lbl-toggle:hover {
    color: #0008ff;
}

.lbl-toggle::before {
    content: ' ';
    display: inline-block;

    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid currentColor;

    vertical-align: sub;
    transform: translateY(-2px);

    transition: transform .2s ease-out;
}

.expand + .lbl-toggle::before,
.active .lbl-toggle::before {
    transform: rotate(90deg) translateX(-3px);
}

.expand.lbl-toggle {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

/** end expand triangle */

.ajax-info {
    display: none;
    position: fixed;
    top: 27%;
    left: calc(50% - 120px);
    z-index: 100;
    background: #ffffffd4;
    font-size: 19px;
    min-width: 250px;
    min-height: 100px;
    border-radius: 3px;

    box-shadow: rgb(60 64 67 / 30%) 0px 1px 2px 0px, rgb(60 64 67 / 15%) 0px 1px 3px 1px;
}

.ajax-info .inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    min-height: inherit;
}

.info-box {
    width: 500px;
    position: absolute;
    right: 0px;
    color: #7e7e7e;
}

.product-editor #overlay_datepicker {
    pointer-events: all;
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
}

/* Help button animation */
.btn--shockwave {
    animation: shockwaveJump 1s ease-out 3;
}

@keyframes shockwaveJump {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.08);
    }
    50% {
        transform: scale(0.98);
    }
    55% {
        transform: scale(1.02);
    }
    60% {
        transform: scale(0.98);
    }
    100% {
        transform: scale(1);
    }
}

/** Custom select */
.sp_control_box {
    min-height: 2em;
    height: auto;
}

.sp_control_box p {
    line-height: 1;
    font-size: 1em;
}

.product-editor .sp_container {
    margin: 0 1px;
}

.product-editor .sp_input {
    border-radius: 3px;
    height: 30px;
}

/** Datepicker */
.ui-datepicker {
    z-index: 11!important;
}

/* =====================================================
   UX/UI 2.4 — Tabs, Floating bar, Quick filters, etc.
   ===================================================== */

/* ── Tab navigation ── */
.pe-tabs-nav {
    display: flex;
    gap: 4px;
    margin: 14px 0 0;
    border-bottom: 2px solid #dcdcde;
    flex-wrap: wrap;
}
.pe-tab-btn {
    background: #f6f7f7;
    border: 2px solid #dcdcde;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #646970;
    cursor: pointer;
    position: relative;
    top: 2px;
    transition: background .12s, color .12s;
}
.pe-tab-btn:hover { background: #fff; color: #1d2327; }
.pe-tab-btn.active {
    background: #fff;
    border-color: #dcdcde;
    border-bottom-color: #fff;
    color: #2271b1;
    z-index: 1;
}
.pe-tab-btn .pe-tab-lock { font-size: 10px; margin-left: 4px; opacity: .65; }
.pe-tab-panel-body { padding-top: 6px; }

/* ── Floating action bar ── */
.pe-float-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1d2327;
    color: #fff;
    padding: 13px 28px;
    display: none;
    align-items: center;
    gap: 14px;
    z-index: 99999;
    box-shadow: 0 -4px 24px rgba(0,0,0,.45);
    animation: peSlideUp .2s ease;
}
@keyframes peSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.pe-float-bar.visible { display: flex; }
.pe-float-count {
    font-weight: 700;
    font-size: 14px;
    background: rgba(255,255,255,.14);
    padding: 6px 16px;
    border-radius: 20px;
    white-space: nowrap;
}
.pe-float-apply {
    background: #2271b1 !important;
    border-color: #2271b1 !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 9px 22px !important;
    font-size: 14px !important;
    border-radius: 5px !important;
}
.pe-float-apply:hover { background: #135e96 !important; border-color: #135e96 !important; }
.pe-float-clear {
    background: none;
    border: 1px solid rgba(255,255,255,.35);
    color: rgba(255,255,255,.8);
    border-radius: 4px;
    padding: 7px 14px;
    cursor: pointer;
    font-size: 12px;
    transition: border-color .15s, color .15s;
}
.pe-float-clear:hover { border-color: rgba(255,255,255,.75); color: #fff; }
.pe-float-spacer { flex: 1; }
.pe-float-tab-hint {
    font-size: 12px;
    color: rgba(255,255,255,.5);
    white-space: nowrap;
}
.pe-float-upgrade {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: #333 !important;
    padding: 9px 20px;
    border-radius: 20px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    transition: transform .15s, box-shadow .15s;
}
.pe-float-upgrade:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(255,183,0,.4);
    color: #333 !important;
}

/* ── Quick filter chips ── */
.pe-quick-filters {
    display: flex;
    gap: 8px;
    margin: 12px 0 6px;
    flex-wrap: wrap;
    align-items: center;
}
.pe-quick-filters-label {
    font-size: 11px;
    color: #8c8f94;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.pe-qf-chip {
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #2c3338;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .12s, border-color .12s, color .12s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pe-qf-chip:hover, .pe-qf-chip.active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff !important;
}

/* ── Search collapsible ── */
.pe-search-header {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}
.pe-search-header .search__h2 { margin: 0; }
.pe-search-toggle-btn {
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
    color: #646970;
    transition: background .12s;
}
.pe-search-toggle-btn:hover { background: #dcdcde; }
.pe-search-body { margin-top: 10px; }
.pe-search-body.pe-collapsed { display: none; }
.pe-active-filters-badge {
    background: #2271b1;
    color: #fff;
    border-radius: 10px;
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 700;
    display: none;
}
.pe-active-filters-badge.visible { display: inline-block; }

/* ── Row highlight on select ── */
.pe-product-table tr.pe-row-selected td {
    background-color: #e8f0fe !important;
}
.pe-product-table tr.pe-row-selected {
    box-shadow: inset 2px 0 0 #2271b1;
}

/* ── Copy promo button ── */
.pe-copy-btn {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    border-radius: 4px;
    padding: 2px 9px;
    font-size: 10px;
    cursor: pointer;
    margin-left: 5px;
    vertical-align: middle;
    transition: background .15s;
    font-weight: 600;
}
.pe-copy-btn:hover { background: rgba(255,255,255,.3); }
.pe-copy-btn.pe-copied { background: #00a32a; border-color: #00a32a; }

/* ── Editable cell pencil hint ── */
.product-editor .pe-product-table td.editable {
    position: relative;
}
.product-editor .pe-product-table td.editable:hover::after {
    content: '✎';
    position: absolute;
    top: 3px;
    right: 5px;
    font-size: 11px;
    color: #2271b1;
    opacity: .7;
}

/* ── Selection counter badge next to checkbox header ── */
.pe-sel-count {
    display: none;
    background: #2271b1;
    color: #fff;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 10px;
    font-weight: 700;
    margin-top: 3px;
}
.pe-sel-count.visible { display: block; }

/* ── Bulk fieldset cleaner layout ── */
#bulk-changes fieldset { padding-bottom: 10px; }
#bulk-changes fieldset h2 { margin-bottom: 0; }