.sortable_wcfm_draggable {
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.sortable_wcfm_draggable li {
  margin: 3px 0;
  padding: 0 48px 0 32px;
  font-size: 15px;
  height: 52px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  touch-action: auto;
}

.sortable_wcfm_draggable li:hover {
  cursor: grab;
}

.sortable_wcfm_draggable li span {
  position: absolute;
}

.sortable_wcfm_draggable li span.delete_icon:hover {
  cursor: pointer;
}

.sortable_wcfm_draggable li span.move_icon {
  left: 8px;
}

.sortable_wcfm_draggable li span.delete_icon {
  right: 8px;
}

.sortable_wcfm_draggable li input.variety_percentage {
  padding: 8px;
  height: 42px;
  box-shadow: none !important;
  width: 80px;
  margin-right: 10px;
}

.sortable_wcfm_draggable li .variety_percentage_wrap {
  display: flex;
  align-items: center;
}

ul#wcfm_custom_draggable,
ul#wcfm_ingredient_draggable,
ul#wcfm_responsible_consumption_draggable,
ul#wcfm_packaging_draggable,
ul#wcfm_certifications_recognition_draggable {
  width: 100%;
  max-width: 500px;
  padding: 0;
}

ul#wcfm_ingredient_draggable .ingredient_name {
  position: absolute;
  width: 85%;
  height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

ul#wcfm_ingredient_draggable .ingredient_name .cat {
  opacity: 0.5;
}

.nd-wcfm-btn {
  padding: 0.84375em 0.875em 0.78125em !important;
  letter-spacing: 0.046875em !important;
}

.nd-wcfm-btn.btn-primary {
  background: #748cf1 !important;
}

.nd-wcfm-btn.btn-secondary {
  background: #353a56 !important;
}

.nd-wcfm-btn.btn-primary:hover {
  background: #353a56 !important;
}

.nd-wcfm-btn.btn-secondary:hover {
  background: #748cf1 !important;
}

.fade {
  opacity: 0;
  transition: opacity 0.15s linear;
}

.fade.show {
  opacity: 1;
}

.nd-product-form-modal .modal-header p {
  font-size: 14px;
  line-height: 20px;
}

.nd-product-form-modal .close:hover {
  background: transparent;
  color: #748cf1;
}

.nd-product-form-modal input[type="text"] {
  height: 40px;
  padding: 8px 15px;
  font-size: 15px;
}

.nd-product-form-modal input[type="text"]:focus {
  border-color: #748cf1;
}

.nd-product-form-modal .no-result-found {
  clear: both;
  opacity: 0.5;
  display: none;
}

.nd-product-form-modal .nd-list-table td {
  vertical-align: middle !important;
}

.nd-product-form-modal .nd-list-table td.selection-status {
  text-align: right;
  opacity: 0.5;
  font-size: 14px;
  width: 125px;
}

.nd-product-form-modal .nd-list-table td.selection-check {
  width: 45px;
}

.nd-product-form-modal .modal-footer {
  justify-content: space-between;
}

#ingredient_options_modal.nd-product-form-modal .modal-footer {
  justify-content: end;
}

.nd-product-form-modal .nd-checkbox.selected {
  cursor: not-allowed;
  background: #353a56;
}

.nd-product-form-modal .nd-checkbox.selected::before {
  position: relative;
  display: inline-block;
  font-family: "Font Awesome 5 Free";
  -moz-osx-font-smoothing: grayscale;
  content: "\f00c";
  color: #fff;
  font-weight: 900;
  margin-top: 0;
  line-height: 20px !important;
}

.nd-product-form-modal .modal-body-scroll-wrap {
  max-height: calc(100vh - 300px);
  overflow: auto;
  clear: both;
}

.nd-product-form-modal.field_data_translation_modal .default_lang_dis {
  max-height: 100px;
  overflow: auto;
}

.nd-product-form-modal.field_data_translation_modal .modal-body-scroll-wrap.sm-and-up {
  max-height: calc(100vh - 400px);
}

@media(min-width: 768.99px) {
  .nd-product-form-modal.field_data_translation_modal .modal-body-scroll-wrap.sm-and-down {
    max-height: unset;
  }
}

.nd-product-form-modal.field_data_translation_modal .default_lang_dis .default_lng {
  line-height: 1.4em;
}

#newResponsibleConsumptionsModal.nd-product-form-modal .img-thumb-wrap,
#newPackagingModal.nd-product-form-modal .img-thumb-wrap,
#newCertificationsRecognitionsModal.nd-product-form-modal .img-thumb-wrap {
  position: relative;
  min-height: 120px;
}

#newResponsibleConsumptionsModal.nd-product-form-modal .img-thumb-wrap #thumb_responsible_consumption_placeholder,
#newPackagingModal.nd-product-form-modal .img-thumb-wrap #thumb_packaging_placeholder,
#newCertificationsRecognitionsModal.nd-product-form-modal .img-thumb-wrap #thumb_certifications_recognition_placeholder {
  position: absolute;
  left: 0;
  height: 120px;
  background: #fff;
  border: 1px solid #ddd;
}

.nd-product-form-modal input[type="file"] {
  border-color: transparent;
  font-size: 15px;
}

/* body {
  padding: 20px 20px;
} */
.search_ingcn {
  display: flex;
  align-items: center;
  padding: 5px;
}

.search_ingcn .nd-checkbox {
  margin-top: 0;
  box-shadow: none !important;
  background: #fff;
}

.search_varieties_results tr[visible="false"],
.no-result {
  display: none;
}

.search_varieties_results tr[visible="true"] {
  display: table-row;
}

.search_varieties_results tr[visible="false"],
#no-varieties-result {
  display: none;
}

