/* Remove - @since 2.0.0
.bsccp-success {
  color: #155724 !important;
}

.bsccp-error {
  color: #721c24 !important;
}

@media only screen and (max-width: 782px) {
  button.bsccp-verify-api-key {
    margin-top: 10px !important;
  }
}
*/

/** bpct_product metabox product gallery */
/* Remove @since 2.0.0
.bsccp-product-gallery-container {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

img.bsccp-product-gallery-img {
  width: auto;
  height: auto;
  max-width: 100px;
  max-height: 100px;
}
*/

/* Hide woocomrec layout */
.woocommerce-layout__header {
  display: none !important;
}

/** Added - @since 2.0.0 */
:root {
  --bsccp-btn-primary-color: rgb(58, 137, 238);
  --bsccp-btn-success-color: #10b981;
}

.bsccp-settings-container {
  display: block;
  padding: 1.6rem;
  background: #ffffff;
  border: 1px solid;
  border-color: rgb(226, 232, 240);
  border-radius: 10px;
  max-width: 700px;
  margin-top: 8px;

  h3.bsccp-settings-header {
    font-size: 18px;
    margin: 0;
    color: rgb(17 24 39);
  }

  label.bsccp-settings-label {
    color: rgb(55, 65, 81);
    font-size: 14px;
    font-weight: 500;
  }

  input.bsccp-settings-input {
    padding: 8px 40px 8px 16px;
    border: 1px solid rgb(209, 213, 219);
    border-radius: 8px;
    flex: 1;
  }

  button.bsccp-settings-api-key-btn,
  button.bsccp-settings-save-btn,
  button.bsccp-settings-woocommerce-btn,
  button.bsccp-settings-sync-products-btn {
    padding: 8px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    background-color: var(--bsccp-btn-primary-color);
    border: 1px solid var(--bsccp-btn-primary-color);
    border-radius: 8px;
    transition: all;
    transition-duration: 0.3s;
    cursor: pointer;
  }

  button.bsccp-settings-api-key-btn:hover,
  button.bsccp-settings-save-btn:hover,
  button.bsccp-settings-woocommerce-btn:hover,
  button.bsccp-settings-sync-products-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px #0000001a;
  }

  .bsccp-settings-api-message-container {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid;
    border-radius: 8px;
    margin-top: 8px;
    transition: all;
    transition-duration: 0.3s;
  }

  .bsccp-settings-api-message-icon span.dashicons {
    width: 30px;
    height: 30px;
    font-size: 30px;
  }

  .bsccp-settings-api-message {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  span.bsccp-settings-api-message-title {
    font-size: 16px;
    font-weight: bold;
  }

  .span.bsccp-settings-api-message-text {
    font-size: 14px;
  }

  .bsccp-settings-api-message-error {
    display: flex;
    background-color: rgb(254, 242, 242);
    border-color: rgb(254, 202, 202);
    color: rgb(153, 27, 27);
  }

  .bsccp-settings-api-message-success {
    display: flex;
    background-color: rgb(240, 253, 244);
    border-color: rgb(187, 247, 208);
    color: rgb(2, 8, 23);
  }

  hr.bsccp-settings-divider {
    margin: 24px auto;
    border-color: rgba(209, 213, 219, 0.2);
  }

  /** Toggle */
  .bsccp-settings-toggle {
    margin-left: auto;
    width: 56px;
    height: 30px;
    display: inline-block;
    position: relative;
    min-width: 56px;
  }

  .bsccp-settings-toggle input.bsccp-settings-toggle-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .bsccp-settings-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    border-radius: 26px;
  }

  .bsccp-settings-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    background-color: white;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    border-radius: 50%;
  }

  input.bsccp-settings-toggle-checkbox:checked+.bsccp-settings-toggle-slider {
    background-color: var(--bsccp-btn-primary-color);
  }

  input.bsccp-settings-toggle-checkbox:focus+.bsccp-settings-toggle-slider {
    box-shadow: 0 0 1px var(--bsccp-btn-primary-color);
  }

  input.bsccp-settings-toggle-checkbox:checked+.bsccp-settings-toggle-slider:before {
    -webkit-transform: translate(26px, -50%);
    -ms-transform: translate(26px, -50%);
    transform: translate(26px, -50%);
  }

  .bsccp-flex-col {
    display: flex;
    flex-direction: column;
  }

  .bsccp-flex-row {
    display: flex;
    flex-direction: row;
  }

  .bsccp-flex-items-center {
    align-items: center;
  }

  .bsccp-gap-8px {
    gap: 8px;
  }

  .bsccp-gap-12px {
    gap: 12px;
  }

  .bsccp-mt-16px {
    margin-top: 16px;
  }

  .bsccp-mb-12px {
    margin-bottom: 12px;
  }

  .bsccp-ml-auto {
    margin-left: auto;
  }

  span.bsccp-settings-description {
    color: rgb(75, 85, 99);
    font-size: 12px;
    font-weight: 400;
  }

  .bsccp-settings-error {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 13px;
    border: 1px solid;
    border-radius: 8px;
    margin-top: 12px;
    transition: all;
    transition-duration: 0.3s;
    background-color: rgb(254, 242, 242);
    border-color: rgb(254, 202, 202);
    color: rgb(153, 27, 27);
    font-size: 14px;
  }

  span.bsccp-settings-shop-name {
    padding: 3px 6px;
    border-radius: 8px;
    background-color: rgb(240, 253, 244);
    border: 1px solid rgb(187, 247, 208);
    height: fit-content;
    font-size: 12px;
  }

  .bsccp-settings-woocommerce-activated-message {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    margin-bottom: 24px;
    border: 1px solid;
    border-radius: 8px;
    transition: all;
    transition-duration: 0.3s;
    background-color: rgb(240, 253, 244);
    border-color: rgb(187, 247, 208);
    color: rgb(2, 8, 23);
  }

  .bsccp-settings-password-show{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: url('../images/eye.svg') no-repeat center center;
    background-size: contain;
    cursor: pointer;
  }

  .bsccp-settings-password-show-icon{
    color: #ccc;
  }

  .bsccp-settings-sync-products-btn-icon{
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
  }

  .bsccp-w-100{
    width: 100%;
  }

  .bsccp-flex-1{
    flex: 1;
  }

  .bsccp-relative{
    position: relative;
  }

  @media only screen and (max-width: 600px) {
    .bsccp-ms-flex-row-wrap {
      flex-wrap: wrap;
    }

    .bsccp-settings-api-key-btn {
      width: 100%;
    }

    .bsccp-ms-ml-unset {
      margin-left: unset;
    }

    .bsccp-ms-w-100 {
      width: 100%;
    }
  }
}

