.ifbdp_switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.ifbdp_switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ifbdp_slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.ifbdp_slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked+.ifbdp_slider {
  background-color: #2271b1;
}

input:focus+.ifbdp_slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked+.ifbdp_slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.ifbdp_slider.ifbdp_round {
  border-radius: 34px;
}

.ifbdp_slider.ifbdp_round:before {
  border-radius: 50%;
}

.tab-content form #ifbdp_tabs .ui-tabs-nav li.ui-state-active {
  background-color: #2271b1;
  border-color: #2271b1;
}

.tab-content form #ifbdp_tabs .ui-tabs-nav li a {
  min-width: 138px;
  text-align: center;
}

.tab-content {
  background-color: #fff;
  display: block;
  border-width: 0;
  padding: 1em 1.4em
}

.nav-tab-wrapper .nav-tab:first-child {
  margin-left: 0;
}

.ifbdp_pos-main {
  display: flex;
  flex-wrap: wrap;
}

.ifbdp_pos-main .ifbdp_pos-inner+.ifbdp_pos-inner {
  margin-left: 15px;
}

.ifbdp_pos-main .ifbdp_pos-inner label {
  vertical-align: top;
}

.ifbdp_pos-main .ifbdp_pos-inner input {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.ifbdp_pos-main .ifbdp_pos-inner input[type=radio]:checked::before {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: 0px;
  background-color: #2271b1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ifbdp_pos-main .ifbdp_pos-inner input[type=radio]:focus {
  border-color: unset;
  box-shadow: unset;
  outline: unset;
}

.nav-tab-active,
.nav-tab-active:hover {
  background-color: #2271b1;
  border-color: #2271b1;
  color: #fff;
}

/* .ui-tabs .ui-tabs-nav li {
  margin: 1px 0.2em 3px 0;
} */
.ui-tabs .ui-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 7px 6px
}

.ui-tabs .ui-tabs-nav li:first-child {
  margin-left: -2px;
}

span.ifbdp_ctooltip {
  margin-left: 5px;
  cursor: pointer;
  position: initial;
  display: inline-block;
}

.form-table th {
  position: relative;
  width: 250px;
}

label.ifbdp_tooltip-content {
  position: absolute;
  bottom: calc(100% - 22px);
  left: 0;
  background: #fff;
  font-size: 12px;
  font-weight: 400;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
  padding: 10px 10px;
  z-index: 1;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  border-radius: 10px 0;
  color: rgb(0 0 0 / 66%);
}

span.ifbdp_ctooltip:hover .ifbdp_tooltip-content {
  opacity: 1;
  bottom: calc(100% - 15px);
}

table.form-table .ifbdp_sidebar_icon th,
table.form-table .ifbdp_sidebar_icon td {
  vertical-align: middle;
}

table.form-table .ifbdp_sidebar_icon.image_show input.ifbdp_sidebar_icon_val,
table.form-table .ifbdp_sidebar_icon.image_show input#ifbdp_upload_image_button {
  display: none;
}

table.form-table .ifbdp_sidebar_icon .ifbdp_image-wrap {
  border: 1px solid #8c8f94;
  border-radius: 5px;
  display: none;
  width: 100%;
  max-width: 72px;
  position: relative;
  /* overflow: hidden; */
  padding-top: 72px;
  /*margin-top: 18px;*/
}

table.form-table .ifbdp_sidebar_icon.image_show .ifbdp_image-wrap {
  display: block;
}

table.form-table .ifbdp_sidebar_icon .ifbdp_image-wrap>img {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  max-height: calc(100% - 20px);
  min-width: calc(100% - 20px);
  min-height: calc(100% - 20px);
  object-fit: contain;
}

table.form-table .ifbdp_sidebar_icon .ifbdp_image-wrap a.ifbdp_remove-image {
  width: 20px;
  height: 20px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0px;
  text-decoration: none;
  position: absolute;
  border: 1px solid#2271b1;
  border-radius: 50px;
  padding: 0px;
  right: -10px;
  top: -10px;
  background-color: #fff;
}

