/**
 * CustomColorPalette Styles
 * カスタムカラーパレットコンポーネント用スタイル
 */

.zenblocks-custom-color-palette {
  &__tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    padding: 4px;
    background: #f0f0f0;
    border-radius: 8px;
  }

  &__tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 7px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #757575;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;

    &:hover:not(.is-active) {
      background: rgba(0, 0, 0, 0.05);
      color: #1e1e1e;
    }

    &.is-active {
      background: #fff;
      color: #1e1e1e;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
  }

  &__edit-button {
    position: relative;
    z-index: 99;
    margin-top: -35px;
    margin-bottom: 16px;
    width: 135px;
  }

  // Keep the native WP "Clear" control above the overlapped edit button area.
  .components-color-palette__clear,
  .components-circular-option-picker__clear {
    position: relative;
    z-index: 120;
  }
}
