/* ==========================================================================
   Flexible Fees Manager for WooCommerce - Admin Styles
   ==========================================================================
   
   Main parent class: .flexible-fees-manager-for-woocommerce-admin
   Alternative scope: .post-type-ffmw (WordPress post type class)
   
   All styles are scoped to prevent conflicts with other plugins/themes.
   ========================================================================== */

/* Main parent class wrapper */
.flexible-fees-manager-for-woocommerce-admin,
.post-type-ffmw {
	/* Scoped styles - only apply within plugin context */
}

.post-type-ffmw #wpcontent a {
    text-decoration: none !important;
}

/* Common CSS */
body.post-type-ffmw.post-new-php {
    background-color: #f6f6f6;
}

.post-type-ffmw #wpcontent h1,
.post-type-ffmw #wpcontent h2,
.post-type-ffmw #wpcontent h3,
.post-type-ffmw #wpcontent p {
    margin: 0 ;
}

.post-type-ffmw #wpcontent h1,
.post-type-ffmw #wpcontent h2,
.post-type-ffmw #wpcontent h3 {
    color: #3A3A3A;
}

.post-type-ffmw #wpcontent h2,
.post-type-ffmw #wpcontent h3,
.post-type-ffmw #wpcontent p {
    font-weight: 500
}

.post-type-ffmw #wpcontent h1 {
    font-size: 2rem !important;
    font-weight: 700 !important;
}

.post-type-ffmw #wpcontent h2 {
    font-size: 1.5rem !important;
}

.post-type-ffmw #wpcontent h3 {
    font-size: 1rem !important;
}

.post-type-ffmw p {
    font-size: 1.125rem;
    color: #888;
}
/* .fee_condition_card h3 {
    color: #888888;
} */
.post-type-ffmw .button {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.2rem 1rem;
    border-radius: 6.25rem;
    background-color: #5441ea;
    color: #fff;
    border: none;
}
.post-type-ffmw .button.bg_black {
    background-color: #262626;
}
.post-type-ffmw .button.bg_red {
    color: #dc2626;
    background-color: transparent;
    border: 0.063rem solid #dc2626;
}
.post-type-ffmw .button.bg_black:hover,
.post-type-ffmw .button.bg_black:focus {
    background-color: #262626;
}
.post-type-ffmw .button.bg_red:hover,
.post-type-ffmw .button.bg_red:focus {
    color: #fff;
    background-color: #dc2626;
    transition: all 0.3s ease-in-out;
}
.post-type-ffmw .button:hover,
.post-type-ffmw .button:focus {
    background-color: #5441ea;
    color: #fff;
    outline: none;
    box-shadow: none;
}
.post-type-ffmw .button.cancel_button,
.post-type-ffmw .button.cancel_button:focus,
.post-type-ffmw .button.cancel_button:hover {
    background-color: transparent;
    color: #3a3a3a;
    border: 0.063rem solid #d1d1d1 !important;
    outline: none;
    box-shadow: none;
}
.post-type-ffmw .button.delete_button,
.post-type-ffmw .button.delete_button:hover,
.post-type-ffmw .button.delete_button:focus {
    background-color: #dc2626;
    color: #fff;
    outline: none;
    box-shadow: none;
}
.post-type-ffmw .bg_dot {
    background-image: url(../images/body-bg.png);
    width: 100%;
    height: 100%;
}

/* WordPress CSS */
.post-type-ffmw #wpcontent {
    background-color: #fff;
    padding-left: 0;
}
.post-type-ffmw #wpcontent #wpbody #screen-meta-links,
.post-type-ffmw #wpcontent #wpbody h1.wp-heading-inline,
.post-type-ffmw #wpcontent #wpbody a.page-title-action,
.post-type-ffmw #wpcontent #wpbody .subsubsub,
.post-type-ffmw #wpcontent #wpbody #posts-filter .search-box {
    display: none;
}
.post-type-ffmw #wpcontent #wpbody #posts-filter .tablenav .alignleft {
    display: none;
}
.post-type-ffmw #wpcontent #wpbody #posts-filter .tablenav .alignleft.bulkactions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.post-type-ffmw #wpcontent #wpbody #posts-filter .tablenav .alignleft.bulkactions select {
    border: 0.063rem solid #e2e8f0;
    border-radius: 999px;
    padding: 0rem 0.75rem;
    background-color: #fff;
    color: #0f172a;
    box-shadow: 0 0.25rem 0.5rem rgba(15, 23, 42, 0.05);
}
.post-type-ffmw #wpcontent #wpbody #posts-filter .tablenav .alignleft.bulkactions .button {
    border-radius: 999px;
    padding: 0 1.25rem;
    background-color: #5441ea;
    color: #fff;
    border: none;
}
/* .post-type-ffmw #wpcontent #wpbody #posts-filter .tablenav .alignleft.bulkactions .button:hover {
    background-color: #000000;
} */
.post-type-ffmw #wpcontent #wpbody #posts-filter .tablenav.bottom .alignleft.bulkactions {
    margin-top: 0.5rem;
}
.post-type-ffmw #wpcontent #wpbody #posts-filter .tablenav {
    margin-top: 1.125rem;
    padding: 0 1.5rem;
}
.post-type-ffmw #wpcontent #wpbody #posts-filter .wp-list-table.widefat {
    box-shadow: none;
}
.post-type-ffmw.post-new-php #wpcontent {
    padding-left: 0;
}
.post-type-ffmw.post-new-php #wpcontent #wpbody .wrap {
    margin: 0;
}
.post-type-ffmw.post-new-php #wpcontent #wpbody .wrap #poststuff {
    padding: 0;
}
.post-type-ffmw #wpcontent #wpbody .wrap #poststuff #post-body.columns-2,
.post-type-ffmw.post-new-php #wpcontent #wpbody .wrap #poststuff #post-body.columns-2 {
    margin-right: 0;
}
.post-type-ffmw.post-new-php #postbox-container-1,
.post-type-ffmw.post-new-php #titlediv,
.post-type-ffmw #postbox-container-1,
.post-type-ffmw #titlediv {
    display: none;
}
.post-type-ffmw a:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}
.post-type-ffmw.post-new-php .postbox {
    box-shadow: none !important;
    border: none !important;
}

/* Custom header for ffmw custom post type */
.post-type-ffmw .header_wrapper {
    padding: 2.5rem 0 0 0;
}
.post-type-ffmw .header_wrapper .header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.post-type-ffmw .header_wrapper .header .header_label {
    background-color: #eef1ff;
    border: 0.063rem solid #a2adff;
    padding: 0.375rem 0.75rem 0.625rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    gap: 0.5rem;
    margin: -0.313rem;
}
.post-type-ffmw #wpcontent .header_label p {
    font-size: 0.75rem;
    font-weight: 500;
    color: #5441ea;
    margin: 0;
}
.post-type-ffmw #wpcontent .header .header_label a {
    font-size: 0.75rem;
    font-weight: 500;
    color: #5441ea;
    padding: 0.25rem 0.375rem 0.25rem 0.5rem;
    background-color: #fff;
    border: 0.063rem solid #a2adff;
    border-radius: 6.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-type-ffmw #wpcontent .header .header_label .close_button {
    padding: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-type-ffmw #wpcontent .header .nav_shadow {
    width: 27%;
    height: 1.438rem;
    background-color: rgba(197, 206, 255, 0.60);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -0.75rem 0 -0.625rem;
    filter: blur(0.5rem);
    mix-blend-mode: multiply;
	display: none;
}
.post-type-ffmw #wpcontent .header .nav_tab_wrapper {
    padding: 0.625rem 1.25rem 0.625rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 0.063rem solid #e7e7e7;
    border-radius: 6.25rem;
    width: 31.25rem;
    box-shadow: 0 0 0.125rem 0 #00000040;
    position: relative;
}
.post-type-ffmw .header_wrapper .header .nav_tab_wrapper .nav_tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}
.post-type-ffmw .header_wrapper .header .nav_tab_wrapper .nav_tab a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #3a3a3a;
}
.post-type-ffmw .header_wrapper .header .nav_tab_wrapper .nav_tab .nav_tab_link {
    font-size: .875rem;
    font-weight: 500;
    color: #666;
    padding: .5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background-color: #fff0;
    border-radius: 6.25rem;
    text-decoration: none;
    transition: all 0.2s;
}
.post-type-ffmw .header_wrapper .header .nav_tab_wrapper .nav_tab .nav_tab_link--active {
    color: #5441ea;
    font-weight: 600;
    background-color: #eef1ff;
    gap: .5rem;
    background-color: #eef1ff;
    border-radius: 6.25rem;
}
.post-type-ffmw .header_wrapper .header .nav_tab_wrapper .nav_tab .nav_tab_link--active img {
    filter: invert(33%) sepia(87%) saturate(2446%) hue-rotate(230deg) brightness(92%) contrast(101%);
}
.post-type-ffmw .nav_heading {
    margin: 2.5rem 0 0;
    display: flex;
    align-items: start;
    justify-content: space-between;
    padding: 0 1.5rem;
}
.post-type-ffmw .nav_heading > div:first-child {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.post-type-ffmw .nav_heading > div:first-child h2 {
    margin: 0;
}
.post-type-ffmw .nav_heading .search_wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.post-type-ffmw .nav_heading .search_wrapper img {
    position: absolute;
    top: 50%;
    left: 1.375rem;
    transform: translate(-50%, -50%);
}
.post-type-ffmw .nav_heading .search_wrapper input {
    padding: 0.2rem 1.25rem 0.2rem 2.375rem;
    border-radius: 6.25rem;
    width: 22.813rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #212529;
	border: 1px solid #D1D1D1;
}
.post-type-ffmw .nav_heading .search_wrapper input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 0.25rem #5441ea36 !important;
}
.post-type-ffmw .header_wrapper .tab_wrapper {
    margin-top: 1.125rem;
    padding: 0 1.5rem;
}
.post-type-ffmw .header_wrapper .tab_wrapper .tab_filters {
    display: flex;
    align-items: start;
    margin: 0;
    padding: 0;
    gap: 2rem;
    border-bottom: 0.063rem solid #d1d1d1;
}
.post-type-ffmw .header_wrapper .tab_wrapper .tab_filters li.statusbar_item {
    margin-bottom: 0;
}
.post-type-ffmw .header_wrapper .tab_wrapper .tab_filters li.statusbar_item a.statusbar_link {
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #888;
    padding-bottom: 0.875rem;
}
.post-type-ffmw .header_wrapper .tab_wrapper .tab_filters li.statusbar_item a.statusbar_link--active {
    color: #5441ea;
    border-bottom: 0.188rem solid #5441ea;
}
.post-type-ffmw .header_wrapper .tab_wrapper .tab_filters li.statusbar_item a.statusbar_link span.statusbar_count {
    width: 1.125rem;
    height: 1.125rem;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6.25rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-type-ffmw .header_wrapper .tab_wrapper .tab_filters li.statusbar_item a.statusbar_link--active span.statusbar_count {
    background-color: #5441ea !important;
}
.post-type-ffmw .header_wrapper .tab_wrapper .tab_filters li.statusbar_item--all a.statusbar_link span.statusbar_count {
    background-color: #5441ea;
}
.post-type-ffmw .header_wrapper .tab_wrapper .tab_filters li.statusbar_item--active a.statusbar_link span.statusbar_count {
    background-color: #16a34a;
}
.post-type-ffmw .header_wrapper .tab_wrapper .tab_filters li.statusbar_item--inactive a.statusbar_link span.statusbar_count {
    background-color: #3a3a3a;
}
.post-type-ffmw .header_wrapper .tab_wrapper .tab_filters li.statusbar_item--trash a.statusbar_link span.statusbar_count {
    background-color: #dc2626;
}

/* Page content when no post is available in ffmw custom post type */
.post-type-ffmw .tab_detail_wrapper .tab_detail_div {
    padding: 3.75rem 0 3.75rem;
    text-align: center;
}
.post-type-ffmw .tab_detail_wrapper .tab_detail_div .tab-content .tab-pane .tab_empty_div {
    margin-top: 3.75rem;
}
.post-type-ffmw #wpcontent .tab_detail_wrapper .tab_detail_div .tab-content .tab-pane .tab_empty_div .tab_empty_paragraph {
    margin: 1.5rem auto !important;
    max-width: 23.75rem;
}

