.sp-smart-post-background {
  .components-circular-option-picker {
    // position: absolute;
    // left: -11px;
    // display: none;
    button {
      padding: 0;
      height: 14px;
      margin-right: 16px;
      &:focus:not(:disabled) {
        outline: none;
        box-shadow: none;
      }
      svg {
        fill: #000;
      }
      &:hover svg {
        fill: #008db4;
      }
    }
    .components-circular-option-picker__option-group {
      gap: 8px;
    }
    .components-circular-option-picker__custom-clear-wrapper {
      button {
        display: none;
      }
    }
  }
  legend {
    display: none;
  }
  .sp-smart-post-component-title {
    margin-bottom: 0px;
  }
  &-control {
    justify-content: space-between;
    align-items: center;
  }
  &-left {
    display: flex;
    button {
      padding: 0;
      border-radius: 2px !important;
      border: none;
      box-shadow: none !important;
      height: auto;
      border: 1px solid transparent;
      margin-left: 2px !important;
      width: 26px;
      height: 25px;
      justify-content: center;
      position: relative;
      span {
        display: inline-flex;
      }
      p {
        opacity: 0;
        visibility: hidden;
        position: absolute;
        top: -40px;
        background-color: #757575;
        color: #fff;
        padding: 8px 10px;
        white-space: nowrap;
        font-size: 11px;
        border-radius: 4px;
        transition: 0.3s;
        pointer-events: none;
      }
      &::after {
        position: absolute;
        content: "";
        top: -10px;
        left: 2px;
        border-width: 10px;
        border-color: #757575 transparent transparent transparent;
        border-style: solid;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
      }
      &:focus:not(:disabled) {
        outline: none;
        box-shadow: none;
      }
      &.active {
        border: 1px solid var(--sp-smart-primary-2-400);
      }
    }
    button:hover p {
      opacity: 1;
      visibility: visible;
    }
    button:hover::after {
      opacity: 1;
      visibility: visible;
    }
  }
}

.sp-smart-post-tab-panel {
  .sp-smart-post-background-control {
    .sp-smart-post-background-left {
      .components-button:focus:not(:disabled) {
        border: 1px solid var(--sp-smart-primary-2-400) !important;
      }
    }
  }
}
.sp-smart-post-tab-panel {
  .sp-smart-post-background {
    .components-custom-gradient-picker__gradient-bar.has-gradient {
      background: #fff;
      height: 32px;
      .components-custom-gradient-picker__gradient-bar-background {
        border-radius: 2px;
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0.09%, rgba(0, 0, 0, 0.07) 99.95%);
      }
      .components-custom-gradient-picker__markers-container {
        .components-custom-gradient-picker__control-point-dropdown {
          height: 11px;
          width: 11px;
          top: 11px;
          .components-custom-gradient-picker__control-point-button  {
            box-shadow: inset 0 0 0 1px #FFF;
            &:focus {
              box-shadow: inset 0 0 0 1px #FFF;
            }
          }
        }
      }
    }
    .components-custom-gradient-picker__ui-line {
      .components-select-control.components-custom-gradient-picker__type-picker {
        .components-text.components-input-control__label {
          display: none;
        }
        .components-input-control__container select.components-select-control__input {
          height: 28px;
          min-height: 28px;
        }
      }
      .components-number-control.components-angle-picker-control__input-field {
        .components-text.components-input-control__label {
          display: none;
        }
        .components-input-control__container input.components-input-control__input {
          height: 28px;
          min-height: 28px;
        }
      }
      .components-spacer {
        margin-bottom: 0;
        .components-angle-picker-control__angle-circle {
          width: 28px;
          height: 28px;
        }
      }
    }
  }
}
.sp-smart-post-d-flex {
  display: flex;
}
.sp-smart-post-background.sp-is-pro .sp-smart-pro-text {
  margin-left: 5px;
}
.sp-is-pro {
  .sp-smart-post-background-left {
    opacity: .6;
    pointer-events: none;
  }
}