/*!
This file is part of Automatic Product Categories for WooCommerce. For copyright and licensing information, please see ../../license/license.txt
*/
/*!
 * BerryPress SCSS Framework
 * Copyright (c) 2025 BerryPress
 * Source code: https://github.com/BerryPress/scss-framework
 * License: https://github.com/BerryPress/scss-framework/blob/main/LICENSE
 */
.berrypress-page a.berrypress-doc-note i {
  font-size: 16px;
}
.berrypress-page a.berrypress-doc-note {
  position: relative;
  cursor: pointer;
  display: inline-block;
  margin-right: 8px !important;
}
.berrypress-page a.berrypress-doc-note i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 3px;
  color: #5A607F;
}
.berrypress-page a.berrypress-doc-note::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  text-align: left;
  padding: 8px;
  font-size: 12px;
  line-height: 1.4;
  border-radius: 4px;
  opacity: 0;
  white-space: normal;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
}
.berrypress-page a.berrypress-doc-note:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(5px);
}

.berrypress-page .tablenav-pages {
  margin-right: 20px;
  line-height: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
@media (min-width: 1400px) {
  .berrypress-page .tablenav-pages {
    gap: 20px;
  }
}
.berrypress-page .tablenav-pages input[type=text] {
  min-width: 50px;
  min-height: 26px;
  height: unset;
  line-height: 24px;
}
.berrypress-page .tablenav-pages .displaying-num {
  color: #7e84a3;
}
.berrypress-page .tablenav-pages .paging-input {
  padding-left: 5px;
  padding-right: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.berrypress-page .tablenav-pages .pagination-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}
.berrypress-page .tablenav-pages .pagination-links span[aria-hidden=true],
.berrypress-page .tablenav-pages .pagination-links a span[aria-hidden=true] {
  visibility: hidden;
  position: relative;
  display: inline-flex;
  font-family: "Material Symbols Rounded BerryPress", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
  background-color: transparent !important;
  font-size: 0;
}
.berrypress-page .tablenav-pages .pagination-links span[aria-hidden=true].disabled,
.berrypress-page .tablenav-pages .pagination-links a span[aria-hidden=true].disabled {
  opacity: 0.4;
}
.berrypress-page .tablenav-pages .pagination-links span[aria-hidden=true]::before,
.berrypress-page .tablenav-pages .pagination-links a span[aria-hidden=true]::before {
  visibility: visible;
  content: "";
  font-size: 16px;
  position: relative;
  top: 0;
  left: 0;
  text-align: center;
  color: #5A607F;
}
.berrypress-page .tablenav-pages .pagination-links .button {
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 5px;
  display: inline-flex;
  padding: 0;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 26px;
}
.berrypress-page .tablenav-pages .pagination-links .button:disabled {
  border: 1px solid transparent;
}
.berrypress-page .tablenav-pages .pagination-links .button:hover {
  background-color: #F3F5F9;
}
.berrypress-page .tablenav-pages .pagination-links .button:focus {
  outline: none;
  color: #0070F0;
  box-shadow: unset;
  border: 1px solid #d7dbec;
}
.berrypress-page .tablenav-pages .pagination-links span[aria-hidden=true]:first-of-type::before,
.berrypress-page .tablenav-pages .pagination-links a.first-page span[aria-hidden=true]::before {
  content: "\eac3";
}
.berrypress-page .tablenav-pages .pagination-links span[aria-hidden=true]:nth-of-type(2)::before,
.berrypress-page .tablenav-pages .pagination-links a.prev-page span[aria-hidden=true]::before {
  content: "\e314";
}
.berrypress-page .tablenav-pages .pagination-links .paging-input + a.next-page span[aria-hidden=true]::before,
.berrypress-page .tablenav-pages .pagination-links .paging-input + span[aria-hidden=true]:nth-last-of-type(2):not(.tablenav-paging-text)::before {
  content: "\e315";
}
.berrypress-page .tablenav-pages .pagination-links a.last-page span[aria-hidden=true]::before,
.berrypress-page .tablenav-pages .pagination-links span[aria-hidden=true]:last-of-type::before {
  content: "\eac9";
}

.berrypress-page .berrypress-top-bar {
  text-align: center;
  background-color: #e6e9f4;
}
.berrypress-page .berrypress-top-bar h2 {
  font-size: 13px;
  font-weight: 500;
}
.berrypress-page .berrypress-top-bar a.berrypress-link {
  font-size: 13px;
  color: #0070F0;
}
.berrypress-page .berrypress-top-bar a.berrypress-link i {
  vertical-align: middle;
}

.php-apc-progress-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px;
  border: 1px solid #F3F5F9;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  z-index: 999999;
  width: 90%;
  max-width: 300px;
}
.php-apc-progress-container .php-apc-progress-label {
  font-weight: 500;
}
.php-apc-progress-container progress {
  width: 100%;
  height: 10px;
  background-color: #F3F5F9;
  border: 1px solid #e6e9f4;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
  margin-bottom: 5px;
}
.php-apc-progress-container progress::-webkit-progress-bar {
  background-color: #F3F5F9;
  border-radius: 10px;
}
.php-apc-progress-container progress::-webkit-progress-value {
  background-color: #0070F0;
  border-radius: 10px;
  transition: width 0.3s ease-in-out;
}
.php-apc-progress-container progress::-moz-progress-bar {
  background-color: #0070F0;
  border-radius: 10px;
  transition: width 0.3s ease-in-out;
}
.php-apc-progress-container progress {
  color: #0070F0;
}