table.form-table .ifbdp_sidebar_icon .ifbdp_image-wrap a.ifbdp_remove-image img {
  display: block;
  margin: auto;
  width: 100%;
  max-width: 10px;
}


.ifbdp-delete-pages {
  padding: 10px 0;
}

.ifbdp-delete-post-types {
  padding: 10px 0;
}

button#ifbdp_delete_post_types_button {
  margin-top: 12px;
}

.ifbdp-media-delete {
  padding: 10px 0;
}

button#ifbdp_delete_media_button {
  margin-top: 12px;
}

.ifbdp-comments-delete {
  padding: 10px 0;
}

button#ifbdp_delete_comments_button {
  margin-top: 10px;
}

#ifbdp-uploads-form {
  padding: 20px;
  margin-top: 20px;
  background: #f0f0f1;
}

.ifbdp-media-delete .filter-date-wrapper>.filter-date-inner,
.ifbdp-media-delete .ifbdp-images-main>div {
  padding: 0 20px 20px;
  background: #f0f0f1;
}

.ifbdp-media-delete .filter-date-wrapper>.filter-date-inner {
  margin-top: 20px;
}

#ifbdp-uploads-form .ifbdp-checkbox-main {
  column-count: 4;
  column-gap: 20px;
}

#ifbdp-uploads-form .ifbdp-checkbox-wrap {
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
  break-inside: avoid-column;
}

#ifbdp-uploads-form input[type="submit"] {
  margin: 20px 0 10px;
}

.ifbdp-inner-folders {
  margin: 0px 0px 0px 20px;
}

#ifbdp-show-all-image-popup {
  border: 1px solid;
  padding: 10px;
}

#ifbdp-show-all-image-popup #ifbdp-all-image-close-popup {
  float: right;
}

#ifbdp-show-attached-image-popup {
  border: 1px solid;
  padding: 10px;
}

#ifbdp-show-attached-image-popup #ifbdp-attached-image-close-popup {
  float: right;
}

#ifbdp-show-unattached-image-popup {
  border: 1px solid;
  padding: 10px;
}

#ifbdp-show-unattached-image-popup #unattached-image-close-popup {
  float: right;
}

#ifbdp-show-dates-image-popup {
  border: 1px solid;
  padding: 10px;
}

#ifbdp-show-dates-image-popup #ifbdp-dates-image-close-popup {
  float: right;
}

#ifbdp-show-month_year-image-popup {
  border: 1px solid;
  padding: 10px;
}

#ifbdp-show-month_year-image-popup #ifbdp_month_year-image-close-popup {
  float: right;
}

#ifbdp-show-year-image-popup {
  border: 1px solid;
  padding: 10px;
}

#ifbdp-show-year-image-popup #ifbdp-year-image-close-popup {
  float: right;
}

#ifbdp-show-author-image-popup {
  border: 1px solid;
  padding: 10px;
}

#ifbdp-show-author-image-popup #ifbdp-author-image-close-popup {
  float: right;
}


/* Popup container styles */
#ifbdp-show-all-image-popup {
  display: none;
  /*position: fixed;
    top: 100px;
    left: 200px;
    bottom: 100px;
    z-index: 9999;
    overflow: auto;*/
}

.image_popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  width: 100%;
  max-width: 700px;
  height: 500px;
  margin: auto;
  background-color: #fff;
  padding: 0 !important;
  border: none !important;
}

.image_popup:after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: -99999;
}

.image_popup>* {
  /*position: relative;
    z-index: 99999;*/
  background-color: #fff;
  width: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
  overflow: hidden auto;
  height: 100%;
}

.image_popup #ifbdp-image-list {
  overflow: hidden auto;
  height: 100%;
}

