/*-------------------------------------------------------------
1. Mixin
--------------------------------------------------------------*/
:root {
  --opbw-primary-color: #172a68;
  --opbw-secondary-color: #f25a87;
  --opbw-border-color: #cccccc;
  --opbw-shadow-color: #36b97e;
}

.opbw-primary-color {
  color: var(--opbw-primary-color);
}

.opbw_hidden {
  display: none !important;
}

.opbw_disable {
  opacity: 0.5;
  pointer-events: none;
}

.opbw-flex {
  display: flex;
}

.opbw_flex_row_reverse {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.opbw_flex_align_items_center {
  align-items: center;
}

.opbw_flex_align_items_start {
  align-items: flex-start;
}

.opbw_flex_align_items_end {
  align-items: flex-end;
}

.opbw_flex_justify_space_between {
  justify-content: space-between;
}

.opbw_flex_justify_content_center {
  justify-content: center;
}

.opbw_flex_justify_content_start {
  justify-content: flex-start;
}

.opbw_flex_justify_content_end {
  justify-content: flex-end;
}

.mt {
  margin-top: 30px;
}

.mb {
  margin-bottom: 30px;
}

.mr {
  margin-right: 30px;
}

.ml {
  margin-left: 30px;
}

.hidden_setting {
  opacity: 0.3;
  pointer-events: none;
}

.opbw_hidden_line {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.opbw_toggle {
  display: inline-flex;
  margin: 5px 0;
  align-items: center;
}
.opbw_toggle .opbwv_toggle_input {
  position: absolute;
  visibility: hidden;
  box-shadow: none !important;
  outline: none !important;
  width: auto !important;
}
.opbw_toggle .opbwv_toggle_input:checked + .opbw_toggle_switch {
  background: var(--opbw-primary-color);
}
.opbw_toggle .opbwv_toggle_input:checked + .opbw_toggle_switch::before {
  left: 23px;
}
.opbw_toggle .opbw_toggle_switch {
  cursor: pointer;
  display: inline-block;
  background: rgba(10, 9, 89, 0.08);
  border-radius: 16px;
  width: 46px !important;
  height: 26px;
  position: relative;
  vertical-align: middle;
  transition: background 0.25s;
  margin-right: 15px;
}
.opbw_toggle .opbw_toggle_switch::before {
  display: block;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 3px;
  transition: all 0.25s ease;
  content: "";
}

#adminmenu .wp-submenu a[href="edit-tags.php?taxonomy=opbw-collection&post_type=product"] {
  background-color: var(--opbw-primary-color);
}
#adminmenu .wp-submenu a[href="edit-tags.php?taxonomy=opbw-collection&post_type=product"]:hover {
  color: var(--opbw-secondary-color);
}

/* TRIPLE SPINNER */
.triple-spinner {
  display: block;
  position: relative;
  width: 125px;
  height: 125px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top: 4px solid #FF5722;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

.triple-spinner::before,
.triple-spinner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 4px solid transparent;
}

.triple-spinner::before {
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-top-color: #FF9800;
  -webkit-animation: spin 3s linear infinite;
  animation: spin 3.5s linear infinite;
}

.triple-spinner::after {
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-top-color: #FFC107;
  -webkit-animation: spin 1.5s linear infinite;
  animation: spin 1.75s linear infinite;
}