/* Remove multiple active menu arrow */
li#menu-posts-product:after {
  content: unset;
}

/* Hide WooCommerce task products - @since v2.0.2 */
.woocommerce-task-dashboard__container .woocommerce-task-products {
  display: none !important;
}

/* Booxos Task - @since v2.0.2 */
.bsccp-tasks-box {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 24px;
  width: fit-content;
  max-width: 400px;
  margin: 24px auto;
}

.bsccp-tasks-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
}

.bsccp-tasks-header img.bsccp-tasks-icon {
  width: 18px;
  height: 18px;
}

.bsccp-tasks-box h2 {
  font-size: 18px;
  color: #23282d;
  margin: 0 !important;
}

.bsccp-tasks-box .bsccp-task-content {
  font-size: 1em;
  color: #444;
  margin-bottom: 18px;
}

.bsccp-tasks-box .bsccp-tasks-actions {
  display: flex;
  flex-direction: row;
  gap: 5px;
}

.bsccp-tasks-box .bsccp-task-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  background: var(--bsccp-btn-primary-color);
  color: #fff;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.bsccp-tasks-box .bsccp-task-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px #0000001a;
}

.bsccp-tasks-box .bsccp-task-icon {
  font-size: 13px;
  width: 13px;
  height: 13px;
}

@media only screen and (max-width: 400px) {
  .bsccp-tasks-box {
    margin: 20px;
  }
}