.image_popup table tr:nth-child(even) td {
  background-color: #f2f2f2;
}

/* Popup content styles */
#ifbdp-show-all-image-popup .popup-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Close button styles */
#ifbdp-all-image-close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

/* Table styles */
#ifbdp-show-all-image-popup table,
.image_popup table {
  width: 100%;
  border-collapse: collapse;
}

#ifbdp-show-all-image-popup th,
#ifbdp-show-all-image-popup td,
.image_popup table td,
.image_popup table th {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: left;
}

#ifbdp-show-all-image-popup th,
.image_popup table th {
  background-color: #f2f2f2;
}

.ifbdp-media-delete .ifbdp-images-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.ifbdp-media-delete .filter-date-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ifbdp-media-delete .filter-date-wrapper>.filter-date-inner select {
  display: block;
  padding: 0 30px 0 10px;
  min-width: 160px;
}

.ifbdp-media-delete .filter-date-wrapper>.filter-date-inner input[type="submit"] {
  margin-top: 20px;
}

.ifbdp-media-delete #ifbdp-image-count-result,
.ifbdp-media-delete #ifbdp_monthswise_images_display,
.ifbdp-media-delete #ifbdp-image-count {
  margin: 13px 0;
}

.ifbdp-media-delete .filter-date-wrapper>.filter-date-inner>div>.button-primary:not(:last-child) {
  margin-right: 4px;
}

.ifbdp-media-delete table.table-total-number th,
table.table-total-number td {
  border: 1px solid #c3c4c7;
  padding: 8px 10px;
  vertical-align: baseline;
}

.ifbdp-media-delete table.table-total-number {
  border-collapse: collapse;
  margin-bottom: 10px;
  width: auto;
}

.ifbdp-media-delete table.table-total-number th {
  width: auto;
}

.ifbdp-media-delete .ifbdp-images-main>div input[type="submit"] {
  margin-top: 4px;
  padding-left: 7px;
  padding-right: 7px;
  font-size: 12px;
}

.image_popup .close-icon {
  font-size: 0 !important;
  background: url(images/close.svg) !important;
  background-repeat: no-repeat !important;
  padding: 0;
  width: 17px;
  height: 17px;
  border: none;
  top: 15px !important;
  position: absolute;
  right: 18px !important;
}

.image_listing {
  width: 100%;
  border-collapse: collapse;
}

.ifbdp-media-delete .image-listing-wrap {
  max-height: 403px;
  overflow-y: auto;
}

#ifbdp-date-range-form>div {
  display: inline-block;
}

.ifbdp-media-delete .ifbdp-images-main>div tr td {
  /* white-space: nowrap; */
}
.ifbdp_loader {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0 0 0 -20px;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.5);
}
.ifbdp_loader img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

@media(max-width:782px) {
  .ifbdp_loader {
    inset: 0 0 0 -10px;
  }
}
@media(max-width:767px) {
  #ifbdp-uploads-form .ifbdp-checkbox-main {
    column-count: auto;
    column-gap: 0;
  }

  .ifbdp-media-delete .ifbdp-images-main {
    grid-template-columns: repeat(1, 1fr);
    margin-top: 20px;
  }

  .ifbdp-media-delete .filter-date-wrapper {
    grid-template-columns: repeat(1, 1fr);
  }

  #ifbdp-uploads-form .ifbdp-checkbox-main .ifbdp-checkbox-wrap {
    display: block;
    margin-bottom: 3px;
  }

  #ifbdp-uploads-form .ifbdp-checkbox-main .ifbdp-checkbox-wrap input[type=checkbox] {
    height: 0.9625rem;
    width: 0.9625rem;
  }

  #ifbdp-uploads-form .ifbdp-checkbox-main .ifbdp-checkbox-wrap input[type=checkbox]:checked:before {
    width: 1.275rem;
    height: 0.575rem;
    margin: -0.1875rem -0.3125rem;
  }
}