.berrypress-page h3 {
  margin: 0;
  color: #5A607F;
  font-size: 12px;
  font-weight: 500;
}
.berrypress-page table.php-apc-rules.berrypress-table {
  overflow: auto;
}
.berrypress-page table.php-apc-rules.berrypress-table a.berrypress-doc-note i {
  min-height: 30px;
  vertical-align: middle;
}
.berrypress-page table.php-apc-rules.berrypress-table {
  margin-top: 15px;
}
.berrypress-page table.php-apc-rules.berrypress-table .php-apc-template {
  display: none;
}
.berrypress-page table.php-apc-rules.berrypress-table .php-apc-rule-edit {
  display: none;
}
.berrypress-page table.php-apc-rules.berrypress-table .php-apc-rule-edit.php-apc-active {
  display: table-row;
}
.berrypress-page table.php-apc-rules.berrypress-table tr:not(.php-apc-rule-edit) {
  cursor: pointer;
}
.berrypress-page table.php-apc-rules.berrypress-table .php-apc-rule-edit-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 5px;
  margin-bottom: 30px;
}
.berrypress-page table.php-apc-rules.berrypress-table .php-apc-rule-edit-group h3 {
  flex: 0 0 100px;
}
@media (min-width: 500px) {
  .berrypress-page table.php-apc-rules.berrypress-table .php-apc-rule-edit-group.php-apc-rule-edit-group-status {
    padding-left: 120px;
    margin-bottom: 15px;
  }
}
.berrypress-page table.php-apc-rules.berrypress-table .php-apc-rule-edit-group > .php-apc-rule-edit-settings {
  flex: 1; /* Takes up remaining space, min 240px */
  min-width: 240px;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  border-radius: 8px;
  position: relative;
}
.berrypress-page table.php-apc-rules.berrypress-table .php-apc-rule-edit-group fieldset legend {
  position: absolute;
  top: -12px;
  background-color: #fff;
  padding: 0 10px;
  margin-left: -10px;
}
.berrypress-page table.php-apc-rules.berrypress-table .php-apc-rule-edit-group-label > .php-apc-rule-edit-settings {
  border: 1px solid #e6e9f4;
  padding: 15px 25px 15px;
  min-height: 100px;
}
@media (min-width: 981px) {
  .berrypress-page table.php-apc-rules.berrypress-table .php-apc-rule-edit-group-label > .php-apc-rule-edit-settings {
    padding-top: 25px;
  }
}
.berrypress-page table.php-apc-rules.berrypress-table .php-apc-rule-edit-group-status {
  padding-top: 30px;
}
.berrypress-page table.php-apc-rules.berrypress-table .php-apc-rule-edit-group-groups h3 {
  padding-top: 5px;
}
.berrypress-page table.php-apc-rules.berrypress-table .php-apc-rule-edit-group-groups .php-apc-group-description {
  margin-bottom: 15px;
}
.berrypress-page table.php-apc-rules.berrypress-table ul.php-apc-list-conditions > li > *,
.berrypress-page table.php-apc-rules.berrypress-table ul.php-apc-list-actions > li > * {
  margin-right: 4px;
  margin-bottom: 4px;
  vertical-align: top;
}
.berrypress-page table.php-apc-rules.berrypress-table i.berrypress-icon-drag-indicator::before {
  content: "\e945";
}
.berrypress-page table.php-apc-rules.berrypress-table ul.php-apc-list-conditions > li > .php-apc-drag-handle {
  cursor: grab;
  opacity: 0.4;
  vertical-align: middle;
  margin-top: 5px;
  color: #5A607F;
}
.berrypress-page table.php-apc-rules.berrypress-table ul.php-apc-list-conditions > li > .php-apc-drag-handle:hover {
  opacity: 0.8;
}
.berrypress-page table.php-apc-rules.berrypress-table ul.php-apc-list-conditions > li.ui-sortable-helper {
  background: #fafbfd;
}
.berrypress-page table.php-apc-rules.berrypress-table ul.php-apc-list-conditions > li.ui-sortable-placeholder {
  visibility: visible !important;
  border: 1px dashed #d7dbec;
  background: transparent;
  height: 30px;
}
.berrypress-page table.php-apc-rules.berrypress-table ul.php-apc-list-actions > li > .select2,
.berrypress-page table.php-apc-rules.berrypress-table ul.php-apc-list-conditions > li > .select2 {
  margin-bottom: 0;
}
.berrypress-page table.php-apc-rules.berrypress-table ul.php-apc-list-actions > li > .select2 .select2-dropdown,
.berrypress-page table.php-apc-rules.berrypress-table ul.php-apc-list-conditions > li > .select2 .select2-dropdown {
  top: -2px;
}
.berrypress-page table.php-apc-rules.berrypress-table ul.php-apc-list-actions > li .select2-selection.select2-selection--single,
.berrypress-page table.php-apc-rules.berrypress-table ul.php-apc-list-conditions > li .select2-selection.select2-selection--single {
  margin-bottom: 4px;
  display: inline-block;
  vertical-align: middle;
}
.berrypress-page table.php-apc-rules.berrypress-table tr:not(.php-apc-rule-edit):hover {
  background-color: #fafbfd;
}
.berrypress-page table.php-apc-rules.berrypress-table td.hidden,
.berrypress-page table.php-apc-rules.berrypress-table th.hidden {
  width: 0;
  padding: 0;
  overflow: hidden;
  border: none;
  font-size: 0;
}
.berrypress-page table.php-apc-rules.berrypress-table thead .check-column {
  width: 70px;
  border-bottom: 1px solid #e6e9f4;
}
.berrypress-page table.php-apc-rules.berrypress-table thead .check-column input {
  margin-left: 8px;
}
.berrypress-page table.php-apc-rules.berrypress-table tfoot .check-column {
  width: 70px;
}
.berrypress-page table.php-apc-rules.berrypress-table tfoot .check-column input {
  margin-left: 8px;
}
.berrypress-page table.php-apc-rules.berrypress-table tbody .check-column {
  width: unset;
  text-align: left;
  vertical-align: middle;
  padding: 0 0 0 12px !important;
  border-bottom: 1px solid #e6e9f4;
}
.berrypress-page table.php-apc-rules.berrypress-table tbody .check-column label {
  position: initial;
  width: 20px;
  height: 20px;
  display: inline-block;
}
.berrypress-page table.php-apc-rules.berrypress-table tbody .check-column input {
  margin: -5px 0 0;
}
.berrypress-page table.php-apc-rules.berrypress-table tbody .check-column button {
  display: inline-block;
  text-align: center;
}
.berrypress-page table.php-apc-rules.berrypress-table th > button.php-apc-settings-toggle {
  pointer-events: none;
}
.berrypress-page table.php-apc-rules.berrypress-table tr.php-apc-active .php-apc-settings-toggle .berrypress-icon-expand_more {
  transform: scale(-1);
}
.berrypress-page table.php-apc-rules.berrypress-table .column-status .php-apc-rule-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  background-color: #f0142f;
}
.berrypress-page table.php-apc-rules.berrypress-table .column-status .php-apc-rule-status-enabled::before {
  background-color: #21d59b;
}
.berrypress-page table.php-apc-rules.berrypress-table .column-primary {
  min-width: 100px;
}
.berrypress-page table.php-apc-rules.berrypress-table .column-primary input {
  width: 100%;
  min-width: 100%;
}
.berrypress-page table.php-apc-rules.berrypress-table .column-action button {
  margin-bottom: 5px;
}
@media (max-width: 620px) {
  .berrypress-page table.php-apc-rules.berrypress-table .php-apc-rule-edit-settings fieldset legend {
    position: relative;
  }
  .berrypress-page table.php-apc-rules.berrypress-table .php-apc-rule-edit-settings fieldset legend select,
  .berrypress-page table.php-apc-rules.berrypress-table .php-apc-rule-edit-settings fieldset legend input[type=text] {
    width: 60px;
  }
  .berrypress-page table.php-apc-rules.berrypress-table .php-apc-rule-edit-settings select,
  .berrypress-page table.php-apc-rules.berrypress-table .php-apc-rule-edit-settings input[type=text] {
    width: 100%;
  }
}
.berrypress-page:has(.berrypress-table-small) button.toggle-row {
  display: none !important;
}
.berrypress-page:has(.berrypress-table-small) .tablenav.top .actions {
  display: block !important;
}
.berrypress-page:has(.berrypress-table-small) table.php-apc-rules.berrypress-table.wp-list-table.berrypress-table-small {
  display: block;
}
.berrypress-page:has(.berrypress-table-small) table.php-apc-rules.berrypress-table.wp-list-table.berrypress-table-small tfoot,
.berrypress-page:has(.berrypress-table-small) table.php-apc-rules.berrypress-table.wp-list-table.berrypress-table-small thead {
  display: none; /* Hide table headers on mobile */
}
.berrypress-page:has(.berrypress-table-small) table.php-apc-rules.berrypress-table.wp-list-table.berrypress-table-small td:empty {
  display: none !important;
}
.berrypress-page:has(.berrypress-table-small) table.php-apc-rules.berrypress-table.wp-list-table.berrypress-table-small tr.php-apc-rule-edit.php-apc-active,
.berrypress-page:has(.berrypress-table-small) table.php-apc-rules.berrypress-table.wp-list-table.berrypress-table-small tbody,
.berrypress-page:has(.berrypress-table-small) table.php-apc-rules.berrypress-table.wp-list-table.berrypress-table-small tr {
  display: block;
  width: 100% !important;
}
.berrypress-page:has(.berrypress-table-small) table.php-apc-rules.berrypress-table.wp-list-table.berrypress-table-small tbody tr th.check-column {
  width: 60px !important;
  display: inline-block;
  border-bottom: 1px solid #e6e9f4;
  padding: 15px 0 0 15px !important;
  height: 45px;
}
.berrypress-page:has(.berrypress-table-small) table.php-apc-rules.berrypress-table.wp-list-table.berrypress-table-small tbody td.column-name {
  min-width: 180px;
  width: calc(100% - 100px) !important;
  display: inline-block;
  height: 45px;
  padding: 15px 5px 0 15px;
}
.berrypress-page:has(.berrypress-table-small) table.php-apc-rules.berrypress-table.wp-list-table.berrypress-table-small tbody td.column-name h2 {
  line-height: 30px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.berrypress-page:has(.berrypress-table-small) table.php-apc-rules.berrypress-table.wp-list-table.berrypress-table-small tr.php-apc-rule-edit,
.berrypress-page:has(.berrypress-table-small) table.php-apc-rules.berrypress-table.wp-list-table.berrypress-table-small tr.php-apc-template {
  display: none;
}
.berrypress-page:has(.berrypress-table-small) table.php-apc-rules.berrypress-table.wp-list-table.berrypress-table-small tr.php-apc-rule-edit td {
  flex-direction: column;
  background-color: rgba(250, 251, 253, 0.6588235294);
}
.berrypress-page:has(.berrypress-table-small) table.php-apc-rules.berrypress-table.wp-list-table.berrypress-table-small tr.php-apc-rule-edit td fieldset legend {
  background-color: rgba(250, 251, 253, 0.6588235294);
}
.berrypress-page:has(.berrypress-table-small) table.php-apc-rules.berrypress-table.wp-list-table.berrypress-table-small td {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 8px 15px;
  border-bottom: 1px solid #e6e9f4;
}
.berrypress-page:has(.berrypress-table-small) table.php-apc-rules.berrypress-table.wp-list-table.berrypress-table-small td.column-action {
  border-color: #e6e9f4;
}
.berrypress-page:has(.berrypress-table-small) table.php-apc-rules.berrypress-table.wp-list-table.berrypress-table-small td.column-action button {
  margin-right: 4px;
}
.berrypress-page:has(.berrypress-table-small) table.php-apc-rules.berrypress-table.wp-list-table.berrypress-table-small td::before {
  display: none;
}

#screen-options-apply.button-primary {
  cursor: pointer;
  padding: 2px 24px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  border: 1px solid #d7dbec;
  text-align: center;
  transition: background 0.3s ease, opacity 0.3s ease;
  min-height: 24px;
  background-color: #0070F0;
  color: #fff;
  border-color: #0070F0;
  white-space: nowrap;
}
#screen-options-apply.button-primary:hover {
  background-color: rgb(0, 104.86, 224.7);
}
#screen-options-apply.button-primary i {
  font-size: 18px;
  line-height: 18px;
  vertical-align: middle;
  position: relative;
  left: -5px;
}

.php-apc-pro-badge {
  background-color: #e6e9f4;
  color: #5A607F;
  padding: 3px 5px;
  border-radius: 3px;
  font-size: 10px;
  line-height: 1em;
  vertical-align: middle;
}

.berrypress-field input:disabled + label {
  color: #d7dbec;
}