@-webkit-keyframes rotate {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes rotate {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-webkit-keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-webkit-keyframes progress-bar-stripes {
  from {
    background-position: 40px 0;
  }
  to {
    background-position: 0 0;
  }
}
@keyframes progress-bar-stripes {
  from {
    background-position: 40px 0;
  }
  to {
    background-position: 0 0;
  }
}
.progress-box {
  margin-bottom: 20px;
  overflow: hidden;
  height: 40px;
  background-color: #e3e3e3;
  border-radius: 4px;
  -webkit-box-shadow: 0 0 0px 3px rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 0px 3px rgba(0, 0, 0, 0.15);
}

.progress-bar {
  float: left;
  max-width: 100%;
  width: 0;
  height: 100%;
  font-size: 20px;
  line-height: 40px;
  color: #fff;
  text-align: center;
  background-color: #428bca;
  -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  -webkit-transition: width 0.6s ease;
  -o-transition: width 0.6s ease;
  transition: width 0.6s ease;
  word-wrap: initial;
  word-break: initial;
}

.progress-striped .progress-bar {
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  -webkit-background-size: 40px 40px;
  background-size: 40px 40px;
}
.progress-striped .progress-bar-success {
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}
.progress-striped .progress-bar-info {
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}
.progress-striped .progress-bar-warning {
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}
.progress-striped .progress-bar-danger {
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}

.progress-bar-striped {
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  -webkit-background-size: 40px 40px;
  background-size: 40px 40px;
}

.progress-box.active .progress-bar {
  -webkit-animation: progress-bar-stripes 2s linear infinite;
  -o-animation: progress-bar-stripes 2s linear infinite;
  animation: progress-bar-stripes 2s linear infinite;
}

.progress-bar.active {
  -webkit-animation: progress-bar-stripes 2s linear infinite;
  -o-animation: progress-bar-stripes 2s linear infinite;
  animation: progress-bar-stripes 2s linear infinite;
}

.progress-bar[aria-valuenow="1"] {
  min-width: 30px;
}

.progress-bar[aria-valuenow="2"] {
  min-width: 30px;
}

.progress-bar[aria-valuenow="0"] {
  min-width: 30px;
  color: #777;
  background-color: transparent;
  background-image: none;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.progress-bar-success {
  background-color: #5cb85c;
}

.progress-bar-info {
  background-color: #5bc0de;
}

.progress-bar-warning {
  background-color: #f0ad4e;
}

.progress-bar-danger {
  background-color: #d9534f;
}

/*-------------------------------------------------------------
2. Steps
--------------------------------------------------------------*/
.opbw-steps {
  margin-bottom: 50px;
}
.opbw-steps .step-indicator {
  margin-top: 50px;
  display: flex;
  align-items: center;
  padding: 0 40px;
}
.opbw-steps .step-indicator .step-icon {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  background: #c2c2c2;
  font-size: 10px;
  text-align: center;
  color: #ffffff;
  position: relative;
  line-height: 50px;
  font-size: 20px;
}
.opbw-steps .step-item {
  display: flex;
  align-items: center;
}
.opbw-steps .step-item:not(:last-child) {
  flex: 1;
}
.opbw-steps .step-item .step {
  display: flex;
  align-items: center;
  flex-direction: column;
  position: relative;
  z-index: 1;
}
.opbw-steps .step-item .step span {
  display: block;
  text-align: center;
  position: absolute;
  bottom: -25px;
  width: 200px;
  color: #c2c2c2;
  font-size: 14px;
  font-weight: bold;
}
.opbw-steps .step-item .step:nth-child(n+2) span {
  left: 50%;
  transform: translateX(-50%);
}
.opbw-steps .step-item .indicator-line {
  width: 100%;
  height: 2px;
  background: #c2c2c2;
  flex: 1;
}
.opbw-steps .step-item.active .step .step-icon {
  background: crimson;
}
.opbw-steps .step-item.active .step span {
  color: crimson;
}
.opbw-steps .step-item.active .indicator-line {
  background: crimson;
}
@media screen and (max-width: 500px) {
  .opbw-steps .step-item .step span {
    font-size: 11px;
    bottom: -20px;
  }
}

/*-------------------------------------------------------------
3. Content
--------------------------------------------------------------*/
#opqw-bulkedit {
  padding: 0 50px 0 0;
}
#opqw-bulkedit .opbw-box {
  padding: 20px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  background-color: #fff;
  position: relative;
  overflow: hidden;
}
#opqw-bulkedit .opbw-box.loading::before, #opqw-bulkedit .opbw-box.loading::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 9;
}
#opqw-bulkedit .opbw-box.loading::before {
  background: rgba(0, 0, 0, 0.6);
}
#opqw-bulkedit .opbw-box.loading::after {
  background: url(../images/loading.gif) no-repeat center;
}
#opqw-bulkedit .opbw_header_settings {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--opbw-border-color);
}
#opqw-bulkedit .opbw_title_page {
  margin: 0;
  font-size: 1.5em;
}

.opbw_setting_form.form-field {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 15px;
  margin: 0;
}
.opbw_setting_form.form-field.opbw_rule_field {
  margin-left: 10px;
}
.opbw_setting_form.form-field .opbw_setting_field, .opbw_setting_form.form-field .select2-container {
  width: 300px !important;
  min-height: 40px;
  max-width: 33.3333%;
}
@media only screen and (max-width: 1170px) {
  .opbw_setting_form.form-field .opbw_setting_field, .opbw_setting_form.form-field .select2-container {
    width: 200px !important;
    padding: 5px;
  }
}
.opbw_setting_form.form-field .woocommerce-help-tip {
  position: absolute;
  left: 335px;
}
.opbw_preview_action .opbw_setting_form.form-field .woocommerce-help-tip {
  left: 135px;
}
@media only screen and (max-width: 1170px) {
  .opbw_setting_form.form-field .woocommerce-help-tip {
    left: 140px;
  }
}
.opbw_setting_form.form-field > label, .opbw_setting_form.form-field > legend {
  width: 300px;
  margin-right: 50px;
  max-width: 33.3333%;
}
.opbw_preview_action .opbw_setting_form.form-field > label, .opbw_preview_action .opbw_setting_form.form-field > legend {
  width: 120px;
  margin-right: 30px;
}
@media only screen and (max-width: 1170px) {
  .opbw_setting_form.form-field > label, .opbw_setting_form.form-field > legend {
    width: 100px;
  }
}