/* Post data table for ffmw custom post type */
.post-type-ffmw .wp-list-table.posts {
    border: none;
    padding: 1rem 1.5rem;
    border-collapse: separate;
    border-spacing: 0 2.5rem;
}
.post-type-ffmw .wp-list-table.posts tbody#the-list tr.type-ffmw:hover {
	background: #FBFBFB;
	box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.21);

}
.post-type-ffmw .wp-list-table.posts thead tr th {
    color: #888;
    font-size: 0.875rem;
    line-height: 0.75rem;
    font-weight: 500;
    padding: 0;
    border: none;
}
.post-type-ffmw .wp-list-table.posts thead tr th.column-index {
    width: 2.875rem;
    text-align: center;
}
.post-type-ffmw .wp-list-table.posts thead tr td.check-column {
    padding-right: 0.625rem;
    border: none;
}
/* .post-type-ffmw .wp-list-table.posts thead tr td.check-column:hover,
.post-type-ffmw .wp-list-table.posts tbody#the-list tr th.check-column:hover
{ 
    background-color: #f6f6f6;
} */
.post-type-ffmw .wp-list-table.posts thead tr td.check-column input[type="checkbox"], 
.post-type-ffmw .wp-list-table.posts tbody#the-list tr th.check-column input[type="checkbox"] { 
    width: 1.25rem;
    height: 1.25rem;
    box-shadow: 0 0 0.125rem 0 rgba(0, 0, 0, 0.3);
    border: 0.063rem solid #d1d1d1;
    border-radius: 0.375rem;
    margin: 0;
    vertical-align: top;
}
.post-type-ffmw .wp-list-table.posts thead tr td.check-column input[type="checkbox"]:checked, 
.post-type-ffmw .wp-list-table.posts tbody#the-list tr th.check-column input[type="checkbox"]:checked { 
    background-color: #5441ea;
}
.post-type-ffmw .wp-list-table.posts thead tr td.check-column input[type="checkbox"]:checked::before, 
.post-type-ffmw .wp-list-table.posts tbody#the-list tr th.check-column input[type="checkbox"]:checked::before { 
    content: url(../images/checked.svg);
    position: absolute;
    top: 0.125rem;
    right: 0;
    bottom: 0;
    left: 0.125rem;
}
/* .post-type-ffmw .wp-list-table.posts thead tr td.check-column input[type="checkbox"]:hover + label, 
.post-type-ffmw .wp-list-table.posts tbody#the-list tr th.check-column input[type="checkbox"]:hover + label{ 
    background-color: #f6f6f6 !important;
} */
/* .post-type-ffmw .wp-list-table.posts thead tr td.check-column label:hover,
.post-type-ffmw .wp-list-table.posts tbody#the-list tr th.check-column label:hover { 
    background-color: #f6f6f6 !important;
} */
.post-type-ffmw .wp-list-table.posts thead tr th.column-ffmw_title,
.post-type-ffmw .wp-list-table.posts thead tr th.column-fee_title {
    width: 12.875rem;
}
.post-type-ffmw .wp-list-table.posts thead tr th.column-fee_status {
    width: 10.313rem;
}
.post-type-ffmw .wp-list-table.posts thead tr th.column-fee_amount {
    width: 7.75rem;
}
.post-type-ffmw .wp-list-table.posts thead tr th.column-ffmw_post_date {
    width: 13.125rem;
}
.post-type-ffmw .wp-list-table.posts thead tr th.column-groups {
    width: 6.25rem;
}
.post-type-ffmw .wp-list-table.posts thead tr th.column-actions {
    width: 6.625rem;
}
.post-type-ffmw table.widefat tbody th.check-column {
    padding: 0;
    vertical-align: middle;
}
.post-type-ffmw .wp-list-table.striped > tbody > tr:nth-child(odd),
.post-type-ffmw .wp-list-table.striped > tbody > tr:nth-child(even) {
    background-color: transparent;
}
.post-type-ffmw .wp-list-table.posts tbody#the-list tr.type-ffmw {
/*     border: 0.063rem solid #e7e7e7; */
    border-radius: 0.75rem;
    position: relative;
	box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.21);
}
.post-type-ffmw .wp-list-table.posts tbody#the-list tr.type-ffmw td,.post-type-ffmw .wp-list-table.posts tbody#the-list tr.type-ffmw th
/* ,.post-type-ffmw .wp-list-table.posts tbody#the-list .ffmw-title */ {
    font-size: 0.875rem;
    line-height: 0.75rem;
    font-weight: 500;
    color: #3a3a3a;
    vertical-align: middle;
    padding: 1.125rem 0;
}
tr.no-items.type-ffmw.ffmw-no-search-results td.colspanchange, tr.no-items.type-ffmw.ffmw-trash-empty td {
    padding-left: 15px !important;
}
.post-type-ffmw .wp-list-table.posts tbody#the-list tr.type-ffmw td.column-ffmw_title,
.post-type-ffmw .wp-list-table.posts tbody#the-list tr.type-ffmw td.column-ffmw_title .ffmw-cell {
    position: relative;
}
.post-type-ffmw .wp-list-table.posts tbody#the-list tr.type-ffmw td.column-ffmw_title .ffmw-cell .ffmw-status { 
    position: absolute;
    bottom: 2.7rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}
.post-type-ffmw .wp-list-table.posts tbody#the-list tr.type-ffmw td.column-ffmw_title .ffmw-cell .ffmw-status.ffmw-status--published { 
    background-color: #dcfce8;
    border: 0.063rem solid #86efad;
    border-bottom: none;
    color: #166533;
}
.post-type-ffmw .wp-list-table.posts tbody#the-list tr.type-ffmw td.column-ffmw_title .ffmw-cell .ffmw-status.ffmw-status--draft{
    background-color: #f6f6f6;
    border: 0.063rem solid #d1d1d1;
    border-bottom: none;
}
.post-type-ffmw .wp-list-table.posts tbody#the-list tr.type-ffmw td.column-ffmw_title .ffmw-cell .ffmw-status.ffmw-status--pending { 
    background-color: #dfe5ff;
    border: 0.063rem solid #a2adff;
    border-bottom: none;
    color: #3b2da6;
}
.post-type-ffmw .wp-list-table.posts tbody#the-list tr.type-ffmw td.column-ffmw_title .ffmw-cell .ffmw-status.ffmw-status--future { 
    border: 0.063rem solid #FDA374;
    background-color: #FFF3ED;
    border-bottom: none;
    color: #000000;
}
.post-type-ffmw .wp-list-table.posts tbody#the-list tr.type-ffmw .column-index {
    color: #888;
    text-align: center;
	border-radius: 0.75rem 0 0 0.75rem;
}
.post-type-ffmw .wp-list-table.posts tbody#the-list tr.type-ffmw .column-index .row-actions {
    display: none;
}
.post-type-ffmw .wp-list-table.posts tbody#the-list tr.type-ffmw td.column-fee_status .ffmw-switch {
    position: relative;
    display: inline-block;
    width: 2.188rem;
    height: 1.25rem;
    vertical-align: middle;
	margin-right: 6px;
}
.post-type-ffmw .wp-list-table.posts tbody#the-list tr.type-ffmw td.column-fee_status .ffmw-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.post-type-ffmw .wp-list-table.posts tbody#the-list tr.type-ffmw td.column-fee_status .ffmw-switch .ffmw-slider {
    width: 2.188rem; 
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #888;
    border-radius: 6.25rem;
    transition: 0.4s;
}
.post-type-ffmw .wp-list-table.posts tbody#the-list tr.type-ffmw td.column-fee_status .ffmw-switch .ffmw-slider::before {
    position: absolute;
    content: "";
    height: 0.875rem;
    width: 0.875rem;
    left: 0.188rem;
    bottom: 0.188rem;
    background-color: #fff;
    border-radius: 1.5rem;
    transition: 0.4s;
}
.post-type-ffmw .wp-list-table.posts tbody#the-list tr.type-ffmw td.column-fee_status .ffmw-switch input:checked + .ffmw-slider {
    background-color: #16a34a;
}
.post-type-ffmw .wp-list-table.posts tbody#the-list tr.type-ffmw td.column-fee_status .ffmw-switch input:checked + .ffmw-slider:before {
    transform: translateX(0.938rem);
}
.post-type-ffmw .wp-list-table.posts tbody#the-list tr.type-ffmw td.column-fee_status .ffmw-switch input[disabled] + .ffmw-slider {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}
.post-type-ffmw .wp-list-table.posts tbody#the-list tr.type-ffmw td.column-fee_status .ffmw-switch input[disabled] + .ffmw-slider::before {
    background-color: #eee;
}
.post-type-ffmw .wp-list-table.posts tbody#the-list tr.type-ffmw td.column-actions a img.action-icon {
	/*padding: 0.375rem 0.5rem; */
    padding: 0.438rem;
    border: 0.063rem solid #e7e7e7;
    border-radius: 0.5rem;
    box-shadow: 0 0.063rem 0.038rem 0.003rem rgba(24, 24, 27, 0.04);
	background: #ffffff;
}
.post-type-ffmw .wp-list-table.posts tfoot {
    display: none;
}

/* Entity badges for multiple selections in advance conditions */
.post-type-ffmw .entity-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    align-items: center;
}

.post-type-ffmw .entity-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #f0f0f0;
    border: 0.063rem solid #d0d0d0;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #333;
    line-height: 1.4;
}

.post-type-ffmw .advance-rule-entity .entity-badge {
    margin: 0.125rem 0;
}