#variety_counter {
  padding: 8px;
  color: #ccc;
}

.plx {
  display: inline-block;
}

.alr_selected {
  display: none;
}

.ing-category-name {
  margin-bottom: 10px;
}

#add_custom_ingredient_model .single_block {
  display: flex;
  align-items: center;
  padding: 3px 5px;
}

#add_custom_ingredient_model .single_block .nd-checkbox {
  margin-top: 0;
}

#add_custom_ingredient_model .modal-content {
  position: relative;
}

.ing-category-list {
  font-size: 14px;
}

.ing-sub-category-name {
  display: inline-block;
  line-height: normal;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.ingredient-categories-wrap {
  display: flex;
  flex-wrap: wrap;
}

.ing-main-menu {
  flex: 0 0 25%;
  max-width: 25%;
}

.ing-main-menu .ing-main-menu-inner {
  margin: 4px;
  padding: 10px;
  height: calc(100% - 10px);
  border: 1px solid #eceef2;
  border-radius: 3px;
}

.main_ingredient_select_menu input.search {
  height: 54px;
}

@media (max-width: 991.99px) {
  .nd-product-form-modal .modal-title-wrap {
    max-width: calc(100% - 350px);
  }

  .nd-product-form-modal .ingredient-categories-wrap .ing-main-menu {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 768.99px) {

  .nd-product-form-modal.field_data_translation_modal .modal-body-scroll-wrap.sm-and-up,
  .nd-product-form-modal.field_data_translation_modal .default_lang_dis {
    max-height: unset;
  }
}

@media only screen and (max-width: 991.99px) and (min-width: 641.99px) {
  .nd-product-form-modal .modal-body-scroll-wrap {
    max-height: calc(100vh - 270px);
  }

  .nd-product-form-modal.field_data_translation_modal .modal-body-scroll-wrap {
    max-height: calc(100vh - 200px);
  }

  :root {
    --modal-search-field-width: 250px;
    --modal-search-field-top-position: -65px;
    --modal-search-field-right-position: 35px;
  }

  .main_ingredient_select_menu input.search,
  .varieties_popup_model .search-varieties-form-group,
  .responsible_consumption_popup_model .search-responsible-consumption-form-group,
  .packaging_popup_model .search-susutatinability-form-group {
    position: absolute;
    background: #fff;
    width: var(--modal-search-field-width);
    top: var(--modal-search-field-top-position);
    right: var(--modal-search-field-right-position);
  }

  .varieties_popup_model #variety_counter,
  #responsible_consumption_counter,
  #packaging_counter {
    position: absolute;
    top: calc(var(--modal-search-field-top-position) - 4px);
    right: calc(var(--modal-search-field-width) + 40px);
  }
}

@media only screen and (max-width: 991.99px) and (min-width: 575.99px) {
  .nd-product-form-modal .modal-dialog {
    max-width: 90vw;
  }
}

@media only screen and (max-width: 991.99px) and (min-width: 480.99px) {
  #add_custom_ingredient_model .add_custom_main_ingredient {
    display: flex;
  }

  #add_custom_ingredient_model .top_section.ingredient,
  #add_custom_ingredient_model .nd-ing-cat-wrap {
    flex: 0 0 50%;
    max-width: 50%;
  }

  #add_custom_ingredient_model .nd-ing-cat-wrap {
    padding-left: 30px;
  }
}

@media (max-width: 640px) {
  .nd-product-form-modal .modal-body-scroll-wrap {
    max-height: calc(100vh - 340px);
  }

  .nd-product-form-modal.field_data_translation_modal .modal-body-scroll-wrap {
    max-height: calc(100vh - 240px);
  }

  .nd-product-form-modal .modal-title-wrap {
    max-width: 100%;
  }

  .nd-product-form-modal .ingredient-categories-wrap .ing-main-menu {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .nd-product-form-modal .modal-footer .nd-wcfm-btn.btn-secondary {
    width: 100%;
  }
}

.modal-footer {
  clear: both;
}

.ing_search_matched {
  background: #748cf13b;
  border-radius: 4px;
}

.search_responsible_consumption_results tr[visible="false"],
.no-result {
  display: none;
}

.counter {
  padding: 8px;
  color: #ccc;
}

.search_responsible_consumption_results tr[visible="false"],
#no-varieties-result {
  display: none;
}

.search_responsible_consumption_results tr[visible="true"] {
  display: table-row;
}

#responsible_consumption_counter {
  padding: 8px;
  color: #ccc;
}

img.item_custom_thumb {
  height: 100%;
  padding: 10px;
}

img.custom_thumb {
  width: 50px;
}

.search_packaging_results tr[visible="false"],
.search_certifications_recognition_results tr[visible="false"],
#no-varieties-result {
  display: none;
}

.search_packaging_results tr[visible="true"],
.search_certifications_recognition_results tr[visible="true"] {
  display: table-row;
}

#packaging_counter {
  padding: 8px;
  color: #ccc;
}

img#thumb_packaging,
img#thumb_certifications_recognition,
img#thumb_responsible_consumption {
  height: 120px;
}

.cus-required {
  border: 1px solid #f86c6b !important;
}

.nd-required-message {
  color: #f86c6b;
  font-size: 13px;
}

div#nd_dialog_success_msg {
  color: #fff;
  text-align: center;
  background: #4dbd74;
}

div#nd_dialog_error_msg {
  color: #fff;
  text-align: center;
  background: #f86c6b;
}

.default_lang_dis input {
  pointer-events: none;
  opacity: 0.6;
  background: #b8b6b6;
}

.nd_dialog_notify_main_value {
  color: red;
  font-size: 12px;
}