.vi-ui.segment {
  h3 {
    text-align: center;
  }
}

.segment.viw2s-logs {
  max-height: 500px;
  overflow: scroll;
}


#viw2s-products-progress,
#viw2s-product-categories-progress {
  display:none;
  visibility: hidden;
}

.viw2s_input_hidden {
  display: none;
}

.explanatory-text {
  color: #868686;
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  margin-top: 5px;
  margin-left: 0;
  display: inline-block;
  width: 100%;
}

.explanatory-text.top {
  vertical-align: top;
  display: inline;
}

.viw2s-help-tip {
  width: 15px;
  height: 15px;
  margin: 0 0 0 5px;
  position: relative;
  line-height: 15px;

  &:after {
    font-family: Dashicons;
    font-weight: 400;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    text-align: center;
    content: "\f223";
    cursor: help;
    font-variant: normal;
    margin: 0px;
  }
}

#tiptip_holder {
  display: none;
  z-index: 8675309;
  position: absolute;
  top: 0;
  left: 0;
}

#tiptip_holder.tip_bottom {
  #tiptip_arrow_inner {
    margin-top: -5px;
    margin-left: -6px;
    border-bottom-color: #333;
  }
}

#tiptip_arrow, #tiptip_arrow_inner {
  position: absolute;
  border-color: transparent;
  border-style: solid;
  border-width: 6px;
  height: 0;
  width: 0;
}

#tiptip_content {
  color: #fff;
  font-size: .8em;
  max-width: 150px;
  background: #333;
  text-align: center;
  border-radius: 3px;
  padding: 0.618em 1em;
  box-shadow: 0 1px 3px rgb(0 0 0 / 20%);
}

#viw2s-import-products-options {
  .viw2s-import-products-options-heading {
    display: none;
  }
}

.vi-wrap-add-button {
  display: flex;
  justify-content: center;
  align-items: center;
}

.vi_label_input {
  > .label {
    align-items: center;
    display: flex;
  }
}

.viw2s_wrap_date_input {
  display: flex;

  .vi-ui.input {
    display: flex;
  }

  .vi-ui.input.vi_date_to {
    > .label {
      border-radius: 0 !important;;
    }

    input {
      border-radius: 0 !important;;
      border-left-color: rgba(34, 36, 38, .15) !important;
      flex: 1 0 70px;
    }
  }

  .vi-ui.input.vi_date_from {
    > .label {
      border-radius: 0 !important;;
    }

    input {
      border-radius: 0 !important;
      flex: 1 0 70px;
    }
  }

}


#table_store_info {
  tbody {
    tr {
      .viw2s_store_number {
        font-size: 18px;
        font-weight: 700;
      }
    }
  }
}

.viw2s-step-import-settings {
  display: none;
}

.viw2s-step-import-settings.active {
  display: block;
}

.viw2s_wrap_select2 {
  position: relative;

  .select2-container--default {
    .select2-selection--multiple {
      .select2-selection__rendered {
        padding: 0;

        .select2-search__field {
          width: 100% !important;
        }
      }
    }
  }
}

#viw2s_setting_form.loading.transition {
  top: unset;
  left: unset;
}

.viw2s_wrap_logs {
  display: none;

  .viw2s-logs {
    > div {
      padding: 10px 0;
      font-size: 14px;
    }

    strong.important_alert {
      padding: 15px 0;
      font-size: 20px;
      color: red;
    }
  }
}

/* OAuth Related Styles */
.viw2s-api-tabs {
  margin-bottom: 15px;

  .viw2s-tab-separator {
    margin: 0 10px;
  }
}

.api-connect {
  cursor: pointer;
  padding: 8px 12px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  font-weight: 500;

  &:hover {
    color: #2185d0;
  }

  &.active {
    color: #2185d0 !important;
    border-bottom-color: #2185d0 !important;
  }
}

.viw2s-oauth-table {
  display: none;

  &.viw2s-oauth-table-visible {
    display: table;
  }
}

.viw2s-empty-state {
  text-align: center;
  padding: 20px;
  color: #999;
}

.viw2s-oauth-add-form {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;

  h4 {
    margin-top: 0;
  }

  .vi-ui.warning.message {
    margin-bottom: 20px;
  }

  .vi-ui.form {
    max-width: 500px;

    .field {
      margin-bottom: 15px;
    }

    label {
      font-weight: 600;
      margin-bottom: 5px;
      display: block;
    }

    input {
      width: 100%;
      padding: 10px;
      border: 1px solid rgba(34, 36, 38, .15);
      border-radius: 4px;
      font-size: 14px;

      &:focus {
        border-color: #2185d0;
        outline: none;
      }
    }
  }

  button {
    margin-right: 10px;
    margin-top: 10px;
  }
}

.vi-ui.bulleted.list {
  margin-left: 20px;

  .item {
    margin-bottom: 8px;

    &:before {
      content: '•';
      margin-right: 10px;
      color: #2185d0;
      font-weight: bold;
    }
  }
}

// OAuth Required Scopes Styling
.viw2s-scope-copy-container {
  background-color: #f0f0f0;
  padding: 15px;
  border-radius: 4px;
  border: 2px solid #2185d0;
  margin-bottom: 15px;

  .viw2s-scope-copy-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    .viw2s-scope-string {
      flex: 1;
      font-size: 14px;
      font-weight: bold;
      color: #d63031;
      user-select: all;
      word-break: break-all;
    }

    .viw2s-copy-scope-btn {
      flex-shrink: 0;
    }
  }
}

.viw2s-scope-description-list {
  background-color: #e8f5e9;
  padding: 15px;
  border-radius: 4px;
  border-left: 4px solid #4caf50;

  .item {
    strong {
      color: #2e7d32;
    }
  }
}

/* Unified API Table - Readonly Inputs */
.viw2s-readonly-input {
  border: none !important;
  background: transparent !important;
  width: 100%;
  pointer-events: none;
  box-shadow: none !important;
  text-align: center;

  &:focus {
    outline: none !important;
  }
}

.viw2s-unified-api-table {
  td[data-label="API Type"] .viw2s-readonly-input {
    text-align: center;
  }

  .viw2s-credential-label {
    color: #666;
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
  }
}

.viw2s-no-connections td {
  text-align: center;
  padding: 30px;
  color: #999;
}

/* Inline error messages */
.viw2s-inline-error {
  color: #9f3a38;
  font-size: 16px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  i.attention.icon {
    color: #9f3a38;
    font-size: 18px;
  }
}