.opbw-content .options_group {
  border-bottom: 1px solid var(--opbw-border-color);
}
.opbw-content .options_group > ul {
  margin-top: 0;
}
.opbw-content .options_group > ul > li {
  margin-bottom: 25px;
}
.opbw-content .wc-radios {
  display: flex;
  grid-gap: 30px;
}
.opbw-content .wc-radios > li {
  margin-bottom: 0;
}

.opbw_preview_action .form-field {
  margin: 0;
  font-size: 15px;
}
.opbw_preview_action .form-field label {
  margin-right: 10px;
}
.opbw_preview_action input {
  margin-top: 5px;
}
.opbw_preview_action .button {
  margin: 0 0 0 10px;
}

#opbw-preview .wp-list-table .column-properties {
  width: 20%;
}
#opbw-preview .wp-list-table .column-published {
  width: 8%;
}
#opbw-preview .wp-list-table .column-price {
  width: 10%;
}
#opbw-preview .wp-list-table .column-checkbox {
  width: 6%;
}

.media_value {
  border: 1px solid #ebebeb;
  padding: 5px;
}
.opbw_multiple_media .media_value {
  padding: 10px;
  width: 300px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.opbw_multiple_media .media_value .attachment {
  padding: 0;
  width: 50px;
  height: 50px;
  border: 1px solid #ebebeb;
  overflow: hidden;
}
.opbw_multiple_media .media_value .attachment .gallery_action {
  position: absolute;
  right: 0;
  top: 0;
  opacity: 0;
  transition: 0.2s linear;
  width: 100%;
  height: 100%;
  background-color: #000001;
  display: flex;
  justify-content: center;
  align-items: center;
}
.opbw_multiple_media .media_value .attachment .gallery_action a {
  text-decoration: none;
  color: #fff;
}
.opbw_multiple_media .media_value .attachment:hover .gallery_action {
  opacity: 1;
}

#opbw_history_link {
  position: relative;
}
#opbw_history_link.opbw_disable {
  opacity: 1;
}
#opbw_history_link.opbw_disable::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: url(../../../../../wp-includes/js/tinymce/skins/lightgray/img/loader.gif) no-repeat center var(--opbw-primary-color);
  left: 0;
  top: 0;
}

#opbw_logs {
  margin-top: 30px;
}
#opbw_logs code {
  display: block;
  height: 300px;
  padding: 20px;
  border-radius: 5px;
  overflow-y: auto;
}

.number_edited {
  font-size: 18px;
  color: var(--opbw-shadow-color);
  text-decoration: underline;
  margin-left: 20px;
  font-weight: 600;
}

/*-------------------------------------------------------------
4. History
--------------------------------------------------------------*/
#the-list .type-opbw-history {
  transition: all 0.2s linear;
}
#the-list .type-opbw-history:hover {
  background-color: #f2f2f2;
}
#the-list .type-opbw-history td {
  vertical-align: middle;
  padding-top: 20px;
  padding-bottom: 20px;
}

.history-status {
  padding: 5px 10px;
  background-color: #757575;
  border-radius: 5px;
  color: #fff;
}

.opbw-history-actions {
  display: flex;
  gap: 5px;
}
.opbw-history-actions a {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--opbw-primary-color);
  color: #fff;
  border-radius: 5px;
  transition: all 0.1s linear;
  transform: scale(0.95);
}
.opbw-history-actions a.history-delete {
  background-color: #a20101;
}
.opbw-history-actions a.history-restore {
  background-color: #00abff;
}
.opbw-history-actions a.history-download-backup {
  background-color: #057505;
}
.opbw-history-actions a.history-logs {
  background-color: #ee5683;
}
.opbw-history-actions a:hover {
  transform: scale(1);
  box-shadow: 0px 0px 3px 1px #1f36ae;
}

.opbw-popup .restore-progress .restore-notice {
  font-size: 15px;
  margin: 0 0 25px;
}
.opbw-popup .restore-progress .progress-box {
  margin-bottom: 0;
}
.opbw-popup .swal2-title {
  color: var(--opbw-shadow-color);
}

.results-import {
  margin: 20px auto;
}
.results-import li {
  text-align: left;
  margin-bottom: 0;
  padding: 10px;
  border: 1px solid var(--opbw-shadow-color);
}
.results-import li:not(:last-child) {
  border-bottom: none;
}