/* post new page headerbar */
.post-type-ffmw .fee_setting_header .header_top_wrapper {
    background-color: #f6f6f6;
    padding: 0.5rem 1rem;
}
.post-type-ffmw .fee_setting_header .header_top_wrapper .header_top {
/*     padding: 0.5rem 0; */
    display: flex;
    gap: 0.5rem;
}
.post-type-ffmw .fee_setting_header .header_top_wrapper .header_top a,
.post-type-ffmw .fee_setting_header .header_top_wrapper .header_top .divider,
.post-type-ffmw .fee_setting_header .header_top_wrapper .header_top .current_page {
    font-size: 0.875rem;
    font-weight: 700 !important;
}
.post-type-ffmw .fee_setting_header .header_top_wrapper .header_top a,
.post-type-ffmw .fee_setting_header .header_top_wrapper .header_top .divider {
    color: #888;
}
.post-type-ffmw .fee_setting_header .header_top_wrapper .header_top .current_page {
    color: #3a3a3a;
}
.post-type-ffmw .fee_setting_header {
    position: relative;
}
.post-type-ffmw .fee_setting_header.dotted-bg {
    background-image: radial-gradient(#d1d5db 0.7px, transparent 0.7px);
    background-size: 24px 24px;
    background-color: #f8fafc;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper {
    padding: 1.125rem 1rem;
    background-color: #fff;
    border: 0.063rem solid #e7e7e7;
    box-shadow: 0 0.125rem 0.25rem 0 rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 4.5rem;
    z-index: 40;
}
body.admin-bar.post-type-ffmw .fee_setting_header .header_bottom_wrapper {
    top: calc(32px + 1.5rem);
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_title input {
    width: clamp(12rem, 30vw, 22rem);
    padding: 0.2rem 0.75rem;
    border: 0.063rem solid #e7e7e7;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: #3a3a3a;
    background-color: #fff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_title input::placeholder {
    font-size: 1rem !important;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_title input::placeholder {
    font-size: 1.5rem;
    font-weight: 500;
    color: #9b9b9b;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_title input:focus {
    border: 0.063rem solid #5441ea;
    box-shadow: 0 0 0 0.25rem rgba(84, 65, 234, 0.15);
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}
/* Sidebar wrapper - works both inside .post-type-ffmw and at body level (Bootstrap offcanvas moves it) */
.post-type-ffmw .sidebar_wrapper,
body.post-type-ffmw .sidebar_wrapper {
    position: relative;
}
.post-type-ffmw .sidebar_wrapper.ffmw-sidebar-loading::after,
body.post-type-ffmw .sidebar_wrapper.ffmw-sidebar-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 998;
}
.post-type-ffmw .ffmw-sidebar-spinner,
body.post-type-ffmw .ffmw-sidebar-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.75rem;
    height: 2.75rem;
    margin: -1.375rem 0 0 -1.375rem;
    border: 0.25rem solid #e4e7ec;
    border-top-color: #5c43f6;
    border-radius: 50%;
    animation: ffmw-spin 0.9s linear infinite;
    z-index: 999;
}
@keyframes ffmw-spin {
    from { transform: rotate(0); }
    to { transform: rotate(360deg); }
}

.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status {
    position: relative;
    margin: 0 auto;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status .header_detail_status-toggle {
    min-width: 8.75rem;
    max-width: 100%;
    width: auto;
    white-space: nowrap;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6.188rem;
    cursor: pointer;
    border: 0.063rem solid #FDA374;
    background-color: #FFF3ED;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status .header_detail_status-toggle.status-draft {
    background-color: #f6f6f6;
    color: #3a3a3a;
    border-color: #ccc;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status .header_detail_status-toggle.status-pending {
    background-color: #eef1ff;
    color: #3b2da6;
    border-color: #aab0ff;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status .header_detail_status-toggle.status-publish {
    background-color: #dcfce8;
    color: #166533;
    border-color: #86efad;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status .header_detail_status-toggle .status-icon {
    width: 0.875rem;
    height: 0.875rem;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status .header_detail_status-toggle .status-label {
    flex: 1;
    font-size: 0.875rem;
    line-height: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status .header_detail_status-toggle .dropdown_icon {
    margin-left: auto;
    flex-shrink: 0;
    width: 0.75rem;
    height: auto;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status .header_detail_status-options {
    display: none;
    padding-left: 0;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options {
    width: 12.063rem;
    display: block;
    border-radius: 0.5rem;
    border: 0.063rem solid #d1d1d1;
    box-shadow: 0 0.063rem 0.375rem 0 rgba(0, 0, 0, 0.25);
    background-color: #fff;
    position: absolute;
    z-index: 100;
    margin-top: 0.625rem;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open img.dropdown_icon {
    transform: rotate(180deg);
    transition: transform 0.5s ease;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options li {
    list-style: none;
    padding: 0.75rem 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options li .header_detail_status-item-content {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options li .header_detail_status-radio {
    width: 1.25rem;
    height: 1.25rem;
    border: 0.063rem solid #d1d1d1;
    background-color: #fff;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options li.status-draft {
    background-color: #f6f6f6;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options li.status-draft .status-label.draft {
    color: #3a3a3a;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options li.status-draft:hover .header_detail_status-radio {
    background-color: #f6f6f6;
    border: 0.063rem solid #3a3a3a;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options:not(:hover) li.status-draft.selected .header_detail_status-radio {
    background-color: #f6f6f6;
    border: 0.063rem solid #3a3a3a;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options li.status-draft:hover .radio {
    background-color: #3a3a3a;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 6.25rem;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options:not(:hover) li.status-draft.selected .radio {
    background-color: #3a3a3a;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 6.25rem;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options li.status-pending {
    background-color: #eef1ff;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options li.status-pending .status-label.pending {
    color: #3b2da6;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options:not(:hover) li.status-pending.selected .header_detail_status-radio {
    background-color: #eef1ff;
    border: 0.063rem solid #3b2da6;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options li.status-pending:hover .header_detail_status-radio {
    background-color: #eef1ff;
    border: 0.063rem solid #3b2da6;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options:not(:hover) li.status-pending.selected .radio {
    background-color: #3b2da6;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 6.25rem;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options li.status-pending:hover .radio {
    background-color: #3b2da6;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 6.25rem;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options li.status-publish {
    background-color: #f0fdf5;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options li.status-publish .status-label.publish {
    color: #166533;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options:not(:hover) li.status-publish.selected .header_detail_status-radio {
    background-color: #f0fdf5;
    border: 0.063rem solid #86efad;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options li.status-publish:hover .header_detail_status-radio {
    background-color: #f0fdf5;
    border: 0.063rem solid #86efad;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options:not(:hover) li.status-publish.selected .radio {
    background-color: #16a34a;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 6.25rem;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options li.status-publish:hover .radio {
    background-color: #16a34a;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 6.25rem;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_bottom .header_action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_bottom .header_action .header_action_save {
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    pointer-events: none;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_bottom .header_action .header_action_save--visible {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_bottom .header_action .text_save { 
    font-size: 0.75rem;
    font-weight: 500;
    color: #888;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_bottom .header_action p img {
    margin: -0.125rem 0.375rem 0 0;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_bottom .header_action .date_picker {
    padding: 0.5rem 0.75rem;
    border-radius: 6.25rem;
    border: 0.063rem solid #d1d1d1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_bottom .header_action .date_picker p {
    font-size: 0.875rem;
    font-weight: 500;
    color: #3a3a3a;
}

/* Schedule publish dropdown */
.post-type-ffmw .date_picker_wrapper {
    position: relative;
    display: inline-block;
    overflow: visible;
}
.post-type-ffmw .schedule_dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: #fff;
    border: 0.063rem solid #e4e7ec;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 1.5rem 2.5rem rgba(15, 23, 42, 0.12);
    width: 33rem;
    z-index: 1000;
}
.post-type-ffmw .schedule_dropdown__status {
    margin-bottom: 1rem;
}
.post-type-ffmw .schedule_status_badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
}
.post-type-ffmw .schedule_status_badge .status_indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}
.post-type-ffmw .schedule_status_helper {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: #6b7280;
}
.post-type-ffmw .schedule_dropdown__body {
    display: flex;
    gap: 1.5rem;
}
.post-type-ffmw .schedule_calendar_wrapper {
    flex: 1 1 auto;
}
.post-type-ffmw .schedule_calendar .ui-datepicker {
    width: 100%;
    border: none;
    padding: 0;
    box-shadow: none;
    font-family: inherit;
}
.post-type-ffmw .schedule_calendar .ui-datepicker-header {
    background: transparent;
    border: none;
    font-weight: 500;
    color: #111827;
}
.post-type-ffmw .schedule_calendar .ui-datepicker-calendar {
    width: 100%;
}
.post-type-ffmw .schedule_calendar .ui-datepicker-calendar td a,
.post-type-ffmw .schedule_calendar .ui-datepicker-calendar td span {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
}
.post-type-ffmw .schedule_calendar .ui-datepicker-calendar td a.ui-state-active {
    background: #111827;
    color: #fff;
}
.post-type-ffmw .schedule_calendar .ui-datepicker-calendar td a:hover {
    background: #e5e7eb;
    color: #111827;
}
.post-type-ffmw .schedule_time_wrapper {
    width: 11rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.post-type-ffmw .schedule_time_title {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}
.post-type-ffmw .schedule_time_input {
    width: 100%;
    padding: 0.5rem;
    border: 0.063rem solid #d1d1d1;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #3a3a3a;
}
.post-type-ffmw .schedule_time_input:focus {
    outline: none;
    border-color: #111827;
}
.post-type-ffmw .schedule_time_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}
.post-type-ffmw .schedule_time_slot {
    border: 0.063rem solid #d4d8e1;
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 0.375rem 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s ease;
}
.post-type-ffmw .schedule_time_slot:hover {
    border-color: #111827;
}
.post-type-ffmw .schedule_time_slot.is-active {
    background: #111827;
    color: #fff;
    border-color: #111827;
    box-shadow: 0 0.75rem 1.25rem rgba(17, 24, 39, 0.24);
}
.post-type-ffmw .schedule_timezone {
    background: #f6f7fb;
    border-radius: 0.75rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.post-type-ffmw .schedule_timezone_label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.04em;
}
.post-type-ffmw .schedule_timezone_value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #0f172a;
}
/* Fee setting meta box */
#ffmw_fee_settings,
.post-type-ffmw .ffmw_conditions_meta_box,
.post-type-ffmw .new_fee_wrapper {
    display: none;
}
.post-type-ffmw .ffmw-settings-hidden {
    display: none !important;
}
.post-type-ffmw .postbox-header {
    display: none; 
}
.post-type-ffmw .postbox .inside {
    margin: 0 !important;
    padding: 0;
}
.post-type-ffmw .fee_setting_detail_wrapper {
    margin: 5rem 0;
    position: relative;
}
.post-type-ffmw .fee_setting_detail_wrapper.ffmw-inline-fee-settings {
    margin: 2rem 0;
}
.post-type-ffmw .notification-container + .fee_setting_detail_wrapper {
    margin-top: 0rem;
}

.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail {
    max-width: 32.813rem;
    margin: 0 auto;
    /* overflow: visible; */
    /* display: none; */
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .card_shadow {
    max-width: 29.813rem;
    height: 2.313rem;
    border-radius: 0.5rem;
    margin: 0 auto -0.75rem;
    background-color: #e5e5e5;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0 2.931rem 0 rgba(0, 0, 0, 0.13);
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_header .card_heading {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_header .card_heading h2 {
    padding: 0 !important;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_header .card_heading .tool_tip {
    padding: 0;
    border: 0;
    background-color: transparent;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_header .card_action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_header .card_action .close_button {
    width: 2.25rem;
    height: 2.25rem;
/*     border: 0.063rem solid #d1d1d1; */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6.25rem;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_detail {
    padding: 1rem 1rem;
    border-top: 0.063rem solid #d1d1d1;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_detail label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #3a3a3a;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_detail input {
    padding: 0.75rem 0.875rem;
    background-color: #f6f6f6;
    border-radius: 0.5rem !important;
    font-size: 0.875rem;
    font-weight: 500;
    color: #292929;
    border: none;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_detail input::placeholder {
    font-size: 0.875rem;
    font-weight: 500;
    color: #888;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_detail input:focus {
    border: 0.063rem solid #5441ea;
    box-shadow: 0 0 0 0.25rem rgba(84, 65, 234, 0.08);
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_detail .card_detail--title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem 1rem 0 1rem;
    margin-bottom: 1.125rem;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_detail .card_detail--amount {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.125rem;
    padding: 0 1rem;
}
/* Fee calculation type selector */
.post-type-ffmw .fee_calculation_type_wrapper {
	margin-bottom: 0.5rem;
}

.post-type-ffmw .fee_calculation_type_wrapper select.fee-calculation-type {
	width: 100%;
	padding: 0.5rem;
	border: 0.063rem solid #D1D1D1;
	border-radius: 0.25rem;
	font-size: 0.875rem;
	background-color: #fff;
}

.post-type-ffmw .amount_input_wrapper {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 1;
}

.post-type-ffmw .fee_sign_toggle {
	display: inline-flex;
	gap: 0.25rem;
}

.post-type-ffmw .fee_sign_btn,
.post-type-ffmw .percentage_sign_btn {
	padding: 0.25rem 0.5rem;
	border: 0.063rem solid #D1D1D1;
	background: #fff;
	border-radius: 0.25rem;
	cursor: pointer;
	font-weight: 500;
}

.post-type-ffmw .fee_sign_btn.active,
.post-type-ffmw .percentage_sign_btn.active {
	background: #5441ea;
	color: #fff;
	border-color: #5441ea;
}

.post-type-ffmw .amount_suffix,
.post-type-ffmw .amount_suffix_multiple {
	font-weight: 500;
	color: #888;
}

.post-type-ffmw .fee_amount_helper_text {
	font-size: 0.75rem;
	color: #888;
	margin-top: 0.25rem;
	margin-bottom: 0;
}

/* Advanced rule calculation type styles */
.post-type-ffmw .rule-calculation-type {
	width: 100%;
	padding: 0.5rem;
	border: 0.063rem solid #D1D1D1;
	border-radius: 0.25rem;
	font-size: 0.875rem;
	background-color: #fff;
	margin-bottom: 0.5rem;
}

.post-type-ffmw .rule-fee-input-wrapper {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.post-type-ffmw .rule-fee-sign-toggle,
.post-type-ffmw .rule-percentage-sign-toggle {
	display: inline-flex;
	gap: 0.25rem;
	align-items: center;
}

.post-type-ffmw .rule-fee-sign-btn,
.post-type-ffmw .rule-percentage-sign-btn {
	padding: 0.25rem 0.5rem;
	border: 0.063rem solid #D1D1D1;
	background: #fff;
	border-radius: 0.25rem;
	cursor: pointer;
	font-weight: 500;
	font-size: inherit;
	width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-type-ffmw .rule-fee-sign-btn.active,
.post-type-ffmw .rule-percentage-sign-btn.active {
	background: #5441ea;
	color: #fff;
	border-color: #5441ea;
}

.post-type-ffmw .rule-fee-suffix-percentage,
.post-type-ffmw .rule-fee-suffix-multiple {
	font-weight: 500;
	color: #888;
	font-size: 0.875rem;
}

.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_detail .card_detail--amount .amount_group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_detail .card_detail--amount .amount_group input.amount_input--currency {
    width: 3.313rem;
    text-align: center;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_detail .card_detail--amount .amount_group .amount_input_wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_detail .card_detail--amount .amount_group input.amount_input--amount {
    flex: 1;
    min-width: 0;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_detail .card_detail--tax {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem 1.5rem 1rem;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_detail .card_detail--tax .tax_dropdown {
    position: relative;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_detail .card_detail--tax .tax_dropdown .tax_dropdown_toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.875rem;
    border: 0.063rem solid #d1d1d1;
    border-radius: 0.5rem;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_detail .card_detail--tax .tax_dropdown .tax_dropdown_toggle .dropdown_label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #3a3a3a;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_detail .card_detail--tax .tax_dropdown .dropdown_tax_options {
    display: none;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_detail .card_detail--tax .tax_dropdown.open {
    border: 0.063rem solid #5441ea;
    box-shadow: 0 0 0 0.25rem rgba(84, 65, 234, 0.08);
    border-radius: 0.5rem;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_detail .card_detail--tax .tax_dropdown.open .dropdown_tax_options {
    width: 29.063rem;
    display: block;
    border-radius: 0.5rem;
    border: 0.063rem solid #d1d1d1;
    box-shadow: 0 0.063rem 0.375rem 0 rgba(0, 0, 0, 0.25);
    background-color: #fff;
    position: absolute;
    margin-top: 0.625rem;
    padding-left: 0;
    z-index: 10;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_detail .card_detail--tax .tax_dropdown.open .dropdown_tax_options .dropdown_tax_option {
    font-size: 0.875rem;
    font-weight: 500;
    color: #3a3a3a;
    padding: 0.75rem 0.875rem;
    margin-bottom: 0;
    position: relative;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_detail .card_detail--tax .tax_dropdown.open .dropdown_tax_options .dropdown_tax_option.selected,
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_detail .card_detail--tax .tax_dropdown.open .dropdown_tax_options .dropdown_tax_option:hover {
    background-color: #eef1ff;
    color: #5441ea;
}
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_detail .card_detail--tax .tax_dropdown.open .dropdown_tax_options .dropdown_tax_option.selected::after,
.post-type-ffmw .fee_setting_detail_wrapper .fee_setting_detail .fee_setting_card .card_detail .card_detail--tax .tax_dropdown.open .dropdown_tax_options .dropdown_tax_option:hover::after {
    content: '';
    background-image: url(../images/tickmark.svg);
    width: 1.25rem;
    height: 1.25rem;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}
.post-type-ffmw .fee_setting_detail_wrapper .card_detail_field .message {
    display: none;
    font-size: 0.625rem;
    font-weight: 500;
    line-height: 100%;
    margin: 0;
}
.post-type-ffmw .fee_setting_detail_wrapper .card_detail_field .message.message--warning {
    color: #92610e;
}
.post-type-ffmw .fee_setting_detail_wrapper .card_detail_field .message.message--error {
    color: #dc2626;
}
.post-type-ffmw .fee_setting_detail_wrapper .card_detail .card_detail_field input.fee_setting_input--warning:focus {
    background-color: #fff8eb;
    border: 0.063rem solid #fcbb4d;
}
.post-type-ffmw .fee_setting_detail_wrapper .card_detail .card_detail_field input.fee_setting_input--error:focus {
    background-color: #fef2f2;
    border: 0.063rem solid #fca5a5;
}

/* Configure Your Fee notification */
.post-type-ffmw .notification-container {
    max-width: 25rem;
    width: 100%;
    margin: 0 auto;
}
.post-type-ffmw .notification-container .notification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    border-radius: 0.625rem;
    padding: 1rem 1.25rem;
    position: relative;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.08);
}
.post-type-ffmw .notification-container .notification.notification--configure {
    background: linear-gradient(180deg, rgba(240, 250, 255, 0.95) 0%, #ffffff 100%);
}
.post-type-ffmw .notification-container .notification.notification--configure .notification__icon {
    display: flex;
    align-items: center;
    background-color: #e0f5fe;
    border: 0.063rem solid #7dd5fc;
    border-radius: 6.188rem;
    padding: 0.5rem;
}
.post-type-ffmw .notification-container .notification .notification__content .notification__title {
    font-size: 1.063rem;
    line-height: 1.25rem;
    color: #3a3a3a;
    margin-bottom: 0.375rem !important;
}
.post-type-ffmw .notification-container .notification .notification__content .notification__message {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4c4c4c;
    margin-bottom: 0;
}
.post-type-ffmw .notification-container .notification__border.notification__border--thick {
    display: block;
    max-width: 25rem;
    width: 100%;
    height: 0.35rem;
    margin: 0 auto;
    background: linear-gradient(90deg, #028ac7 0%, #01acf3 100%);
    border-radius: 0 0 0.625rem 0.625rem;
}
.post-type-ffmw .notification-container .notification__radio-group {
    position: relative;
    max-width: 25rem;
    margin: 0 auto;
    height: 1.5rem;
}
.post-type-ffmw .notification-container .notification__radio-group .notification__border.notification__border--small {
    display: block;
    max-width: 3.5rem;
    width: 100%;
    height: 0.5rem;
    background: linear-gradient(90deg, #028ac7 0%, #01acf3 100%);
    border-radius: 0 0 0.75rem 0.75rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.post-type-ffmw .notification-container .notification__radio-group .notification__radio-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    backdrop-filter: blur(0.25rem);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    background-color: rgba(224, 245, 254, 0.58);
    border-radius: 6.188rem;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.post-type-ffmw .notification-container .notification__radio-group .notification__radio-wrapper .notification__radio {
    width: 0.875rem;
    height: 0.875rem;
    background-color: #028ac7;
    border-radius: 6.188rem;
}

/* Notification messages */
.post-type-ffmw .ffmw-notifications-stack {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 99999;
    pointer-events: none;
}
.post-type-ffmw .ffmw-notification-container {
    max-width: 21rem;
    width: 100%;
    margin: 0;
    pointer-events: auto;
}
.post-type-ffmw .ffmw-notification-container .ffmw-notification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0.25rem;
    padding: 0.75rem;
    position: relative;
    box-shadow: 0 0.25rem 0.556rem 0 rgba(0, 0, 0, 0.2);
    gap: 15px;
}
.post-type-ffmw .ffmw-notification-container .ffmw-notification.ffmw-notification--success {
    background: linear-gradient(90deg, #f0fdf5 0%, #fff 100%);
}
.post-type-ffmw .ffmw-notification-container .ffmw-notification.ffmw-notification--error {
    background: linear-gradient(90deg, #fef2f2 0%, #fff 100%);
}
.post-type-ffmw .ffmw-notification-container .ffmw-notification.ffmw-notification--warning {
    background: linear-gradient(90deg, #fff8eb 0%, #fff 100%);
}
.post-type-ffmw .ffmw-notification-container .ffmw-notification .ffmw-notification__icon {
    padding: 0.375rem;
    border-radius: 6.188rem;
    display: flex;
    align-items: center;
}
.post-type-ffmw .ffmw-notification-container .ffmw-notification.ffmw-notification--success .ffmw-notification__icon {
    border: 0.063rem solid #86efad;
    background-color: #dcfce8;
}
.post-type-ffmw .ffmw-notification-container .ffmw-notification.ffmw-notification--error .ffmw-notification__icon {
    border: 0.063rem solid #fca5a5;
    background-color: #fee2e2;
}
.post-type-ffmw .ffmw-notification-container .ffmw-notification.ffmw-notification--warning .ffmw-notification__icon {
    border: 0.063rem solid #fcbb4d;
    background-color: #feeac7;
}
.post-type-ffmw .ffmw-notification-container .ffmw-notification .ffmw-notification__content .ffmw-notification__title {
    font-size: 1rem;
    line-height: 1rem;
    color: #3a3a3a;
    margin: 0;
    font-weight: 500;
    margin-bottom: 0.625rem !important;
}
.post-type-ffmw .ffmw-notification-container .ffmw-notification .ffmw-notification__content .ffmw-notification__message {
    font-size: 0.75rem;
    line-height: 0.75rem;
    font-weight: 500;
    color: #5d5d5d;
    margin-bottom: 0;
}
.post-type-ffmw .ffmw-notification-container .ffmw-notification__border.ffmw-notification__border--thick {
    display: block;
    max-width: 27.063rem;
    width: 100%;
    height: 0.375rem;
    margin: 0 auto;
    border-radius: 0 0 0.375rem 0.375rem;
}

/* Delete confirmation modal */
.post-type-ffmw .delete-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
	backdrop-filter: blur(2px);
}
.post-type-ffmw .delete-modal .delete-modal__content {
    background: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem 0;
    max-width: 30rem;
/*     margin: 6.25rem auto; */
    position: relative;
    text-align: center;
	position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.post-type-ffmw .delete-modal .delete-modal__content .icon_wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
	padding: 0 1.5rem;
}
.post-type-ffmw .delete-modal .delete-modal__content .icon_wrapper .notification_icon {
    border: 0.063rem solid #fca5a5;
    background-color: #fee2e2;
    padding: 0.375rem;
    border-radius: 6.188rem;
    display: flex;
    align-items: center;
}
.post-type-ffmw .delete-modal .delete-modal__content .delete-modal__title {
    font-size: 1.5rem;
    font-weight: 700 !important;
    color: #3a3a3a;
    text-align: left;
    line-height: 1.875rem;
    margin-bottom: 0.75rem !important;
	padding: 0 1.5rem;
	max-width: 400px;
}
.post-type-ffmw .delete-modal .delete-modal__content .delete-modal__description {
    font-size: 0.875rem;
    font-weight: 500;
    color: #888;
    text-align: left;
    margin-bottom: 0.75rem !important;
	padding: 1rem 1.5rem 1.5rem;
}
.post-type-ffmw .delete-modal .delete-modal__content .delete-modal__footer {
    display: flex;
    width: 100%;
    padding: 1.5rem 1.5rem 0;
    border-top: 0.063rem solid #d1d1d1;
    text-align: left;
	gap: 8px;
}

/* Choose condition metabox hide initially */
#ffmw_conditions {
    display: none;
    border: none;
}
.post-type-ffmw .ffmw_conditions_meta_box {
    display: none;
}
.post-type-ffmw .new_fee_wrapper {
    display: none;
}
/* Fee setting summary */
.post-type-ffmw .new_fee_wrapper .fee_settings {
    width: 35rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}
.post-type-ffmw .new_fee_wrapper .fee_settings .fee_setting_summary {
    position: relative;
}
.post-type-ffmw .new_fee_wrapper .fee_settings .fee_setting_summary .fee_setting_label_wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem 0.25rem 0 0;
}
.post-type-ffmw .new_fee_wrapper .fee_settings .fee_setting_summary .fee_setting_label_wrapper .fee_setting_label {
    padding: 0.375rem 0.688rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    background-color: #e7e7e7;
    border: 0.063rem solid #b0b0b0;
    border-bottom: none;
    border-radius: 0.25rem 0.25rem 0 0;
}
.post-type-ffmw .new_fee_wrapper .fee_settings .fee_setting_summary .fee_setting_label_wrapper .fee_setting_label span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #3a3a3a;
}
.post-type-ffmw .new_fee_wrapper .fee_settings .fee_setting_summary .fee_setting_info_wrapper {
    padding: 1.125rem;
    background-color: #fff;
    border: 0.063rem solid #d1d1d1;
    box-shadow: 0 0.063rem 0.15rem 0 rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 0.5rem;  
}
.post-type-ffmw .new_fee_wrapper .fee_settings .fee_setting_summary .fee_setting_info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.post-type-ffmw .new_fee_wrapper .fee_settings .fee_setting_summary .fee_setting_info .fee_setting_heading,
.post-type-ffmw .new_fee_wrapper .fee_settings .fee_setting_summary .fee_setting_info span.value {
    font-size: 1rem;
    font-weight: 500;
}
.post-type-ffmw .new_fee_wrapper .fee_settings .fee_setting_summary .fee_setting_info .fee_setting_heading {
    color: #888;
}
.post-type-ffmw .new_fee_wrapper .fee_settings .fee_setting_summary .fee_setting_info span.value {
    color: #3a3a3a;
}
.post-type-ffmw .new_fee_wrapper .fee_settings .fee_setting_summary .fee_setting_actions {
    position: absolute;
    right: 0;
    top: 2rem;
    transform: translateX(150%);
}
.post-type-ffmw .new_fee_wrapper .fee_settings .fee_setting_summary .fee_setting_actions a img.action-icon {
    padding: 0.375rem 0.5rem;
    border: 0.063rem solid #e7e7e7;
    border-radius: 0.5rem;
    box-shadow: 0 0.063rem 0.038rem 0.003rem rgba(24, 24, 27, 0.04);
}

/* Choose condition box */
.post-type-ffmw .fee_condition_card_wrapper {
    background-color: #f0f0f0;
    border: 0.063rem solid #d8d8d8;
    padding: 1.125rem;
    border-radius: 1rem;
}
.post-type-ffmw .fee_condition_card_wrapper .fee_condition_card {
    margin-bottom: 1.25rem;
    position: relative;
}
.post-type-ffmw .fee_condition_template {
    display: none;
}
.post-type-ffmw .fee_condition_card .fee_condition_label_wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem 0.25rem 0 0;
	gap: 2px;
}
.post-type-ffmw .fee_condition_card .fee_condition_label_wrapper .fee_condition_label {
    padding: 0.375rem 0.688rem;
    display: none;
    background-color: #e7e7e7;
    border: 0.063rem solid #b0b0b0;
    border-bottom: none;
    border-radius: 0.25rem 0.25rem 0 0;
}
.post-type-ffmw .fee_condition_card .fee_condition_label_wrapper .fee_condition_label.visible {
    display: flex;
    align-items: center;
}
.post-type-ffmw .fee_condition_card .fee_condition_label_wrapper .fee_condition_label.show {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}
.post-type-ffmw .fee_condition_card .fee_condition_label_wrapper .fee_condition_label.show .condition_operator_dropdown {
    border-radius: 0 0.25rem 0 0;
}
.post-type-ffmw .fee_condition_card .fee_condition_label_wrapper .fee_condition_label .condition-type {
    font-size: 0.75rem;
    font-weight: 500;
    color: #3a3a3a;
}
.post-type-ffmw .condition_operator_dropdown,
.post-type-ffmw .advance_condition_label {
    padding: 0.375rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.375rem;
    border-bottom: none;
    border-radius: 0.25rem 0.25rem 0 0;
}
.post-type-ffmw .condition_operator_dropdown {
    background-color: #ffe3d5;
    border: 0.063rem solid #fda374;
    color: #7c3612;
    font-size: 0.75rem;
    font-weight: 500;
	border-bottom: none;
}
.post-type-ffmw .advance_condition_label {
    background-color: #feeac7;
    border: 0.063rem solid #fcbb4d;
}
.post-type-ffmw .advance_condition_label .advance-label {
    color: #92610e;
    font-size: 0.75rem;
    font-weight: 500;
}
.post-type-ffmw .condition_operator_dropdown .condition_operator_status {
    position: relative;
    margin: 0 auto;
}
.post-type-ffmw .condition_operator_dropdown .condition_operator_status .status-icon {
    width: 0.875rem;
    height: 0.875rem;
}
.post-type-ffmw .condition_operator_dropdown .condition_operator_status .status-label {
    flex: 1;
    font-size: 0.75rem;
    font-weight: 500;
}
.post-type-ffmw .condition_operator_dropdown .condition_operator_status .dropdown_icon {
    margin-left: auto;
    flex-shrink: 0;
    width: 0.625rem;
    height: 0.625rem;
}
.post-type-ffmw .condition_operator_dropdown .condition_operator_status.open .dropdown_icon {
    transform: rotate(180deg);
    transition: transform 0.5s ease;
}
.post-type-ffmw .condition_operator_dropdown .condition_operator_status .condition_operator_status-options {
    display: none;
}
.post-type-ffmw .condition_operator_dropdown .condition_operator_status.open .condition_operator_status-options {
/*     width: 9.688rem; */
    display: block;
    border-radius: 0.5rem;
    border: 0.063rem solid #a2adff;
    box-shadow: 0 0.063rem 0.375rem 0 rgba(0, 0, 0, 0.25);
    background-color: #fff;
    position: absolute;
    left: 0;
    margin-top: 0.5rem;
    padding-left: 0;
    z-index: 1;
}
.post-type-ffmw .condition_operator_dropdown .condition_operator_status.open .condition_operator_status-options .condition_operator_status-option {
    list-style: none;
    padding: 0.75rem 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: left;
    margin-bottom: 0;
    gap: 0.5rem;
    border-bottom: 0.063rem solid #d1d1d1 !important;
}
.post-type-ffmw .condition_operator_dropdown .condition_operator_status.open .condition_operator_status-item-content {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.post-type-ffmw .condition_operator_dropdown .condition_operator_status.open .condition_operator_status-radio {
    width: 1.25rem;
    height: 1.25rem;
    border: 0.063rem solid #d1d1d1;
    background-color: #fff;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
	min-width: 1.25rem;
    min-height: 1.25rem;
}
.post-type-ffmw .condition_operator_status.open .condition_operator_status-options .condition_operator_status-option .status-label {
    color: #3a3a3a;
	white-space: nowrap;
}
.post-type-ffmw .condition_operator_status.open .condition_operator_status-options .condition_operator_status-option:hover {
    background-color: #eef1ff;
    border-block: 0.063rem solid #7e82fb !important;
}
.post-type-ffmw .condition_operator_status.open .condition_operator_status-options .condition_operator_status-option:first-child:hover {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}
.post-type-ffmw .condition_operator_status.open .condition_operator_status-options .condition_operator_status-option:last-child:hover {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}
.post-type-ffmw .condition_operator_status.open .condition_operator_status-options .condition_operator_status-option:hover .condition_operator_status-radio {
    background-color: #eef1ff;
    border: 0.063rem solid #7e82fb;
}
.post-type-ffmw .condition_operator_status.open .condition_operator_status-options .condition_operator_status-option:hover .radio {
    background-color: #5441ea;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 6.25rem;
}
.post-type-ffmw .condition_operator_status.open .condition_operator_status-options .condition_operator_status-option.selected {
    background-color: #eef1ff;
    border-top: 0.063rem solid #7e82fb !important;
    border-bottom: 0.063rem solid #7e82fb !important;
}
.post-type-ffmw .condition_operator_status.open .condition_operator_status-options .condition_operator_status-option.selected:first-child {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}
.post-type-ffmw .condition_operator_status.open .condition_operator_status-options .condition_operator_status-option.selected:last-child {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}
.post-type-ffmw .condition_operator_status.open .condition_operator_status-options .condition_operator_status-option.selected .condition_operator_status-radio {
    background-color: #eef1ff;
    border: 0.063rem solid #7e82fb;
}
.post-type-ffmw .condition_operator_status.open .condition_operator_status-options .condition_operator_status-option.selected .radio {
    background-color: #5441ea;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 6.25rem;
}
.post-type-ffmw .condition_operator_status.open .condition_operator_status-options:hover .condition_operator_status-option.selected:not(:hover) {
    background-color: transparent;
    border-top: 0.063rem solid #d1d1d1 !important;
    border-bottom: 0.063rem solid #d1d1d1 !important;
}
.post-type-ffmw .condition_operator_status.open .condition_operator_status-options:hover .condition_operator_status-option.selected:not(:hover) .condition_operator_status-radio {
    background-color: transparent;
    border: 0.063rem solid #d1d1d1;
}
.post-type-ffmw .condition_operator_status.open .condition_operator_status-options:hover .condition_operator_status-option.selected:not(:hover) .radio {
    background-color: transparent;
}
.post-type-ffmw .fee_condition_card .fee_condition_detail_wrapper,
.post-type-ffmw .fee_condition_card .advance_condition_detail_wrapper {
    padding: 1.125rem;
    background-color: #fff;
    border-radius: 0.5rem;
}
.post-type-ffmw .fee_condition_card .fee_condition_detail_wrapper {
    border: 0.063rem solid #d1d1d1;
    box-shadow: 0 0.063rem 0.338rem 0 rgba(0, 0, 0, 0.25);
	transition: all 0.2s ease-out;
}
.post-type-ffmw .fee_condition_card .fee_condition_detail_wrapper:hover {
	border-color: #5441EA;
	transition: all 0.2s ease-in;
}
.post-type-ffmw .fee_condition_card.is-editing .fee_condition_detail_wrapper,
.post-type-ffmw .fee_condition_card:focus-within .fee_condition_detail_wrapper {
    border: 0.063rem solid #5441ea;
    box-shadow: 0 0.063rem 0.338rem 0 rgba(101, 40, 247, 0.4);
}
.post-type-ffmw .fee_condition_card .advance_condition_detail_wrapper {
    border: 0.063rem solid #d98b06;
    box-shadow: 0 0.063rem 0.338rem 0 rgba(245, 158, 11, 0.5);
}
/* .post-type-ffmw .fee_condition_card .fee_condition_detail_wrapper .fee_condition_detail {
    margin-bottom: 0.75rem;
} */
.post-type-ffmw .fee_condition_card .fee_condition_detail_wrapper .fee_condition_detail,
.post-type-ffmw .fee_condition_card .advance_condition_detail_wrapper .advance_condition_detail {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}
.post-type-ffmw .fee_condition_card .fee_condition_detail_wrapper .fee_condition_detail p,
.post-type-ffmw .fee_condition_card .advance_condition_detail_wrapper .advance_condition_detail p {
    font-size: 1rem;
    font-weight: 500;
    color: #3a3a3a !important;
}
.post-type-ffmw .fee_condition_card .advance_condition_detail_wrapper .advance-condition-rule {
    border-block: 0.063rem solid #d1d1d1;
    padding: 0.625rem 0;
    margin-bottom: 0.313rem;
}
.post-type-ffmw .fee_condition_card .advance_condition_detail_wrapper .advance-condition-rule:last-child {
    margin-bottom: 0;
    border-bottom: none;
}
.post-type-ffmw .fee_condition_card .advance_condition_detail_wrapper .advance-rule-title {
    font-size: 0.75rem !important;
    font-weight: 500;
    color: #b0b0b0 !important;
}
.post-type-ffmw .fee_condition_card .advance_condition_detail_wrapper .advance-condition-rule p {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 500;
    color: #888;
}
.post-type-ffmw .fee_condition_card .advance_condition_detail_wrapper .advance-condition-rule p span {
    color: #3a3a3a;
}
.post-type-ffmw .fee_condition_card .fee_condition_actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    position: absolute;
    top: 2rem;
    right: 0;
    transform: translateX(200%);
}
.post-type-ffmw .fee_condition_card .fee_condition_actions a img.action-icon {
	padding: 0.438rem;
    border: 0.063rem solid #e7e7e7;
    border-radius: 0.5rem;
    box-shadow: 0 0.063rem 0.038rem 0.003rem rgba(24, 24, 27, 0.04);
    background-color: #fff;
}

/* Add new button */
.post-type-ffmw .add_condition_wrapper {
    display: flex;
	justify-content: center;
    gap: 0.5rem;
}
.post-type-ffmw .add_condition_wrapper.is-floating {
    display: none;
}
.post-type-ffmw .add_condition_wrapper .condition_option_wrapper {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
}
.post-type-ffmw .condition_option {
    background-color: #fff;
    border: 0.063rem solid #d1d1d1;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #3a3a3a;
    box-shadow: 0 1.25rem 1.25rem -0.5rem rgba(0, 0, 0, 0.08);
    border-radius: 6.25rem;
    display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
}
.post-type-ffmw .condition_option.purple:hover {
    background-color: #dfe5ff;
    border: 0.063rem solid #a2adff;
    color: #3b2da6;
    transition: all 0.3s ease-in-out;
}
.post-type-ffmw .add_condition_wrapper .condition_option_wrapper .condition_option.yellow:hover {
    background-color: #feeac7;
    border: 0.063rem solid #fcbb4d;
    color: #92610e;
    transition: all 0.3s ease-in-out;
}
.post-type-ffmw .condition_option.purple:hover > img {
    filter: brightness(0) saturate(100%) invert(13%) sepia(80%) saturate(3229%) hue-rotate(244deg) brightness(98%) contrast(94%);
    transition: all 0.3s ease-in-out;
}
.post-type-ffmw .add_condition_wrapper .condition_option_wrapper .condition_option.yellow:hover > img {
    filter: brightness(0) saturate(100%) invert(34%) sepia(88%) saturate(463%) hue-rotate(359deg) brightness(97%) contrast(93%);
    transition: all 0.3s ease-in-out;
}
.post-type-ffmw .or-group-template {
    display: none;
}
/* Choose condition modal */
.post-type-ffmw .condition_modal .modal-dialog {
    transform: none;
    max-width: 50rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.post-type-ffmw .condition_modal .modal-dialog .modal_shadow {
    width: 43.563rem;
    height: 2.313rem;
    border-radius: 0.5rem;
    background-color: #e5e5e5;
    margin: 0 0 -0.938rem 0;
}
.post-type-ffmw .condition_modal .modal-dialog .modal-content {
    box-shadow: 0 0 2.931rem 0 rgba(0, 0, 0, 0.13);
    border: none;
    border-radius: 0.5rem;
}
.post-type-ffmw .condition_modal .modal-dialog .modal-header {
    padding: 1.5rem;
    justify-content: space-between;
}
.post-type-ffmw .condition_modal .modal-dialog .modal-header h2 {
    font-weight: 700 !important;
	padding: 0px !important;
}
.post-type-ffmw .condition_modal .modal-dialog .modal-header a {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.063rem solid #d1d1d1;
    border-radius: 6.25rem;
}
.post-type-ffmw .condition_modal .modal-dialog .modal-body {
    padding: 0;
}
.post-type-ffmw .condition_modal .modal-dialog .modal-body .border_right {
    border-right: 0.063rem solid #d1d1d1;
}
.post-type-ffmw .condition_modal .modal-dialog .modal-body .condition_wrapper {
    display: flex;
}
.post-type-ffmw .condition_modal .modal-dialog .modal-body .condition_wrapper .condition_column {
    width: 100%;
    height: stretch;
}
.post-type-ffmw .condition_modal .option-wrapper {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}
.post-type-ffmw .condition_modal .option-wrapper .condition-list {
    padding-left: 0;
}
.post-type-ffmw .condition_modal .condition-list .condition-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
	margin-bottom: 8px;
}
.post-type-ffmw .condition_modal .condition-list .condition-item .circle-wrapper {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 0.063rem solid #d1d1d1;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: 0.3s;
}
.post-type-ffmw .condition_modal .condition-list .condition-item.selected .circle-wrapper {
    border-color: #86efad;
    background-color: #dcfce8;
}
.post-type-ffmw .condition_modal .condition-list .condition-item.selected .circle-wrapper .dot {
    width: 0.625rem;
    height: 0.625rem;
    background-color: #16a34a;
    border-radius: 0.625rem;
}
.post-type-ffmw .condition_modal .condition-list .condition-item .custom-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 62.438rem;
    border: 0.063rem solid #d1d1d1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    margin: 0 0 0 -0.875rem;
}
.post-type-ffmw .condition_modal .condition-list .condition-item.selected .custom-icon {
    border-color: #5441ea;
    background-color: #eef1ff;
}
.post-type-ffmw .condition_modal.advanced-condition .condition-list .condition-item.selected .custom-icon {
    border-color: #fcbb4d;
    background-color: #fff8eb;
}
.post-type-ffmw .condition_modal .condition-list .condition-item.selected .custom-icon img {
    filter: brightness(0) saturate(100%) invert(22%) sepia(49%) saturate(3739%) hue-rotate(239deg) brightness(74%) contrast(101%);
}
.post-type-ffmw .condition_modal.advanced-condition .condition-list .condition-item.selected .custom-icon img {
    filter: brightness(0) saturate(100%) invert(34%) sepia(97%) saturate(894%) hue-rotate(21deg) brightness(92%) contrast(89%);
}
.post-type-ffmw .condition_modal .condition-list .condition-item .custom-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #888;
}
.post-type-ffmw .condition_modal .condition-list .condition-item.selected .custom-label {
    color: #3a3a3a;
}

/* Edit condition html after condition select */
.post-type-ffmw .edit_condition_detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.post-type-ffmw .edit_condition_detail img {
    filter: brightness(0) saturate(100%) invert(13%) sepia(81%) saturate(3874%) hue-rotate(246deg) brightness(85%) contrast(90%);
}
.post-type-ffmw .advance_condition_detail .edit_condition_detail {
    padding-bottom: 1.125rem;
}
.post-type-ffmw .advance_condition_detail_wrapper .fee_type_detail img {
    filter: brightness(0) saturate(100%) invert(34%) sepia(97%) saturate(894%) hue-rotate(21deg) brightness(92%) contrast(89%);
}
.post-type-ffmw .edit_condition_detail .condition,
.post-type-ffmw .fee_type_detail .condition {
    font-size: 0.75rem;
    font-weight: 500;
    color: #3b2da6;
    padding: 0.375rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border: 0.063rem solid #a2adff;
    border-radius: 6.25rem;
    background: linear-gradient(0.25turn, rgba(84, 65, 234, 0.17), transparent)
}
.post-type-ffmw .advance_condition_detail_wrapper .fee_type_detail .condition {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0) 100%);
    color: #92610e;
    border: 0.063rem solid #fcbb4d;
}
/* Sidebar offcanvas - works both inside .post-type-ffmw and at body level */
.post-type-ffmw .offcanvas.sidebar_wrapper,
body.post-type-ffmw .offcanvas.sidebar_wrapper {
    position: fixed;
    top: 46px;
    right: 0;
    left: auto;
    bottom: 0;
    width: min(26rem, 100%);
    max-width: 100%;
    margin-left: auto;
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 46px);
    box-shadow: -0.125rem 0 0.25rem 0 rgba(0, 0, 0, 0.08);
    border: none;
    z-index: 1055;
    transform: translateX(100%);
}

body.admin-bar.post-type-ffmw .offcanvas.sidebar_wrapper {
    top: 32px;
    min-height: calc(100vh - (46px + 32px));
}

.post-type-ffmw .offcanvas.sidebar_wrapper.show,
body.post-type-ffmw .offcanvas.sidebar_wrapper.show {
    transform: translateX(0);
}
.post-type-ffmw .sidebar_wrapper .sidebar_header,
body.post-type-ffmw .sidebar_wrapper .sidebar_header {
    padding: 1rem;
}
.post-type-ffmw .sidebar_wrapper .sidebar_header .sidebar_heading,
body.post-type-ffmw .sidebar_wrapper .sidebar_header .sidebar_heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: #3a3a3a;
    margin-bottom: 0.5rem;
}
.post-type-ffmw .sidebar_wrapper .sidebar_header .sidebar_description,
body.post-type-ffmw .sidebar_wrapper .sidebar_header .sidebar_description {
    font-size: 0.75rem;
    font-weight: 500;
    color: #888;
}
.post-type-ffmw .sidebar_wrapper .sidebar_fee_section,
body.post-type-ffmw .sidebar_wrapper .sidebar_fee_section {
    padding: 0.5rem 1rem;
    background-color: #f6f6f6;
    border: 0.063rem solid #d1d1d1;
    border-left: none;
    border-right: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.post-type-ffmw .sidebar_wrapper .sidebar_fee_section .fee_section_title,
body.post-type-ffmw .sidebar_wrapper .sidebar_fee_section .fee_section_title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #888;
}
.post-type-ffmw .sidebar_wrapper .sidebar_fee_section .tool_tip,
body.post-type-ffmw .sidebar_wrapper .sidebar_fee_section .tool_tip {
    padding: 0;
    border: 0;
    background: transparent;
}
.post-type-ffmw .sidebar_wrapper .sidebar_body,
body.post-type-ffmw .sidebar_wrapper .sidebar_body {
    padding: 1.125rem 0px;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    position: relative;
}
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_detail,
body.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
	padding: 0px 1rem;
}
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_detail p,
body.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_detail p {
    font-size: 0.875rem;
    font-weight: 500;
    color: #3a3a3a;
}
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_detail a,
body.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_detail a {
    font-size: 0.75rem;
    font-weight: 500;
    color: #3a3a3a;
    padding: 0.375rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border: 0.063rem solid #d1d1d1;
    border-radius: 6.25rem;
}
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_detail .condition_operator_dropdown,
body.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_detail .condition_operator_dropdown {
    background-color: #dfe5ff;
    border: 0.063rem solid #a2adff;
    border-radius: 6.188rem;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #3b2da6;
    font-size: 0.75rem;
    font-weight: 500;
}
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_detail .condition_operator_dropdown .condition_operator_status-toggle img,
body.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_detail .condition_operator_dropdown .condition_operator_status-toggle img {
    filter: brightness(0) saturate(100%) invert(22%) sepia(49%) saturate(3739%) hue-rotate(239deg) brightness(74%) contrast(101%);
}
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input label,
body.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #3a3a3a;
	margin-bottom: 0.5rem;
}
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input input,
body.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input input {
    padding: 0.75rem 0.875rem;
    background-color: #f6f6f6;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #292929;
    border: none;
	width: 100% !important;
}
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input input:focus,
body.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input input:focus,
.post-type-ffmw .advance-rule-card .rule-card-body .form-group input:focus {
    border: 0.063rem solid #5441ea;
    box-shadow: 0 0 0 0.25rem rgba(84, 65, 234, 0.08);
}
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input input::placeholder,
body.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input input::placeholder {
    font-size: 0.875rem;
    font-weight: 500;
    color: #888;
}
/* Select2/SelectWoo styling to match plugin design - Override WooCommerce defaults */
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .select2-container .select2-selection--single,
body.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .select2-container .select2-selection--single,
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .selectWoo-container .select2-selection--single,
body.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .selectWoo-container .select2-selection--single,
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .wc-product-search + .select2-container .select2-selection--single,
body.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .wc-product-search + .select2-container .select2-selection--single,
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .wc-product-search + .selectWoo-container .select2-selection--single,
body.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .wc-product-search + .selectWoo-container .select2-selection--single,
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .ffmw-product-search + .select2-container .select2-selection--single,
body.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .ffmw-product-search + .select2-container .select2-selection--single,
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .ffmw-product-search + .selectWoo-container .select2-selection--single,
body.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .ffmw-product-search + .selectWoo-container .select2-selection--single {
    height: auto !important;
    min-height: 2.75rem !important;
    padding: 0.75rem 0.875rem !important;
    background-color: #f6f6f6 !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #292929 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
}

/* .post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .select2-container .select2-selection--multiple, */
/* body.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .select2-container .select2-selection--multiple, */
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .selectWoo-container .select2-selection--multiple,
body.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .selectWoo-container .select2-selection--multiple,
/* .post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .wc-product-search + .select2-container .select2-selection--multiple, */
/* body.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .wc-product-search + .select2-container .select2-selection--multiple, */
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .wc-product-search + .selectWoo-container .select2-selection--multiple,
body.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .wc-product-search + .selectWoo-container .select2-selection--multiple,
/* .post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .ffmw-product-search + .select2-container .select2-selection--multiple, */
/* body.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .ffmw-product-search + .select2-container .select2-selection--multiple, */
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .ffmw-product-search + .selectWoo-container .select2-selection--multiple,
body.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .ffmw-product-search + .selectWoo-container .select2-selection--multiple {
    min-height: 2.75rem !important;
    padding: 0.5rem 0.875rem !important;
    background-color: #f6f6f6 !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #292929 !important;
    border: none !important;
}

.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .select2-container .select2-selection__arrow,
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .selectWoo-container .select2-selection__arrow,
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .wc-product-search + .select2-container .select2-selection__arrow,
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .wc-product-search + .selectWoo-container .select2-selection__arrow {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    right: 0.5rem !important;
    top: 0 !important;
}

.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .select2-container--default .select2-selection--single:focus,
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .select2-container--default.select2-container--open .select2-selection--single,
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .selectWoo-container--default .select2-selection--single:focus,
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .selectWoo-container--default.selectWoo-container--open .select2-selection--single,
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .wc-product-search + .select2-container--default .select2-selection--single:focus,
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .wc-product-search + .select2-container--default.select2-container--open .select2-selection--single,
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .wc-product-search + .selectWoo-container--default .select2-selection--single:focus,
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .wc-product-search + .selectWoo-container--default.selectWoo-container--open .select2-selection--single {
    border: 0.063rem solid #5441ea !important;
    box-shadow: 0 0 0 0.25rem rgba(84, 65, 234, 0.08) !important;
    background-color: #fff !important;
}

/* .post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .select2-container--default .select2-selection--multiple:focus, */
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .selectWoo-container--default .select2-selection--multiple:focus,
/* .post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .wc-product-search + .select2-container--default .select2-selection--multiple:focus, */
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .wc-product-search + .selectWoo-container--default .select2-selection--multiple:focus {
    border: 0.063rem solid #5441ea !important;
    box-shadow: 0 0 0 0.25rem rgba(84, 65, 234, 0.08) !important;
    background-color: #fff !important;
}

/* Select2/SelectWoo dropdown styling - Override WooCommerce defaults */
.post-type-ffmw .sidebar_wrapper .select2-dropdown,
.post-type-ffmw .sidebar_wrapper .selectWoo-dropdown,
body.post-type-ffmw .sidebar_wrapper .select2-dropdown,
body.post-type-ffmw .sidebar_wrapper .selectWoo-dropdown {
    border: 0.063rem solid #5441ea !important;
    box-shadow: 0 0 0 0.25rem rgba(84, 65, 234, 0.08) !important;
    border-radius: 0.5rem !important;
    margin-top: 0.25rem !important;
    background-color: #fff !important;
}

.post-type-ffmw .sidebar_wrapper .select2-results__option,
.post-type-ffmw .sidebar_wrapper .selectWoo-results__option,
body.post-type-ffmw .sidebar_wrapper .select2-results__option,
body.post-type-ffmw .sidebar_wrapper .selectWoo-results__option {
    padding: 0.75rem 0.875rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
}

.post-type-ffmw .sidebar_wrapper .select2-results__option--highlighted,
.post-type-ffmw .sidebar_wrapper .selectWoo-results__option--highlighted,
body.post-type-ffmw .sidebar_wrapper .select2-results__option--highlighted,
body.post-type-ffmw .sidebar_wrapper .selectWoo-results__option--highlighted {
    background-color: #5441ea !important;
    color: #fff !important;
}

.post-type-ffmw .sidebar_wrapper .select2-search--dropdown,
.post-type-ffmw .sidebar_wrapper .selectWoo-search--dropdown {
    padding: 0.5rem;
}

.post-type-ffmw .sidebar_wrapper .select2-search--dropdown .select2-search__field,
.post-type-ffmw .sidebar_wrapper .selectWoo-search--dropdown .selectWoo-search__field,
body.post-type-ffmw .sidebar_wrapper .select2-search--dropdown .select2-search__field,
body.post-type-ffmw .sidebar_wrapper .selectWoo-search--dropdown .selectWoo-search__field {
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.375rem !important;
    border: 0.063rem solid #e5e7eb !important;
    font-size: 0.875rem !important;
}

/* Override WooCommerce product search styling */
body.post-type-ffmw .sidebar_wrapper .wc-product-search + .select2-container,
body.post-type-ffmw .sidebar_wrapper .wc-product-search + .selectWoo-container,
body.post-type-ffmw .sidebar_wrapper .ffmw-product-search + .select2-container,
body.post-type-ffmw .sidebar_wrapper .ffmw-product-search + .selectWoo-container {
    width: 100% !important;
}

/* Ensure product search selection tags match plugin style */
body.post-type-ffmw .sidebar_wrapper .select2-selection__choice,
body.post-type-ffmw .sidebar_wrapper .selectWoo-selection__choice {
    background-color: #5441ea !important;
    border-color: #5441ea !important;
    color: #fff !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.25rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    margin: 0.125rem !important;
	white-space: wrap;
}

body.post-type-ffmw .sidebar_wrapper .select2-selection__choice__remove,
body.post-type-ffmw .sidebar_wrapper .selectWoo-selection__choice__remove {
    color: #fff !important;
    margin-right: 0.25rem !important;
    border-right: none !important;
}

body.post-type-ffmw .sidebar_wrapper .select2-selection__choice__remove:hover,
body.post-type-ffmw .sidebar_wrapper .selectWoo-selection__choice__remove:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Force plugin styling for all select2/selectWoo in sidebar - override WooCommerce defaults */
body.post-type-ffmw .sidebar_wrapper .sidebar_input select.wc-product-search + .select2-container,
body.post-type-ffmw .sidebar_wrapper .sidebar_input select.wc-product-search + .selectWoo-container,
body.post-type-ffmw .sidebar_wrapper .sidebar_input select.ffmw-product-search + .select2-container,
body.post-type-ffmw .sidebar_wrapper .sidebar_input select.ffmw-product-search + .selectWoo-container {
    width: 100% !important;
}

/* Ensure product search input field matches plugin style when empty */
body.post-type-ffmw .sidebar_wrapper .wc-product-search + .select2-container .select2-selection__rendered,
body.post-type-ffmw .sidebar_wrapper .wc-product-search + .selectWoo-container .select2-selection__rendered {
    color: #888 !important;
    font-weight: 600 !important;
	padding: 0px;
	display: flex;
	flex-direction: column;
}

/* Product search placeholder styling */
body.post-type-ffmw .sidebar_wrapper .wc-product-search + .select2-container .select2-selection__placeholder,
body.post-type-ffmw .sidebar_wrapper .wc-product-search + .selectWoo-container .select2-selection__placeholder {
    color: #888 !important;
    font-weight: 600 !important;
}
.post-type-ffmw .sidebar_wrapper .offcanvas-body,
#offcanvasAdvanced .offcanvas-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.post-type-ffmw .sidebar_rule_wrapper,
body.post-type-ffmw .sidebar_rule_wrapper {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 6rem;
}
.post-type-ffmw .sidebar_action,
body.post-type-ffmw .sidebar_action {
    flex: 0 0 auto;
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 0.063rem solid #e5e7eb;
    padding: 0.75rem 1rem;
    z-index: 2;
}
.post-type-ffmw .advance-rule-card {
    padding: 0 1rem;
}
body.post-type-ffmw .selectWoo-container--open .selectWoo-dropdown--below {
    border: 0.063rem solid #5441ea !important;
    box-shadow: 0 0 0 0.25rem rgba(84, 65, 234, 0.08) !important;
    border-radius: 0.5rem !important;
}

body.post-type-ffmw .select2-results__option--highlighted[aria-selected],
body.post-type-ffmw .selectWoo-results__option--highlighted[aria-selected] {
    background-color: #5441ea !important;
    color: #fff !important;
}
body.post-type-ffmw .select2-selection--single .select2-selection__rendered:hover,
body.post-type-ffmw .selectWoo-selection--single .select2-selection__rendered:hover {
    color: #5441ea !important;
}

/* Selected item in the dropdown */
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_action,
body.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_action {
    padding: 1.5rem 1rem;
    border-top: 0.063rem solid #d1d1d1;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 0.5rem;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}
.post-type-ffmw .sidebar_detail .condition_operator_dropdown .condition_operator_status.open .condition_operator_status-options,
body.post-type-ffmw .sidebar_detail .condition_operator_dropdown .condition_operator_status.open .condition_operator_status-options {
    left: auto;
    right: 0;
    overflow: visible;
    z-index: 2;
}
.post-type-ffmw .sidebar_detail, .post-type-ffmw .condition_operator_dropdown, .post-type-ffmw .condition_operator_status,
body.post-type-ffmw .sidebar_detail, body.post-type-ffmw .condition_operator_dropdown, body.post-type-ffmw .condition_operator_status {
    position: relative;
    overflow: visible !important;
}
.post-type-ffmw .sidebar_action .addrule_btn,
body.post-type-ffmw .sidebar_action .addrule_btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #fff;
    color: #92610e;
    border: 0.063rem solid #92610e;
    margin-right: auto;
}
.post-type-ffmw .sidebar_action .addrule_btn:hover,
body.post-type-ffmw .sidebar_action .addrule_btn:hover,
.post-type-ffmw .sidebar_action .addrule_btn:focus,
body.post-type-ffmw .sidebar_action .addrule_btn:focus {
    background-color: transparent;
    color: #92610e;
    border: 0.063rem solid #92610e;
}

/* Selected condition type style */
/* .post-type-ffmw .sidebar_body .sidebar_detail .selected-condition-type:hover,
body.post-type-ffmw .sidebar_body .sidebar_detail .selected-condition-type:hover {
    filter: brightness(0) saturate(100%) invert(22%) sepia(49%) saturate(3739%) hue-rotate(239deg) brightness(74%) contrast(101%);
} */
#offcanvasAdvanced .sidebar_body .sidebar_detail .selected-condition-type:hover {
    filter: brightness(0) saturate(100%) invert(34%) sepia(97%) saturate(894%) hue-rotate(21deg) brightness(92%) contrast(89%);
}
.post-type-ffmw .sidebar_body .sidebar_detail .selected-condition-type::after,
body.post-type-ffmw .sidebar_body .sidebar_detail .selected-condition-type::after {
    content: '';
    background-image: url(../images/condition-arrow-right.svg);
    background-repeat: no-repeat;
    background-position: center;
    width: 1rem;
    height: 1rem;
    transition: all 0.3s ease-in-out;
}
/* .post-type-ffmw .sidebar_body .sidebar_detail .selected-condition-type .placeholder,
body.post-type-ffmw .sidebar_body .sidebar_detail .selected-condition-type .placeholder {
    color: #9ca3af;
} */
.post-type-ffmw .fee_type_detail,
body.post-type-ffmw .fee_type_detail,
.post-type-ffmw .fee_value_detail,
body.post-type-ffmw .fee_value_detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.post-type-ffmw .fee_value_detail h3{
    min-width:150px;
}
.post-type-ffmw .fee_type_detail {
    margin-bottom: 0.75rem;
}
.post-type-ffmw .fee_type_detail img {
    filter: brightness(0) saturate(100%) invert(22%) sepia(49%) saturate(3739%) hue-rotate(239deg) brightness(74%) contrast(101%);
}
.post-type-ffmw .fee_value_detail .fee-value,
body.post-type-ffmw .fee_value_detail .fee-value {
    font-size: 1rem;
    font-weight: 500;
    color: #3a3a3a;
}
#offcanvasAdvanced .sidebar_header {
    border-bottom: 0.063rem solid #D1D1D1;
}

/* Advanced sidebar condition rule card */
.post-type-ffmw .advance-rule-card .rule-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border: 1px solid #d1d1d1;
    background-color: #f6f6f6;
    padding: 1.125rem;
    margin: 0 -1rem 1rem -1rem;
	border-right: 0px;
	border-left: 0px;
}
.post-type-ffmw .advance-rule-card .rule-card-header p {
    font-size: 0.875rem;
    font-weight: 700;
    color: #888;
    margin: 0;
}
.post-type-ffmw .advance-rule-card .rule-card-header .rule-card-actions {
    display: flex;
    gap: 0.5rem;
}
.post-type-ffmw .rule-card-actions .icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-type-ffmw .rule-card-actions .icon-btn.delete-btn,
.post-type-ffmw .rule-card-actions .icon-btn.toggle-btn {
    border-radius: 6.188rem;
    gap: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
}
.post-type-ffmw .rule-card-actions .icon-btn.delete-btn {
    padding: 0.5rem 0.375rem !important;
    border: 0.063rem solid #dc2626 !important;
}
.post-type-ffmw .rule-card-actions .icon-btn.toggle-btn {
    padding: 0.5rem 0.563rem !important;
    border: 0.063rem solid #d1d1d1;
}
.post-type-ffmw .rule-card-actions .icon-btn.toggle-btn img {
    transition: transform 0.3s ease;
}
.post-type-ffmw .advance-rule-card.collapsed .icon-btn.toggle-btn img {
    transform: rotate(180deg);
}
.post-type-ffmw .advance-rule-card .rule-card-body {
    max-height: 62.5rem;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}
.post-type-ffmw .advance-rule-card.collapsed .rule-card-body {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}
.post-type-ffmw .advance-rule-card .rule-card-body .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.post-type-ffmw .advance-rule-card .rule-card-body .form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #3a3a3a;
	margin-bottom: 8px;
}
.post-type-ffmw .advance-rule-card .rule-card-body .form-group .sidebar_input label {
    display: none;
}
.post-type-ffmw .advance-rule-card .rule-card-body .form-group input {
    padding: 0.75rem 0.875rem;
    border-radius: 0.5rem;
    background-color: #f6f6f6;
    font-size: 0.875rem;
    font-weight: 500;
    color: #999;
    border: none;
}
 
/* Logical group connectors */
.post-type-ffmw .group-connector {
    position: relative;
    margin: -2.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.post-type-ffmw .group-connector::before {
    content: '';
    position: absolute;
    top: -2.5rem;
    bottom: -2.5rem;
    left: 50%;
    width: 0.125rem;
    background-color: #ccc;
    transform: translateX(-50%);
    z-index: 0;
}
.post-type-ffmw .group-connector .group-label {
    background-color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 1.25rem;
    font-weight: 500;
    color: #292929;
    border: 0.063rem solid #ccc;
    z-index: 1;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.07em;
    color: #1f2937;
    border-color: #a5b4fc;
    background-color: #eef2ff;
}

/* ==========================================================================
   Main Fee Manager Admin Styles - Scoped with parent class
   ========================================================================== */

/* Main parent class for all fee manager admin styles */
.flexible-fees-manager-for-woocommerce-admin,
.post-type-ffmw {
	/* Ensure consistent box-sizing */
	box-sizing: border-box;
}

/* Table and list styles */
.post-type-ffmw .column-actions {
	border-radius: 0 0.75rem 0.75rem 0;
}
.post-type-ffmw .check-column input:hover+label,
.post-type-ffmw .check-column label:hover {
	background: none !important;
}

/* Fee setting header styles */
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options li.status-future {
	background-color: #FFF3ED;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options li.status-future:hover .header_detail_status-radio {
	background-color: #FFE3D5;
	border: 0.063rem solid #FDA374;
}
.post-type-ffmw .fee_setting_header .header_bottom_wrapper .header_detail .header_detail_status.open .header_detail_status-options li.status-future:hover .radio {
	background-color: #EA580C;
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 6.25rem;
}

/* Postbox and footer styles */
.post-type-ffmw .postbox {
	box-shadow: none !important;
	background: transparent;
}
.post-type-ffmw #wpfooter {
	background: #f6f6f6;
}

/* Status equal display */
.post-type-ffmw .status-equal {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
}

/* Sidebar input styles */
.post-type-ffmw .sidebar_input {
	display: flex;
	flex-direction: column;
	padding: 0 18px;
}
.post-type-ffmw .sidebar_input .selection .select2-selection--multiple .select2-selection__rendered .select2-search--inline {
	margin: 0px;
}
.post-type-ffmw .sidebar_input .selection .select2-selection--multiple {
	border: 1px solid #d7d7d7 !important;
	padding: 6px;
	margin-bottom: 1px;
}
.post-type-ffmw .sidebar_input .selection:focus,
.post-type-ffmw .sidebar_input .selection:focus-visible {
	box-shadow: none;
}
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .wc-product-search + .select2-container--default .select2-selection--multiple:focus,
.post-type-ffmw .sidebar_wrapper .sidebar_body .sidebar_input .wc-product-search + .select2-container--default .select2-selection--multiple:focus-visible {
	box-shadow: none;
}
.post-type-ffmw .sidebar_input .selection .select2-selection--multiple .select2-selection__rendered .select2-search--inline .select2-search__field {
	margin: 0px;
}

/* Select2 styles */
.post-type-ffmw .wp-admin.wc-wp-version-gte-53 .select2-container.select2-container--open .select2-selection--multiple {
	box-shadow: none !important;
}
.post-type-ffmw .select2-container--default .select2-selection--multiple .select2-selection__rendered {
	padding: 0px !important;
	display: flex !important;
	flex-direction: column !important;
}
.post-type-ffmw .select2-container--default .select2-selection--multiple .select2-selection__clear {
	text-align: right;
	position: absolute;
	top: -29px;
	right: 0;
}
body.post-type-ffmw .select2-container--open .select2-dropdown--below {
	border: none !important;
	box-shadow: none !important;
	border-radius: 0 0 6px 6px !important;
	background: #f6f6f6 !important;
}

/* Fee edit background pattern */
.post-type-ffmw .ffmw-fee-edit,
#wpbody.ffmw-fee-edit {
	--dot-bg: white;
	--dot-color: #80808029;
	--dot-size: 3px;
	--dot-space: 25px;
	background:
		linear-gradient(90deg, var(--dot-bg) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center / var(--dot-space) var(--dot-space),
		linear-gradient(var(--dot-bg) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center / var(--dot-space) var(--dot-space),
		var(--dot-color);
}

/* Cell and title styles */
.post-type-ffmw .ffmw-cell .ffmw-title {
	font-size: 14px;
	color: #3a3a3a;
}

/* Rule entity label styles */
.post-type-ffmw .rule-entity-label {
	font-weight: 500;
	color: #3a3a3a;
}
/* ==========================================================================
   PRO Promotion Banner Styles
   ========================================================================== */

.post-type-ffmw .ffmw-pro-promotion-wrapper {
	margin: 30px 20px 0;
	background-image: url(../images/pro-bg.jpg);
	background-size: cover;
	background-position: center;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	padding: 40px 20px;
	display: flex;
	flex-direction: column;
	gap: 40px;
	text-align: center;
}

.post-type-ffmw .ffmw-pro-promotion-container {
	display: flex;
	align-items: center;
	gap: 80px;
	margin: 0px auto;
	max-width: 970px;
	text-align: start;
}

/* Left Panel: PRO Feature Promotion */
.post-type-ffmw .ffmw-pro-promotion-left {
	flex: 1;
	color: #ffffff;
	display: flex;
	align-items: center;
	position: relative;
}

.post-type-ffmw .ffmw-pro-promotion-content {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: start;
	gap: 18px;
}

.post-type-ffmw .ffmw-pro-promotion-subtitle {
	font-size: 14px !important;
	line-height: 120% !important;
	font-weight: 400 !important;
	color: #FFFFFFB2 ;
}

.post-type-ffmw .ffmw-pro-promotion-title {
	font-size: 32px !important;
	font-weight: 400 !important;
	line-height: 100% !important;
	color: #ffffff !important;
}

.post-type-ffmw .ffmw-pro-promotion-description {
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 140% !important;
	color: #FFFFFFB2 !important;
}

.post-type-ffmw .ffmw-pro-promotion-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #5441EA;
	color: #FFFFFF;
	padding: 8px 16px;
	border-radius: 100px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	margin-top: 14px;
}

.post-type-ffmw .ffmw-pro-promotion-button:hover {
	background: #4230d3;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-type-ffmw .ffmw-pro-promotion-arrow {
	font-size: 20px;
	font-weight: 400;
	line-height: 10%;
	padding: 0 0 1px 0;
}

.post-type-ffmw .ffmw-pro-promotion-footer {
	font-size: 14px;
	font-weight: 600;
	line-height: 100%;
	color: #FFFFFFB2;
}

/* Right Panel: Cart & Order Summary */
.post-type-ffmw .ffmw-pro-promotion-right {
	flex: 1;
	position: relative;
}

.post-type-ffmw .ffmw-pro-promotion-add-condition {
	background: #FCD34D;
	color: #000000;
	border: none;
	padding: 12px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	margin-bottom: 30px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.3s ease;
}

.post-type-ffmw .ffmw-pro-promotion-add-condition:hover {
	background: #FBBF24;
}

.post-type-ffmw .ffmw-pro-promotion-add-icon {
	font-size: 18px;
	font-weight: 700;
}

.post-type-ffmw .ffmw-pro-promotion-cart-section {
	margin-bottom: 30px;
}

.post-type-ffmw .ffmw-pro-promotion-cart-title {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 20px 0;
	color: #1f2937;
}

.post-type-ffmw .ffmw-pro-promotion-cart-items {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.post-type-ffmw .ffmw-pro-promotion-cart-item {
	display: flex;
	gap: 15px;
	align-items: center;
}

.post-type-ffmw .ffmw-pro-promotion-item-image {
	width: 60px;
	height: 60px;
	flex-shrink: 0;
}

.post-type-ffmw .ffmw-pro-promotion-image-placeholder {
	width: 100%;
	height: 100%;
	background: #e5e7eb;
	border-radius: 4px;
}

.post-type-ffmw .ffmw-pro-promotion-item-details {
	flex: 1;
}

.post-type-ffmw .ffmw-pro-promotion-item-name {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 8px 0;
	color: #1f2937;
}

.post-type-ffmw .ffmw-pro-promotion-item-meta {
	display: flex;
	gap: 15px;
	font-size: 13px;
	color: #6b7280;
}

.post-type-ffmw .ffmw-pro-promotion-item-price {
	font-weight: 600;
	color: #1f2937;
}

.post-type-ffmw .ffmw-pro-promotion-order-summary {
	border-top: 1px solid #e5e7eb;
	padding-top: 20px;
}

.post-type-ffmw .ffmw-pro-promotion-order-title {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0 0 15px 0;
	color: #1f2937;
}

.post-type-ffmw .ffmw-pro-promotion-order-details {
	margin-bottom: 20px;
}

.post-type-ffmw .ffmw-pro-promotion-order-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	font-size: 14px;
	color: #4b5563;
}

.post-type-ffmw .ffmw-pro-promotion-fee-highlight {
	background: #F3E8FF;
	padding: 10px 12px;
	margin: 5px -12px;
	border-radius: 4px;
	font-weight: 600;
	color: #6B46C1;
}

.post-type-ffmw .ffmw-pro-promotion-total {
	font-size: 16px;
	font-weight: 700;
	color: #1f2937;
	border-top: 2px solid #e5e7eb;
	padding-top: 12px;
	margin-top: 8px;
}

.post-type-ffmw .ffmw-pro-promotion-checkout-button {
	width: 100%;
	background: #1e40af;
	color: #ffffff;
	border: none;
	padding: 14px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	margin-bottom: 12px;
	transition: all 0.3s ease;
}

.post-type-ffmw .ffmw-pro-promotion-checkout-button:hover {
	background: #1e3a8a;
}

.post-type-ffmw .ffmw-pro-promotion-continue-shopping {
	display: block;
	text-align: center;
	color: #6b7280;
	font-size: 14px;
	text-decoration: none;
	transition: color 0.3s ease;
}

.post-type-ffmw .ffmw-pro-promotion-continue-shopping:hover {
	color: #1f2937;
}

/* Floating Condition Card */
.post-type-ffmw .ffmw-pro-promotion-condition-card {
	position: absolute;
	bottom: 20px;
	left: 20px;
	background: #ffffff;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	min-width: 280px;
	z-index: 10;
}

.post-type-ffmw .ffmw-pro-promotion-condition-title {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 15px 0;
	color: #1f2937;
}

.post-type-ffmw .ffmw-pro-promotion-condition-details {
	margin-bottom: 15px;
}

.post-type-ffmw .ffmw-pro-promotion-condition-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
	font-size: 13px;
}

.post-type-ffmw .ffmw-pro-promotion-condition-label {
	color: #6b7280;
}

.post-type-ffmw .ffmw-pro-promotion-condition-value {
	font-weight: 600;
	color: #1f2937;
}

.post-type-ffmw .ffmw-pro-promotion-condition-actions {
	display: flex;
	gap: 10px;
}

.post-type-ffmw .ffmw-pro-promotion-condition-btn {
	flex: 1;
	background: #6B46C1;
	color: #ffffff;
	border: none;
	padding: 10px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.post-type-ffmw .ffmw-pro-promotion-condition-btn:hover {
	background: #5B21B6;
}

.post-type-ffmw .ffmw-pro-promotion-condition-btn-secondary {
	background: #f3f4f6;
	color: #1f2937;
}

.post-type-ffmw .ffmw-pro-promotion-condition-btn-secondary:hover {
	background: #e5e7eb;
}

.post-type-ffmw .ffmw-pro-promotion-cart {
	width: 100%;
}

.post-type-ffmw .ffmw-pro-promotion-cart img {
	max-width: 100%;
	height: auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
	.post-type-ffmw .ffmw-pro-promotion-container {
		flex-direction: column;
	}

	.post-type-ffmw .ffmw-pro-promotion-left {
		padding: 40px 30px;
	}

	.post-type-ffmw .ffmw-pro-promotion-title {
		font-size: 28px;
	}

	.post-type-ffmw .ffmw-pro-promotion-condition-card {
		position: relative;
		bottom: auto;
		left: auto;
		margin-top: 20px;
	}
}

@media (max-width: 768px) {
	.post-type-ffmw .ffmw-pro-promotion-wrapper {
		margin: 20px 10px 0;
	}

	.post-type-ffmw .ffmw-pro-promotion-left {
		padding: 30px 20px;
	}

	.post-type-ffmw .ffmw-pro-promotion-right {
		padding: 30px 20px;
	}

	.post-type-ffmw .ffmw-pro-promotion-title {
		font-size: 24px;
	}

	.post-type-ffmw .ffmw-pro-promotion-description {
		font-size: 14px;
	}
}

/* ==========================================================================
   Pro Badge Styles
   ========================================================================== */

.post-type-ffmw .condition_modal .condition-list .condition-item .custom-label .pro-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 3px;
	vertical-align: middle;
}

.post-type-ffmw .condition_modal .condition-list .condition-item.condition-item-pro {
	cursor: not-allowed;
}

.post-type-ffmw .condition_modal .condition-list .condition-item.condition-item-pro .circle-wrapper {
	opacity: 0.6;
}

.post-type-ffmw .condition_modal .condition-list .condition-item.condition-item-pro .custom-icon {
	opacity: 0.6;
}

.post-type-ffmw .condition_modal .condition-list .condition-item.condition-item-pro .custom-label {
	color: rgba(136, 136, 136, 0.5);
}

.post-type-ffmw .condition_modal .condition-list .condition-item.condition-item-pro:hover {
	background-color: transparent;
}

.post-type-ffmw .condition_option.condition-option-pro {
	position: relative;
	opacity: 0.6;
	cursor: not-allowed;
}

.post-type-ffmw .condition_option.condition-option-pro .pro-badge-inline {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 6px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	font-size: 9px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 3px;
	vertical-align: middle;
}

.post-type-ffmw .condition_option.condition-option-pro:hover {
	opacity: 0.6 !important;
}

/* ==========================================================================
   Notification Styles
   ========================================================================== */

.post-type-ffmw .ffmw-notifications-stack {
	position: fixed;
	top: 2.5rem;
	right: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	z-index: 99999;
	pointer-events: none;
}

.post-type-ffmw .ffmw-notification-container {
	max-width: 21rem;
	width: 100%;
	margin: 0;
	pointer-events: auto;
}

.post-type-ffmw .ffmw-notification-container .ffmw-notification {
	display: flex;
	align-items: start;
	justify-content: space-between;
	border-radius: 0.25rem;
	padding: 0.75rem;
	position: relative;
	box-shadow: 0 0.25rem 0.556rem 0 rgba(0, 0, 0, 0.2);
	gap: 15px;
}

.post-type-ffmw .ffmw-notification-container .ffmw-notification.ffmw-notification--success {
	background: linear-gradient(90deg, #f0fdf5 0%, #fff 100%);
}

.post-type-ffmw .ffmw-notification-container .ffmw-notification.ffmw-notification--error {
	background: linear-gradient(90deg, #fef2f2 0%, #fff 100%);
}

.post-type-ffmw .ffmw-notification-container .ffmw-notification.ffmw-notification--warning {
	background: linear-gradient(90deg, #fff8eb 0%, #fff 100%);
}

.post-type-ffmw .ffmw-notification-container .ffmw-notification.ffmw-notification--info {
	background: linear-gradient(90deg, #EEF1FF 0%, #fff 100%);
}

.post-type-ffmw .ffmw-notification-container .ffmw-notification .ffmw-notification__icon {
	border-radius: 6.188rem;
	display: flex;
	align-items: center;
}

.post-type-ffmw .ffmw-notification-container .ffmw-notification.ffmw-notification--success .ffmw-notification__icon {
	border: 0.063rem solid #86efad;
	background-color: #dcfce8;
}

.post-type-ffmw .ffmw-notification-container .ffmw-notification.ffmw-notification--error .ffmw-notification__icon {
	border: 0.063rem solid #fca5a5;
	background-color: #fee2e2;
}

.post-type-ffmw .ffmw-notification-container .ffmw-notification.ffmw-notification--warning .ffmw-notification__icon {
	border: 0.063rem solid #fcbb4d;
	background-color: #feeac7;
}

.post-type-ffmw .ffmw-notification-container .ffmw-notification .ffmw-notification__content .ffmw-notification__title {
	font-size: 1rem;
	line-height: 1rem;
	color: #3a3a3a;
	margin: 0;
	font-weight: 500;
	margin-bottom: 0.625rem !important;
}

.post-type-ffmw .ffmw-notification-container .ffmw-notification .ffmw-notification__content .ffmw-notification__message {
	font-size: 0.75rem;
	line-height: 0.75rem;
	font-weight: 500;
	color: #5d5d5d;
	margin-bottom: 0;
}

.post-type-ffmw .ffmw-notification-container .ffmw-notification__border.ffmw-notification__border--thick {
	display: block;
	max-width: 27.063rem;
	width: 88%;
	height: 0.375rem;
	margin: 0 auto;
	border-radius: 0 0 0.375rem 0.375rem;
}

.post-type-ffmw .ffmw-notification-container .ffmw-notification .ffmw-notification__close-btn {
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.25rem;
}
